<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://test-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>Moving from SES dev environment to Make/GCC - Hardfaulting</title><link>https://test-devzone.nordicsemi.com/f/nordic-q-a/88897/moving-from-ses-dev-environment-to-make-gcc---hardfaulting</link><description>Hi, 
 We are trying to move from segger studio build environment to GCC/Make starting from the Example Makefile and adding source files and includes. The project consists of a softdevice (s132), bootloader and application. 
 The issue is that we enter</description><dc:language>en-US</dc:language><generator>Telligent Community 13 Non-Production</generator><lastBuildDate>Thu, 16 Jun 2022 06:38:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://test-devzone.nordicsemi.com/f/nordic-q-a/88897/moving-from-ses-dev-environment-to-make-gcc---hardfaulting" /><item><title>RE: Moving from SES dev environment to Make/GCC - Hardfaulting</title><link>https://test-devzone.nordicsemi.com/thread/372702?ContentTypeID=1</link><pubDate>Thu, 16 Jun 2022 06:38:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e6d7e8b-c8a3-4fc7-b5b5-709ba95d44ed</guid><dc:creator>user103507</dc:creator><description>&lt;p&gt;It seem the firmware and bootloader had several separated issues. I will create new more detailed issues instead.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Moving from SES dev environment to Make/GCC - Hardfaulting</title><link>https://test-devzone.nordicsemi.com/thread/372356?ContentTypeID=1</link><pubDate>Tue, 14 Jun 2022 11:26:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:daed30f5-578f-4bee-ac2b-e82a07f28fdf</guid><dc:creator>user7377</dc:creator><description>&lt;p&gt;This seems really odd... Regarding UART, that should not be related to the&amp;nbsp;bootloader at all. If you are not using UART transport in the bootloader, it is never touched by the bootloader, and should be in the same state. It is also puzzling that you see different&amp;nbsp;behavior even after reset when something has happened. Thirdly, it is interesting that you always get the same error indication stack corruption, and you get the same in different situations from both the bootloader and application.&lt;/p&gt;
&lt;p&gt;What differences are there between your Makefiles (including the inherited ones) compared to the SDK Makefiles? And linker scripts? And which GCC version are you using (we state in the release notes which one we tested the release with).&lt;/p&gt;
&lt;p&gt;I really don&amp;#39;t have any specific advice at this point, but I would ask again if you considered going back to our example Makefiles, testing and adding your changes gradually? Perhaps then you will quickly see what changes seems related to this issue?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Moving from SES dev environment to Make/GCC - Hardfaulting</title><link>https://test-devzone.nordicsemi.com/thread/372325?ContentTypeID=1</link><pubDate>Tue, 14 Jun 2022 09:02:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f639fa8e-0011-4f87-8c44-318892296f55</guid><dc:creator>user103507</dc:creator><description>&lt;p&gt;The bootloader is built upon the secure_bootloader example makefile same as the segger project. I did manage to get past the bootloader and into the application after flashing the device with settings.hex file generated from nrfutil. However i suspected there is something weird going on with the softdevice and uart as well.&lt;/p&gt;
&lt;p&gt;In our main function in the application we initialize UART (in the same way from the peripheral example) and it returns success but immidietly after that we recieve and APP_UART_COMMUNICATION_ERROR which is odd because I have made sure we don&amp;#39;t have anything communication over UART. This will also lead to a crash to some uknown address and if the device is reset it will no longer enter the application and what you see below is backtrace&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;0x000782de in ?? ()&lt;br /&gt;(gdb) bt&lt;br /&gt;#0 0x000782de in ?? ()&lt;br /&gt;#1   &amp;lt;signal Handler is called&amp;gt;&lt;br /&gt;#2 0x00000000 in ?? ()&lt;br /&gt;#3 0x0007da24 in ?? () Backtrace stopped: previous frame identical to this frame (corrupt stack?) &lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Moving from SES dev environment to Make/GCC - Hardfaulting</title><link>https://test-devzone.nordicsemi.com/thread/372183?ContentTypeID=1</link><pubDate>Mon, 13 Jun 2022 13:52:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ac404f6-cc6a-4564-b20d-34d4dccb8f45</guid><dc:creator>user7377</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;This does odd..&amp;nbsp;Can you describe more about your bootloader? The SDK example bootloader (which can be used more or less as is) comes with Makfiles, so unless you have done a lot of changes it might be easier and faster to go back to a working SDK example bootloader and modify it / adding back your changes.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>