2014-03-26 01:09 AM
Hello,
I'm using stm32l100(compile and debug through kiel v4) which is connected to Network processor (Lon ft5000) ,.my firmware consist of structures and nested structures with different size of members ,...My doubt is does the alignment and packing happen default or should I provide packing(Do I use __packed or is there a pragma?
) ,..how does this work . #structure-alignment #stm32l1002014-03-26 05:14 AM
http://www.keil.com/support/man/docs/armcc/armcc_CJADHEDH.htm
http://www.keil.com/support/man/docs/armccref/armccref_CJAFEEDG.htm
http://www.keil.com/support/man/docs/armccref/armccref_CJAFJHJD.htm
Both methods would likely achieve what you need. sizeof() and offsetof() might assist in understand structure packing achieved.