lpcware

LPC1850A_4350A_SPIFI.cfx flashdriver issues

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by Meyer on Wed Oct 09 05:38:19 MST 2013
Hi Lpcxpresso-Team,
Iam working with this Hitex Evalboard lpc4350
http://www.hitex.com/index.php?id=3212
I´m using the LPC1850A_4350A_SPIFI.cfx flashdriver shipped with the lpcxpresso ide v6.0.2. i can flash and debug all fine , but..

When the Code is growing over a Flashsectorsize(64kb) i got erros.
Here lpcxpresso debug messages:
LPCXpresso Debug Driver v6.0 (Sep 10 2013 00:02:34 - crt_emu_lpc18_43_nxp build 1208)
Found chip XML file in C:/Program Files/CoDeSys Runtime Toolkit/Platforms/Native/LPC4330_Master/Projects/Firmware_M4_Hitex/Debug/LPC4350.xml
Emu(0): Conn&Reset. DpID: 4BA00477. Info: HID64HS12
JTAG Frequency: 3000 KHz. RTCK: False. Vector catch: False.
Packet delay: 4  Poll delay: 4.
Loaded LPC1850A_4350A_SPIFI.cfx: LPC18/43 8MB(64KB) SPIFI @0x14000000 (Dec  3 2012 10:26:10)  External Flash Device on SPI
NXP: LPC4350  Part ID: 0x00000000
Connected: was_reset=false. was_stopped=false
v LPCXpresso Free License - Download limit is 256K
Writing 29176 bytes to 14000000 in Flash (assumed clock: 204.0MHz)
Erased/Wrote page  0-0 with 29176 bytes in 5384msec
Flash write Done
Core reset only (VECTRESET)

Stopped: Breakpoint #1
I´m writing 29176 bytes in Flash only 1 Sector erased all fine.. I can step by step debug the code.


Here lpcxpresso debug messages:
LPCXpresso Debug Driver v6.0 (Sep 10 2013 00:02:34 - crt_emu_lpc18_43_nxp build 1208)
Found chip XML file in C:/Program Files/CoDeSys Runtime Toolkit/Platforms/Native/LPC4330_Master/Projects/Firmware_M4_Hitex/Debug/LPC4350.xml
Emu(0): Conn&Reset. DpID: 4BA00477. Info: HID64HS12
JTAG Frequency: 3000 KHz. RTCK: False. Vector catch: False.
Packet delay: 4  Poll delay: 4.
Loaded LPC1850A_4350A_SPIFI.cfx: LPC18/43 8MB(64KB) SPIFI @0x14000000 (Dec  3 2012 10:26:10)  External Flash Device on SPI
NXP: LPC4350  Part ID: 0x00000000
Connected: was_reset=false. was_stopped=false
v LPCXpresso Free License - Download limit is 256K
Writing 235652 bytes to 14000000 in Flash (assumed clock: 204.0MHz)
Erased/Wrote page  0-0 with 65536 bytes in 9646msec
Erased/Wrote page  1-1 with 65536 bytes in 9661msec
Erased/Wrote page  2-2 with 65536 bytes in 9642msec
Erased/Wrote page  3-3 with 39044 bytes in 6648msec
Flash write Done
Core reset only (VECTRESET)

Stopped: VectorCatch:HardF (PC was 0x1402E4AC) (VectorCatch)

The problem only occurs if more than one sector of the flashes is be written and erased. So the limit is 65536 bytes one sector.


Someone has  a solution or an idea?

SST39VF3201x_Hitex_LPC1850A_4350A.cfx
this driver also does not work for me, but this is another topic.

Pls help me with the Spifi ;)

Outcomes