DSPS project use an external Atmel processor

⚠️
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 athttps://www.dialog-seminile.com/support.。我们将在未来几天修复错误/优化搜索和标记。
43 posts / 0 new
Last post
玛罗斯
Offline
Last seen:2个月3周前
加入:2017-05-09 20:27
DSPS project use an external Atmel processor

你好mt_dialog.,

We have achieved the DSPS project on the DA14580 Development Kit - Basic with UART and SPI configuration. We want to use our micro controller with UART connection pins of the board to use the DA 14580 Bluetooth chip and our ATMEL processor .

如何在DSP项目中添加我们的代码,并在Keil项目中的代码的哪一部分?是必要的进一步联系吗?

主要目标是通过UART连接将DSP与DA14580和我们的处理器一起使用。

提前致谢,
Marios

Device:
mt_dialog.
Offline
Last seen:1 month 3 weeks ago
职员
加入:2015-06-08 11:34
Hi marios,

Hi marios,

I dont quite get the question, as far as i can tell you would like to send data from your external MCU to the 580 and those data should be pushed through bluetooth, if that is the case there is no need to change the DSPS code. The DSPS application will take the data from the UART port and channel the data through BLE to the other side of the connection, all you have to do is to configure and connect your external MCU via UART (RX/TX and RTS/CTS if you would like to use h/w flow control - which is the only possible way to transmit UART data reliably and have the 580 in extended sleep mode).

Thanks MT_dialog

玛罗斯
Offline
Last seen:2个月3周前
加入:2017-05-09 20:27
感谢您的快速回复!!

感谢您的快速回复!!

好的,如果我理解正确,DSPS代码是在DA14580上通过SmartSnippets的JTAG闪存,我需要配置的唯一是我的外部处理器(MCU)中的代码。

当然,数据循环检查功能将检查从DA14580接收的UART的数据是否正确并继续我们想要实现的结果。

Please correct me if I'm wrong

Any further suggestions is much appreciated.

提前致谢,
Marios

mt_dialog.
Offline
Last seen:1 month 3 weeks ago
职员
加入:2015-06-08 11:34
Hi marios,

Hi marios,

Yes, the DSPS is a standalone application, whatever data is presented on the UART port, it will transfer them on the other side of the connection (of course you need an appropriate client that supports the DSPS which is a Dialog propriety profile - like the DSPS Android / Ios application or another 580 running the host application of the DSPS).

我不确定你的意思是关于“接收检查功能”,你可以澄清吗?

Thanks MT_dialog

玛罗斯
Offline
Last seen:2个月3周前
加入:2017-05-09 20:27
你好mt_dialog.

你好mt_dialog.

感谢您的快速回复 !

We have connected our ATMEL processor with the dialog DA14580 Development Kit - Basic as follows in attached Schematic.
(DA RX -> To External ATMEL TX) and (DA TX -> To External ATMEL RX)
We have tried and the opposite connections also to our external processor.

But nothing is received in our ATMEL processor we use the official DSPS android application to send data .

1) Is anything else that we have to do with the connections ?

2)必须将SPI连接从DA板连接到我们的Atmel处理器,以将数据传输到另一侧?
我们已经使SPI配置与附件中的SPI配置一样。

3)where is located in the DA the vin pin 3,3 to power the board because now is only booting from the usb port.
And at last in which part of the code i need to set up the extended sleep mode for the 580 to transmit the data ?

提前致谢,
Marios.

附件:
mt_dialog.
Offline
Last seen:1 month 3 weeks ago
职员
加入:2015-06-08 11:34
Hi marios,

Hi marios,

1) The DSPS is designed to work properly with the h/w flow control enabled, so you need also to connect the CTS/RTS, since when the sleep is enabled the external device needs to know when the 580 is awake in order to send data. Also s/w flow control is available but there will be missing data on the device.

2) No its not necessary to connect the SPI pins when you run the DSPS application unless if you intent to boot the fw from the SPI flash that the pro kit has onboard.

3) Regarding the last question, if you dont want to power the board from the USB you can attach the power on the J5 header on pin 1 (VBAT_580) but you are going to need also to download firmware somehow to the device, so you 're going to have to boot either from the SWD via keil, which requires the USB of cource or burn the OTP or the SPI or boot via UART. By default the DSPS comes pre-configured with extended sleep mode enabled, you can check that in the user_config.h file from the app_default_sleep_mode structure.

Regarding your connections, in the schematic that you have attached you have connected the RX and TX lines of the UART of the Atmel that implements the JLink is used in order to print data out from the basic kit and there is no connection between the UART ports of the 580 and your ATMEL processor, the pins that you are indicating as P04 and P05 aren't proper, on the J4 those pins are exectly the ones in front from the one that you are indicating, you can check the schematic and User manual of the basic kit for more information on that (UM-B-048 Getting Started with DA1458x), and also its recommended to use an FTDI on this and not the UART of the SEGGER MCU.

