<?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>Try to program a custom board using BL5340PA module to see LOG</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/123479/try-to-program-a-custom-board-using-bl5340pa-module-to-see-log</link><description>I have made a PCB using a BL5340PA module, to start i have tried a simple code to see log from RTT using the SWD SWCLK pin, i am using an NRF5340 DK as debugger/programmer, my pin connection bewteen my board and nrf5340 dk seem good as i was able to flash</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 15 Sep 2025 07:43:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/123479/try-to-program-a-custom-board-using-bl5340pa-module-to-see-log" /><item><title>RE: Try to program a custom board using BL5340PA module to see LOG</title><link>https://devzone.nordicsemi.com/thread/548696?ContentTypeID=1</link><pubDate>Mon, 15 Sep 2025 07:43:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:caa589ec-bdfd-4ca5-95a8-58a7e4967985</guid><dc:creator>D.MASSIALA</dc:creator><description>&lt;p&gt;resolve need to add in prj.conf&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_CLOCK_CONTROL_NRF_K32SRC_500PPM&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Try to program a custom board using BL5340PA module to see LOG</title><link>https://devzone.nordicsemi.com/thread/544890?ContentTypeID=1</link><pubDate>Thu, 07 Aug 2025 08:51:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7533bbeb-c7d8-40fd-af88-46bb06f16ebb</guid><dc:creator>D.MASSIALA</dc:creator><description>&lt;p&gt;When i try to debug, i still block in line 131 of the cpu_idle.c, what that means ?&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;/*
 * Copyright (c) 2013-2014 Wind River Systems, Inc.
 * Copyright (c) 2023 Arm Limited
 *
 * SPDX-License-Identifier: Apache-2.0
 */

/**
 * @file
 * @brief ARM Cortex-M power management
 */
#include &amp;lt;zephyr/kernel.h&amp;gt;
#include &amp;lt;cmsis_core.h&amp;gt;

#if defined(CONFIG_ARM_ON_EXIT_CPU_IDLE)
#include &amp;lt;soc_cpu_idle.h&amp;gt;
#endif

/**
 * @brief Initialization of CPU idle
 *
 * Only called by arch_kernel_init(). Sets SEVONPEND bit once for the system&amp;#39;s
 * duration.
 */
void z_arm_cpu_idle_init(void)
{
	SCB-&amp;gt;SCR = SCB_SCR_SEVONPEND_Msk;
}

#if defined(CONFIG_ARM_ON_EXIT_CPU_IDLE)
#define ON_EXIT_IDLE_HOOK SOC_ON_EXIT_CPU_IDLE
#else
#define ON_EXIT_IDLE_HOOK do {} while (false)
#endif

#if defined(CONFIG_ARM_ON_ENTER_CPU_IDLE_HOOK)
#define SLEEP_IF_ALLOWED(wait_instr) do { \
	/* Skip the wait instr if on_enter_cpu_idle returns false */ \
	if (z_arm_on_enter_cpu_idle()) { \
		/* Wait for all memory transaction to complete */ \
		/* before entering low power state. */ \
		__DSB(); \
		wait_instr(); \
		/* Inline the macro provided by SoC-specific code */ \
		ON_EXIT_IDLE_HOOK; \
	} \
} while (false)
#else
#define SLEEP_IF_ALLOWED(wait_instr) do { \
	__DSB(); \
	wait_instr(); \
	ON_EXIT_IDLE_HOOK; \
} while (false)
#endif

void arch_cpu_idle(void)
{
#if defined(CONFIG_TRACING)
	sys_trace_idle();
#endif

#if CONFIG_ARM_ON_ENTER_CPU_IDLE_PREPARE_HOOK
	z_arm_on_enter_cpu_idle_prepare();
#endif

#if defined(CONFIG_ARMV7_M_ARMV8_M_MAINLINE)
	/*
	 * PRIMASK is always cleared on ARMv7-M and ARMv8-M (not used
	 * for interrupt locking), and configuring BASEPRI to the lowest
	 * priority to ensure wake-up will cause interrupts to be serviced
	 * before entering low power state.
	 *
	 * Set PRIMASK before configuring BASEPRI to prevent interruption
	 * before wake-up.
	 */
	__disable_irq();

	/*
	 * Set wake-up interrupt priority to the lowest and synchronize to
	 * ensure that this is visible to the WFI instruction.
	 */
	__set_BASEPRI(0);
	__ISB();
#else
	/*
	 * For all the other ARM architectures that do not implement BASEPRI,
	 * PRIMASK is used as the interrupt locking mechanism, and it is not
	 * necessary to set PRIMASK here, as PRIMASK would have already been
	 * set by the caller as part of interrupt locking if necessary
	 * (i.e. if the caller sets _kernel.idle).
	 */
#endif

	SLEEP_IF_ALLOWED(__WFI);

	__enable_irq();
	__ISB();
}

