- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
MicroController: Cypress TV-II-B-H-8M-176-CPU
Compiler: GHS 2017.1.4
Debugger: Lauterbach Trace32
Instruction causing issue: strh r5,[r0,#0x1]
(This Compiler generating Instruction is accessing a 64 bit variable of a struct, which is most probably unaligned due to struct packing. Packing of the struct is due to Compiler Optimizations).
Register state:
After executing this Instruction:
Issue Disappears if:
MPU is disabled through debugger at this instruction and reenabled after this instruction.
Also if I use the "-no_misalign_pack" compiler flag this instruction does not generate and no issue occurs. But the Customer does not like this flag.
According to CortexM7 Generic User Guide, this should not happen for "strh" instruction.
Kindly suggest if any further detail is required, Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This topic is not suitable to be discussed in the community here, please work with the place who enabled you for this product, as you already did.