<?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>Unable to run &amp;quot;BLE Blinky&amp;quot; on an Fanstel BM832A but can run non-BLE examples</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/69894/unable-to-run-ble-blinky-on-an-fanstel-bm832a-but-can-run-non-ble-examples</link><description>I&amp;#39;m sure the mistake is mine but I would appreciate some suggestions on where to look for my mistake. 
 I have a custom board with a Fanstel BM832A module. I also have an NRF52 dev kit for comparison. 
 I can run basic non-bluetooth peripheral code on</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 09 Jan 2021 16:37:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/69894/unable-to-run-ble-blinky-on-an-fanstel-bm832a-but-can-run-non-ble-examples" /><item><title>RE: Unable to run "BLE Blinky" on an Fanstel BM832A but can run non-BLE examples</title><link>https://devzone.nordicsemi.com/thread/288264?ContentTypeID=1</link><pubDate>Sat, 09 Jan 2021 16:37:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10ef249b-5357-417b-a951-42e5470169fa</guid><dc:creator>David Smoot</dc:creator><description>&lt;p&gt;That worked.&amp;nbsp; Both the Hex file and building from source.&amp;nbsp; Thank you.&amp;nbsp; I will examine the source and makefile and find my mistake.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to run "BLE Blinky" on an Fanstel BM832A but can run non-BLE examples</title><link>https://devzone.nordicsemi.com/thread/287736?ContentTypeID=1</link><pubDate>Wed, 06 Jan 2021 13:40:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:39d242f4-bf14-479f-9aba-9e12f560dd60</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi David,&lt;/p&gt;
