• 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...
  • 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...
  • ARM: STM32F7: hardfault caused by unaligned memory access
    I was having some issue executing from SDRAM (now working) and looked into this support document: http://www.keil.com/support/docs/3777.htm For part 2 of this note - should: RCC->APB2ENR...
  • Debugging a Usage Fault for an unaligned memory access
    Hi, I am experiencing a hard fault in Cortex M3 and bit#30 FORCED is set in the Hard Fault Status Register (0xE000ED2C). Referring to the Cortex M3 Technical Reference Manual: [color="#0000FF"] [30] FORCED...
  • 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...