I compiled the code shown in the attachment, resulting in an error, as shown in the following figure
But in that path I can not find the ccduk96Q.s,I would like to know what causes this error.
Original Attachment has been moved to: bootloader.rar
Hi,
This error indicates there is an invalid instruction "nop" in your project. In fact in this VLE project you should use "e_nop" or "se_nop". I made a quick search and I found this "nop" inline asm instruction in UART_demo.c:
void AppExecute(void)
{
UINT32 i;
OutStr("\r\nUser Application is going to be executed...\r\n");
//some delay
for(i=0; i<1000000; i++)
asm("nop"); // <----replace it with e_nop
/* Reset the device to execute user application. Make sure that state
of PA[1] pin is logic 0 (SW3 is not pushed on EVB). */
MC_ME.MCTL.R = 0x00005AF0; //Functional RESET & Key
MC_ME.MCTL.R = 0x0000A50F; //Functional RESET & Key
}//AppExecute
Please replace it with asm("e_nop"); and rebuild the project again.
Hope it helps!
Stan