<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Segger studio ignores my __PACKED struct pragma</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/35429/segger-studio-ignores-my-__packed-struct-pragma</link><description>Hi all, 
 I am moving from Keil into SES, and one of the things I am not being able to find is how to do the __PACKED pragma. 
 I see in SES that: 
 #elif defined ( __GNUC__ ) 
 is being defined correctly so this should work: 
 #ifndef __PACKED 
 #define</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 14 Jun 2018 18:39:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/35429/segger-studio-ignores-my-__packed-struct-pragma" /><item><title>RE: Segger studio ignores my __PACKED struct pragma</title><link>https://devzone.nordicsemi.com/thread/136237?ContentTypeID=1</link><pubDate>Thu, 14 Jun 2018 18:39:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c43177c3-c30b-4db5-8d5e-d9c21c8070f9</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;I recommend using that method. &amp;nbsp;It is standard supported on practically all compilers. &amp;nbsp;The other way is non standard avoid using them as possible.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Segger studio ignores my __PACKED struct pragma</title><link>https://devzone.nordicsemi.com/thread/136234?ContentTypeID=1</link><pubDate>Thu, 14 Jun 2018 17:59:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:267d9dfa-3ede-4943-9375-75dffaa4059a</guid><dc:creator>Antonio</dc:creator><description>&lt;p&gt;Thank you Nguyen, that worked beautifully.&lt;/p&gt;
&lt;p&gt;I just wished it would work out of the box :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Segger studio ignores my __PACKED struct pragma</title><link>https://devzone.nordicsemi.com/thread/136229?ContentTypeID=1</link><pubDate>Thu, 14 Jun 2018 17:18:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5eb1e7cd-6f6b-4ef4-aa0f-94a660d4fe6b</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;Try using the more standard way&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#pragma pack(push,1)

struct xxx {

...

};

#pragma pack(pop)

&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>