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"})
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""
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