Issue with Smartsnippet for firmware download with Jlink

12 posts / 0 new
Last post
olivier perrier
Offline
Last seen:4 years 10 months ago
加入:2014-01-23 16:49
Issue with Smartsnippet for firmware download with Jlink

Dear Support,

我们使用sdk3.0.6。
We are in our first product series and get a big issue for burning the OTP on the panasonic modules.
We try to burn our modules using a Jlink accross Smartsnippets in command lines (bute get the same issue using smartsnippets in GUI)

我们的测试台可以兼容在RAM中使用我们的模块(使用Keil debug和run进行测试)。
但是我们不能用Smartsnippets烧录OTP。
有时会运行,但大多数情况下会出现以下错误:

“读xxx xxx.hex字节的文件
Started burning memorywith 20168 bytes at address 0x40000
Failed reading emmory at address 81FE8
OTP内存刻录失败“

我们得到了FAE主任给我们发来的文件烧OTP(“用户指南编程参考设计Provisionnal”),并感谢这个文件和您的示意图,我们检查了硬件设置非常类似于您的。

How can we manage this error ?

THanks,
best regards,
奥利维尔

Device:
MT_dialog
Offline
Last seen:1个月2周前
工作人员
加入:2015-06-08 11:34
Hi olivier perrier,

Hi olivier perrier,

What is the version of smart snippets you are using ? Can you please give it a try with the latest version. Also please check the OTP's programming supply.

Thanks MT_dialog

olivier perrier
Offline
Last seen:4 years 10 months ago
加入:2014-01-23 16:49
Hello,

Hello,

编程源是6.8V,smartsnippets的版本是3.8,上一个版本似乎是专用于SDK 5.0?

We have 1000 board waiting for their firmware...

顺致敬意,
奥利维尔

MHv_Dialog
Offline
Last seen:1 month 1 week ago
工作人员
加入:2013-12-06 15:10
Hi Olivier,

Hi Olivier,

SmartSnippets的最新版本不是专门针对SDK5的。请确保与电路板的J-link连接尽可能短,并且接地牢固。VPP必须清洁且不得超过6.8V(将其设置为6.75V以确保。我明天会安排一个模块(美国西海岸),看看我是否会看到任何问题。我也会尝试有人直接联系你(在你的时区)。

olivier perrier
Offline
Last seen:4 years 10 months ago
加入:2014-01-23 16:49
好的,谢谢你的回答。我们

好的,谢谢你的回答。我们将重新检查这些Vpp和地面。
我重新尝试3.9版本并反馈结果。
It is not really clear crystal that when we get last revisions that 3.9 is not dedicated to SDK 5
(Smart Snippets WIN32 Installer version 3.9 for SDK5). Does it means it is the minimum revision for SDK 5 ?

olivier perrier
Offline
Last seen:4 years 10 months ago
加入:2014-01-23 16:49
来自SmartSnippets 3.9的源:

来自SmartSnippets 3.9的源:

1/新版本似乎将我的十六进制文件视为空(已选择文件,但尚未选择任何文件请选择要下载的文件作为错误消息)

2/尝试在命令行中下载时:
TotalIRLen = ?, IRPrint = 0x..000000000000000000000000
TotalIRLen = ?, IRPrint = 0x..000000000000000000000000
Found SWD-DP with ID 0x0BB11477
FPUnit: 4 code (BP) slots and 0 literal slots
发现皮质-M0 r0p0,小端部。
已选择BTLE设备。
Using default baudrate: 57600 Bd.
and after I get the prompt with no more informations

olivier perrier
Offline
Last seen:4 years 10 months ago
加入:2014-01-23 16:49
Hello,

Hello,

News from our hardware investigation:
Ground is ok, Vpp too. Did you success with your programming by your side ?

顺致敬意,
奥利维尔

slvick0f1
Offline
Last seen:3 months 2 weeks ago
加入:2015-10-02 14:47
Now I'm getting a new error

Now I'm getting a new error when I try to reprogram the part. "Failed reading memory at address 81FE8"
Its seems that this 81FE8 failure error has happened with many other users. Is this due to some bug within Smartsnippets?
This SmartSnippets issue has really got me stumped.

I don't think it is a Flash issue, because I can read to, write to, and erase Flash from my firmware.
I am able to run and debug from the Keil environment with no problem.
I have tried removing and re-installing Smart Snippets to no avail
I have tried running Smart Snippets from 2 different computers, same problem
The 81FE8 problem always stops Smart Snippets from working
It seems that many others have had this problem, but can't find any real solutions posted in the Forum

谢谢你的帮助。

MT_dialog
Offline
Last seen:1个月2周前
工作人员
加入:2015-06-08 11:34
Hi slvick0f1,

Hi slvick0f1,

I suppose that you dont use a developement kit but a custom board, What kind of flash you are using ?
Please try the below changes in the flash programmer project that is located in the utilities folder compile and place the compiled binary in the following directory:
C:\Users\*******\SmartSnippets\resources

1) Increase timeout(x10) because the erase time is 30 seconds for some chips. File spi_flash.h #define MAX_READY_WAIT_COUNT 2000000
2) 当不支持SPI闪存时,增加默认大小。如果不想将SPI闪存芯片添加到代码中支持的列表中,请更改默认值。
#define SPI_FLASH_DEFAULT_SIZE 262144 // SPI Flash memory in bytes
3) In the programmer.c change the type of "size" to 32 bit unsigned int "static int8_t erase_flash_sectors(uint32_t starting_address, uint32_t size)".

Hope that solves your issue.
Thanks MT_dialog

slvick0f1
Offline
Last seen:3 months 2 weeks ago
加入:2015-10-02 14:47
Yes, I have a custom board

Yes, I have a custom board and using W25X20CLUXIG Flash. I did not have any issues with SmartSnippets at all until recently when I started trying to get the SUOTA working. I followed your instructions in the latest tutorial, tried downloading the resultant fw_multi_part_spi.bin (attached), and ever since SmartSnippets has been giving me problems. I've tried uninstalling, reinstalling, and can't get back to a working version.

丙氨酸achment:
slvick0f1
Offline
Last seen:3 months 2 weeks ago
加入:2015-10-02 14:47
我试过你的改变,但是

我试过你的改变,但是still have the same problem. Here is the log file. Does the "Corrected register" note below offer any further clues as to the problem?

[INFO @16-06-07 14:27:52] Firmware File C:\Users\Steve\SmartSnippets\resources\jtag_programmer.bin has been selected for downloading.
[INFO @16-06-07 14:27:52] Cortex-M: Debugger tries to set PC to odd value. Corrected register value from 0x000800B5 to 0x000800B4
[INFO @16-06-07 14:27:52] Successfully downloaded firmware file to the board.
[INFO@16-06-07 14:27:52]已成功配置SPI闪存端口和引脚。
[ERROR @16-06-07 14:28:41] Failed reading memory at address 81FE8.
[ERROR @16-06-07 14:28:41] SPI Memory erasing failed.

MT_dialog
Offline
Last seen:1个月2周前
工作人员
加入:2015-06-08 11:34
Hi slvick0f1,

Hi slvick0f1,

Please try to increase the size of your flash in smart snippets to 0x40000 in the flash programming tab in the upper right corner, and give it another try, including the changes mentioned above.

Thanks MT_dialog