Hello,
I have an issue if the .text section is lager then 0xFFFF. The SPI bootloader can't copy any size lager than 16 bits( 0xFFFF). So the program fails to boot.
Therefore I need to split the .text section into multiple sections. If I do this manually, everything works ok, but I can't get it to work with the Automatic section splitting.
This Works:
.text : > H01SARAMP0 PAGE = 0, crc_table(_crc_table_allsection, algorithm=CRC16_802_15_4)
.text2 : > H34SARAMP0 PAGE = 0, crc_table(_crc_table_allsection, algorithm=CRC16_802_15_4)
{
xx_*.obj(.text) //
}
This won't work
.text : >> H01SARAMP0 | H34SARAMP0 PAGE = 0, crc_table(_crc_table_allsection, algorithm=CRC16_802_15_4)
Because the DSP is pretty full I prefer the automatic splitting to utilize all the space.
If the size of the .text is lager than 0xFFFF, the linker won't give any warning and debugging works fine. But the program can't start from SPI flash.