2006-03-13 01:22 AM
I am looking for an undefined instruction
2005-08-08 11:44 PM
Hi,
I want to test my undefine instruction handler, but I don't know how? Is anybody known a undefine instruction ? I want to put this in my code : UNDEFINED_CODE: DCD 0X2C2C000A Thanks, Ludo2005-08-09 01:06 AM
I have not found the undefined instruction. It seems to me that the code jump to 0x4000FFFC and call the undefined instruction because something was there, but It is not my case.
Isn't it.2005-08-09 01:11 AM
Ok,
I found one ; DCD 0x776D2D75 Thanks, Ludo2006-03-12 09:34 PM
Hi Ludo,
I have created the undefine handler that should reset the system when the program counter jumps to unused(filled with 0xFFFFFF) memory. Now I what to test this. How can I trigger an undefined exception from my C program? Here is what I want to do to trigger an undefined exception. I am running from SRAM(evaluation board) and I want the program counter to jump to a memory location in the flash. The flash contains only FFFFFF's, this way the undef exception will be triggert. But How do I make a jump with the PC? I tried with inline assembly in my main() function: __asm { B 0x40010000 //location in the flash } To jump to the flash memory. But this does not work. Does someone know how to jump to a specific memory location in a C program. I am not known with assembly instructions. Regards, Jimmey