hannes23 wrote on Thursday, November 02, 2017:
Hello Hein,
the CPU is Cortex A9, GCC version is 6.2.1 from the tool-chain SDK-2017.2.
I have attached the disassembly file, i.e. what I see in the disassembly window of the debugger.
The error happens in the memset routine, when due to non-quad-aligned size the last bytes are to
be set. This is in line 153 to 164. The source and destination registers r2, r0 are compared and when
unequal a jump to start of routine is performed. There the pointer difference is compared to 7, then the register pushes are done and the PC jumps to the same location (line 160) and the story continues.
I hope this is a bit enlightening.
Greetings,
Hannes