I'm unable to set the correct RAM regions for MK22FX512VLH12 using Processor Expert. It is supposed to have 128KB RAM, so lower address should be 0x1FFF8000, right?
If your MCU has 128 Kb of RAM, you will have two blocks of RAM, SRAM_L and SRAM_U (See chapter 22.214.171.124 of RM). Each of them will be 64 KB of RAM = FFFF in Hex
SRAM_L ends at 1FFF_FFFF and SRAM_U begins at 2000_0000. So your RAM memory map will be:
SRAM_L: From 1FFF_0000 to 1FFF_FFFF (64 Kb)
SRAM_U: From 2000_0000 to 2000_FFFF (64 Kb)
If you check the picture I posted, that's exactly the value I set at PE settings, but PE shows me an error (also showed at the picture).
It seams that this processor PE component has wrong memory settings, like it has only 64KB, because it only allows me to set
SRAM_L: From 1FFF_8000 to 1FFF_FFFF (32 Kb).
You're right, I understood you wrong because of the last sentence: " so lower address should be 0x1FFF8000, right?"
I have reported the issue to the Processor Expert team.
Yeah, my mistake, sorry about the confusion.
Thanks for your attention.
You can use the following workaround.
- Switch off the generating of linker file (uncheck the Generate linker file option; see the screenshot below).
- Open the linker file that is located in the Project_Settings\Linker_Files\ProcessorExpert.ld file and modify the m_data and m_data_20000000 memory areas directly in this linker file.
Retrieving data ...