cla mix asm code has error E0009
i plan use sam code save dsp loading
Link file start
PAGE 1 :
ADCARESULT : origin = 0x00000B00, length = 0x00000018
SECTIONS
....
AdcaResultRegsFile : > ADCARESULT, type=NOINIT
Link file end
cla start
struct ADCARESULT_REGS {
uint16_t soca0;
};
#pragma DATA_SECTION(ADCAa0,"AdcaResultRegsFile");
volatile struct ADCARESULT_REGS ADCAa0;
void Cla1Task1 ( void )
{
.....
BBU_FB.DspBMS_VS_AIP = ADCAa0.soca0; //it passed compiler
asm(" MMOV16 MAR0, @0x0b00");//it passed compiler
asm(" MMOV16 MAR0, @_ADCAa0.soca0"); //compiler fail
asm(" MMOV16 MAR0, @ADCAa0.soca0"); //compiler fail
}
why compiler fail
show :[E0009] Missing struct/union member or tag
please help me ,i want to cla loading use asm code ,but that can't import c code struct to online asm?