2019-11-04 10:38 PM
Dear
I noticed there are 64K core local RAM in the MCU SPC584C70E3. Does this area is used exclusively by the processor core? Can it be used as general SRAM by user code? If can, how to use it?
Thanks!
2021-02-12 07:56 AM
Good morning,
You are right. The device has 64KiB per Core's of local RAM memory mapped and accessible by means of :
0x50800000 0x5080FFFF D-MEM CPU_0
0x52800000 0x5280FFFF D-MEM CPU_2
For your device part number SPC584C70E3 you have only a single Core then only one Local RAM @ 0x52800000
One typical use case is something like this :
char myVar[32] __attribute__ ((section (".dmemcpu2"))) = { ...
You need only to add the section dmemcpu2 into your linker script.
Hoping to meet your request.
Regards,
Angelo