Segger J-Flash settings with K8x and QSPI

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Segger J-Flash settings with K8x and QSPI

跳至解决方案
3,128 次查看
deniscollis
Contributor V

I'm attempting to program a K81 and QSPI (Micron MT25QL128 - 16MB, single die).  Segger J-Flash V7.54c shows error: 

Timeout while preparing target, RAMCode did not respond in time. (PC = 0x00000000, CPSR = 0x00000000, LR = 0x61000000)!
Failed to prepare RAMCode using RAM
Error while determining flash info (Bank 1 @ 0x68000000)
Failed to auto program target

The J-Flash Project Info:

deniscollis_0-1632774047039.png

Has anyone encountered this, and can figure what's going on?

Thanks,
Denis

标记 (3)
0 项奖励
回复
1 解答
3,080 次查看
deniscollis
Contributor V

 J-Flash/J-Link V6.50a works perfectly. There's a bug in V7.45c, which I have reported to Segger.

Update Jan 20, 2022 from Segger:

Upcoming release of Segger J-Link/J-Flash will include fix for this issue.

The issue was due to a speed optimization that relied on the availability of an external reference clock, RTCK, which is not the case with many devices, including the NXP K8x.

Update Jan 25, 2022:

Segger J-Link/J-Flash V7.60f available for download.  Fix for K8x issue included in this release.

在原帖中查看解决方案

0 项奖励
回复
3 回复数
3,081 次查看
deniscollis
Contributor V

 J-Flash/J-Link V6.50a works perfectly. There's a bug in V7.45c, which I have reported to Segger.

Update Jan 20, 2022 from Segger:

Upcoming release of Segger J-Link/J-Flash will include fix for this issue.

The issue was due to a speed optimization that relied on the availability of an external reference clock, RTCK, which is not the case with many devices, including the NXP K8x.

Update Jan 25, 2022:

Segger J-Link/J-Flash V7.60f available for download.  Fix for K8x issue included in this release.

0 项奖励
回复
3,123 次查看
nxf56274
NXP Employee
NXP Employee

Hi,

 

When you use jFlash, you doesn't configure the QSPI. So the external ram can't be used.

 

Have a great day,

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 days after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 项奖励
回复
3,109 次查看
deniscollis
Contributor V

@nxf56274I'm not sure what you're saying. There is no external RAM, only the K81 with its onboard internal RAM.

As I understand the process, in order to write to the external QSPI flash, j-Flash/J-Link first downloads code to the MCU's internal RAM, sets the program counter and starts execution.  Thereafter, J-Link/J-Flash sends instructions and data to the RAM resident code, which relays it to the external QSPI flash.

Thanks,
Denis

0 项奖励
回复