Thanks MT_dialog

玛罗斯
Offline
Last seen:2个月3周前
加入:2017-05-09 20:27
亲爱的mt_dialog.

亲爱的mt_dialog.

I have changed the setting in the user_config.h file to the extended sleep mode enable
and im getting the following error when i'm trying to flash my board :

[INFO General @17-06-12 23:40:12] Could not measure total IR len. TDO is constant high.
[INFO General @17-06-12 23:40:12] Could not measure total IR len. TDO is constant high.
[INFO General @17-06-12 23:40:13] Could not measure total IR len. TDO is constant high.
[INFO General @17-06-12 23:40:13] Could not measure total IR len. TDO is constant high.
[INFO General @17-06-12 23:40:13] Could not measure total IR len. TDO is constant high.
[error aligonal @ 17-06-12 23:40:13]无法读取内存地址0x50003200功能jlinkarm_readmemhw
[ERROR General @17-06-12 23:40:14] No known chip found while opening JLink connection. Terminating proccess...
[ERROR SPI Flash Programmer @17-06-12 23:40:14] Failed downloading firmware file to the board.
[ERROR SPI Flash Programmer @17-06-12 23:40:14] Failed configuring SPI Flash ports and pins.

i have my board in spi mode

how i can slove this issue ?

提前致谢,
Marios

mt_dialog.
Offline
Last seen:1 month 3 weeks ago
职员
加入:2015-06-08 11:34
Hi marios,

Hi marios,

从您所附的日志中,我想你正在使用智能片段工具,以便在董事会上刻录SPI闪光灯,我也假设您已经在SPI中刻录了睡眠状态,并在睡眠后烧伤了睡眠启用FW,您无法与智能片段连接并撤销闪存(我假设您烧焦的FW基于5.0.4岁的SDK)。此外,我假设您通过JTAG接口连接到智能代码段。从5.0.4的SDK是即使在睡眠模式下,所有先前的版本也能够保持580的调试器模块,所有先前的版本都禁用模块,因此当智能片段尝试下载Flash_Programmer以闪存它失败以来它找不到580上的调试器模块。您可以做的就是在电路板上的重置按钮,在2秒内(对于XTAL32,在2秒内停留2秒钟以解决)点击智能片段上的连接,这将下载Flash_programmer在设备睡觉之前。

Apart from that if the JTAG isn't able to communicate with the 580, check if the 580 is powered propely, check if the J5 jumper is properly placed.

Thanks MT_dialog

玛罗斯
Offline
Last seen:2个月3周前
加入:2017-05-09 20:27
Hello sir ,

Hello sir ,

I have done the above steps and i have solve the problem that has occurred by changing the setting to extended sleep mode in the user_config.h file thank you in advance !

1) I have updated the SDK version to SDK 5.0.4 by downloading and choosing the sdk folder in Smart Snippets startup menu also installed the recommended J-link driver, but when i set the value to extended sleep mode in the user_config.h file in keil i have the same problem after the first flashing my board isn't recognized at all and i need to do the guide in your previous post to flash again. Also i have data loss the data isn't transmitted correctly . Now I have set it up to ARCH_SLEEP_OFF in the user_config.h file with this configuration i haven't any problem of flashing my board neither data loss everything is transmitted ok. Is anything else that i need to do further ? like in keil for example to set up the sdk somehow or update it to the 5.0.4 ?
I have also set up this values #define CFG_UART_HW_FLOW_CTRL and #undef CFG_UART_HW_FLOW_CTRL in the user_periph_setup.h file

2)你能给我更多信息有关如何使用FTDI的信息,以某种方式更改Keil中的代码,以启用DSP数据传输,或者我们只需要连接到我们的Atmel?例如,在TX和RX引脚上,当我们通过Android应用程序发送它时,我们无法看到任何数据,您可以正确地将我在原理图中指示的引脚实际上是TX和RX引脚,而不是PO_5和PO_4在我们的终端或在Atmel Studio中使用调试线模式时,没有任何东西已到达另一边。

Thanks in advance your help is much appreciated !
Marios

mt_dialog.
Offline
Last seen:1 month 3 weeks ago
职员
加入:2015-06-08 11:34
Hi marios,

Hi marios,

1) I am sorry but i am quite confused, the SDK is the software enviroment that the 580 uses, if you are using the DSPS reference design, that is build with an older SDK and that means that whatever change you apply to the Smart Snippets studio is not going to change the fact that the SDK is an older SDK and disables the JTAG when operating in sleep mode thus if you would like to burn you flash you will have to always press the reset button. Regarding the data loss, the DSPS is a tested reference design and data loss is not observed if the device is properly set up, if your are facing those kind of problems try checking the device with a PC, if everything turns out ok, that means that something is wrong with the other side of the set up (the external MCU) and its most probably the HW flow control pins (the 580 in sleep mode needs those pins in order to signal the etxernal MCU when it is ready to receive data).

