21 new posts / 0
The Last post
young_dialog
Offline
Last seen:3 years 7 have a line
Joined:The 2016-05-10 07:14
SmartSnippets SPI Flash Programmer

Everybody is good!

Use SmartSnippets burning external SPI flash found a strange problem: first burn everything is normal, but the second and later while on a burning point on the Connect button not even, always prompt:

[the INFO @ 16-08-05 16:25:28] Failed downloading the firmware file to the board.
[the INFO @ 16-08-05 16:25:28] Failed you SPI Flash ports and pins.
Since the first time without even once again.

This time a different way to burn code into RAM and tip failure:

[16:33:47 INFO @ 16-08-05] Failed downloading the firmware file to the board.

Environment:
Hardware: our own PCB, chip: 14580
Firmware: based on the written SDK5.0.3 / ble_app_peripheral firmware, opens the extended sleep mode, closed development/debug mode
Software: SmartSnippets3.8 and 3.9 are the same phenomenon
Connection mode: the JTAG

What's the problem cause?Is it because opens the extended sleep mode, the relationship between still like BBS said use JTAG is inherently unstable?
Thank you very much!

Young,

Device:
Gongyu_Dialog
Offline
Last seen:12 hours 3 min line
Joined:The 2016-04-27 07:07
1. First of all you have to burn the image involves the sharing of SPI

1. First of all you have to burn the image involves the sharing of SPI problem, namely your SPI bus to hang the other equipment in addition to flash?If so, find the SDK flash_programmer project, join down other components of the CS line, to the flash_programmer. Bin and jtag_prgorammer bin copy to the C: \ Users \ glu \ SmartSnippets \ resources

2. Try using UART burning?

young_dialog
Offline
Last seen:3 years 7 have a line
Joined:The 2016-05-10 07:14
Hi Gongyu_Dialog,

Hi Gongyu_Dialog,

My SPI bus is only a flash chips, I write after using UART can burn success, but why no JTAG way, it is not stable?There is erased by UART chip 1 minutes every time, when the log is as follows:

[the INFO @ 16-08-08 15:54:09] SPI Memory erasing completed successfully.
[the INFO @ 16-08-08 15:54:09] Reading the memory to verify its contents after erase...
[the INFO @ 16-08-08 15:54:09] Connection to COM4 port has successfully the opened.
[15:54:16 INFO @ 16-08-08] Successfully disconnected from the port COM4.
[15:54:16 INFO @ 16-08-08] Connection to COM4 port has successfully the opened.
[15:54:23 INFO @ 16-08-08] Successfully disconnected from the port COM4.
[15:54:23 INFO @ 16-08-08] Connection to COM4 port has successfully the opened.
[15:54:29 INFO @ 16-08-08] Successfully disconnected from the port COM4.
[the INFO @ 16-08-08 15:54:30] Connection to COM4 port has successfully the opened.
[15:54:36 INFO @ 16-08-08] Successfully disconnected from the port COM4.
[15:54:36 INFO @ 16-08-08] Connection to COM4 port has successfully the opened.
[15:54:43 INFO @ 16-08-08] Successfully disconnected from the port COM4.
[15:54:43 INFO @ 16-08-08] Connection to COM4 port has successfully the opened.
[the INFO @ 16-08-08 15:54:50] Successfully disconnected from the port COM4.
[the INFO @ 16-08-08 15:54:50] Connection to COM4 port has successfully the opened.
[15:54:56 INFO @ 16-08-08] Successfully disconnected from the port COM4.
[15:54:57 INFO @ 16-08-08] Connection to COM4 port has successfully the opened.
[the INFO @ 16-08-08 15:55:03] Successfully disconnected from the port COM4.
[the INFO @ 16-08-08 15:55:03] Verification succeeded.
[the INFO @ 16-08-08 15:55:03] Reading the memory to refresh its contents...
[the INFO @ 16-08-08 15:55:03] Connection to COM4 port has successfully the opened.
[the INFO @ 16-08-08 15:55:10] Successfully disconnected from the port COM4.
[the INFO @ 16-08-08 15:55:10] Reading has finished. Read 32768 bytes.

