• Debugging a Usage Fault for an unaligned memory access
    Note: This was originally posted on 4th July 2013 at http://forums.arm.com Hi, I am experiencing a hard fault in Cortex M3. After reading some topics in forums and blogs, I added the following code for...
  • Packed structs unaligned access
    I'll start with a code sample typedef struct { uint16_t len; uint16_t crc; uint8_t data[1]; } __attribute__ ((packed)) packet_t; typedef struct { uint64_t timestamp; uint8_t val1, val2, val3...
  • Unaligned access problems
    Note: This was originally posted on 1st June 2009 at http://forums.arm.com We had written some code for an ARM Cortex M3 platform. But now, we have to port it to an ARM7TDMI based controller in very little...
  • solving INVSTATE Usage fault
    The LR register in pushed on stack holds the address of the instruction that caused InvState Fault. The instruction is in the function "__2sprintf". will someone kindly give me an insight of this function...
  • Usage fault with PSP = 0x00000020
    Hello, I have a project with RTX with 3 threads (main + 2 declared by me) + of course the idle one. The main thread enters wait state after starting the two threads so i have just two threads running...