Hi experts,
My customer is evaluating the MSP430FR5964. When they add a symbol for external reference in the linker command file and build with reference from C source file (inline assembler), they sometimes get an error (Undefined symbol).
Could you tell me the conditions under which it becomes an error and how to avoid it?
"Details".
The following is an excerpt of the problematic part of lnk_msp430fr5964.cmd.
MEMORY { FRAM_BOOT : origin = 0x4000, length = 0x4000 FRAM_MAIN : origin = 0x8000, length = 0x7F80 { /* Export define */ __BootFirm_start__ = start(FRAM_BOOT); __MainFirm_start__ = start(FRAM_MAIN); __FramMainFirm__ = start(FRAM_MAIN);
They are divided into "main.c" for the main program and "boot.c" for the custom boot program. When they check the contents of "boot.asm", they find that ".global __MainFirm_start__" has been created, but ".global __FramMainFirm __" was not created.
We have confirmed that the reserved words in the following manual do not apply.
slau131y.pdf (MSP430 Assembly Language Tools v21.6.0.LTS User's Guide (Rev.Y)):8.5.1 Reserved Names in Linker Command Files
If there is anything else that needs to be checked or information that is missing, please let me know.
Best regards,
O.H