readFlashDataPage in loader Topic is solved

Technical questions regarding the xTIMEcomposer, xSOFTip Explorer and Programming with XMOS.
malo
Active Member
Posts: 33
Joined: Fri Sep 16, 2016 9:03 pm

readFlashDataPage in loader

Postby malo » Fri Dec 02, 2016 5:43 pm

Hello,

would like to read first byte from data partition in the loader.
have found this post https://www.xcore.com/forum/viewtopic.php?t=3438 but still could not make it work...

Can anybody explain/confirm what should be the correct argument for readFlashDataPage and if it can be called from loader init function?

Im using embedded quad flash in XLF device. and feeding xflash with loader.xc file.

Thanks in advance.

wbr
malo
View Solution
malo
Active Member
Posts: 33
Joined: Fri Sep 16, 2016 9:03 pm

Postby malo » Mon Dec 05, 2016 6:05 pm

Hello,

got it working so self responding for the reference...
readFlashDataPage can be called from loader init callback.
argument is absolute address, so when xflashing with
--boot-partition-size 1892352
you can read the data partition with something like this
unsigned char* buff = (unsigned char*)readFlashDataPage (0x1CE000);

tested with XEF216-512-TQ128, xtime composer 14.2.

wbr
malo

Who is online

Users browsing this forum: No registered users and 3 guests