24 posts / 0 new
Last post
aeris
Offline
Last seen:6 years 8 months ago
加入:2015-03-05 14:45
Programming PAN1740 with UART

Hello,

I want to program some module for testing.

I need to be sure about programming the PAN1740 with UART without flash memories and OTA.
1) plug the Vbat 3V
2) plug the Vdd 6.8V
3) use SmartSnippet GUI to upload a hex file(like DSPS sample) through UART to burn the module
4) unplug Vdd
5) unplug Vbat

我只需要这些针吗?:
Vbat
GND
Vdd
Tx
Rx

And I only need this stuff :
USB to UART
3V source
6.8V source

Is that all ? It's look too simple :p

Thanks,

Morgane Vallée

MH_Dialog (not verified)
Hello Morgane Vallée,

HelloMorgane Vallée,

The procedure looks fine. Please refer to AN-B-020 for more details

BR, Morris

aeris
Offline
Last seen:6 years 8 months ago
加入:2015-03-05 14:45
Hello,

Hello,

I use P1.0 for Tx and P1.2 for Rx, but I can't choose them in SmartSnippets, is this a big problem ?
And what is the GPIO pin that control high voltage ?

Thanks,

Morgane Vallée

Ingo
Offline
Last seen:14 hours 25 min ago
Guru Panasonic
加入:2014-01-16 11:19
Hello Morgane,

Hello Morgane,

the Pinning is described in the datasheet:
http://pideu.panasonic.de/produkte/bluetooth-40-low-energy-single-mode/p...

Best regards,
Ingo

aeris
Offline
Last seen:6 years 8 months ago
加入:2015-03-05 14:45
Hello,

Hello,

I read the datasheat, and it say, "*Dependent on the software configuration the UARTcan be set also to any other IO.".
But I can't select my pins in SmartSnippets, so, can I modify a SmartSnippets file or is this a big problem ?

Thanks,

Morgane Vallée

MT_dialog
Offline
Last seen:1 year 1 month ago
工作人员
加入:2015-06-08 11:34
Hi aeris,

Hi aeris,

You can not use other ports in order to boot from UART the da boots only from the predifiend ports (those you see in smart snippets). After you 've download firmware to your board you can use whatever uart port you want.

The default GPIO pin that controls hign voltage is P1_2.

Thanks MT_dialog

aeris
Offline
Last seen:6 years 8 months ago
加入:2015-03-05 14:45
Are you serious ?

Are you serious ?
What I can do now ? Put my thousand euros prototype to trash because it's too useful to say inDATASHEETthat we can change the pins UARTONLY AFTERburning it ?

And what is thepurposeof the GPIO pin that controls high voltage ?... (this is not in the datasheet too)

Joacimwe
Offline
Last seen:2 years 4 months ago
Guru
加入:2014-01-14 06:45
The booting sequence is

The booting sequence is specified inhttp://support.dialog-semiconductor.com/resource/b-001-da14580-booting-s....
If you want to boot over UART, there are four configurations (P0_0, P0_1), (P0_2, P0_3), (P0_4, P0_5) and (P0_6, P0_7) as (TX, RX). You can also run code over JTAG.
Once you have booted a firmware, that firmware can however communicate over UART with different pins.

The GPIO pin that controls high voltage is used when programming the OTP. When programming the OTP, 6.8 V is needed which this pin switches on or off. This is called VPP. You don't need this controlling pin if you have an external on/off switch you are controlling yourself. All this is specified inhttp://support.dialog-semiconductor.com/resource/b-020-end-product-testi....

aeris
Offline
Last seen:6 years 8 months ago
加入:2015-03-05 14:45
Yes, sorry,

Yes, sorry,
I agree, I think the name "Booting from Serial Interfaces" look not for my purpose but an app case...
I agree, I don't read this appnote, I only read the AN-B-020, because I use the PAN1740 and think some appnote not apply to them because it's different and some pins are not accessible and it is already calibrated...

On my board I only have access to P0.5 and P0.7, these are Rx pins, I don't see a solution, it's really hard to unsolder the PAN1740...

I control the voltage myself.

Thanks,

Morgane Vallée

aeris
Offline
Last seen:6 years 8 months ago
加入:2015-03-05 14:45
Hello,

Hello,

I patched my board to use P0.6 and P0.7 UART.
I use a PAN1740 and a power supply with USB to UART dongle to program it.

I try to boot from UART with SmartSnippets :
- I start download of programmer_ES5.bin
> it say "press hardware reset..."
- I plug VCC
- I plug Vdd
- I plug Tx and Rx
> it's say "reset detected"
And it stuck and do nothing more for a long time.

I try without Vpp, unfortunately.
I put an oscilloscope and see on Tx a strange signal look triangular..., but I only have 10cm wires...

An idea please ?

Thanks,

Morgane Vallée

MT_dialog
Offline
Last seen:1 year 1 month ago
工作人员
加入:2015-06-08 11:34
Hi aeris,

Hi aeris,

I think that the triangular signal indicates that the da its trapped in the booting sequence (cant find something to boot from). Have you checked the appropriate pins from Smart Snippets?

Thanks MT_dialog

aeris
Offline
Last seen:6 years 8 months ago
加入:2015-03-05 14:45
Yes, the pins config look

