loader Callback

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

loader Callback

Postby Sebastian » Tue Jan 31, 2017 4:36 pm

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: 70
Joined: Mon Dec 16, 2013 12:14 pm

Postby colin » Fri Feb 03, 2017 9:37 am

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
Member++
Posts: 20
Joined: Wed Jul 20, 2016 9:15 am

Postby Sebastian » Fri Feb 03, 2017 10:23 am

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

Return to “Q&A”

Who is online

Users browsing this forum: CameronMuh and 10 guests