I was trying to write the sector 6, I wrote blinky code which is mapped to sector 6. Then I added jump instruction to sector 6 at the end. But code is going to trap after jump.
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
I was trying to write the sector 6, I wrote blinky code which is mapped to sector 6. Then I added jump instruction to sector 6 at the end. But code is going to trap after jump.
Interrupt_illegalOperationHandler()
Hi Yogini,
You said you added a jump. Did you include any code at the jump destination? If not, it will be all 1s and that is an illegal opcode that would cause itrap.
Please note: It would help if you include the topic briefly in the title (subject) of the post. Ex: ITRAP after jump
Thanks and regards,
Vamsi
I have written the data of blinky code which is mapped to sector6. So there is data at sector 6. So after jump to sector 6, i was expecting the blinky code to be executed
Hi Yogini,
Did you include a jump instruction to the code_start location of your application?
Thanks and regards,
Vamsi
Yes. I have jump to sector 6 start instruction in the code.
When I read the data, i am able to see correct data at sector 6. Also jump is properly happening, but after that code is going into trp.
Hi Yogini,
Did you try to see which instruction is causing the trap?
Thanks and regards,
Vamsi
Hello Vamsi,
Now I am getting into below error;
I have taken snapshot of Disassembly;

this is linker of blinky. code fits into only one sector, sector6. Hence I have written the sector 6 only, in the flash.
Do I need to write anything , other that this in order to execute blinky after jump instruction?

Also, when I observe map file of blinky, I see driverlib at the start address of sector 6: 0x86000.
what should be taken care to have executeble function at start address?

Hi Yogini,
I will review and get back to you this week.
Thanks and regards,
Vamsi
Hi Yogini,
There is no need to place a jump. You might have noticed that the codestart section is mapped to the flash entry point (BEGIN) in the linker command file.
The code in that section will call C initialization routine and it in turn will call the main of your application.
Thanks and regards,
Vamsi