8 posts / 0 new
Last post
powerpoint45
Offline
最后一次露面:2年10个月前
Joined:2017-03-03 01:55
DA14580永久性计划

你好!I'm new to programming these devices. I have a module with the DA14580 Attached. It's called the HJ-580LA. I'm trying the get the DSPS working on this device. While I can boot into the DSPS program using the "Booter", I cannot figure out how to make the program stay when disconnected from power/reset. All I am using right now is a simple TTYUSB cable to program using the RX/TX ports. The module I am using has the following pins available:

  • EX-ANT
  • VPP
  • P05
  • P04
  • SWD/P15
  • P03
  • P(zero)_(zero)
  • SCK / P14
  • P11

除了外部eepm和其他额外的混合涂料nents what can be done? How would I go about making the program permanent. Could I flash it to internal EEPROM? Do I need special hardware to flash the program correctly? I'm looking into getting a J-Link but I don't know how I'd go about hooking that up with the pins I have available. Would getting a J-Link be heading in the right direction?

Any help would be amazing as to what direction I should take. Thanks!

Keywords:
Device:
mt_dialog.
Offline
最后一次露面:2 months 3 weeks ago
Staff
Joined:2015-06-08 11:34
Hi powerpoint45,

Hi powerpoint45,

The 580 doesn't have any embedded non-volatile memory except from the OTP in which you can only burn your fw once. Other than that you will have to attach either an external SPI or I2C memory in order for the primary bootloader. The Smart Snippets tool has additional tools for burning your code into the external spi flash or the I2C EEPROM via UART interface or via JTAG you can find info about the devices supported in the AN-B-023:Interfacing DA14580 with External Memory. I dont quite get the second question regarding the JLink, the 580 support SWD interface, so what you need is the Jlink Lite ARM and connect the SWDIO and SWCLK pins in order to download code into the Sysram, our dev kits have the Jlink debugger onboard.

谢谢mt_dialog.

powerpoint45
Offline
最后一次露面:2年10个月前
Joined:2017-03-03 01:55
I appreciate your response!

I appreciate your response! The module I bought came with no code so I'd assume the internal OTP has not been written yet. When I read in the OTP using SmartSnippets Toolbox, everything is blank until I get down to 0x47F08 so I'm not exactly sure. Any time I try to write to the OTP, I get "Received error message while checking whether burning was successful: FFFFFFFE". I looked around for that error message but could not find any solutions. I'm using SmartSnippets Toolbox v4.6.3.1570.

As for my question about the J-link. Is it required to use a J-link device to write to the internal OTP or should the way I'm trying (with only using RX and TX) also work?

mt_dialog.
Offline
最后一次露面:2 months 3 weeks ago
Staff
Joined:2015-06-08 11:34
Hi powerpoint45,

Hi powerpoint45,

If you find the answer helpfull, please mark it as accepted.

I suppose that you are looking at the OTP header (a seperate part of the OTP that constant values are stored, trimming values, bd addresses, etc are stored). The address 0x47F08 is the RF trimming value that is burned from the factory. The place that your image should be stored is the tab that indicates OTP Image. Regarding the burning procedure, you will have to apply VPP voltage in order for the OTP to be burned, please check the AN-B-020:End product testing and programming guidelines.pdf.

关于jlink和刻录OTP,智能代码段提供两个接口,用于访问58x系列(打开工具时,您可以选择选择JTAG或OTP),无论是JTAG还是UART,都可以刻录通过UART的OTP。

谢谢mt_dialog.

powerpoint45
Offline
最后一次露面:2年10个月前
Joined:2017-03-03 01:55
非常感谢你的

非常感谢你的help, you have cleared up my main questions. I hate to bother you again, but after I burned the sps_device_580.hex file to the OTP, it does not run that program on boot-up. I can use the "booter" and run the program but it is not running the program on OTP at bootup. Do you have any idea why this would be? I have read in the OTP image and it looks like the program is identical to the hex file. Is there some sort of boot flag that needs to be set? Do I need to set "Application Flag 1" and "Application Flag 2" to "yes". Anytime I change the header and press burn I get a popup that says "DMA length (0 words) should be no smaller than the image file code length (4740 words). Do you want to continue" so I think I'm doing something wrong. I never pressed continue because I don't know what that message is about.

EDIT: OK so it looks like I got it working. I restarted the program and was able to burn the header with "Application Flag" 1 and 2 to "yes". Thank you so much for all your help.

PS: I'm extremely impressed by the customer support here.

mt_dialog.
Offline
最后一次露面:2 months 3 weeks ago
Staff
Joined:2015-06-08 11:34
Hi powerpoint45,

Hi powerpoint45,

只是为了验证,是的,您必须刻录应用程序标志,以便通过执行ove ove,而不是通过执行界面扫描代码(扫描SPI,UART,I2C for外部设备来启动OTP代码。从那里启动)。关于DMA长度,如果您在扩展睡眠中运行(DSP正在运行),您可以将DMA长度留给零(它将将所有内存内容复制到Sysram)。

谢谢mt_dialog.

VANESSA HM
Offline
最后一次露面:10个月前1年
Joined:2018-01-31 23:11
Hello powerpoint45,

Hello powerpoint45,
Can you share with me the setup or steps to load the boot in the chip?
问候。

powerpoint45
Offline
最后一次露面:2年10个月前
Joined:2017-03-03 01:55
你好!I have created a video

你好!我创建了一个视频,显示了我如何设置它:
YouTube link