Not applicable
Apr 03, 2017
08:51 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Apr 03, 2017
08:51 AM
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 ?
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 ?
- Tags:
- IFX
1 Reply
Apr 03, 2017
04:51 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Apr 03, 2017
04:51 PM
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.