Flash programmer LX2160A_RDB shows 1 xspi flash memory,how to get to show another with chip select?

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

Flash programmer LX2160A_RDB shows 1 xspi flash memory,how to get to show another with chip select?

1,346 次查看
MarkoPolo
Contributor I

Hi,

I am using CodeWarrior Studio and TAP device just for flashing.

The flash programmer LX2160A_RDB profile shows correctly 1 xspi flash memory, but how do I show the other which is of same size and brand which is behind a chip select?
In U-Boot I can use sf probe 0:0 and sf probe 0:1 to switch active flash memory,
How do I do this in CodeWarrior?

fl.add_device({"alias": "xspi", "name": "MT35XU512ABA", "address": 0x0, "ws_address": 0x18000000, "ws_size": 0x1FFFF, "geometry": "8x1", "controller": "FSPI"})

 

0 项奖励
回复
2 回复数

1,249 次查看
LFGP
NXP TechSupport
NXP TechSupport

you will to add an additional device on the Flash Programmer. (AN5398) The document explains how to use the Flash Programmer SDK to support additional flash devices on the Flash Programmer in CodeWarrior™ Development Studio for ARMv8 Processors by creating new programming algorithms and support files.

Please also check the "7 flash programmer" chapter into to the ""ARMv8 targeting manual"" 

0 项奖励
回复

1,298 次查看
MarkoPolo
Contributor I

There are two 64MB flash memories on the card, ie total 128MB:

First one seems to be accessible with:
fl.add_device({"alias": "xspi", "name": "MT35XU512ABA", "address": 0x0, "ws_address": 0x18000000, "ws_size": 0x1FFFF, "geometry": "8x1", "controller": "FSPI"})

For Lauterbach it would be:

FLASHFILE.Create 0x0000000--0x3FFFFFF 0x20000 Byte /DIEBASE 0x0

 

For accessing 2nd Flash memory:

For Lauterbach it would be:

FLASHFILE.Create 0x4000000--0x7FFFFFF 0x20000 Byte /DIEBASE 0x4000000

 

What should I change in following to make it pop up and work:

fl.add_device({"alias": "xspi", "name": "MT35XU512ABA", "address": 0x4000000, "ws_address": 0x18000000, "ws_size": 0x1FFFF, "geometry": "8x1", "controller": "FSPI"})

Kindly,

MarkoPolo

0 项奖励
回复