HJ-580 DSPS service Download from arduino uart bridge (RX/ TX only)

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.xmece.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
19 posts / 0 new
Last post
JF JACQUOT
Offline
Last seen:6 months 1 week ago
加入:2020-01-17 13:34
HJ-580 DSPS service Download from arduino uart bridge (RX/ TX only)

Hello Support Team,

I am working with a HJ-580 board that includes a DA14580-based module and I try to to implement the Serial Port Service (DSPS) Application with smart snippets. There is a problem when downloading.

Compilation with keil uvision is ok, there is no problem.

I try to download the .Hex file inside the HJ-580 module using arduino 3.3V uart. I only use RX and TX on P0_4,P0_5 with 57600,N,8,1 from the arduino uart bridge (comxx), plus power supply pin 3.3V,GND.

1-Can you confirm, that there is no need of the uart-cts and uart-rts signal to download a file?

2- when the booter ask for a hard reset, is it a reset for the DA14580 from the HJ-580 module ?
I try to put the RST pin of the HJ-580 to 1 without effect.
If I reset the arduino, the booter tell me "reset detected" but afterthis there is a CRC problem and the download fail.

3- There is a pin named "UART RX Enable on the HJ-580 module. Have this pin be grounded to enable the download with the booter?

Many Thanks,

Device:
PM_Dialog
Offline
Last seen:6 days 6 hours ago
工作人员
加入:2018-02-08 11:03
Hi Jean-Francois,

Hi Jean-Francois,

谢谢你上传你的问题在我们的蓝牙forums. Can you please provide more inputs for how you are trying to download firmware to the HJ-580? Do you have a custom board with the HJ-580 module? In addition which version of the module are you using? Is it the HJ-580CY?

  1. You will not need to use the RTS/CTS signals for pro programming the module though UART. RTS/CTS should relate to the Arduino if you are using the extended sleep mode in the DSPS firmware in order to wake-up the chip. Did you try to use baud rate at 115200?
  2. You will need to reset the DA14580 after having downloaded the firmware.

Can you please let me know if the JTAG option is available in your setup? If yes, you can try to download the binary image through SWD. If you were able to provide any other inputs/screenshots, this would be very helpful.

Thanks, PM_Dialog

JF JACQUOT
Offline
Last seen:6 months 1 week ago
加入:2020-01-17 13:34

Hello Support Team,

I'll try with 115Kbauds, I previously use only 57KBauds .

I just want to bring precisions for the previous situation.

The HJ-580xp module is detected with my phone BLE scanner, his name is HJ-580XP_EE.

There is no problem to connect the phone to this BLE name, the status change to connected.

There is a custom service installed.

I don't know if these precisions give information on an already programmed OTP.

I've tried to send the "AT" command with the arduino serial console, the HJ-580 module never respond "OK". I've done this with the RX enable pin connected to ground without success.

How to know if my HJ-580xp module has been already programmed without DSPS service?

Thanks for your help

JF

Thanks

JF JACQUOT
Offline
Last seen:6 months 1 week ago
加入:2020-01-17 13:34
Hi Support Team,

Hi Support Team,

I give you more informations on my configuration. My final goal is only to use AT command via UART.

I use an arduino compatible board as usb/uart adaptator and I want to use it with a HJ-580 xp module.

我想使用uart只有模式。

When I've received this DA14580 module I don't know if it is already programmed with service like DSPS or Cordless .

My board and HJ-580 module connexions are very similar to the example describe in Dialog application note for programming cordless or dsps service with basic-kit exept the usb/serial which is done by an arduino and I only connect the jumper between P0_4 and TXD and the jumper between P0_5 and RXD.

Is this minimal configuration correct for downloading with snippet booter?

BOOTER LOG response when I try to download the file :

[INFO Booter @20-01-22 19:14:38] Read 18420 bytes from file C:\Users\jj104874\Downloads\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 @20-01-22 19:14:38] Connection to COM10 port has successfully opened.
[INFO Booter @20-01-22 19:14:38] Started download procedure...
[ACTION Booter @20-01-22 19:14:39] Please press the hardware reset button on the board to start the download process.
[ERROR Booter @20-01-22 19:14:54] Timeout: Reset signal not detected for more than 16000 msecs.
[INFO Booter @20-01-22 19:14:54] Successfully disconnected from port COM10.
[INFO Booter @20-01-22 19:14:54] Successfully disconnected from port COM10.
[ERROR Booter @20-01-22 19:14:54] Failed downloading firmware file to the board.

no detection when I press the "reset button" of the module.

When I use "BLE scanner app" with my phone, I always detect the HJ-580XP_EE, I can connect to it and under custom service,there ares 3 custom characteristics. Does this mean that the OTP of the HJ-580XP is already programmed?