void arch_cpu_atomic_idle(unsigned int key)
{
#if defined(CONFIG_TRACING)
	sys_trace_idle();
#endif

#if CONFIG_ARM_ON_ENTER_CPU_IDLE_PREPARE_HOOK
	z_arm_on_enter_cpu_idle_prepare();
#endif

	/*
	 * Lock PRIMASK while sleeping: wfe will still get interrupted by
	 * incoming interrupts but the CPU will not service them right away.
	 */
	__disable_irq();

	/*
	 * No need to set SEVONPEND, it&amp;#39;s set once in z_arm_cpu_idle_init()
	 * and never touched again.
	 */

#if defined(CONFIG_ARMV6_M_ARMV8_M_BASELINE)
	/* No BASEPRI, call wfe directly. (SEVONPEND is set in z_arm_cpu_idle_init()) */
#elif defined(CONFIG_ARMV7_M_ARMV8_M_MAINLINE)
	/* unlock BASEPRI so wfe gets interrupted by incoming interrupts  */
	__set_BASEPRI(0);
	__ISB();
#else
#error Unsupported architecture
#endif

	SLEEP_IF_ALLOWED(__WFE);

	arch_irq_unlock(key);
#if defined(CONFIG_ARMV7_M_ARMV8_M_MAINLINE)
	__enable_irq();
#endif
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Try to program a custom board using BL5340PA module to see LOG</title><link>https://devzone.nordicsemi.com/thread/544616?ContentTypeID=1</link><pubDate>Tue, 05 Aug 2025 12:08:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94944f9d-0e04-402b-98c0-890548b31f1d</guid><dc:creator>D.MASSIALA</dc:creator><description>&lt;p&gt;I have create my board&amp;#39;s DTS file but i don&amp;#39;t know what to put inside.&lt;pre class="ui-code" data-mode="text"&gt;/dts-v1/;
#include &amp;lt;nordic/nrf5340_cpuapp_qkaa.dtsi&amp;gt;
#include &amp;quot;custom_bl5340pa-pinctrl.dtsi&amp;quot;

/ {
	model = &amp;quot;Custom Board auto generated by nRF Connect for VS Code (CPUAPP)&amp;quot;;
	compatible = &amp;quot;Ezurio,custom-bl5340pa-cpuapp&amp;quot;;

	chosen {
		zephyr,sram = &amp;amp;sram0_image;
		zephyr,flash = &amp;amp;flash0;
		zephyr,code-partition = &amp;amp;slot0_partition;
		zephyr,sram-secure-partition = &amp;amp;sram0_s;
		zephyr,sram-non-secure-partition = &amp;amp;sram0_ns;
	};
};

#include &amp;quot;custom_bl5340pa-cpuapp_partitioning.dtsi&amp;quot;
#include &amp;quot;custom_bl5340pa-shared_sram.dtsi&amp;quot;
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Try to program a custom board using BL5340PA module to see LOG</title><link>https://devzone.nordicsemi.com/thread/544570?ContentTypeID=1</link><pubDate>Tue, 05 Aug 2025 08:21:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fd7d1437-784e-4a71-bc23-ee15d3916f0b</guid><dc:creator>D.MASSIALA</dc:creator><description>&lt;p&gt;Ok thanks yes i think i flash code but my module is not enable to run it, probably i need custom files like DTS, i go check how to do that&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Try to program a custom board using BL5340PA module to see LOG</title><link>https://devzone.nordicsemi.com/thread/544564?ContentTypeID=1</link><pubDate>Tue, 05 Aug 2025 08:00:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:53c6efd6-ddb0-414e-808c-e7e08e067a73</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;Depends.&lt;/p&gt;
&lt;p&gt;I got away using the dk board with a lot of DTS magic in the overlay. Its quite powerful once you learn how to delete nodes and properties.&lt;/p&gt;
&lt;p&gt;Note that you MUST customise prj.conf and the DTS if you are missing the LF crystal or the DC/DC inductor.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Try to program a custom board using BL5340PA module to see LOG</title><link>https://devzone.nordicsemi.com/thread/544558?ContentTypeID=1</link><pubDate>Tue, 05 Aug 2025 07:22:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c4f5d4b-0391-40cf-8e31-36e15924aede</guid><dc:creator>D.MASSIALA</dc:creator><description>&lt;p&gt;Is it necessary to create a custom boards on my folders or i can just compile the code using &lt;code data-start="1196" data-end="1222"&gt;nrf5340dk_nrf5340_cpuapp ?&amp;nbsp;&lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Try to program a custom board using BL5340PA module to see LOG</title><link>https://devzone.nordicsemi.com/thread/544555?ContentTypeID=1</link><pubDate>Tue, 05 Aug 2025 07:09:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:97de3c2a-d957-4967-abda-4974029c44f5</guid><dc:creator>D.MASSIALA</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;LOG: J-Link RTT Viewer V8.18: Logging started.
LOG: Connecting to J-Link via USB...
LOG: Device &amp;quot;NRF5340_XXAA_APP&amp;quot; selected.
LOG: ConfigTargetSettings() start
LOG: ConfigTargetSettings() end - Took 11us
LOG: InitTarget() start
LOG: InitTarget() end - Took 1.33ms
LOG: Found SW-DP with ID 0x6BA02477
LOG: DPIDR: 0x6BA02477
LOG: CoreSight SoC-400 or earlier
LOG: AP map detection skipped. Manually configured AP map found.
LOG: AP[0]: AHB-AP (IDR: Not set, ADDR: 0x00000000)
LOG: AP[1]: AHB-AP (IDR: Not set, ADDR: 0x00000000)
LOG: AP[2]: MEM-AP (IDR: Not set, ADDR: 0x00000000)
LOG: AP[3]: MEM-AP (IDR: Not set, ADDR: 0x00000000)
LOG: AP[0]: Core found
LOG: AP[0]: AHB-AP ROM base: 0xE00FE000
LOG: CPUID register: 0x410FD214. Implementer code: 0x41 (ARM)
LOG: Feature set: Mainline
LOG: Cache: No cache
LOG: Found Cortex-M33 r0p4, Little endian.
LOG: FPUnit: 8 code (BP) slots and 0 literal slots
LOG: Security extension: implemented
LOG: Secure debug: enabled
LOG: CoreSight components:
LOG: ROMTbl[0] @ E00FE000
LOG: [0][0]: E00FF000 CID B105100D PID 000BB4C9 ROM Table
LOG: ROMTbl[1] @ E00FF000
LOG: [1][0]: E000E000 CID B105900D PID 000BBD21 DEVARCH 47702A04 DEVTYPE 00 Cortex-M33
LOG: [1][1]: E0001000 CID B105900D PID 000BBD21 DEVARCH 47701A02 DEVTYPE 00 DWT
LOG: [1][2]: E0002000 CID B105900D PID 000BBD21 DEVARCH 47701A03 DEVTYPE 00 FPB
LOG: [1][3]: E0000000 CID B105900D PID 000BBD21 DEVARCH 47701A01 DEVTYPE 43 ITM
LOG: [1][5]: E0041000 CID B105900D PID 002BBD21 DEVARCH 47724A13 DEVTYPE 13 ETM
LOG: [1][6]: E0042000 CID B105900D PID 000BBD21 DEVARCH 47701A14 DEVTYPE 14 CSS600-CTI
LOG: [0][1]: E0040000 CID B105900D PID 000BBD21 DEVARCH 00000000 DEVTYPE 11 TPIU
LOG: RTT Viewer connected.
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Try to program a custom board using BL5340PA module to see LOG</title><link>https://devzone.nordicsemi.com/thread/544554?ContentTypeID=1</link><pubDate>Tue, 05 Aug 2025 07:07:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:02a9bc23-83ed-48d9-8992-43c6529b7581</guid><dc:creator>D.MASSIALA</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_LOG=y
CONFIG_LOG_DEFAULT_LEVEL=4
CONFIG_LOG_MODE_IMMEDIATE=y
CONFIG_USE_SEGGER_RTT=y
CONFIG_LOG_BACKEND_RTT=y
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>