<?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>nrf52832 and S112</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/94327/nrf52832-and-s112</link><description>Hello, 
 I am trying to use a blinky example from Nordic SDK (V17.1.0) as a starting point for our custom project. The device on our custom board is nrf52832 with 256k flash, so I wish to use an S112 soft device as it uses less flash space than an S132</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 05 Dec 2022 08:49:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/94327/nrf52832-and-s112" /><item><title>RE: nrf52832 and S112</title><link>https://devzone.nordicsemi.com/thread/398924?ContentTypeID=1</link><pubDate>Mon, 05 Dec 2022 08:49:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:45339f7e-6cb2-42af-a3db-bf4d7b7b7443</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Matjaz,&lt;/p&gt;
&lt;p&gt;We do not have the resources to debug optimization/compiler specific related issues. Without the optimization if this works, and with optimizations it doesn&amp;#39;t then it is something specific to your application and not the solution. There are some hints in the &lt;a href="https://software-dl.ti.com/C2000/docs/optimization_guide/common_optimization_issues.html"&gt;external sites&lt;/a&gt;&amp;nbsp;on best practices for writing code to be optimization friendly.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 and S112</title><link>https://devzone.nordicsemi.com/thread/398798?ContentTypeID=1</link><pubDate>Fri, 02 Dec 2022 14:25:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d968210a-0161-492d-8e4a-bb02d6e73c78</guid><dc:creator>Matjaz1118</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;the project I sent has a compiler optimization turned off. If you change the optimization to optimize for size, the error should occur again.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 and S112</title><link>https://devzone.nordicsemi.com/thread/398793?ContentTypeID=1</link><pubDate>Fri, 02 Dec 2022 14:12:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e4ecb12e-7349-49c8-b95e-ede4260213d2</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Hi, I j ust ran your project on nRF52832 DK with your project in PCA10040e directory and it worked just fine. No faults or errors.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 and S112</title><link>https://devzone.nordicsemi.com/thread/398499?ContentTypeID=1</link><pubDate>Thu, 01 Dec 2022 10:10:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79b380ee-35ea-4ab2-ab27-4cafa5951324</guid><dc:creator>Matjaz1118</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am attaching the project.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/3312.Application.zip"&gt;devzone.nordicsemi.com/.../3312.Application.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 and S112</title><link>https://devzone.nordicsemi.com/thread/398342?ContentTypeID=1</link><pubDate>Wed, 30 Nov 2022 13:17:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e08ddcf4-e896-4244-a5a1-f245e3eed5bb</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Could you share your entire project so I could try to reproduce the issue?&lt;/p&gt;
&lt;p&gt;Also, In the meantime, could you try doing the opposite by starting with a PCA10040 example and then modify it to use the S112 by changing the memory config, change include folder and load settings in project settings Segger?&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 and S112</title><link>https://devzone.nordicsemi.com/thread/398206?ContentTypeID=1</link><pubDate>Tue, 29 Nov 2022 20:44:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6ec370a-dcca-40a9-8aa4-8c5081afb3ee</guid><dc:creator>Matjaz1118</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;So I checked the call stack and it seems that the function that causes the crash is sd_ble_gap_device_name_set (main c, line178). As I was having a hard time figuring out witch error code is reported, I turned off compiler optimization (before it was set to optimize for size). When I run debug session again, the before-mentioned function returned 0 and the blinky demo is now running!&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But it would be nice if size optimization would work, as we only have 256 kB of flash available.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 and S112</title><link>https://devzone.nordicsemi.com/thread/398135?ContentTypeID=1</link><pubDate>Tue, 29 Nov 2022 13:47:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83eb7772-3869-43f8-927e-91960baad8ce</guid><dc:creator>Matjaz1118</dc:creator><description>&lt;p&gt;Thanks, Jared I will do this in the evening when I will have access to the dev board. I will report back the error code.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 and S112</title><link>https://devzone.nordicsemi.com/thread/398130?ContentTypeID=1</link><pubDate>Tue, 29 Nov 2022 13:40:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6220a6f-f728-487c-8bc3-c93b7c831e46</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The error handler in app_error_weak.c is usually called when you call APP_ERROR_CHECK(err_code) and passing a non-zero err_code as parameter. So somewhere in your code,&amp;nbsp;&lt;span&gt;APP_ERROR_CHECK() is called with a non-zero return value which cause the program to go into the error handler. It would be nice if you could use breakpoints, the debugger and figure exactly what function that returns this non-zero return value.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Jared&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 and S112</title><link>https://devzone.nordicsemi.com/thread/398098?ContentTypeID=1</link><pubDate>Tue, 29 Nov 2022 12:28:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:927d3d9c-9728-469e-ba4e-ef6af91abab5</guid><dc:creator>Matjaz1118</dc:creator><description>&lt;p&gt;Hi Jared,&lt;/p&gt;
&lt;p&gt;my program stops in error handler (app_error_weak.c) on line 100 (NRF_BREAKPOINT_COND;). I will post the call stack in the evening, as currently, I don&amp;#39;t have the hardware with me.&lt;/p&gt;
&lt;p&gt;I am aware, that nRF Connect SDK is currently the preferred SDK, but we already have some experience using nRF5SDK, so that is why this SDK has been chosen.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 and S112</title><link>https://devzone.nordicsemi.com/thread/398090?ContentTypeID=1</link><pubDate>Tue, 29 Nov 2022 12:05:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b93e483-7a22-4029-9ae6-a426badef740</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi there,&lt;br /&gt;&lt;br /&gt;You&amp;#39;re preprocessor definitions looks ok.&lt;/p&gt;
&lt;p&gt;What exactly do you mean by crash? Does it go into an error handler or does it hardfault? Can you share the call stack and use breakpoints and specify how far the program reach before it crashes?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Also, if you&amp;#39;re starting a new project then I would recommend using nRF Connect SDK instead of nRF5SDK, as the former is our primary SDK with active development vs the nRF5SDK is only in maintenance mode.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>