Yes, the pins config look good. I try with the CLI too.
I try with P0.4 and P0.5 UART, same problem.
I put again the oscilloscope, I have a signal look good and partially repetitive (only 1bit look change) on PAN1740 RX.

[INFO @15-07-16 13:36:15] Connection to COM4 port has successfully opened.
[INFO @15-07-16 13:36:15] Started download procedure...
[ACTION @15-07-16 13:36:16] Please press the hardware reset button on the board to start the download process.
[INFO @15-07-16 13:36:23] Reset detected

And SmartSnippets stuck...

You think SmartSnippets can receive the start code but the PAN1740 don't receive the answer ?

Thanks.

MT_dialog
Offline
Last seen:1 year 1 month ago
工作人员
加入:2015-06-08 11:34
Hi aeris,

Hi aeris,

I just tried with the PAN on a dialog's motherboard using P0.6 and P0.7 UART pins, it seems to be working fine, therefore you must have a hardware issue.

Is it the one you 've unsoldered?

Do you have any other module to try or a development kit ?

Thanks MT_dialog

aeris
Offline
Last seen:6 years 8 months ago
加入:2015-03-05 14:45
No, it's another one.

No, it's another one.
This one have little wire soldered on it's pads.

I plug Vcc and then UART and sometime it become very hot, I going to try with another one...

Thanks.

aeris
Offline
Last seen:6 years 8 months ago
加入:2015-03-05 14:45
Hello,

Hello,

I tested with another PAN1740 and I have the same problem :-/

I try with a 3.3V and a 5V FTDI UART
I try to boot from UART with SmartSnippets with P0.4 and P0.5 :
- I start download of programmer_ES5.bin
I wait it say "press hardware reset..."
- I plug VCC
- I plug Tx and Rx
> it say "reset detected"
And it stuck and do nothing more for a long time.

Thanks,

Morgane Vallée

MT_dialog
Offline
Last seen:1 year 1 month ago
工作人员
加入:2015-06-08 11:34
Hi aeris,

Hi aeris,

Do you have a shcematic to have a look?

Thanks MT_dialog

aeris
Offline
Last seen:6 years 8 months ago
加入:2015-03-05 14:45
Hello,

Hello,

I don't have a schematic, but :
PAN1740 P0.5 (5) : FTDI TX
PAN1740 P0.4 (4): FTDI RX
PAN1740 VCC (8) : 3.3V lab supply
PAN1740 GNDs (A, B, C, D, 15, 17, 19, 20, 1, 7) : GND
PAN1740 RST (2) : GND
PAN1740 VPP (14) : floating or 6.8V lab supply
All soldered with small wire on PAN1740 pads.

Do I need a 3.3V or 5V FTDI UART ?

Thanks.

MT_dialog
Offline
Last seen:1 year 1 month ago
工作人员
加入:2015-06-08 11:34
Hi aeris,

Hi aeris,

The P0, P1, P2, P3 ports are 3.3V tolerance.

So a 3.3V FTDI UART is recomended.

I believe that you have followed the connections inhttp://gr.mouser.com/pdfdocs/PAN1740DesignGuideRev101.PDFon page 7 so the schematic is the same.

Thanks MT_dialog

aeris
Offline
Last seen:6 years 8 months ago
加入:2015-03-05 14:45
Hello,

Hello,

The DA datasheat say to connect RST to GND if no used (I unplug supply to reset).
I not use serial resistor, I think they are for GPIOs isolation.
On the schematic P0.0 P0.1 P0.2 P0.3 are used but the default UART in PAN1740 is P0.4 P0.5 and a DA app-note say witch one we use of the four don't care :-/
I not use capacitor for noise reduction...

I manually connect the line, but I do it in less than 16s.
ANd I put TX RX and Vcc to GND when disconnect them.

I take a picture of my hackhttp://paste.ansible.fr/data/img/big/a42b306b-IMAG0097.jpg

Thanks.

MT_dialog
Offline
Last seen:1 year 1 month ago
工作人员
加入:2015-06-08 11:34
Hi aeris,

Hi aeris,

我想您所使用的电缆是10厘米长sn't it? Also can you please place the decoupling capacitor shown in the schematic to your vcc and let us know. Another thing you have the reset in ground, how do you perform the reset that is required from smart snippets ? You are power cycling?

Thanks MT_dialog

aeris
Offline
Last seen:6 years 8 months ago
加入:2015-03-05 14:45
Hello,

Hello,

Yes, I use Vcc to reset the DA.

Thanks.

MT_dialog
Offline
Last seen:1 year 1 month ago
工作人员
加入:2015-06-08 11:34
Hi aeris,

Hi aeris,

Please try to place the at least the capacitor in order to avoid any power supply ripples from power cycling.

Thanks MT_dialog

mayrarg
Offline
Last seen:4 years 4 months ago
加入:2017-10-02 18:03
Hello everyone

Hello everyone
what is the ideal test program to start bluetooth tests with a PAN1740 module in my own PCB debug by UART?

MT_dialog
Offline
Last seen:1 year 1 month ago
工作人员
加入:2015-06-08 11:34
Hi mayrarg,

Hi mayrarg,

You can use any of the ble examples that are included in the SDK, the ble_app_barebone or the ble_app_profile examples are the most simple i would say (no buttons or leds etc, just ble activity).

Thanks MT_dialog