readFlashDataPage in loader Topic is solved

Technical questions regarding the XTC tools and programming with XMOS.
Post Reply
malo
Active Member
Posts: 33
Joined: Fri Sep 16, 2016 9:03 pm
Contact:

readFlashDataPage in loader

Post by malo »

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
Contact:

Post by malo »

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
Post Reply