Quantcast
Channel: MSP low-power microcontrollers
Viewing all articles
Browse latest Browse all 62408

Forum Post: RE: MSP430F5529 - Need to force const structure alignment to a byte boundary. CCSV6, TI 15.12.13.LTS

$
0
0
Putting both arrays in a struct, and prepend a "#pragma pack" ? [quote]Here is what I've already tried, but does not work due to an alignment warning:[/quote] A warning is just a warning, and not (yet) an error. It would be helpful to post this warning message you talk about. Finally, I would check the MAP file if the linker is doing everything as expected. If required, enable MAP file generation. Alternatively, you could define just one array, and access you g_pInterface part via an offset (of 10).

Viewing all articles
Browse latest Browse all 62408

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>