Hello,
I have a NOR flash installed on a PCB, using the following pins (LPC2478):
P4.1 - P4.22 for address bus P3.0 - P3.15 for data bus P4.25 write enable P4.24 output enable P4.30 CS0
I have mapped a C module to 0x80000000, and instructed uv4 to configure the bus using this .ini file:
_WDWORD(0xE002C024, 0x10051555) ; _WDWORD(0xE002C018, 0x55555555) ; _WDWORD(0xE002C020, 0x55555554) ;
I have also setup the flash download set dialog with my NOR flash (it's a SST39). However, uv4 does not even try to program the NOR flash. Obviously I forgetting something. Can you help me?
I have augmented my bus configuration to include some EMC stuff, like this:
_WDWORD(0xE002C024, 0x10051555) ; _WDWORD(0xE002C018, 0x55555555) ; _WDWORD(0xE002C020, 0x55555554) ; _WDWORD(0xFFE08200, 0x81) ; _WDWORD(0xFFE08204, 0x2) ; _WDWORD(0xFFE08208, 0x2) ; _WDWORD(0xFFE0820C, 0x1F) ; _WDWORD(0xFFE08210, 0x1F) ; _WDWORD(0xFFE08214, 0x81) ; _WDWORD(0xFFE08218, 0x81) ;
to no avail...!
Ah, Keil have a sample Blinky program to program a SST39 and it works on my hardware (thanks Alexander for pointing that out!).
You are welcome!
Best regards Keil Support Team