We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi,
I am seeing the below errors when I try to compile my code in Arm Compiler 6. Can you please help me to resolve this issue?
error: invalid operand for instruction MRS r0, PSP
error: invalid operand for instruction MRS r0, MSP
Environment are below:
CORE = cortex-m4FPU = fpv4-sp-d16ARCH = armv7-a
Pradeep
Those symbols are defined in the linker script.
You would need to #define them to match the equivalent symbols generated by scatterloading, such as:
#define _bss_start Image$$ZI_REGION$$Base
Where ZI_REGION is the name given to the execution region in your scatter file.