2)关于启用转移,我真的没有得到问题,DSP在连接到UART上被传递到连接的设备时,您只需要连接所有四个UART线Rx / Tx / RTS / CTS和OFF课程您必须正确配置外部MCU。

Thanks MT_dialog

玛罗斯
Offline
Last seen:2个月3周前
加入:2017-05-09 20:27
先生,你好,

先生,你好,

Can you provide me the link of downloading the dsps keil project with the sdk 5.0.4 because i can't compile the DSPS project with the latest sdk version i;m receiving strange errors
i have downloaded the source code of the dsps project from:https://support.dialog-semiconductor.com/connectivity/product/da14580?qt...
此外,我还从以下命令下载了最新的SDK:https://support.dialog-semiconductor.com/connectivity/product/da14580?qt...
我想我必须更新Keil SDK,但如何实现这一目标?正确的项目包的任何步骤或链接都非常有帮助
I want to thank you for your quick replies.

提前致谢,
Marios

mt_dialog.
Offline
Last seen:1 month 3 weeks ago
职员
加入:2015-06-08 11:34
Hi marios,

Hi marios,

As mentioned the current version of DSPS is builded on a previous SDK version and there is no version available on the latest SDK, in order to do that you need to port the existing version of the DSPS to the new SDK which is something that takes time. I think that you have misunderstood the meaning of the SDK, its not something that you can place in keil and build a project using a new SDK, you have to entirely port the code from one SDK to another. Also if your concern is the fact that you cannot flash the device without hitting the reset first on the current DSPS version you can search for this instruction SetBits16(SYS_CTRL_REG, DEBUGGER_ENABLE, 0); and turn it to 1 in order to have the debugger always enabled.

Thanks MT_dialog

玛罗斯
Offline
Last seen:2个月3周前
加入:2017-05-09 20:27
感谢您的快速回复,

感谢您的快速回复,

1)有必要spi大头针连接到我们的美国银行rd which has the external processor When we are finally have placed the da14580 module it self ?

2) I have searched in the code to enable the bedbug mode and I see that was already set to 1

3)我们要连接在未来即将到来ys the UART tx and Rx pins on our external processor with also CTS RTS pins connected and use the android DSPS app to transmit data we hope the have some success and receive the data

对上述步骤的任何进一步纠正都非常感谢。
We also find this guide as reference

https://support.dialog-semicondiondiond.com/resource/b-001-da14580-booting -...

提前致谢,
Marios

mt_dialog.
Offline
Last seen:1 month 3 weeks ago
职员
加入:2015-06-08 11:34
Hi marios,

Hi marios,

1) No (if i understand the question correctly), if there is no use of the spi flash memory (for booting or data), there is no need to connect the spi pins.

2) In the check_sys_startup_period() function and in the BLE_SLP_Handler() (there should be two of those functions) the debugger in the DSPS reference design gets disabled SetBits16(SYS_CTRL_REG, DEBUGGER_ENABLE, 0); so you will have to switch it to 1.

3) The attachment that you have is how the 580 boots, which has nothing to do with the DSPS project. So what are you trying to do ? Download fw from the external MCU or just communicate with external MCU via the DSPS reference design ? either way i dont see any extra connection or additional code modification in the DSPS, the example works out for the box as is, and it should be as long as you have to proper connections.

Thanks MT_dialog

玛罗斯
Offline
Last seen:2个月3周前
加入:2017-05-09 20:27
Thanks you for your quick

Thanks you for your quick reply!

We have connect the tx Rx and CTS RTS pins but we haven't receive any data from the other side

What we can do to succeed ?
Our code seems ok is anything else that we can try ?

我无法弄清楚SPI引脚是否是NesAserry,因为如果我只使用UART引脚,那么全部概述

任何建议都非常感谢

Thanks in advance
Marios

mt_dialog.
Offline
Last seen:1 month 3 weeks ago
职员
加入:2015-06-08 11:34
Hi marios,

Hi marios,

Regarding the SPI pins, as mentioned the SPI connection on the DSPS can be used only if there is no fw in the 580, so when you power up the device apparently there is no fw running in the device (as long as you are in development mode and you dont use the OTP), so you will need the SPI connections in order for the 580 to download the image from the external flash. So apparently you dont download the image via keil and while the external processor is running but you are booting up the device and you download the fw from the SPI. The DSPS is using some of the SPI lines that the 580 uses in order to boot as UART lines, so i suppose that you have connected those lines to the SPI and to the UART TX/RX of the FTDI.

