Skip to content
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

Make Espruino autodetect RAM (and flash?) size #340

Closed
gfwilliams opened this issue Apr 24, 2014 · 2 comments
Closed

Make Espruino autodetect RAM (and flash?) size #340

gfwilliams opened this issue Apr 24, 2014 · 2 comments

Comments

@gfwilliams
Copy link
Member

Some people want to be able to solder chips with more RAM onto the board. Espruino could be made to detect the amount of RAM on startup and to adjust the JsVar count automatically.

It'd need:

  • To be able to find out RAM/ROM size (perhaps via the chip ID register that the flash loader seems to use?), or maybe there is a special one
  • The linker scripts need changing to put jsVars at the end of the RAM
  • The process.memory function (and stack checker) need updating so that they know where that stack really ends
@gfwilliams
Copy link
Member Author

See F103 reference: 30.1 Memory size registers

Flash: 1024_(_(uint16_t*)0x1FFFF7E0)

No RAM though?

@gfwilliams
Copy link
Member Author

Doing board-specific builds is so easy now I don't think there's any call for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant