Dialog Semiconductor customer support - SmartSnippet flashprogrammer https://support.dialog-semiconductor.com/resource-keywords/smartsnippet-flashprogrammer SmartSnippets Studio V1.6.3 CLI Issue :COM port is in use https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-tools/smartsnippets-studio-v163-cli-issue-com < div class = "字段field-name-taxonomy-forums字段-type-taxonomy-term-reference field-label-above">
Forums: 

Hi Dialog,
I recently updated smartsnipets studio v1.6.3 and was trying to use command line interface to erase/burn spi flash memory of da14585 using com-uart.
l have 20 DUTs and every DUT configured to different COM port . It is no problem to erase or burn one DUT at one time. But "COM is in use" would happened randomly at some DUTs when multiple DUTs run at the same time .Command line message shows connected COM port failed, COM is in use . Re-try or more re- try may passed.

logs:
C:\DiaSemi\SmartSnippetsStudio\Toolbox5\SmartSnippetsToolbox5.exe -type spi -chip DA14585-00 -com_port 9 -cmd erase -firmware C:\DiaSemi\SmartSnippetsStudio\Toolbox5\common_resources\flash_programmer_585.bin
Launching SmartSnippets Toolbox v 4.8.3.1804

Using default TxRx pair: P0_4, P0_5.
Connection to COM9 port has successfully opened.
Started download procedure...

***
Please press the hardware reset button on the board to start the download process.

Reset detected

***

***

***
Successfully disconnected from port COM9.
Successfully downloaded firmware file to the board.
Using default baudrate: 57600 Bd.
Connection to COM9 port has successfully opened.
Successfully disconnected from port COM9.
Successfully set SPI Flash gpios: CLK=P0_0, CS=P0_3, MISO=P0_5, MOSI=P0_6.
COM9 is in use. Please replug the board and try again.
Failed connecting to port COM9.
SPI Flash memory erasing failed.

Could you confirm my conclusion, that it is related to SmartSnippet or others ? How can I fixe it.

Best Regard!
Louis Wang

Device: 
2018年4月26日星期四02:12:02+0000 Louis Wang2 176327 at https://support.dialog-semiconductor.com https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-tools/smartsnippets-studio-v163-cli-issue-com#comments
工具箱,SPI闪存擦除。 https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-tools/toolbox-spi-flash-erase
论坛:
对话框Smartbond Bluetooth低能耗–工具摘要字段标签隐藏的字段类型文本“>

您好,

我们使用的是16位的SPI闪存MX25R1635F。
从SmartSnippet中擦除闪存时,我收到错误消息“SPI内存擦除失败”。
然后我开始调查原因。我从SDK构建了jtag\u programmer\u 585.bin,在这里,我设置SPI FLASH默认值以匹配MX25R1635F:

#define MX25R1635FŠu SIZE 2097152//0x1000000Mbit/8=0x200000=2097152 Mbyte
Šdefine MX25R1635FŠu PAGE 256

Šdefine SPI FLASHŠu default SIZE MX25R1635FŠSIZE//SPI FLASH memory SIZE in bytes
Šdefine SPI FLASHŠu default PAGE MX25R1635FŠSPI FLASH memory PAGE//SPI FLASH memory页面大小(以字节为单位)

我想以上是需要的,因为SDK flash程序员不会自动检测我们的flash,而不是将我们的flash添加到自动检测数组中,更容易将其添加为默认设置。

现在我再次尝试了SmartSnippet中的flash erase命令(完全擦除),接下来,我在“ACTION\u SPI\u ERASE”开关中添加了一个断点,以便从ACTION\u SPI\u ERASE中读取结果变量。返回的结果是0,所以一切正常,并且FLASH确实被擦除了。spi\u flash\u chip\u erase()不会超时,即使我们使用的是16位的flash,它需要更长的时间来擦除。但是,现在我观察到SmartSnippet输出了错误消息“SPI Memory erasing failed”。在SPI\u flash\u chip\u erase()返回之前,我猜是SmartSnippet内部的超时,它生成了错误消息,而不是jtag\u programmer\u 585.bin,您能确认我的结论吗,这是SmartSnippet中的内部超时,导致了错误,如果“是”,我是否有办法更改SmartSnippet中的超时设置?

敬礼,
Ciano Frost

Mon, 09 Apr 2018 07:57:57 +0000 ciano 169515分https://support.dialog-semiconductor.com https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-tools/toolbox-spi-flash-erase#comments