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

Flash memory map base address query #101

Open
adamfowleruk opened this issue Jul 5, 2024 · 1 comment
Open

Flash memory map base address query #101

adamfowleruk opened this issue Jul 5, 2024 · 1 comment

Comments

@adamfowleruk
Copy link

Hello,

I have an application making use of the Zephyr Flash Map storage functions:-

https://docs.zephyrproject.org/latest/services/storage/flash_map/flash_map.html#flash-map

I use this as-is successfully with Nordic's own nRF52840 dongles. This uses a base address for the storage_partition of 0x7A0000.

When using the MDK dongles - with either the old 0.2 or new 0.7 UF2 bootloader, the flash configuration file I'm merging into my app file appears not to be being read.

Your flash layout diagram on this page doesn't mention where any storage_partition as per the DTS file would be located:-

https://wiki.makerdiary.com/nrf52840-mdk-usb-dongle/programming/uf2boot/#flash-memory-layout

Could you please give me a pointer as to how your device (programmed using Nordic SDK) would layout the storage_partition so I can set a correct base address for my configuration data?

Thank you in advance.

Regards,

Adam.

@adamfowleruk
Copy link
Author

Wouldn't you know it - just after I ask a question I figure it out!

For others' reference - the final base address can be found in the ./build/zephyr/dephyr.dts file by searching for 'storage partition'. E.g.:-

storage_partition: partition@cc000 {
	label = "storage";
	reg = < 0xcc000 0x4000 >;
};

So for this board the base address for flash storage is 0xcc000. (The Nordic nRF52840 dongle board for reference is 0x7A000).

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