Why will have so much connection and disconnection?(serial port using P0_4 P0_5).

Then, the code after burn in and found another problem:

The logic of the code are as follows:

A electrical equipment will be broadcast on, wait for connection, when a connection is established after open external ADC interrupt (radio condition not open interruption), the ADC every 4 ms will give DA14580 an interrupt (interrupt will trigger the data sent back), MCU for data processing and sent to mobile phones, all this in open the debug mode "# define CFG_DEVELOPMENT_DEBUG" are running normally, but after closing "# undef CFG_DEVELOPMENT_DEBUG" found can connect but there is no data to send, speculation is the ADC is no interruption to the reason, could you tell me the debug mode when you need to open, when you need to shut down (the final shape of our products would be the application layer code in a flash, because OTP space is no longer enough), about the debug mode what need to be aware of?Thank you very much!

BR,

Young,

young_dialog
Offline
Last seen:3 years 7 have a line
Joined:The 2016-05-10 07:14
Supplement:

Supplement:

After connection, the MCU through the I2C to external ADC chip sends the data to configuration parameters, gathers the ADC will cycle signal, and after I just made a test again, found that external ADC didn't received the configuration data, MCU is opened up
I2C configuration needs to be modified after the debug mode?Thank you very much!

BR,

Young,

snowdream1
Offline
Last seen:5 have 1 day a line
The Staff
Joined:The 2014-08-17 now
My suggestion is that you find a flash in the SDK

My suggestion is that you find in the SDK flash_programming project, in periph_init function, set to join for other peripherals GPIO operation operation, make the peripherals.Then compiled respectively based on JTAG and UART version.
Covering the C: \ \ Users \ XXXX SmartSnippets \ flash_programmer under the resources of bin and jtag_programmer bin.Then try downloading again.

About the CFG_DEVELOPMENT_DEBUG macros, mainly is to help you check, do not reuse GPIO;In addition, is the deep sleep mode, opened this macro SRAM is electricity.
This macro I2C configuration and it doesn't work that's ok ~

young_dialog
Offline
Last seen:3 years 7 have a line
Joined:The 2016-05-10 07:14
Hi snowdream1,

Hi snowdream1,

As you suggest to join to the operation of the set other peripherals GPIO operation, make the peripherals doesn't work, but the result is the same, how to return a responsibility, also is to use UART burn why it was taking so long?

BR,

Young,

Gongyu_Dialog
Offline
Last seen:12 hours 3 min line
Joined:The 2016-04-27 07:07
I here UART erasing and burning all soon.

I here UART erasing and burning all soon.

In addition, is should be Shared and SPI P05 you?

[14:54:39 INFO @ 16-08-15] Header records have had been removed from the hex file ble_app_barebone_580. Hex.
[14:54:39 INFO @ 16-08-15] 20820 bytes Read from the file ble_app_barebone_580. Hex.

[14:54:56 INFO @ 16-08-15] the Firmware File C: \ Users \ glu \ SmartSnippets \ resources \ flash_programmer bin has had been selected for downloading. / / the connect
[14:54:56 INFO @ 16-08-15] Connection to COM28 port has successfully the opened.
[14:54:56 INFO @ 16-08-15] Started the download procedure...
[14:54:57 ACTION @ 16-08-15] both Please press the hardware reset button on the board to start the download process.
[the INFO @ 16-08-15 14:55:00] Reset detected
[the INFO @ 16-08-15 14:55:01] Successfully disconnected from the port COM28.
[the INFO @ 16-08-15 14:55:02] Connection to COM28 port has successfully the opened.
[the INFO @ 16-08-15 14:55:02] Successfully disconnected from the port COM28.
[the INFO @ 16-08-15 14:55:02] Successfully downloaded the firmware file to the board.
[the INFO @ 16-08-15 14:55:02] Successfully configured SPI Flash ports and pins.