您可以尝试调试问题是:

  • 取消激活项目中的睡眠模式,并使用软件流控制,以便常用的RTS / CTS线路。检查是否可以使用该配置获得一些数据。
  • Try to re-arrange the conflicting pins or the SPI and the UART, place other port/pins for the UART communication and avoid the pins that are used by the 580 in order to boot from SPI.

As mentioned the reference design works out of the box, so if the implementation of the other side is proper and there is no line issue (connections etc) you should be able to achieve communication.

Thanks MT_dialog

玛罗斯
Offline
Last seen:2个月3周前
加入:2017-05-09 20:27
Hello My dialog thanks in

您好,我的对话提前感谢您的快速回复!

We have tried the above settings we have deactivate the sleep mode and the spi pins are configured in deferent port than the UART ports
我们已经测试了我们的Atmel处理器上的程序并正常工作
But when we are connect the UART pins nothing is transferred on the other side .

And also tried both HW and SW control
Please what can we do to solve the problem

We are going to invest on your product
对话框14580.
Thanks in advance
Marios

mt_dialog.
Offline
Last seen:1 month 3 weeks ago
职员
加入:2015-06-08 11:34
Hi marios,

Hi marios,

Let me be more clear on some things because i think that you are missing something:

  • 在黑板上只有essentia SPI的连接l in order for the 580 to download the code from the SPI flash, so when the device boots up, the primary bootloader starts and goes through a procedure where its starts scanning the pins of port0 with different interfaces (I2C/SPI/UART). Those pins (where the device boots from) cannot be changed, the 580 boots from specific pins from specific interfaces (please check the AN-B-001). Thats for the "spi pins are configured in different ports" comment, just to be clear on that.
  • If you are able to see the 580 advertising the DSPS project then until that point you should be ok. Since you are OK until that point connect with the android device and start sending data to your device. If the ATMEL doesn't receive any data please check the lines with a logic analyser in order to see if there are data on the RX/TX lines and if you are using RTS/CTS check also the status of those lines as well.
  • 另外,为了让事情保持更简单的尝试通过JTAG下载代码而不是通过SPI下载。
  • If you see data on your ATMEL but not the expected ones (junk data) try to lower the baud rate of the devices.
  • Try to use the DSPS and the basic kit with an FTDI on a PC and check if you can get data on the other side (please check the UM-B-038 da14580 Serial Port Service reference application.pdf in order to properly connect the basic kit with a PC).

Thanks MT_dialog

玛罗斯
Offline
Last seen:2个月3周前
加入:2017-05-09 20:27
亲爱的爵士女士招呼!

亲爱的爵士女士招呼!
We have achived to recieve data from the other side without data loss !

但是当我们尝试使用我们的板上用智能狙击闪烁DA 14580,使用诸如程序员的Dev套件,我们正在在智能狙击送给此错误。(Atached图片)

We have used the recommended flash memory from dialogue.
Can you provide a proper way to flas the da14580 on our board .

提前致谢,
Marios

Kevinl.
Offline
Last seen:16 hours 55 min ago
职员
加入:2017-11-06 13:52
嗨玛丽奥斯,

嗨玛丽奥斯,

Which interface you used to download the frimware, UART or JTAG?

BTW, I found P1_3 is used as BT_TX, is this uart interface? We don't suggest customer use P1_2 and P1_3 if the GPIOs are enough.
Please find Dialog anpplication note AN-B-018 chapter 3.2.

Best Regards

玛罗斯
Offline
Last seen:2个月3周前
加入:2017-05-09 20:27
Hello !

Hello !
感谢您的快速回复 !

我们从DA14580DEVKIT-B基本的连接到我们的定制董事会是:

SPI_MISO = P0_5
spi_mosi = p06.
PO_3 = SPI_CS
P0_0 = SPI_CL
T_TMS = SWDIO
T_TCK = SW_CLK

We use jtag interface we have sucessful conected the board with jtag but we are receving the folowing error log when we have tried to flash and werify the spi memory throught the smart snipets:

