Porting Espruino to a Cortex M0 platform #4407
Replies: 2 comments 1 reply
-
Posted at 2015-02-08 by @allObjects @gfwilliams + Javascript ---> Bushfire ;-) Posted at 2015-02-09 by @gfwilliams Hi, It depends on the make of chip. Nothing in the interpreter is particularly platform dependent, so getting it running should be trivial. Accessing all the peripherals though? That's usually what takes a lot of time. If you use ST then at least a lot of that work has been done for you. |
Beta Was this translation helpful? Give feedback.
-
Most Cortex M0 chips I see around has a very small SRAM memory, some of them less then 8K. At a first glance current Espruino execution model and JS itself wants at least 64K of SRAM to be more or less usable. For such a small chips there is only two options:
But I'm not sure it ever possible to AOT compile JavaScript at all due to its very dynamic nature. As a variant for such small devices some sort of bytecoded FORTH/CLI can be used for REPL experimenting, but I also does not know anybody used |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-02-08 by jose.angel.jimenez
Hi all,
I am an electronics engineer, with experience in several MCU and DSP architectures but with very limited knowledge of JS and the ARM Cortex architecture.
Trying to make a rough estimation about the effort it may take me to port Espruino to a platform based on ARM Cortex M0, 256KB Flash, 32KB RAM.
Thanks a lot for your comments and suggestions,
Jose Angel
Beta Was this translation helpful? Give feedback.
All reactions