If it is true, does it block a snippets download because the DA114580 is not on development mode?

Thanks for your help (the module seller doesn't answer to my request)

liujiahang
Offline
Last seen:6 months 1 week ago
加入:2014-04-17 17:00
In addition, you should not

In addition, you should not buy modules from our official channels. We always respond to customer questions. If you encounter problems in the future, you should find the original factory to communicate directly, not through some dealers! Thank you!

PM_Dialog
Offline
Last seen:6 days 6 hours ago
工作人员
加入:2018-02-08 11:03
Hi JF JACQUOT,

Hi JF JACQUOT,

Not sure if the OTP is already programmed. I will ask internally, and I will keep you updated.

Thanks, PM_Dialog

PM_Dialog
Offline
Last seen:6 days 6 hours ago
工作人员
加入:2018-02-08 11:03
Hi JF JACQUOT,

Hi JF JACQUOT,

Can you please indicate if you are using an EEPROM in order to download firmware and boot from there? If not, are you trying to boot from the SystemRAM? In addition, since you can see the device advertising with “HJ-580XP_EE” device name this means that is correctly booting. Have you burnt any firmware before? Or is this the factory firmware?

Thanks, PM_Dialog

JF JACQUOT
Offline
Last seen:6 months 1 week ago
加入:2020-01-17 13:34
Many Thanks for your reply,

Many Thanks for your reply,

I try to boot from the systemRAM.

I haven't burnt any firmware before.This is a factory firmware and I don't know what firmware has been installed.

I just need DSPS or Codeless firmware but the serial terminal doen't respond to any AT commands.

what to do?

Thanks by advance

JF JACQUOT

PM_Dialog
Offline
Last seen:6 days 6 hours ago
工作人员
加入:2018-02-08 11:03
Hi JF JACQUOT,

Hi JF JACQUOT,

May thanks for your inputs. I have already escalated it internally, so I will revert back to you as soon as I have any new from the Team.

Thanks, PM_Dialog

liujiahang
Offline
Last seen:6 months 1 week ago
加入:2014-04-17 17:00
Hi Jean-Francois:

Hi Jean-Francois:

I am the HJ-580XP Original factory,Sorry give you some troubles!

Please give your Email,My FAE will contact you.According to your description, the HJ-580XP in your hand has been Burned the OTP. If you want to develop and download the DSPS, you need to contact us to provide you with the HJ-580XP module without the OTP firmware.

liujiahang
Offline
Last seen:6 months 1 week ago
加入:2014-04-17 17:00
Dear PM_Dialog:

Dear PM_Dialog:

Thanks for you support,next, our original factory will provide good customer support。

JF JACQUOT
Offline
Last seen:6 months 1 week ago
加入:2020-01-17 13:34
Dear liujiahang,

Dear liujiahang,

Thanks for your reply,

My mail:jjacquot@cea.fr

regards

JF JACQUOT

PM_Dialog
Offline
Last seen:6 days 6 hours ago
工作人员
加入:2018-02-08 11:03
Dear liujiahang, thanks for

Dear liujiahang, thanks for jumping into this forum post and for reaching out Jean-Francois directly.

Dear Jean-Francois, it would be also helpful to share the exact part number of the module.

If you have any updates, please share them in this forum post!

Best regards, PM_Dialog

liujiahang
Offline
Last seen:6 months 1 week ago
加入:2014-04-17 17:00
Dear PM_Dialog:

Dear PM_Dialog:

Jean-Francois buy the module had burned our firmware,so he dont burn too,he need buy no-firmware version module,and HJ-580XP module inside 512Kb eeprom,he can program the fireware into eeprom and run.

PM_Dialog
Offline
Last seen:6 days 6 hours ago
工作人员
加入:2018-02-08 11:03
Dear liujiahang,

Dear liujiahang,

Thanks for the update.

Best regards, PM_Dialog

liujiahang
Offline
Last seen:6 months 1 week ago
加入:2014-04-17 17:00
Dear PM_Dialog:

Dear PM_Dialog:

我将upload the HJ-580XP_EE datasheet and firmware manual document,thanks.

liujiahang
Offline
Last seen:6 months 1 week ago
加入:2014-04-17 17:00
HJ-580XP DataSheet English V2

HJ-580XP DataSheet English V2.2

PM_Dialog
Offline
Last seen:6 days 6 hours ago
工作人员
加入:2018-02-08 11:03
This is very helpful for the

This is very helpful for the other forum customers. Thanks for the attachments!

liujiahang
Offline
Last seen:6 months 1 week ago
加入:2014-04-17 17:00
Thanks,Best regards, keep in

Thanks,Best regards, keep in touch。