[INFO SPI Flash Programmer @18-07-31 20:56:19] Found SWD-DP with ID 0x0BB11477
[INFO SPI Flash Programmer @18-07-31 20:56:20] FPUnit: 4 code (BP) slots and 0 literal slots
[INFO SPI Flash Programmer @18-07-31 20:56:20] Found Cortex-M0 r0p0, Little endian.
[INFO SPI Flash Programmer @18-07-31 20:56:20] Firmware File C:\DiaSemi\SmartSnippetsStudio\Toolbox\common_resources\jtag_programmer.bin has been selected for downloading.
[信息SPI Flash Programmer @ 18-07-31 20:56:20]成功下载了固件文件到电路板。
[INFO SPI Flash Programmer @18-07-31 20:56:20] Successfully configured SPI Flash ports and pins.
[信息SPI Flash Programmer @ 18-07-31 20:56:24]开始从内存中读取32768个字节。
(信息SPI Flash程序员@18-07-31 20:56:26]意图ding has finished. Read 32768 bytes.
[信息SPI Flash Programmer @ 18-07-31 20:56:33] SPI内存擦除成功完成。
[信息SPI Flash Programmer @ 18-07-31 20:56:33]阅读内存以验证其内容擦除后...
[ERROR SPI Flash Programmer @18-07-31 20:56:33] Verification failed at address 0x00
[INFO SPI Flash Programmer @18-07-31 20:56:33] Reading memory to refresh its contents....
[信息SPI Flash Programmer @ 18-07-31 20:56:35]阅读已完成。阅读32768字节。
[信息SPI Flash Programmer @ 18-07-31 20:56:41] SPI内存擦除成功完成。
[INFO SPI Flash Programmer @18-07-31 20:56:41] Reading memory to verify its contents after erase...
[ERROR SPI Flash Programmer @18-07-31 20:56:41] Verification failed at address 0x00
[INFO SPI Flash Programmer @18-07-31 20:56:41] Reading memory to refresh memory contents....
[INFO SPI Flash Programmer @18-07-31 20:56:41] Reading has finished. Read 32768 bytes.
[INFO SPI Flash Programmer @18-07-31 20:56:51] Started burning memory with 17992 bytes of data at address 0x00000.
[信息SPI Flash Programmer @ 18-07-31 20:56:53]内存刻录成功完成。
[信息SPI闪存程序员@ 18-07-31 20:56:53]阅读内存刷新内存内容....
[INFO SPI Flash Programmer @18-07-31 20:56:55] Reading has finished. Read 32768 bytes.
[信息SPI Flash Programmer @ 18-07-31 20:57:07]开始从内存中读取32768个字节。
[INFO SPI Flash Programmer @18-07-31 20:57:09] Reading has finished. Read 32768 bytes.

提前致谢,
Marios

MHv_Dialog
Offline
Last seen:1个月2周前
职员
加入:2013-12-06 15:10
嗨玛丽奥斯,

嗨玛丽奥斯,

Let me see if I can help.

The schematic you posted above is correct except for the fact that you are using the wrong set of pins for the UART (as already pointed out above). Unless you change the pin configuration in the DSPS implementation you will need to use P0_4 as TX output from the DA14580 and P0_5 as RX input to the DA14580. Those signals are available on the development kit pin header (J4 on the BASIC kit and J5 on the PRO kit). Notice that P0_5 is already connected to MISO of the FLASH, but this should not cause any issues as long as you keep the slave select (/SS or /CE or /EN) on the flash high - this will force the MISO to go high-Z. I would recommend changing the pin-out in the DSPS implementation just to avoid any issues, but it ought to work as-is.

There is a chance that your flash is not working, but please follow these instructions before we go ahead and set up a product replacement. Our development kits are very well built and I have not experienced many product returns in the 5 years I have been in this seat :o)

  1. Disconnect your external processor board entirely just use the development kit with the jumpers set as in your schematic above (for SPI operation)
  2. Close SmartSnippets toolbox - the tool is great, but does not automatically recover when unforseen issues occur
  3. 重新打开SmartSnippets工具箱。选择JTAG选项,并确保将正确的对话框芯片发出。点击“打开”
  4. Open the FLASH utility and select your hex file
  5. Your screenshot shows the flash size set to 200,000, change this to 20,000 (it is a hexadecimal number!)
  6. Select 'Connect', then 'Erase', then 'Burn and Verify'. Respond 'Yes' when asked if you want the image to be bootable

And finally, send me the log for review.

/MHv

玛罗斯
Offline
Last seen:2个月3周前
加入:2017-05-09 20:27
你好,我们已经断开了连接

您好,我们已经断开了外部板与Dev套件的连接,我们已为SPI连接设置跳线
the program of the spi was succsessfull and the broad broadcast.

smartsnipets的日志:

[info @ 18-08-01 16:12:03]固件文件c:\ user \ arimon \ smartsnippets \资源\ jtag_programmer.bin已被选中以下载。
[INFO @18-08-01 16:12:04] Successfully downloaded firmware file to the board.
[信息@ 18-08-01 16:12:04]成功配置了SPI闪存端口和引脚。
[INFO @18-08-01 16:12:08] Header records have been removed from hex file sps_device_580.hex.
[INFO @18-08-01 16:12:08] Read 17672 bytes from file sps_device_580.hex.
[info @ 18-08-01 16:12:16] SPI Memory擦除成功完成。
[INFO @18-08-01 16:12:16] Reading memory to verify its contents after erase...
[INFO @18-08-01 16:12:18] Verification succeeded.
[info @ 18-08-01 16:12:18]阅读内存刷新它的内容....
[info @ 18-08-01 16:12:19]阅读已经完成了。阅读32768字节。
[信息@ 18-08-01 16:12:43]开始刻录内存,在地址0x00000处使用17992字节的数据。
[INFO @18-08-01 16:12:43] Memory burning completed successfully.
[INFO @18-08-01 16:12:43] Reading memory to verify SPI FLash memory contents after burn...
[信息@ 18-08-01 16:12:44] SPI闪存验证成功。