&lt;p&gt;I looks like you have already performed the necessary steps to convert the project to run on an actual 52810 target with the internal RC clock. Other things that might potentially cause issues is the pinout used by the example as it is configured to run on a Nordic dev kit by default.&lt;/p&gt;
&lt;p&gt;Attached below is a modified example I made that you can test if you have time. I disabled all GPIO configurations in this project, including configuration of the reset pin and UART pins.&lt;/p&gt;
&lt;p&gt;Pre-programmed hex file of application + Softdevice. Command if programming it with nrfjprog : nrfjprog --program nrf52810_xxaa_with_softdevice.hex --chiperase -r&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/nrf52810_5F00_xxaa_5F00_with_5F00_softdevice.hex"&gt;devzone.nordicsemi.com/.../nrf52810_5F00_xxaa_5F00_with_5F00_softdevice.hex&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Makefile project. Extract and move to nRF5_SDK_17.0.2_d674dde\examples\ble_peripheral\ before building.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ble_5F00_app_5F00_blinky_5F00_fanstel.zip"&gt;devzone.nordicsemi.com/.../ble_5F00_app_5F00_blinky_5F00_fanstel.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to run "BLE Blinky" on an Fanstel BM832A but can run non-BLE examples</title><link>https://devzone.nordicsemi.com/thread/287566?ContentTypeID=1</link><pubDate>Tue, 05 Jan 2021 17:10:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b8b71851-d50c-4cd8-a6c0-b1cca616f005</guid><dc:creator>David Smoot</dc:creator><description>&lt;p&gt;I attempted the steps outlined by HMolesworth without success.&amp;nbsp; Of course I am not confident that I am starting the clock correctly.&lt;/p&gt;
&lt;p&gt;I still would like an answer to this if possible but this task has become a much lower priority.&amp;nbsp; Nordic feel free to close this ticket unanswered if you need to and I will post a revised version when I get bandwidth again.&lt;/p&gt;
&lt;p&gt;That said, if anyone has a recipe for a simple BLE example running on the Fanstel BM832a, I would be most grateful.&lt;/p&gt;
&lt;p&gt;David&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to run "BLE Blinky" on an Fanstel BM832A but can run non-BLE examples</title><link>https://devzone.nordicsemi.com/thread/286878?ContentTypeID=1</link><pubDate>Tue, 29 Dec 2020 17:14:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d3e43c2-b42f-4988-ab30-50601e267da2</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;First I see that you didn&amp;#39;t mention an &lt;em&gt;Erase All&lt;/em&gt; followed by a &lt;em&gt;power-on reset&lt;/em&gt; step; did you do that before programming the softdevice followed by the application? This is necessary for all these modules (and the uBlox/Rigado modules) to completely clear the delivered settings otherwise BLE does not work. If you need to keep the delivered MAC address then read that out first. Both Segger SES (T&lt;em&gt;arget-&amp;gt;Connect, Target-&amp;gt;Erase All&lt;/em&gt;) and nRFGo Studio (even though the latter is now depreciated) work fine for this. I repeat; without an &lt;em&gt;erase all&lt;/em&gt; BLE will not work on a newly delivered module. If protection is enabled, a &lt;em&gt;recover&lt;/em&gt; may be necessary first. The nRFConnect and command line tools may also be used, but I use the above&lt;/p&gt;
&lt;p&gt;I had a look at the development board for that module, but it is confusing as the schematic shows an nRF52840 module. Some of their development boards provide an external 32kHz crystal I see, but the module should work fine without, using the settings I gave. I have tested this on the uBlox/Rigado BMD350 module, which is identical in terms of functionality and MCU and is also delivered with pre-loaded software which causes BLE to not work when using the normal SD/app project build-and-debug cycle.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to run "BLE Blinky" on an Fanstel BM832A but can run non-BLE examples</title><link>https://devzone.nordicsemi.com/thread/286777?ContentTypeID=1</link><pubDate>Tue, 29 Dec 2020 00:42:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b9d1bc5f-07b1-46c8-8bc3-7ca9f7a0fb62</guid><dc:creator>David Smoot</dc:creator><description>&lt;p&gt;So starting to see the big picture I think but still not working...&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It appears to me that Fanstel intends this module to be used a BLE transceiver for another microcontroller.&amp;nbsp; They ship it with a default image loaded and documentation for interfacing their module to another microcontroller over SPI or UART using AT commands.&lt;/p&gt;
&lt;p&gt;So I&amp;#39;m not saying what I want to do (run custom code) is impossible, it is just not documented or supported by Fanstel.&amp;nbsp; I have scoured their website and Google and to the best of my abilities there is no source code provided at all for this module.&lt;/p&gt;
&lt;p&gt;It is an NRF52810 module with no external oscillator.&amp;nbsp; So that means (I think) I have 3 basic tasks at least to port a PCA100040e example&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;The porting steps listed in the SDK at&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/nrf52810_user_guide.html?cp=7_1_5_0"&gt;https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/nrf52810_user_guide.html?cp=7_1_5_0&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Change the sdk_config.h as outlined by hmolesworth&lt;/li&gt;
&lt;li&gt;Somehow start / enable the RC oscillator in code.&amp;nbsp; I tried a blind paste of hmolesworth code into my source but it did not work.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;I think I am doing steps 1 and 2 right but don&amp;#39;t know how yet to do step 3 or if I am missing anything else.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;David&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to run "BLE Blinky" on an Fanstel BM832A but can run non-BLE examples</title><link>https://devzone.nordicsemi.com/thread/286614?ContentTypeID=1</link><pubDate>Sun, 27 Dec 2020 22:57:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c8d36439-1d12-4145-9a95-8f4640ca1508</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;I use this code in sdk_config.h when no 32kHz crystal is available; it&amp;#39;s on a nRF52832 module but I think the same applies for the nRF52810:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#if 1//defined(FEATURE_NO_32_KHZ_CRYSTAL_FITTED)
#define NRFX_CLOCK_CONFIG_LF_SRC         0
#define CLOCK_CONFIG_LF_SRC              0
#define NRF_SDH_CLOCK_LF_SRC             0
#define NRF_SDH_CLOCK_LF_RC_CTIV        16
#define NRF_SDH_CLOCK_LF_RC_TEMP_CTIV    2
#define NRF_SDH_CLOCK_LF_ACCURACY        1 // &amp;lt;1=&amp;gt; NRF_CLOCK_LF_ACCURACY_500_PPM
#endif&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;This must be placed at the start of sdk_config.h. I also have this code called at startup:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static void init_bsp(void)
{
   APP_ERROR_CHECK(nrf_drv_clock_init());
   nrf_drv_clock_lfclk_request(NULL);
#if defined(FEATURE_NO_32_KHZ_CRYSTAL_FITTED)
//   while (NRF_CLOCK-&amp;gt;EVENTS_LFCLKSTARTED == 0) ;
//   for (volatile uint32_t i = 0; i &amp;lt; 1000000; i++) ;
#endif
   APP_ERROR_CHECK(app_timer_init());
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;This function must be invoked before ble init stuff&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to run "BLE Blinky" on an Fanstel BM832A but can run non-BLE examples</title><link>https://devzone.nordicsemi.com/thread/286613?ContentTypeID=1</link><pubDate>Sun, 27 Dec 2020 22:23:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c208123f-92fc-49be-b089-54e565dfa5d0</guid><dc:creator>David Smoot</dc:creator><description>&lt;p&gt;Still searching for an answer.&amp;nbsp; Found&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/40247/can-t-change-clock-source-from-nrf_lf_src_xtal-to-nrf_lf_src_rc/156345#156345"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/40247/can-t-change-clock-source-from-nrf_lf_src_xtal-to-nrf_lf_src_rc/156345#156345&lt;/a&gt;&amp;nbsp;which led me to tweak the sdk_config.h again&lt;/p&gt;
&lt;p&gt;Put&amp;nbsp;&lt;span&gt;NRFX_CLOCK_CONFIG_LF_SRC and&amp;nbsp;CLOCK_CONFIG_LF_SRC&amp;nbsp;back to their default values of 1.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Changed&amp;nbsp;NRF_SDH_CLOCK_LF_RC_CTIV from 0 to 16&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Changed&amp;nbsp;NRF_SDH_CLOCK_LF_RC_TEMP_CTIV from 0 to 2.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;But still not seeing anything on BLE.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;So to refine my question, does anyone have a list of changes for GCC (or SES for that matter) to go from a working example PCA10040e to a BM832A?&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks in advance...&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;David&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to run "BLE Blinky" on an Fanstel BM832A but can run non-BLE examples</title><link>https://devzone.nordicsemi.com/thread/286597?ContentTypeID=1</link><pubDate>Sat, 26 Dec 2020 00:42:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b2484b5f-6103-4b3c-92e9-91a642c9aa9a</guid><dc:creator>David Smoot</dc:creator><description>&lt;p&gt;Found another post that sounded promising:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/37013/fanstel-bc832---cant-run-any-of-the-ble-examples"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/37013/fanstel-bc832---cant-run-any-of-the-ble-examples&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;It appears I lack the low frequency crystal as well so I modified the config_sdk.h as follows:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;NRFX_CLOCK_CONFIG_LF_SRC from 1 to 0&lt;/li&gt;
&lt;li&gt;CLOCK_CONFIG_LF_SRC from 1 to 0&lt;/li&gt;
&lt;li&gt;NRF_SDH_CLOCK_LF_SRC from 1 to 0&lt;/li&gt;
&lt;li&gt;NRF_SDH_CLOCK_LF_ACCURACY from 7 to 1&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;But still no joy.&amp;nbsp; Still looking&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>