loader Callback

If you have a simple question and just want an answer.
Post Reply
User avatar
Sebastian
Active Member
Posts: 39
Joined: Wed Jul 20, 2016 9:15 am

loader Callback

Post by Sebastian »

Hello every one,

is it possible to write into flash inside the bootloader callbacks?
Something like the opposite of:

Code: Select all

extern void * readFlashDataPage(unsigned addr);
I have tried:

Code: Select all

extern void writeFlashDataPage(unsigned addr, unsigned char data[]);
also:

Code: Select all

fl_connect(..);
fl_writeDataPage(....);
But nothing of them did work.

Regards,
Sebastian


colin
Experienced Member
Posts: 74
Joined: Mon Dec 16, 2013 12:14 pm

Post by colin »

Hi Sebatian,

There are currently no callbacks in the loader for writing back to flash memory. You can use the data partition when you flash the factory image (see xflash option --data) to store some custom data at this time.

Colin
User avatar
Sebastian
Active Member
Posts: 39
Joined: Wed Jul 20, 2016 9:15 am

Post by Sebastian »

Hello Colin,

thanks for your answer.

The idea behind this is, that the bootloader could tell something to the "user" without the use of gdb.
So xflash --data is too early :)

Regards,
Sebastian
Post Reply