<?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>Thingy 52 mesh example at Segger Embedded studio issue</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/56540/thingy-52-mesh-example-at-segger-embedded-studio-issue</link><description>I am have a curious issue with thingy52-mesh-provisioning-demo repo at Nordic Semi github. 
 Prebuild hex behavior does not match with hex compiled by source. 
 In short, Double to uint32_t casting is wrong. 
 
 IMHO, something wrong with default compiler</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 23 Jan 2020 10:08:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/56540/thingy-52-mesh-example-at-segger-embedded-studio-issue" /><item><title>RE: Thingy 52 mesh example at Segger Embedded studio issue</title><link>https://devzone.nordicsemi.com/thread/230538?ContentTypeID=1</link><pubDate>Thu, 23 Jan 2020 10:08:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:82f9ef12-7b12-4245-9ff4-a6c28d77bfc8</guid><dc:creator>Batov</dc:creator><description>&lt;p&gt;I have reported issue to Segger already. Bug will fix at next release. Thanks a lot for your help!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy 52 mesh example at Segger Embedded studio issue</title><link>https://devzone.nordicsemi.com/thread/230414?ContentTypeID=1</link><pubDate>Wed, 22 Jan 2020 16:12:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:60587949-3fd0-48e8-a7bc-0f90390b68e6</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Batov,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have reproduced the issue here. It seems that there is an issue with the standard library from Segger (located in the lib folder)&amp;nbsp;&lt;br /&gt;This happened in v4.30c that you used and v4.40 latest as well.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I would suggest to try testing with v4.18 (or v4.22) . This is what I have in v4.18:&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/437x394/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-feeef058e57a44db949c27b5458b2ced/pastedimage1579708996898v2.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;We will try to contact Segger to check with them.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy 52 mesh example at Segger Embedded studio issue</title><link>https://devzone.nordicsemi.com/thread/229790?ContentTypeID=1</link><pubDate>Mon, 20 Jan 2020 09:56:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f94c000c-7b50-40bf-bad2-e66ff2251a39</guid><dc:creator>Batov</dc:creator><description>&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1579513476684v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;Minimum code with same result. Set &lt;span&gt;Optimization Level to None.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;IMHO, __eabi_d2uiz has bug.&lt;br /&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/2020_2D00_01_2D00_20_5F00_13_2D00_44_2D00_50.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;lsrs.w r0, r0, r2 put to r0 0x02&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1579514119706v3.png" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Code sample which return 0x02 with any optimization level.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy 52 mesh example at Segger Embedded studio issue</title><link>https://devzone.nordicsemi.com/thread/229786?ContentTypeID=1</link><pubDate>Mon, 20 Jan 2020 09:39:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3d47fa0-a1f1-4c3f-9473-7918ac28e9d5</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;I don&amp;#39;t really have a clue what could be wrong here.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But in your log&amp;nbsp; there is a &amp;quot;App OnOff Model Handle: 2&amp;quot; would that value 2 came from that variable. There must be something causing the cast to result 2. Have you tried to do step debug when doing casting ?&amp;nbsp;&lt;br /&gt;And have you tried to make a minimum code just with the test function and nothing else ?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy 52 mesh example at Segger Embedded studio issue</title><link>https://devzone.nordicsemi.com/thread/229359?ContentTypeID=1</link><pubDate>Thu, 16 Jan 2020 09:13:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6dcb8bf-d75c-41de-aa4a-2c489fe33284</guid><dc:creator>Batov</dc:creator><description>&lt;p&gt;Default compiler.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1579165812529v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;Try to set optimization level to None (Not Debug)&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1579165945429v2.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Case with wrong casting repeated for me at any Nordic project at SES.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy 52 mesh example at Segger Embedded studio issue</title><link>https://devzone.nordicsemi.com/thread/229355?ContentTypeID=1</link><pubDate>Thu, 16 Jan 2020 09:07:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a4856dcc-6f6d-4dce-95d7-39f73848ff65</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Batov,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It&amp;#39;s quite strange that you get the double 0 cast to uint32 2 . On my setup it&amp;#39;s return 0 0 with your code.&amp;nbsp;&lt;br /&gt;Which compiler are you using ? Do you use the included gcc compiler comes with Segger ?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>