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.
I got compile error "Error: A1616E: Instruction, offset, immediate or register combination is not supported by the current instruction set"
For below routine
__asm uint32_t A(void){ MRS R0, MSP ====> line pointed by error message LDR R0, [R0,#8] ... BX lr}
__asm uint32_t A(void){ MRS R0, MSP ====> line pointed by error message LDR R0, [R0,#8]
...
BX lr}
for both Arm compiler 4.1 and 5.06. What I am missing here? thanks...
You are building for Cortex-R5, which does not support MSP (Main Stack Pointer).
MSP is only provided on Cortex-M processors.