LPC1850A_4350A_SPIFI.cfx flashdriver issues

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPC1850A_4350A_SPIFI.cfx flashdriver issues

492 Views
lpcware
NXP Employee
NXP Employee
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 ;)
0 Kudos
5 Replies

388 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Meyer on Thu Oct 10 07:00:08 MST 2013
Hey :)

The driver works well for me ;) great support thx
0 Kudos

388 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Thu Oct 10 03:04:40 MST 2013
I have produced a modified flash driver which may work for your board with the different SPIFI flash device on it. To try this out, extract the LPC18_43_SPIFI_16MB_256KB.cfx file from the attached zip file and place this into the directory:

C:\nxp\LPCXpresso_6.0.4_159\lpcxpresso\bin\Flash

[Change the root directory to match your installation version]

Then use the memory configuration editor to change the selected flash driver to use. [See the LPCXpresso User Guide for details of using the memory configuration editor.]

Please let us know if this modified flash driver works for you.

Regards.
LPCXpresso Support
0 Kudos

388 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Wed Oct 09 13:28:37 MST 2013
So it unfortunately looks like Hitex have changed the SPIFI flash device fitted to these boards then. We'll need to try to track one down in order to check this out.

In the meantime, you may be able to use the SPIFI flash driver project from the LPCXpresso examples directory to produce your own
http://www.lpcware.com/content/faq/lpcxpresso/user-loadable-flash-drivers

Regards,
LPCXpresso Support

0 Kudos

388 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Meyer on Wed Oct 09 07:48:24 MST 2013
Hey, thanks for ur fast reply ;)

Revision of the Board:
I´m not really know wehre i can find the Revision number, but the board was shipped on 09.04.2013. I think it´s the newest one.

BOOT jumper settings:
I checked the Bootjumpers all right. I can run and boot code from Spifi so i guess its fine.

Flash memory actually fitted to your board:
Spansion FL129P IFL -> Spifi

SST39VF3201-B -> parallel flash

Full details printed on the MCU fitted to your board:

Nxp LPC4350Fet256
PGC256.00 ESD122200AY


mass erase of the flash, resetting the board -> no success

I also tested this flash driver (LPC18_43_SPIFI_8MB_64KB.cfx) and i got the same problem. I guess that (LPC18_43_SPIFI_8MB_64KB.cfx) and (LPC1850A_4350A_SPIFI.cfx) exactly the same

Any idea? pls help me
0 Kudos

388 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Wed Oct 09 07:03:20 MST 2013
[Please close your duplicate thread]

I've just tried out programming a few test images here (up to 1MB in size) using both an LPC-Link1 and a Red Probe+ and see no problems programming the SPIFI flash on one of these boards.

This is most likely going to be a hardware issue I would think. Check...
[list]
  [*]Revision of board being used
  [*]BOOT jumper settings
  [*]Flash memory actually fitted to your board
  [*]Full details printed on the MCU fitted to your board
[/list]

and check what you find against...
http://www.lpcware.com/content/faq/lpcxpresso/lpc18-lpc43-support

It might also be worth doing a mass erase of the flash, resetting the board, and then seeing if you can program successfully - in which case something in your code may be putting the MCU into an odd state.

I would also suggest that you use the "correct" flash driver - LPC18_43_SPIFI_8MB_64KB.cfx - though this won't actually be causing your problems.
http://www.lpcware.com/content/faq/lpcxpresso/lpc18-lpc43-external-flash-drivers

Regards,
LPCXpresso Support
0 Kudos