[14:55:23 INFO @ 16-08-15] Connection to COM28 port has successfully the opened. / / erasure
[14:55:23 INFO @ 16-08-15] Successfully disconnected from the port COM28.
[14:55:23 INFO @ 16-08-15] SPI Memory erasing completed successfully.
[14:55:23 INFO @ 16-08-15] Reading the memory to refresh the memory contents...
[14:55:23 INFO @ 16-08-15] Connection to COM28 port has successfully the opened.
[14:55:23 INFO @ 16-08-15] Successfully disconnected from the port COM28.
[14:55:23 INFO @ 16-08-15] Reading has finished. Read 32768 bytes.

[INFO @ 16-08-15 14:55:30] Started'm memory with 21144 bytes of data at address 0 x00000. / / start burning
[the INFO @ 16-08-15 14:55:30] Connection to COM28 port has successfully the opened.
[14:55:34 INFO @ 16-08-15] Successfully disconnected from the port COM28.
[14:55:34 INFO @ 16-08-15] the Memory'm completed successfully.
[14:55:34 INFO @ 16-08-15] Reading the memory to refresh the memory contents...
[14:55:34 INFO @ 16-08-15] Connection to COM28 port has successfully the opened.
[14:55:41 INFO @ 16-08-15] Successfully disconnected from the port COM28.
[14:55:41 INFO @ 16-08-15] Reading has finished. Read 32768 bytes.

[the INFO @ 16-08-15 14:56:15] Connection to COM28 port has successfully the opened. / / erasure
[the INFO @ 16-08-15 14:56:15] Successfully disconnected from the port COM28.
[the INFO @ 16-08-15 14:56:15] SPI Memory erasing completed successfully.
[the INFO @ 16-08-15 14:56:15] Reading the memory to refresh the memory contents...
[the INFO @ 16-08-15 14:56:15] Connection to COM28 port has successfully the opened.
[the INFO @ 16-08-15 14:56:15] Successfully disconnected from the port COM28.
[the INFO @ 16-08-15 14:56:15] Reading has finished. Read 32768 bytes

young_dialog
Offline
Last seen:3 years 7 have a line
Joined:The 2016-05-10 07:14
Hi Gongyu_Dialog,

Hi Gongyu_Dialog,
P05 is, indeed, and SPI share, there is a problem, they are only a party in any time, should not affect each other, it's quite fast now with Jlink burn, is only one time.

BR,

Young,

Gongyu_Dialog
Offline
Last seen:12 hours 3 min line
Joined:The 2016-04-27 07:07
Share no problem.JLINK only once, the second time to burn

Share no problem.JLINK only once, don't burn the second time, I think is because the code has been directly from SPI boot up.Because the JTAG is the UART and SPI boot failed to open.
When you try to start burning, get rid of a few jumpers SPI, skip the SPI boot this stage, and then put the jumper plug in a try?

young_dialog
Offline
Last seen:3 years 7 have a line
Joined:The 2016-05-10 07:14
Hi Gongyu_Dialog,

Hi Gongyu_Dialog,

The results still won't do.

BR,

Young,

young_dialog
Offline
Last seen:3 years 7 have a line
Joined:The 2016-05-10 07:14
Hi Gongyu_Dialog,

Hi Gongyu_Dialog,

I am using my own bat, without do jump line processing, I can do the test on the development board first.

BR,

Young,

smdzjl007
Offline
Last seen:3 years 8 have a line
Joined:The 2015-08-04 15:07
I also encountered similar problems, is there a solution finally?

I also encountered similar problems, is there a solution finally?

JTAG burning only once, the second is no longer connection is not successful.

smdzjl007
Offline
Last seen:3 years 8 have a line
Joined:The 2015-08-04 15:07
Is it because the device set up EXT_SLEEP_ON

Is because the device set up EXT_SLEEP_ON, so burning after a time, and even the JTAG, the CPU is in sleep mode, so unable to connect successfully?

