This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Transfering data from the App to the bootloader

Hi,

I'd like to transfer some data from my App (using fstorage) to the bootloader (using pstorage).

Given that that the two storage mechanisms are different, how can I transfer data between from the App to the bootloader?

I wish to transfer about 60 bytes.

Thanks Lee

Parents
  • Thanks. I'm not sure how I can do that I've tried adding attribute((section(".noinit"))) static data_t data; to both the app and bootloader. I then set data to a value in app but the value is 0 when read from the bootloader. I guess I have no guarantee that the variable 'data' uses the same memory address in the bootloader as it does in the app. Is this the problem in your opinion? Do you know how I can solve it?

Reply
  • Thanks. I'm not sure how I can do that I've tried adding attribute((section(".noinit"))) static data_t data; to both the app and bootloader. I then set data to a value in app but the value is 0 when read from the bootloader. I guess I have no guarantee that the variable 'data' uses the same memory address in the bootloader as it does in the app. Is this the problem in your opinion? Do you know how I can solve it?

Children
No Data
Related