I have a project from pre-7.9 LPCXpresso that includes a bootloader at address 0x00 and has a jump call at address 0xFF0. I used the old style linker script to place my jump function at 0xFF0. I am now needed to make some changes in the code, but when I rebuild in 7.9.2, the linker script is failing. I tried using Tools-> convert, but it still failed. I then took a step back to try to verify functionality. I took the DEFAULT link_template.ld from the Wizards folder, put it in my linkscripts folder and then did Tools-> convert. It fails - this SHOULD work, I have made NO changes in the linker scripts. The error I am getting is:
The following has evaluated to null or missing:
==> memory [in template "rodata.ldt" at line 1, column 22]
----
FTL stack trace ("~" means nesting-related):
- Failed at: ${memory.alias} [in template "rodata.ldt" at line 1, column 20]
- Reached through: #include "rodata.ldt" [in template "linkscript.ldt" at line 27, column 1]
----
I found in the FAQs that memory.alias comes from the Alias column of the memory map. This would imply that the error means I left that blank. However, here is what my memory map looks like:
Type Name Alias Location Size
Flash Flash_SBL Flash 0x0 0x1000
RAM RamLoc16 RAM 0x10000000 0x3c00
RAM Ram_FWDATABUF RAM2 0x10003c00 0x400
RAM RamAHB16 RAM3 0x20007c000 0x4000
Is the problem that I renamed the Flash section from the default to Flash_SBL? If so, how should this be addressed under the new scripting, if not, any explanation of why I'm getting this error and how to resolve it. My first goal is to just get the basic memory map working, then I'll go back and make sure my jump function is placed at the correct location.