LS1021a-TWR reading NOR-Flash with CodeWarrior TAP

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

LS1021a-TWR reading NOR-Flash with CodeWarrior TAP

跳至解决方案
2,358 次查看
janbrand
Contributor II


Hi there,

I want to dump the whole content of NOR-Flash on my LS1021a-TWR board to a binary. The debug connection with the CodeWarrior TAP is running, but when the TAP tries to read the flash ID an Error apperas (jpg added to this post).

What means the No source available for "0x00000000 (0x00000000)() " ?

Is there a mistake in my adresses or have i add any file for the twr board?

kind regards,

Jan Brand

标签 (1)
0 项奖励
1 解答
2,092 次查看
addiyi
NXP Employee
NXP Employee

Settings from pic 1 looks fine. But, in Flash Programmer Task make sure you have the settings from attached file (file1). Also, dumping entire NOR will take a while.

Also, if still doesn't work for you, please share the log from Flash Programmer Console (file2).

Adrian

在原帖中查看解决方案

0 项奖励
5 回复数
2,092 次查看
Pavel
NXP Employee
NXP Employee

CodeWarrior initialization file for the LS1021A-TWR board configures NOR Flash using base address of 0xE8000000.

See attached file.

Have a great day,
Pavel

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

0 项奖励
2,092 次查看
addiyi
NXP Employee
NXP Employee

For LS1 boards, NOR is mapped starting with 0x60000000, since fixed memory map is used (See LS1021ARM).

Adrian

0 项奖励
2,092 次查看
janbrand
Contributor II

Hi,

I'm a bit confused, i guess...

That's what i set in debug configurations:

- in Target settings

    - see pic 1 -> Target type: LS102xA_Rev1_ConfigChain.cfg

                        -> Initialize target script "LS1021A_TWR_Init.tcl"

                          -> Memory configuration file: "LS1021A_TWR.mem"

And now i've set the Target Ram Address in the ARM Flash Programmer Task to 0x80000000, the size to 0x7fffffff. The base address from the NOR-Flash i set to 0x60000000.

Running the Debug with the Flash Programmer Task seemes to works, but finishes not, like you can see in pic 2

Jan

0 项奖励
2,093 次查看
addiyi
NXP Employee
NXP Employee

Settings from pic 1 looks fine. But, in Flash Programmer Task make sure you have the settings from attached file (file1). Also, dumping entire NOR will take a while.

Also, if still doesn't work for you, please share the log from Flash Programmer Console (file2).

Adrian

0 项奖励
2,092 次查看
addiyi
NXP Employee
NXP Employee

Did you use an initialization file? Also, in flashdump_1.jpg, you set the Target RAM address to 0x00000000 and this is not correct, unless you initialize OCRAM from that address.

Init files provided with CW, initialize OCRAM from 0x10000000 and DDR from 0x80000000. So, you shroud use Target RAM address starting with these addresses (depending where do you what to have flash programmer algorithm run or what mem you initialized).

Adrian

0 项奖励