5 posts / 0 new
Last post
MarcoTrettner
Offline
Last seen:3 years 1 month ago
加入:2015-10-26 15:20
Programming via JTAG fails after a time

Hi DialogTeam,

I am developing an own Bluetooth Dice and tried to program my own hardware with the JTAG Debugger JLINK which is buildt in the Basic Development Kit.

I've connected the following pins of the Development Kit with my own hardware:

TMS -> SWDIO
TCK -> SWCLK
接地- >接地

Then i've tried to program an .hex file (created by the Keil Vision Studio 5.0) with your SmartSnippets Tool and it worked well.
So I started my development and after 3-4 hours developing i've downloaded new firmware over SmartSnippets on my DA14580 a few times. In these tests i've tried to implement an I2C - communication with an acceleration sensor but failed.
At this point i wasn't able to download the software on my hardware via SmartSnippets anymore. I am getting the error message:

[INFO @16-01-21 17:20:13] Failed downloading firmware file to the board.

Well i was disappointed and thought that I can wait a few days until it works again. Today i've tried to do the same procedure but failed again.
I've tried to connect the Reset pin as well as the pins mentioned before. Didn't work too.

I've measured the voltage VCC = 3,3 V and i can also measure the intern converted voltage of 1,4 V. So the voltage supply works fine.

I am now creating a new PCB and one PCB is going to run as a "dummy PCB". The dummy PCB will be tested if it is programmable after a while.

I hope you can help me and have some ideas to fix my problem.

Thank you,

Sincerely,

Marco

Keywords:
Device:
MT_dialog
Offline
Last seen:3 months 1 day ago
工作人员
加入:2015-06-08 11:34
Hi MarcoTrettner,

Hi MarcoTrettner,

Has your custom board an SPI flash? Is there a chance that you ve programmed the SPI of your custom board and the board directly boots from your SPI ? Also you can power your custom board directly from the basic kit can you please try that in case it makes any difference. Also if your custom board has UART pins you can try to download code to the Sysram via UART just for a test. Also are you able to do any other operations like reading the OTP ?

Thanks MT_dialog

MarcoTrettner
Offline
Last seen:3 years 1 month ago
加入:2015-10-26 15:20
Hi MT_dialog

Hi MT_dialog

My custom board does not have an SPI flash. With the current design it's not possible to implement connection to SPI.
I've powered my custom board directly with the 3.3V of the Development board.
I could configure 4 more pins for the UART - Connection but i don't know how the DA knows where the UART Pins are when there is no program on it. As i know i can configure my pins in periphal_setup.c and peripheral_setup.h.

MT_dialog
Offline
Last seen:3 months 1 day ago
工作人员
加入:2015-06-08 11:34
Hi MarcoTrettner,

Hi MarcoTrettner,

When the 580 powers up, the bootrom code executes and follows a specific procedure, scans a series of ports with specific configuration searching for a peripheral to boot from. With Smart Snippets you can download code to your sysram either via jtag or via uart. For more information you can have a look at the AN-B-001-Booting from serial interfaces.

Thanks MT_dialog

MarcoTrettner
Offline
Last seen:3 years 1 month ago
加入:2015-10-26 15:20
Hi MT_dialog,

Hi MT_dialog,

thx for the short explanation about how the booting sequence works.

I've built two more PCBs now and i'll see if the problem will occur again. I tried prorgamming the two new boards and it works well.
I'll let you know when i have more problems.

Thanks, Marco Trettner

Topic locked