Booting PAN1740 (implemented based on DA14580)

9 posts / 0 new
Last post
chanmi168
Offline
Last seen:3 years 7 months ago
加入:2016-09-11 04:48
Booting PAN1740 (implemented based on DA14580)

Hi All,

I tried to contact Panasonic already, but they respond slowly (once per week) that's why I come here to ask for help. My question is that how do you boot a PAN1740 chip using an FTDI TTL cable. I will start by describing my approach as follow:

1. Connection:
FTDI RXD ------ PAN1740 Pin6 (P0.4 UART TX)
FTDI TXD ------ PAN1740 Pin5 (P0.5 UART RX)
External Power Supply 3.0V ------ PAN1740 Pin8 (Vcc)
External Ground ------ PAN1740 Pin19 (GND) and FTDI GND

2. Keil
I used Keil to build DSPS (DA14580 Dialog Serial Port Service Source Code) and the blinky example (from SDK5.0.4), both of them generate a out folder which contains the corresponding hex files.

3. SmartSnippets
I then opened SmartSnippets, selected the right COM port, DA14580-01, and UART. In the Booter window, I tried both hex files (DSPS and blinky), and it turned out uploading wasn't successful. Please see the log below:

[INFO Booter @16-10-20 19:54:49] Read 18652 bytes from file C:\Users\Liu Lab\Desktop\PAN1740\DA1458x_DSPS_v_5.150.2\DA1458x_DSPS\v_5.150.2\projects\target_apps\dsps\sps_device\Keil_5\out_580\sps_device_580.hex.
[INFO Booter @16-10-20 19:54:49] Connection to COM5 port has successfully opened.
[INFO Booter @16-10-20 19:54:49] Started download procedure...
[ACTION Booter @16-10-20 19:54:50] Please press the hardware reset button on the board to start the download process.
[ERROR Booter @16-10-20 19:55:05] Timeout: Reset signal not detected for more than 16000 msecs.
[INFO Booter @16-10-20 19:55:05] Successfully disconnected from port COM5.
[ERROR Booter @16-10-20 19:55:05] Failed downloading firmware file to the board.

I did try to manually connect PAN1740 Reset pin to Vcc then connect it back to ground, but I still got the same result. I found similar issues posted by others on the forum, but they have a motherboard and J-Link adapter (I only have FTDI TLL serial connector). While one of the post (https://support.dialog-semiconductor.com/reset-button-doesnt-work-when-u...) hints me that maybe I should modify my Keil project, I wonder why should I? Are this files only for the evaluation kit? Could you possibly know what's going on?

I really hope the learning curve is easier. I know that you won't have debugging capability when using plain serial connection tool, but all I need is the DSPS profile. Since the source code is provided on your website, I assumed I don't need to modify the project at all.

Finally, thanks in advance for your time. I have no BLE firmware experience and I'd really appreciate it if I can call you guys to get this chip to work as soon as possible.

Regards,
Michael

Keywords:
Device:
MT_dialog
Offline
Last seen:2 months 2 weeks ago
工作人员
加入:2015-06-08 11:34
Hi chanmi168,

Hi chanmi168,

There aboslutelly no reason to change the fw for downloading code via UART, the post that you have pasted is for burning the device in the OTP and not download the fw over UART. Since smart snippets doesn't detect a proper Reset the issue that you are dealing with doesn't have to do with the fw that you are trying to downlod since as the tool reports it doesn't tracks a reset on your board. Check that in the board setup tab the UART pins that are selected are proper (P04 and P05), i ve tried booting via UART using an FTDI cable and i was able to do so with the Tx and Rx and GND cables connected and issuing a reset by connecting and unconnecting the reset pin to the vcc. So it either has to do with the connection between the RST and the Vcc or you dont choose the proper port at the Smart Snippets tool. You can check via a terminal on the corresponding pins (P04 / P05) if there is any printing (garbage) after you issue a reset (that means that you have issued a reset and the bootloader is running).

Thanks MT_dialog

chanmi168
Offline
Last seen:3 years 7 months ago
加入:2016-09-11 04:48
Hi,

Hi,

Thanks! That's very helpful information. I will double check the connection (I used jumper wires instead of a PCB. This can be the reason for a bad connection). Today my PCB finally arrived so I will give it a try again. I will report the result once it is done.

Regards,
Michael

chanmi168
Offline
Last seen:3 years 7 months ago
加入:2016-09-11 04:48
Hi,

Hi,

Connection was the reason. Soldering on a PCB solved that. I can see garbage on TeraTerm a well as the Terminal in SmartSnippets. When I power it, I can see the booting sequence for all the UART TX (P0.0, P0.2, P0.4, P0.6) without connecting any pins to the FTDI cable. However, I then connected DA14580 TX to FTDI cable RX, the booting sequence suddenly has very slow rising time such that it only reached ~60% of high level. As a result of that, on SmartSnippets, the error message tells me that CRC doesn't match. I will check if it's cable's fault by feeding data from FTDI TX to FTDI RX, but is this something you may have a clue? Thanks again for your help.

Regards,
Michael

MT_dialog
Offline
Last seen:2 months 2 weeks ago
工作人员
加入:2015-06-08 11:34
Hi chanmi168,

Hi chanmi168,

除了hw问题没有很多事情that can go wrong during the booting from UART procedure, check your Smart Snippets version and make sure its the latest (3.9 version). Also please check the latency timer on your FTDI cable, i can recall cases that by doing this such kind of issue was resolved.

Thanks MT_dialog

chanmi168
Offline
Last seen:3 years 7 months ago
加入:2016-09-11 04:48
Hi,

Hi,

Thanks for helping. Now my chip is working properly. Really couldn't figure what went wrong, but I will describe what I did for anyone who might need it:
1. Solder a new chip on a PCB
2. Uninstall SmartSnippets and install it again
3. Uninstall the drive for FTDI cable and install it again
4.使用一个新的breadboard for connection

My guess is it's a hardware issue. Most likely I fried the chip somehow. You will be able to see "reset detected" when you manually connect the reset pin to Vcc then connect back the ground. Hope this helps anyone!

Michael.

MT_dialog
Offline
Last seen:2 months 2 weeks ago
工作人员
加入:2015-06-08 11:34
Hi chanmit168,

Hi chanmit168,

Thanks for sharing.

Best regards MT_dialog

mayrarg
Offline
Last seen:3 years 5 months ago
加入:2017-10-02 18:03
Hello Chanmit168,

Hello Chanmit168,
I am interested in your post, since I will start a project with this module, to do tests I do my own pcb since I do not have the kit,
my question is if in your pcb you connected only the FTDI to your module without anything in between?
or there is some document to program by UART that you can refer me?
Thanks

Mayra

chanmi168
Offline
Last seen:3 years 7 months ago
加入:2016-09-11 04:48
Try this document

Try this document
"AN-B-001 - Booting from serial interfaces v2.0.pdf"

Michael