Next we have conect again our custom bord to the dev kit with the spi conections
and we have the folowing log
to conect successfully and read the memeory we have to press the reset buton all the time otherwise we recive the errors as sown at the first lines of the log

LOG of smartsnipets

[INFO @18-08-01 16:36:34] Firmware File C:\Users\aimon\SmartSnippets\resources\jtag_programmer.bin has been selected for downloading.
[ERROR @18-08-01 16:36:34] Failed writing file C:\Users\aimon\SmartSnippets\resources\jtag_programmer.bin at address 80000.
[INFO @18-08-01 16:36:34] Failed downloading firmware file to the board.
[INFO @18-08-01 16:36:34] Failed configuring SPI Flash ports and pins.
[INFO @18-08-01 16:37:06] Firmware File C:\Users\aimon\SmartSnippets\resources\jtag_programmer.bin has been selected for downloading.
[WARNING @18-08-01 16:37:07] T-bit of XPSR is 0 but should be 1. Changed to 1.
[INFO @18-08-01 16:37:07] Successfully downloaded firmware file to the board.
[INFO @18-08-01 16:37:07] Successfully configured SPI Flash ports and pins.
[INFO @18-08-01 16:37:21] Started reading 32768 bytes from memory.
[INFO @18-08-01 16:37:22] Reading has finished. Read 32768 bytes.
[INFO @18-08-01 16:37:55] Header records have been removed from hex file sps_device_580.hex.
[INFO @18-08-01 16:37:55] Read 17672 bytes from file sps_device_580.hex.
[INFO @18-08-01 16:38:09] Image size after adding bootable header is: 17992
[INFO @18-08-01 16:38:09] Started burning memory with 17992 bytes of data at address 0x00000.
[ERROR @18-08-01 16:38:09] Failed writing bytes at address 20000000.
[错误@ 18-08-01 16:38:09]内存刻录失败。

提前致谢,
Marios

MHv_Dialog
Offline
Last seen:1个月2周前
职员
加入:2013-12-06 15:10
Hi MArios,

Hi MArios,

您已经将固件映像编程到闪光灯中,这意味着ROM引导加载程序将在设备向上时立即找到并执行该映像。重置设备仅为您提供一个非常简短的窗口,将设备与JTAG“捕获”设备。如果删除连接到闪光灯的闪光灯(开发套件J4 / J5的PIN 23-24将从Flash切割电源),请重置目标,请按住目标,按“连接”,然后按“连接”,然后按“连接”,然后放置跳线再次。此时闪存加载器图像将加载,您可以再次擦除并编程闪光灯。在您尝试编程之前,您忘记删除闪光灯的日志中出现。

/MHv

玛罗斯
Offline
Last seen:2个月3周前
加入:2017-05-09 20:27
Hello ! MHv_Dialog!

Hello ! MHv_Dialog!

This is the log from smart snipets

Evrething is right conect read but when i hit erase i have the folowing log from smartsnipets

[信息SPI Flash @ 18-08-01 20:34:24]找到了带ID 0x0BB11477的SWD-DP
[INFO SPI Flash @18-08-01 20:34:24] FPUnit: 4 code (BP) slots and 0 literal slots
[INFO SPI Flash @18-08-01 20:34:24] Found Cortex-M0 r0p0, Little endian.
[INFO SPI Flash @18-08-01 20:34:24] Firmware File C:\DiaSemi\SmartSnippetsStudio\Toolbox\common_resources\jtag_programmer.bin has been selected for downloading.
[INFO SPI Flash @18-08-01 20:34:24] Successfully downloaded firmware file to the board.
[INFO SPI Flash @18-08-01 20:34:25] Successfully configured SPI Flash ports and pins.
[INFO SPI Flash @18-08-01 20:34:28] Started reading 32768 bytes from memory.
[INFO SPI Flash @18-08-01 20:34:29] Reading has finished. Read 32768 bytes.
[INFO SPI Flash @18-08-01 20:34:38] SPI Memory erasing completed successfully.
[信息SPI Flash @ 18-08-01 20:34:38]阅读内存以验证其内容擦除后...
[ERROR SPI Flash @18-08-01 20:34:38] Verification failed at address 0x00
[INFO SPI Flash @18-08-01 20:34:38] Reading memory to refresh its contents....
[信息SPI Flash @ 18-08-01 20:34:39]阅读已完成。阅读32768字节。

In advance
玛罗斯

