• 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 with Bitfields
    Hi Guys, I'm programing my own TCP/Ip Stack. Therefore I need structs with bitfields. For eg: typedef struct __attribute__ ((packed)) { uint16_t srcPort; uint16_t dstPort; uint32_t seq;...
  • How to pack structs?
    I'm using the Keil uVision3. How do I pack structs? Do I use __packed or is there a pragma? is this correct? it doesn't compile... typedef struct { UINT8 key_diff; UINT8 key_state; } __packed...
  • Cortex: support of unaligned data access
    Hi The Cortex-M3 should support unaligned data access to save RAM space without the lost of performances. Is there a possibility to enable this features for an entire project or do I have to use...
  • 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...