Dear Dialog,
we have designed a wareable device, which consists of DA14580, Accelerometer, Gyroscope and magneticnometer, there is NO external mcu, and the programming interface is JTag. We are intended to use Jlink programmer to download the firmware to the DA14580. and no we come across with some confusions.
1. if we connect the device with keil vial JTag, will the firmware be flashed into OTP? that is, does it mean that we can only program the DA14580 once?
2,如果仍然使用内部配置,有没有办法我们可以编程DA14580多次?如果是,请详细介绍软件和硬件中的配置。
3. the device is custom-designed, it is not the Development board. Hence, we don't know how to program our device... please show us the detailed steps.
谢谢。
Keywords:
Device:
Hi wenkangl,
1.在通过JTAG使用keil下载程序时,FW在Sysram中下载,不在OTP中,您必须使用Smart Spippets工具和OTP Burner选项,以便在OTP中刻录代码。通过Keil下载代码只是用于测试,在您关闭设计后,内存(SYSRAM)不会保留代码。
2. I dont get what you mean internal configuration, by downloading the code using keil and jlink you can test your fw in your design (there nothing permanent in that way you download code as much as you like).
3. Since its a custom design, you can use the JLINK in order to program your device also you can use the jlink on the dev kit in order to do so, you can find the steps in the FAQ in the Dev Kits & Ref Designs section. Also you can download code in the 580 using the serial interface (via execution of the primary bootloader). Please check the AN-B-001-Booting from serial interfaces.pdf in order to check the booting sequence and the default UART pins.
Thanks MT_dialog
Hi dialog,
thanks for your reply, and this time we comes across with a problem: NO Cortex-M SW Device Found
we use Jlink to connect our sensor , and only four ports are connected: pin 1, 10 on the jlink connected to a 3.3v voltage source and GND on our custom designed board, pin 7 and pin 9 on jlink are connected with pin 1-4, pin 1-5 on DA14580, and when we run the code, the error comes up. the code we ran is the example "blinky" in the SDK, the only modification of the code is in user_periph_setup.h, where we changed the LED pin configuration to
// LED
#define LED_PORT GPIO_PORT_1
#define LED_PIN GPIO_PIN_1
Our Jlink checking is shown in the image attached.
你会维o us a favour and tell us where is the problem. thanks!
Hi wenkangl,
I can see in the image that you ve uploaded that the debugging device and the FW is quite different that the one that we use. Please check the attached image.
Thanks MT_dialog
嗨,Digalog,
yes, the jlink we are using is different than that in the development board. because the hardware is custom designed, so, besides the development kit (basic), we bought another JLink, which also support the Cortex M0. Then, If we want to make use of the JLink in the development board, what shall I do. Thanks!
Hi MT_dialog,
I am trying to do a similar thing in programming a custom board (using development kit) and have chosen to implement 'Blinky' to test my device.
My Jlink checking appears the same as the picture Wenkangl attached.
There is no way to select the SW Device so how do I get the device to be detected? I have been able to detect the SW Device on development board and run blinky previously.
然后我所做的就是将跳线接线更改为以下内容:
J4 Pin 1 (VBAT_580) - VCC on prototype board
J4 Pin 2 (Ground) - ground on prototype board
J4 Pin 25 (TMS) - SWDIO on prototype board
J4 PIN 27(TCK) - 原型板上的SW_CLK
此外,int蝙蝠销1和2连接以提供从计算机的电源。
我已经尝试了更改时钟频率并按“自动CLK”按钮,但这没有帮助。
When I press 'Auto Clk' it tells me 'Reinitialise jLink, please retry'
Thanks in advance,
刘易斯
Hi lewiso,
If your custom board hasn't any issues and the connections are proper, as indicated to the FAQ, i ve mentioned below, there is no additional options or modification for you to do in order for keil to track your custom device. What also might help is to issue a reset to your custom board and check if that enables keil to find the M0, also make sure that the custom board doesn't run any fw upon booting that will disable the debugging module in the M0 (in case you have a flash and if the flash has a fw or if the OTP is burned), that will prevent keil from tracing the device. If even then you aren't able to track your custom board through keil either there is something wrong with the connections (wires) or something is wrong with your custom board (check if you power up the device, does the primary bootloader executes - the ROM bootloader is the code that enables the ARM debugger module).
Thanks MT_dialog
Hi wenkangl,
您可以查看以下常见问题:
https://support.dialog-seminile.com/guide/faq-dev-kits-ref-designs.
检查问题“如何使用开发套件编程定制板?”
Thanks MT_dialog