It is said in the L251 documentation that by default, the linker would use below address ranges for a all memory classes
Question 1:
In a linker file that i was checking, the two are declared in the input directive fileHDATA (0x100-0x2EBF),HDATA_EEP (0xF80080-0xF800E0),is the range of HDATA_EEP valid? I thought that because of the first declaration, we are limiting the HDATA memory space from 100 to 2EFB only. Question 2: If the above HDATA_EEP declaration is valid.. then is this the correct pragma to use?#pragma userclass(hdata = eep)
The table in the documentation shows the accepted address range.
HDATA class definitions must fit into this range. However you can have multiple definitions that define various (also non-overlapping) sections of memory. Therefore the definition above is perfectly fine.
Thank you very much sir for the response. May i just clarify...
If i declare 3 non overlapping definitions.. say
I believe the way to use each definition is to use the pragma userclass
So for HDATA_ATEST, it would be
For HDATA_BTEST, it would be
How about for the HDATA? Should i use
Yes, that should be correct.
Ok. thank you very much for your response :)