This article describes how to program the LPC4350 based 4,3" TouchGFX Demo Board with binaries produced by either of the compilers supported by TouchGFX.
Keil projects for the NXP LPC4350 based TouchGFX Demo board provide full flash loader support (internal and external flash) and can be used, as is, to download applications through a J-Link debugger. The remainder of this article details how to configure SEGGER J-Flash to program binaries built with gcc onto the board.
Note: Please see the article Overview: Compilers and IDEs for troubleshooting and general information.
If using the GNU GCC compiler for ARM, boards with NXPs LPC4350 MCU can flash an external, “Common Flash Interface” (CFI)-compliant NOR flash by using Segger J-Flash software with a J-Link debugger. The following describes, in detail, one process for flashing LPC4350 based boards, using the TouchGFX demo board 4.3", LPC4350 based, evaluation board as an example. The programming method described in this section can be generalized for other boards using the LPC4350 MCU and a CFI compliant NOR flash.
The SEGGER J-Flash software can be downloaded here.
- Open J-Flash and select “Create a new project”.
- Select “Options / Project Settings”. In the “Project Settings” pop-up select the CPU tab. Choose the “Device”radio button and press the “…” button to select a new device. Type “NXP” and select the
LPC4350_M4 (SPIFI)entry. Select Apply and OK to close the pop-up.
- Select “Target / Erase Chip (F4)”. J-Flash might complain about unknown version of the device. In that case press “Yes” and select
- Program external flash starting at address
14000000: Select “File / Open data file”. Select the
build/bin/. Select “Target / Program (F5)”.
- Power cycle target.