-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integrate Kaluma + support JS files #270
Comments
some implementation notes: Kaluma Flash Layout. The code is stored separately from the rest of the file system (there's 512kb for code storage, 512kb for the filesystem). It is stored as a simple null-terminated string. |
Well, I managed to hack something together so hopefully it'll be useful enough for your talk: |
Ok, so it works - which is so great! I'll keep appending to this issue any bugs I find. |
For some reason it does a soft reboot immediately after loading, so I can get a single value out, but then I need to enter: |
What if you add a delay(1000); at the end of the code? |
I'll try, btw this is a basic example: https://wokwi.com/arduino/projects/320701865454994003 |
delay doesn't help |
There you go: https://wokwi.com/arduino/projects/320703884609716818 |
Weird though that it needs a loop, but on the board and running it with |
That's a good question! |
I can work with what there is for now anyway, I don't see anything wrong with having a loop with the delay call. If you find it's something to do with Kaluma, I'm sure the dev would be interested. Cheers |
Seems like it was Wokwi. Try your original example again? |
Yep works as expected! |
Wokwi doesn't have a JS runtime for RP2040, and also the code editor doesn't support JS files. Implement loading Kaluma-based projects along with allowing JS files and maybe auto-complete for the Kaluma/JerryScript API.
The text was updated successfully, but these errors were encountered: