Hello!
I made my first prototype using a 14580. After reading some forums i think i mess up somewhere so i was hoping you could help me out. I was previoulsy working with the pro dev kit.
I'm using a J-link Ultra+ to program the prototype. The ports I'm using are, VPP, VBAT, SWDIO, SWCLK and GND (I found this out in the beacon reference design, so i thought i should use the same ports). Also, i didn´t map the UART (P0_4 and P0_5).
I was reading aforum,我明白,如果我使用了J-Link它很快就会回来的l be a OTP and i won´t be able to reprogram for debugging.
Here are my questions.
1) If the is DA14580 is programmed by OTP, will i not be able to reprogram it again? To be able to reprogram it, should i use the UART?
2) Is there a way to program it using the J-Link and be able to reprogram it?
3) One of my coworkers was working with other BLE from other manufacturer. He told me that he needs to use a soft device before programming the IC. Is it the same with the DA14580?
Thank you
Hi vrado,
1) If you program the OTP header application flags the boot sequence of the primary bootloader (UART/SPI/I2C) is cancelled and the device can only boot from the OTP, and the OTP can be only burned once. So if you burned your image to the OTP image space and you 've also burned the OTP header application flags, the only way to program the device is via JTAG (if the JTAG flag in the OTP header in disabled, you wont be able to program it again).
2) As mentioned OTP stands for One Time Programmable, the only thing you can do in an allready programmed OTP is to turn any cells that has been left 0 to 1.
3) I dont understand what do you mean by soft device, if you would like to download code into the 580 there are two options:
Thanks MT_dialog
Thank you for the answer.
I hadn´t reply earlier because i was doing a bit more of research.
In the ref. designs you only have the SWDIO, SWCLK, GND, VPP and VBAT mapped, so i used that design for my circuit. I wanted to use Keil uVision to test my code before using the OTP (debugging the code as using the demo codes). I have tried programming my custom board using the Jlink (connections: port 1 to VBAT, TMS->SWDIO, TCLK->SWCLK and GND) and it didn´t work, i tried also using SmartSnippets but in the board setup it doesn´t appear the ports for SWDIO, SWCLK (1_4, 1_5). I also tried using the dev pro kit with the same config as i tried with the Jlink (using the J5 jumpers: pin 25-> SWDIO, pin 27-> SWCLK, pin 1-> On board VBAT, pin 2 GND)
Since I´m working in the prototype phase i just ordered 10 boards for bebug and testing. The only thing i can think to program now is to put some pins to use the UART, but the pins are so small that i don´t want to end up using them.
I hope you can help me out.
Thank you.
Hi vrabo,
You should be able to program your board using the SWD interface. There are guidelines how to do so in the FAQ section of the support site in the Development Kits & Reference design section "How to program a custom board using a development kit (basic or pro)", so please check the appropriate configuration there. If you still are unable to download fw via JTAG then i suppose that the problem should be on your h/w.
Thanks MT_dialog
Hi!
Thank you for the help. Somehow the custom board was not working properly. I tried to use another one and worked.