Weird behavior when adding a new section to QSPI
Hello,
I have a problem adding a new section to QSPI with the graphics stored on it.
I want to store some error-text tables in a new section of the QSPI flash.
For that i shrinked the 64MB QSPI and added a new section in the linker script.
QUADSPI (r) : ORIGIN = 0x90000000, LENGTH = 64M-20M
EXTERROR (r) : ORIGIN = 0x92800000, LENGTH = 20M
Then i created the section:
ExtErrorsSection :
{
*(ExtErrorsSection ExtErrorsSection.*)
*(.gnu.linkonce.r.*)
. = ALIGN(0x4);
} >EXTERROR
The error text file looks like that:
const ErrorTexts __attribute__((__section__("ExtErrorsSection"))) SensorXYZ[] = {
{0x1234, "Value1 out of range"},
{0x1235, "Value2 out of range"},
{0x1236, "Value3 out of range"},
{0x1237, "Value4 out of range"}
};
At runtime i decide which type of sensor it is and copy the table.
After building the code i can see at the Build Analyzer (i am using STM32CubeIDE) that the Memory Region "EXTERROR" is filled with the table and at the Details i can see that the storing position at QSPI is "0x92800000".
But it seems that it will overwrite some graphics. Some graphics stored in QUADSPI region looks distortet.
As soon as i do not store data in "EXTERROR" everything works and the graphics looks good.
What is the best way to go on here to find out what the problem is?
Thank you very much.
