Announcements

Help us improve the Power & Sensing Selection Guide. Share feedback

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Not applicable
Infineon TC29x documentation says that executing illegal opcode causes a trap.

How can compiler produce code with illegal opcode? We're using Windriver Compiler / Assembler / Linker? Shouldn't illegal opcode cause a assembler or compiler error ?
0 Likes
1 Reply
cwunder
Employee
Employee
10 likes given 100 solutions authored 5 likes given
The compiler/linker will not generate this intentionally. The illegal opcode trap occurs when the opcode is undefined to the architecture. Some people will define all unused Flash with an illegal opcode such that if the program counter executes from the unused flash you will get a trap.
0 Likes