Hi,
I want to flash the CodeLess image on a DA14531MOD module mounted on a custom pcb.
To do so I tried to connect to the module via JTAG/SWD using the SmartSnippet Toolbox (V5.0.14).
I connected the VBAT, GND, SWDIO (J9/P0_10) and SWCLK (J10/P0_2) pins to my Segger J-Link debug probe and the moudle is powered up. The debug probe is connected via USB to the PC. Drivers are installed.
When I now start the SmartSnippet Toolbox (V5.0.14), select JTAG and click on detect I get the following notice:
"Detected device: Unknown chip on JTAG dongle [801021111] using Board [unknown].
The user manuals and the getting started guides for CodeLess on the Dialog website only describe how to connect to the development kit.
What am I doing wrong? How can i connect to the module on a custom pcb? Are there other ways to flash the CodeLess image for example over UART?
Are there any native bootloader routines on the module and how can I start/access them? Is there a default pin configuration delivered with the module for 2-wire UART?
Thanks in advance.
Hi Thieny,
Thanks for your question online.
Normally, if the SWDIO and SWDCLK are connected ( of course with common GND), this should be enough to have access on the JTAG. If the custom board already has a power supply, then powering the module via the JLink is not required.
The TINY module can be also programmed via 1-wire UART on P05, but you will need a USB to UART “bridge”. In our designs, we are using
I had also connected the RST Pin (P0_0) to the debug probe. With an seperate testing construction (only SWDIO, SWCLK connected, without RST) it works without any problems.
Hi Thieny,
Glad that you figured it out and thanks for your indication. Yes, probably the Segger J-Link was continually resetting the module, so you were not able to attach it via JTAG.
This is very helpful info for the other community : the RESET is not required – see more info in the following tutorial.
http://lpccs-docs.dialog-semiconductor.com/Tutorial_SDK6/debug_probe.html
An FYI - When trying to program DA14531 SMARTBOND TINY™ MODULE using Keil IDE, an error may occur when you are trying to open the debugger session. To solve this, you should lower down the JTAG clock speed to 2MHz.
In case this error occurs, please follow the steps described in Section 6.1 Keil JTAG default Clock Speed in UM-B-141 user manual to solve it.
https://www.dialog-semiconductor.com/sites/default/files/um-b-141_da14531_smartbond_tinytm_module_development_kit_hardware_user_manual_1.1.pdf
Thanks, PM_Dialog