<?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 debug Fanstel BM840 nRF52840 custom board using nRF52840 DK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/121964/unable-to-debug-fanstel-bm840-nrf52840-custom-board-using-nrf52840-dk</link><description>I am unable to debug a Fanstel BM840 nRF52840 based simple custom board using a nRF52840 DK. I believe the custom board is basically ok: Before flashing my application onto it, powering it would run a Fanstel BT test program visible over the air. The</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 16 Jun 2025 18:12:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/121964/unable-to-debug-fanstel-bm840-nrf52840-custom-board-using-nrf52840-dk" /><item><title>RE: Unable to debug Fanstel BM840 nRF52840 custom board using nRF52840 DK</title><link>https://devzone.nordicsemi.com/thread/539438?ContentTypeID=1</link><pubDate>Mon, 16 Jun 2025 18:12:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73cfb9f1-12d7-48db-9d48-de38c4d24db4</guid><dc:creator>Ken58</dc:creator><description>&lt;p&gt;Thanks again Vidar!&amp;nbsp; I could not ask for better support.&amp;nbsp; Great job!&lt;/p&gt;
&lt;p&gt;Ken&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to debug Fanstel BM840 nRF52840 custom board using nRF52840 DK</title><link>https://devzone.nordicsemi.com/thread/538779?ContentTypeID=1</link><pubDate>Wed, 11 Jun 2025 09:39:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27e2a447-a9b9-4d5b-98f9-54c302923fe0</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Ken,&lt;/p&gt;
&lt;p&gt;Documentation is a bit lacking in this area. I have created a ticket internally to address that. The nrf specific configuration settings for the clock control module&amp;nbsp;are defined&amp;nbsp;here:&amp;nbsp;&amp;nbsp;&lt;a href="https://github.com/zephyrproject-rtos/zephyr/blob/6d7744209b1e91836e463d393352014068e07219/drivers/clock_control/Kconfig.nrf#L33"&gt;https://github.com/zephyrproject-rtos/zephyr/blob/6d7744209b1e91836e463d393352014068e07219/drivers/clock_control/Kconfig.nrf#L33&lt;/a&gt;. The problem is that you kind of have to know about it to find it.&amp;nbsp;&lt;/p&gt;
[quote userid="74045" url="~/f/nordic-q-a/121964/unable-to-debug-fanstel-bm840-nrf52840-custom-board-using-nrf52840-dk/538517"] What is the proper way to handle&amp;nbsp;CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC=y being used in only 2 of the 3 situations?[/quote]
&lt;p&gt;Ideally you should &lt;a href="https://docs.nordicsemi.com/bundle/ncs-3.0.2/page/nrf/app_dev/device_guides/custom/index.html"&gt;define your own SDK board &lt;/a&gt;which selects this symbol by default like this third party board does here:&amp;nbsp;&lt;a href="https://github.com/zephyrproject-rtos/zephyr/blob/6d7744209b1e91836e463d393352014068e07219/boards/we/proteus2ev/we_proteus2ev_nrf52832_defconfig#L24"&gt;https://github.com/zephyrproject-rtos/zephyr/blob/6d7744209b1e91836e463d393352014068e07219/boards/we/proteus2ev/we_proteus2ev_nrf52832_defconfig#L24&lt;/a&gt;&amp;nbsp;This ensures that any project built for this board target will select the RC osc. as the LF clock source.&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to debug Fanstel BM840 nRF52840 custom board using nRF52840 DK</title><link>https://devzone.nordicsemi.com/thread/538517?ContentTypeID=1</link><pubDate>Sat, 07 Jun 2025 16:59:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d4f843a8-07f9-4efb-b68d-ab99a66a60ee</guid><dc:creator>Ken58</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;Although I haven&amp;#39;t heard back from Fanstel, I bet their BM840 module does not have the 32K crystal but does have the DCDC inductors.&amp;nbsp; A couple questions:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;How should I have known about&amp;nbsp;&lt;span&gt;CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC=y?&amp;nbsp; Can you provide me with a link to your documentation I should have read?&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;I am building my application to run on nRF52840 DK, nRF52840 Dongle, and my BM840 based custom board.&amp;nbsp; What is the proper way to handle&amp;nbsp;CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC=y being used in only 2 of the 3 situations?&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span&gt;Thanks a bunch Vidar,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Ken&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to debug Fanstel BM840 nRF52840 custom board using nRF52840 DK</title><link>https://devzone.nordicsemi.com/thread/538341?ContentTypeID=1</link><pubDate>Fri, 06 Jun 2025 06:22:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6fb98b6a-803d-42b8-8c40-5eae52a6a4d8</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Ken,&lt;/p&gt;
&lt;p&gt;Good to hear that it solved the problem - thank you for the update.&amp;nbsp;Most third party modules include the optional DCDC inductors needed to enable the internal DCDC regulator(s), but not the 32K crystal. Including the crystal may be a trade off between&amp;nbsp;having a smaller&amp;nbsp;footprint&amp;nbsp;or lower current consumption. The crystal oscillator provides slightly lower power consumption, partly because it enables the BLE stack to account for lower clock drift when setting the size of its RX windows, but also because it does not need to be periodically calibrated against the HF crystal oscillator.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can compare the difference between using the RC oscillator instead of the crystal oscillator by using our online power calculator at &amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/power/w/opp/2/online-power-profiler-for-bluetooth-le"&gt;Online Power Profiler for Bluetooth LE&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to debug Fanstel BM840 nRF52840 custom board using nRF52840 DK</title><link>https://devzone.nordicsemi.com/thread/538319?ContentTypeID=1</link><pubDate>Thu, 05 Jun 2025 22:01:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b86fcd79-19f3-49b2-ac23-88c1e258fa0d</guid><dc:creator>Ken58</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;Thank you for your response.&amp;nbsp; My short reply is that adding&amp;nbsp;&lt;span&gt;CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC=y to my prj.conf file solved the&amp;nbsp;problem.&amp;nbsp; However, I want to understand why.&amp;nbsp; I have a question emailed out to Fanstel to find out exactly what their BM840 module includes external to the nRF52840.&amp;nbsp; This was not clear to me from the BM840 data sheet.&amp;nbsp; After I have their response, I will have additional questions for you.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Ken&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to debug Fanstel BM840 nRF52840 custom board using nRF52840 DK</title><link>https://devzone.nordicsemi.com/thread/537872?ContentTypeID=1</link><pubDate>Tue, 03 Jun 2025 12:30:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:978ca667-a0f1-4181-8c71-a2ade5af778e</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello Ken,&lt;/p&gt;
&lt;p&gt;Does your custom board include the optional 32KHz crystal. If not, and if you are using the nrf52840dk as your build target, please add CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC=y to your project configuration (prj.conf) file to select the internal RC oscillator as the clock source for the system timer.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If the crystal oscillator is selected but no crystal is mounted on the board, the startup code&amp;nbsp;may enter an infinite loop while waiting for the crystal to become ready. However, this does not explain why you are unable to read the register contents.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>