Excuse me, how to configure, a program can be downloaded in open EXT_SLEEP_ON cases, JTAG still can connect a success?Otherwise unable to update the program is too painful.

Qinjiny_Dialog
Offline
Last seen:1 day, 2 hours a line
The Staff
Joined:The 2016-11-01 05:47
hello

hello

Bother to provide engineering or inform you use your will be confronted with this situation, in which project so that we can test

thank you

smdzjl007
Offline
Last seen:3 years 8 have a line
Joined:The 2015-08-04 15:07
Excuse me, can you provide an email address?Web page upload slowly

Excuse me, can you provide an email address?Web page upload slowly

Qinjiny_Dialog
Offline
Last seen:1 day, 2 hours a line
The Staff
Joined:The 2016-11-01 05:47
Testing can only upload a hex, or use a network backup link to share after packaging

Testing can only upload a hex, or use a network backup link to share after packaging

smdzjl007
Offline
Last seen:3 years 8 have a line
Joined:The 2015-08-04 15:07
Thank you very much Qinjiny, Hex file upload, please test.If you need code

Thank you very much Qinjiny, Hex file upload, please test.If you need the code, please let us know, thank you!

Attachment:
Qinjiny_Dialog
Offline
Last seen:1 day, 2 hours a line
The Staff
Joined:The 2016-11-01 05:47
helloTest your hex file on my side

helloI tested your hex file, run after burning up and there was a radio called BAXIAN_BLE disappear after a few seconds.And then re-open the smartsnippets, JTAG mode, can normal connection, erase flash, burning again.

I used here is the official 580 development board pro, smartsnippets version 3.8

Suggest you confirm the boards before they start to burn write pin of the jumper wire connection if there is a problem, a new burning activity can disconnect USB cable before power on again and then open the smartsnippets.Theory into sleep will not affect the operation of the connection.I wrote a few times and repeatedly to burn without any problems.

smdzjl007
Offline
Last seen:3 years 8 have a line
Joined:The 2015-08-04 15:07
Thank you very much!I also find other workaround method here

Thank you very much!I also find other workaround method here.When power on, press the reset button, rapid in smartsnippets click connect, can be connected to.Unable to connect to, feeling is to sleep then reset after if hand speed faster, can the connection is successful.After the connection is successful, you can wipe software

In addition, could you tell me a question, enter extended sleep patterns, sleep can be adjusted by configuring the timer = = > wakeup timer timer?The question now is to sleep, can't.Feel the wakeup timer doesn't work, seemed very strange.

SDK is 504 support through the JTAG debug sleep mode application?

smdzjl007
Offline
Last seen:3 years 8 have a line
Joined:The 2015-08-04 15:07
How do you do?

How do you do?

My colleague told me that our design is from the Dialog's website of wechat IOT correct reference design.
https://support.dialog-semiconductor.com/connectivity/reference-designs?...

I open the download this reference design, sleep patterns: const static sleep_state_t app_default_sleep_mode = ARCH_EXT_SLEEP_ON;In user_config. H file.At the same time, close and MD5 encryption, using EAM_macNoEncrypt in mpbledemo2. H file.

And I the same problems found.DA14580休眠之后就无法被手机发现。我用的是 android 手机,AirSyncDebugger app去扫描蓝牙设备

There are two problems need to consult:
This wechat - Dialog website provides IOT reference design, ever test a sleep mode?
- wechat IOT reference design inside the built-in DA14580 SDK, if I want to replace with the latest 5.0.4 SDK, how to replace?

Thank you for your help!

smdzjl007
Offline
Last seen:3 years 8 have a line
Joined:The 2015-08-04 15:07
Qinjiny_Dialog

Qinjiny_Dialog

Hello, I tried the SDK 5.0.4 BLE_app_sleepmode inside the sample, in my board is the same result.Open the sleep mode, cell phone bluetooth can't scan to the device.Is this normal?

Or where I can find the official development board schematic diagram, you can make a comparison?Thank you for your

Attachment: