I am confused when reading the Note CodeWarrior Linker Command File (LCF) for Qorivva/PX .
In the Listing 6. C source file, the variable long bss_i should be forcefully placed into ".data" section, but in fact, bss_i is placed in ".bss" section. So why?
The note is here:
I checked the code from application note and I can confirm the declspec with long bss_i does not work, which is correct according to declspec implementation, so there is incorrect declspec usage in the application note.
Please use the code below:
#pragma section sdata_type ".data" ".data"
If you have any other question, please feel free to write me back.