Hi,
I'm using nrf52840 with Softdevice. It is not clear to me which memory addresses are both (a) in the flash and (b) are available for the application.
Please advise,
Daniel
Hi,
I'm using nrf52840 with Softdevice. It is not clear to me which memory addresses are both (a) in the flash and (b) are available for the application.
Please advise,
Daniel
Amanda,
If I understand correctly, the flash addresses are 0x0 to 0x1,000,000 - 1. Is that correct?
Referring to the previous post, Softdevice is in 0x26000 to 0xDA000.
Is it correct, than, to say that 0x0 to 0x26,000 and 0xDA,000 to 0x1,000,000 is the flash free to use by the application?
Thanks,
Daniel
Hi,
Daniel Reisfeld said:If I understand correctly, the flash addresses are 0x0 to 0x1,000,000 - 1. Is that correct?
Yes, please see Memory map of NRF52840.
Daniel Reisfeld said:Is it correct, than, to say that 0x0 to 0x26,000 and 0xDA,000 to 0x1,000,000 is the flash free to use by the application?
Memory resource map and usage illustrates the memory usage of the SoftDevice alongside a user application. The flash memory for the SoftDevice is always reserved, and the application program code should be placed above the SoftDevice at APP_CODE_BASE.
-Amanda
Hi,
Sorry to delete your reply by mistake ><...
Please let me correct that
The total flash on nRF52840 is 0x100 000 (1 MB ).
Daniel Reisfeld said:How do I get the actual numeric value of APP_CODE_BASE?
Furthermore, is there a way to get the address of the first available address beyond the program code?
It's in the release notes, e.g. SDK15_folder\components\softdevice\s140\doc
Flash: 152 kB (0x26000 bytes).
For S140 v6.1.0, the APP_CODE_BASE is 0x26000. It varies between different Softdevices and versions.
-Amanda
Hi,
Sorry to delete your reply by mistake ><...
Please let me correct that
The total flash on nRF52840 is 0x100 000 (1 MB ).
Daniel Reisfeld said:How do I get the actual numeric value of APP_CODE_BASE?
Furthermore, is there a way to get the address of the first available address beyond the program code?
It's in the release notes, e.g. SDK15_folder\components\softdevice\s140\doc
Flash: 152 kB (0x26000 bytes).
For S140 v6.1.0, the APP_CODE_BASE is 0x26000. It varies between different Softdevices and versions.
-Amanda
Amanda,
Thank you!
Daniel