stm32l100 data structure alignment,packing and pading
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2014-03-26 1:09 AM
Posted on March 26, 2014 at 09:09
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 #stm32l100
Labels:
- Labels:
-
STM32L1 Series
This discussion is locked. Please start a new topic to ask your question.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2014-03-26 5:14 AM
Posted on March 26, 2014 at 13:14
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.
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Up vote any posts that you find helpful, it shows what's working..