MHv_Dialog
Offline
Last seen:1个月2周前
职员
加入:2013-12-06 15:10
嗨玛丽奥斯,

嗨玛丽奥斯,

This is good data. We can now conclude that your external processor is interfering with the flash read operation. This is likely caused by the mixed use of the P0_5 pin (TX from your processor and MISO between the flash and the DA1458x). The output driver of the external processor UART is too strong for the MISO of the flash to toggle freely. You can probably confirm this with an oscilloscope.

解决此问题的首选方法是打开DSP项目并将UART RX引脚从P0_5更改为您选择的其他引脚。或者,您可以尝试在外部处理器的TX之间进行串联电阻(例如1KOHM)和P0_5报头引脚。这不是一个很好的解决方案,因为它会对信号的负载提高并提高功耗,但可能是向前移动的快速方法。

/MHv

玛罗斯
Offline
Last seen:2个月3周前
加入:2017-05-09 20:27
你好mhv_dialog !!

你好mhv_dialog !!
感谢您的快速回复!!!

As you can see from the atached conection diagram
The uart pin p0_5 RX is chanced to pin p1_3 to avoid conflict with spi.

This error is has to do with the uart conection ?

提前,
Marios

MHv_Dialog
Offline
Last seen:1个月2周前
职员
加入:2013-12-06 15:10
嗨玛丽奥斯,

嗨玛丽奥斯,

I am confused. The schematic you just provided what is that? What is the prurpose of J7?

My understanding so far has been that you are using a DA14580 BASIC development kit in the following way:

  1. DSPS firmware is loaded in the external flash on the development kit (and the jumpers are setting accordingly). You are able to successfully load the firmware into the flash at this point.
  2. 您有一个带有一些其他微控制器的自定义板,您希望此控制器通过UART与DA145850接口。您没有将闪光灯连接到自定义控制器板上;只有UART。
  3. The DSPS firmware you are using was built with HW flowcontrol disabled and the RX of the UART was defined as port P1_3

Your schematic2018-08-01_22.38.26.pdf.does not match that understanding, so I need you to break down exactly what you are trying to achieve.

/MHv

玛罗斯
Offline
Last seen:2个月3周前
加入:2017-05-09 20:27
Hello !!!

Hello !!!

1)我们将DSPS Android应用程序从DSPS Android应用程序进行了激发数据。使用Devkit SPI Flash并将UART引脚置于我们的微控制器。
And data transmited succssessfull.

Now we have disighed our board that has our atmel processor and dialog da14580 together and the flash memory spi from booting the dsps.

我们想要以某种方式闪存SPI内存。

How this can achived to flash the spi that is on our custom board ?

是否有可能与Dev套件进行完成?
Or something else like programmer ?

Thanks in advance
Marios

MHv_Dialog
Offline
Last seen:1个月2周前
职员
加入:2013-12-06 15:10
嗨玛丽奥斯,

嗨玛丽奥斯,

Thanks for the explanation. I think it is clear what you are trying to do now ;o)

