Issue with Smartsnippet for firmware download with Jlink

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

Dear Support,

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

我们的测试台兼容使用RAM中的模块(使用Keil调试和运行测试)。
但我们无法使用SmartSnippet刻录OTP。
有时它运行但大部分时间我们都会收到以下错误:

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

我们得到了FAE主管,向我们发送了刻录OTP的文档(“编程参考设计的”用户指南“),并且由于此文档和您的原理图,我们检查了硬件设置与您的硬件设置非常相似。

How can we manage this error ?

THanks,
best regards,
奥利维尔

Device:
MT_dialog
Offline
Last seen:1 week 2 days ago
工作人员
加入: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 9 months ago
加入:2014-01-23 16:49
Hello,

Hello,

编程供应是6.8V,SmartSnippet的修订为3.8,最后一个修订版似乎专用于SDK 5.0?

我们have 1000 board waiting for their firmware...

最好的祝福,
奥利维尔

MHv_Dialog
Offline
Last seen:3 days 15 hours 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 9 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 9 months ago
加入:2014-01-23 16:49
来自Smartsnippet 3.9的饲料:

来自Smartsnippet 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
发现Cortex-M0 R0P0,小endian。
选择了BTLE设备。
Using default baudrate: 57600 Bd.
and after I get the prompt with no more informations

olivier perrier
Offline
Last seen:4 years 9 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:2 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 week 2 days ago
工作人员
加入: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:\用户\ ******** \ SmartSnippets \资源

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 Flash芯片添加到代码中支持的列表中,请更改默认值。
#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:2 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:2 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 week 2 days ago
工作人员
加入: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