了解更多常见问题解答教程

6个帖子/ 0新
最后一篇
ghschwab
离线
Last seen:4 months 1 week ago
加入:2016-07-25 10:54
Issues programming Flash

嗨,大家好,

we have just finished the first prototypes of our device and are ready to switch from the daughterboard to our own hardware. Unfortunateley, we are running into issues when it comes to programming the external flash. Using the SmartSnippets Toolbox, we can connect to the device via QSPI, but we can't read data from the flash or write to it.
We can't read the partition table.
The hardware is the same as in the starter kit, except that the flash is for 3V supply instead of 1.8V.
QSPI VDD IO提供3.3V,电压选择的跳线已设置为3 V.

Do you have any pointers what we could be doing wrong?

谢谢!

关键词:
设备:
MT_dialog
离线
Last seen:2天前1周
职员
加入:2015-06-08 11:34
Hi ghschwab,

Hi ghschwab,

我想它是一个681,所以附着什么样的闪光?我想它不像在SDK中默认使用的那个,因为所有这三个都是1.8V?由于您使用SDK不支持的四级SPI闪光灯,因此您需要根据SDK / Memory / Readme.md文件中的Readme文件实现该特定闪存的驱动程序。之后,您需要在UartBoot.bin中添加新驱动程序(automode中的Uartboot.bin运行)重建CLI_Programmer(它将重建UartBoot.bin并在CLI_Programmer中包含UartBoot.bin)。之后,您需要在SS工具箱中替换默认的UARTBOOT.BIN文件(因此您必须拍摄实现新闪光驱动程序的UARTBOOT.BIN文件并将其粘贴到\ DIASEMI \ SmartsnippetsStudio \ Toolbox \ Common_Resources)。关于你无法读取分区表的事实(我想通过智能代码盒工具箱尝试这样做)智能代码段的智能代码段主题是什么样的错误?如果Flash为空,则只要SDK启动时,FW就会将没有读取的分区以读取。V33始终打开,因此不需要特殊处理以便启用。

Thanks MT_dialog

ghschwab
离线
Last seen:4 months 1 week ago
加入:2016-07-25 10:54
感谢您的答复!

感谢您的答复!It is a 681, and the flash we are using is a W25Q80DV, so very similar to the supported type, except that flash device type is different (0x40 instead of 0x60). I have added a new, modified header file in the memory/include section of my project. Do I also need to do this in the uartboot project? I have tried doing this and changed the dg_configFLASH_DEVICE_TYPE setting and the dg_configFLASH_HEADER_FILE to the new flash, AUTO_DETECT is 0. I rebuilt the uartboot project, the libprogrammer project, and then the cli_programmer project. After that, I copied the uartboot.bin file from the release folder of the uartboot project to the common_resources folder of the SS Toolbox.
它没有造成任何变化,它就像我可以从QSPI内存中读取的那样,但一切都读取0.当试卷时,我收到以下错误消息:

[INFO QSPI Flash @18-02-28 09:29:47] Verify writing to qspi address 0x0 failed. Retrying ...

我还尝试将Auto_Detect设置为1,不幸的是没有区别。
I have noticed that the timestamp on the uartboot.bin file is from the time the uartboot project was built, it does not change after building cli_programmer.

Thanks for your help!

MT_dialog
离线
Last seen:2天前1周
职员
加入:2015-06-08 11:34
Hi ghschwab,

Hi ghschwab,

是的,您必须在UartBoot.bin文件中添加新闪存的支持。uartboot.bin文件是支持自动模式dgconfigflash_autodetect的唯一文件,您应该以这种方式留下。uartboot.bin是将下载到681的Sysram的文件,并将与CLI_Programmer通信以与闪存进行交互。因此,在SDK中附加新闪光灯(将新包含标题文件放在QSPI_AUTOMODE.C下的新闪存标头文件下,在条件#if flash_autodetect == 1中,然后您应该在flash_config_table中添加和flash_custom_config)。通过使用上述配置(定义DG_CONFIGFLASH_DEVICE_TYPE等)UARTBOOT.BIN将能够仅与定义的闪存进行交互。您提到的配置应仅应用于您的项目。重新构建CLI - 程序员应该构建UartBoot.bin,如果从UartBoot项目中删除生成的文件夹或更改项目配置时,应在构建CLI_Programmer时重新创建,并且您应该看到时间戳更改。在SS工具的情况下与闪存进行交互,您需要的是一个有闪存的uartboot.bin文件,该项目将通过可用的闪存驱动程序并正确地与闪光灯进行交互(也是您使用的闪光灯与默认相同)。您是否尝试过使用脚本才能与闪存进行交互并检查您是否能够下载FW? There is an issue with the SS toolbox and operates the flash in quad mode, if the flash is new and the QE bit is not set then SS will not be able to interact with the flash, try to operate the flash with the scripts (the QE bit then should then be set and you will be able to interact with Smart Snippets as well). The V33 is always active on the device so there is no need to for additional sw configuration.

Thanks MT_dialog

ghschwab
离线
Last seen:4 months 1 week ago
加入:2016-07-25 10:54
Thank you for your answer!

Thank you for your answer!
删除UartBoot.bin文件后,在构建CLI_Programmer项目时会重新创建它。
将文件复制到Common_resources文件夹,并使用SS工具没有重新启动该问题。我已经尝试过智能播放册内的脚本(菜单栏上的链接),但也没有工作。如果脚本直接在Windows下执行,请在命令行下执行?我也试过了这一点,但没有成功。这是什么程序?

谢谢,

MT_dialog
离线
Last seen:2天前1周
职员
加入:2015-06-08 11:34
Hi ghscwab,

Hi ghscwab,

是的,如果你有一个工作委员会,有效flash drivers for your flash, then for burning the flash you can run either directly run the scripts from the menu bar as the documentation indicates, or you can run the cli_programmer using the CLI interface (which is what the scripts automate the cli procedure and invoke the cli programmer). You will also find documentation on how to burn the flash i the UM-B-047 Getting Started.pdf and also you will be able to find a CLI guide in the UM-B-044 Software Platform Reference.pdf on Appendix B.

Thanks MT_dialog