It is certainly possible to use the DA14580 BASIC kit and SmartSnippets to program your custom board. Please see the bring-up guide (https://support.dialog-seminile.com/system/files/resources/training_07_da1458x_prototype_bring_up_guide-v1.2.pdf., page 23) for details - only four connections are required, GND, SW_CLK, SW_DIO and optionally RST.

/MHv

玛罗斯
Offline
Last seen:2个月3周前
加入:2017-05-09 20:27
Hello !! MHv_Dialog !

Hello !! MHv_Dialog !
Thank you for your quick reply !!

WERY帮助!
Thanks i wil try it very soon i will keep you in touch !

Now i have understand that miso-mosi and other pins
Dosen't have to be conected during programing process but has to be conected with the spi flash for the booting process when the flash complets,

And only the four pins that you have said above during flashing process.

提前,
Marios

玛罗斯
Offline
Last seen:2个月3周前
加入:2017-05-09 20:27
Hello ! MHv_Dialog !

Hello ! MHv_Dialog !

Today we have tested the recomended conections and we have suceeded !
our spi memory has erased and verified sucssesfully and we have bured the memory !
but we have recive one verification error
在智能nipets日志播种n in the atached pdf file

the board broadcast the name and we conected sucseesfully as expected !
we haven't test the trasmision data yet but seems good and working.

but why we have this veryfication error after flashing the memory ?
Thenks in advance,
Marios

MHv_Dialog
Offline
Last seen:1个月2周前
职员
加入:2013-12-06 15:10
嗨玛丽奥斯,

嗨玛丽奥斯,

That is really good news.

The verification error could be caused by your JTAG wires being too long. You should limit the length to no more than 2-3 inches to ensure proper transmissions.

/MHv

玛罗斯
Offline
Last seen:2个月3周前
加入:2017-05-09 20:27
Hello MHv_Dialog!

Hello MHv_Dialog!

Superb ! thanks for your quick reply !
we have limit the lenght of the JTAG wires and now we have suceeded !! veryfy sucssessfully burning the flash memory!

in the DSPS code in KEIL how we can enable the deep sleep mode of the da14580 ?

提前致谢,
Marios

PM_DIALOG.
Offline
Last seen:3 hours 1 min ago
职员
加入:2018-02-08 11:03
Hi marios,

Hi marios,

很高兴您能够通过JTAG刻录SPI Flash。DSP参考设计不支持深度睡眠模式。请DSPS用户手册(UM-B-038),您会发现仅支持扩展睡眠模式。如果要更改睡眠模式,则应配置app_default_sleep_mode正确定义的价值user_config.hheader file. Please, check the code snippets below:

  • Extended sleep mode configuration

const static sleep_state_t app_default_sleep_mode = arch_ext_sleep_on;

  • 主动模式配置

const static sleep_state_t app_default_sleep_mode = ARCH_SLEEP_OFF;

谢谢,PM_DIALOG.

玛罗斯
Offline
Last seen:2个月3周前
加入:2017-05-09 20:27
你好PM_DIALOG!

你好PM_DIALOG!

感谢您的快速回复!

我已经看到,在SDK DSPS项目上的User_Config文件中,Project的功能具有在DSP项目上启用DSPS项目的深度睡眠模式,并且在Atached PDF文件中可以看到Config_Basic文件。
if i choose the ARCH_DEEP_SLEEP_ON at user_config file and define the CFG_MEM_MAP_DEEP_SLEEP option at config_basic file does that setings enables the deep sleep on the dsps project ?
感谢您的帮助和时间!

提前,
Marios

附件:
PM_DIALOG.
Offline
Last seen:3 hours 1 min ago
职员
加入:2018-02-08 11:03
Hi marios,

Hi marios,

As I have already mentioned in my previous post, the deep sleep mode is not supported in the DSPS application code, so the CFG_MEM_MAP_DEEP_SLEEP macro does not enable the deep sleep.

谢谢,PM_DIALOG.

玛罗斯
Offline
Last seen:2个月3周前
加入:2017-05-09 20:27
Hello PM_Dialog !

Hello PM_Dialog !

感谢您的快速回复 !

In the extended deep sleep mode on the DSPS project
How much is the power consumption when the device is at the sleep state and how at the conected mode ?

非常感谢您的时间和精神辅助!

提前 ,
Marios

PM_DIALOG.
Offline
Last seen:3 hours 1 min ago
职员
加入:2018-02-08 11:03
Hi marios,

Hi marios,

The current consumption in active mode is around 0.6mA and in extended sleep mode around 1.4uA.

谢谢,PM_DIALOG.

玛罗斯
Offline
Last seen:2个月3周前
加入:2017-05-09 20:27
Hello PM_Dialog !

Hello PM_Dialog !

This is aswome news !! Superb! Thanks for your quick response !

1)我们希望也spi闪光过程中change the bluetooth name for each device is that possible some how ?

2) The bluetooth adress UUID has to be unique ? or we can use the default UUID for all the produced devices with difrent brodcast names ?

提前致谢,
Marios

PM_DIALOG.
Offline
Last seen:3 hours 1 min ago
职员
加入:2018-02-08 11:03
Hi marios,

Hi marios,

  1. In order to change the device name, please configure the USER_DEVICE_NAME definition in the user_config.h header file.
  2. Every device should have its own BD address. You can have either a public or a static BD address, but each address should follow the proper format in both of the cases.

If you have any other questions, please create a new post on the forum, because this thread is not relative with your last questions. If you are not aware of how you are able to create a new post, please let me know and I will provide you the proper steps

谢谢,PM_DIALOG.

玛罗斯
Offline
Last seen:2个月3周前
加入:2017-05-09 20:27
你好PM_DIALOG!

你好PM_DIALOG!

yes if you can guide me to open a new thread on the forum is much appreciated !

我一直在帮助和反馈部分是正确的吗?

Thanks in advance ,
Marios

PM_DIALOG.
Offline
Last seen:3 hours 1 min ago
职员
加入:2018-02-08 11:03
Hi marios,

Hi marios,

  1. Visit our forum page in this link:https://support.dialog-semiconductor.com/forum
  2. Please log in, expand the “Bluetooth” tab you will see Dialog Smartbond Bluetooth Low Energy (H/W, S/W, Tools) forums.
  3. Then, enter the Dialog “Smartbond Bluetooth Low Energy – Software” forum.
  4. 击中“新主题”,最后用相应的关键字创建帖子。

According to the steps I described, you should not been in the help and feedback section. You will find attached some screenshots of the above steps.

谢谢,PM_DIALOG.