User Tools

Site Tools


manual:demos:olimex_lpc_l2294_crossworks

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
manual:demos:olimex_lpc_l2294_crossworks [2011/12/02 21:42]
voorburg created
manual:demos:olimex_lpc_l2294_crossworks [2017/05/03 12:59]
voorburg removed
Line 1: Line 1:
-====== ARM7 LPC2000 Olimex LPC-L2294 ======+====== ARM7 LPC2000 Olimex LPC-L2294 ​Crossworks ​====== 
 + 
 +===== Supported firmware update interfaces ===== 
 + 
 +^ UART           ^ CAN             ^ USB          ^ TCP/​IP ​      ^ SD-card ​     ^ 
 +| Yes            | Yes              | No           | No           | No           |
  
 ===== Development Environment ===== ===== Development Environment =====
 +
 {{:​manual:​lpc_l2294.jpg?​nolink&​200 |}} {{:​manual:​lpc_l2294.jpg?​nolink&​200 |}}
 +
 This demo is targeted towards the [[http://​www.olimex.com/​dev/​lpc-l2294.html|Olimex LPC-L2294]] board, with 1 MB external RAM and 2 MB external Flash EEPROM. This demo is targeted towards the [[http://​www.olimex.com/​dev/​lpc-l2294.html|Olimex LPC-L2294]] board, with 1 MB external RAM and 2 MB external Flash EEPROM.
  
Line 10: Line 17:
  
 ===== Building and programming the Bootloader ===== ===== Building and programming the Bootloader =====
 +
 Before the bootloader can be used, it needs to be built and programmed into the LPC2294'​s internal flash memory. The steps in this section only need to be done once. Before the bootloader can be used, it needs to be built and programmed into the LPC2294'​s internal flash memory. The steps in this section only need to be done once.
  
Line 16: Line 24:
 The bootloader program is now ready to be programmed into the internal flash memory of the LPC2294. Using your favorite programmer, flash the bootloader using one of the following files, depending on what file type your programmer supports: The bootloader program is now ready to be programmed into the internal flash memory of the LPC2294. Using your favorite programmer, flash the bootloader using one of the following files, depending on what file type your programmer supports:
  
-  * \Target\Demo\ARM7_LPC2000_Olimex_LPC_L2294_Crossworks\**Boot**\bin\**openbtl_olimex_lpc_l2294_20mhz.elf** +  * \Target\Demo\ARM7_LPC2000_Olimex_LPC_L2294_Crossworks\**Boot**\bin\**openblt_olimex_lpc_l2294_20mhz.elf** 
-  * \Target\Demo\ARM7_LPC2000_Olimex_LPC_L2294_Crossworks\**Boot**\bin\**openbtl_olimex_lpc_l2294_20mhz.srec**+  * \Target\Demo\ARM7_LPC2000_Olimex_LPC_L2294_Crossworks\**Boot**\bin\**openblt_olimex_lpc_l2294_20mhz.srec**
  
-===== Configuring Microboot ​===== +===== Building the Demo Program ​=====
-The Microboot utility needs to be configured to connect to the correct COM-port and to communication at the correct baudrate:+
  
-  * Start Microboot by double-clicking "​\Host\**MicroBoot.exe**"​. 
-  * Click the "​**Settings**"​-button and select "​**OpenBLT using UART**"​ from the dropdown box. 
-  * Click the "​**Options**"​-button to configure the communication parameters. 
-    * Select the PC's **COM-port** that the LPC-L2294 board is connected to. 
-    * Set the baudrate to **57600** bits/sec. 
- 
-Once you saved the settings by clicking the "​**OK**"​-button twice, you can close Microboot by clicking the "​**Cancel**"​-button on the main screen. Microboot is now ready for action! 
- 
-===== Building and downloading the Demo Program ===== 
 Simply open the project from within CrossWorks. The project file is located at: \Target\Demo\ARM7_LPC2000_Olimex_LPC_L2294_Crossworks\**Prog**\ide\ Simply open the project from within CrossWorks. The project file is located at: \Target\Demo\ARM7_LPC2000_Olimex_LPC_L2294_Crossworks\**Prog**\ide\
  
 The output file is The output file is
-  * \Target\Demo\ARM7_LPC2000_Olimex_LPC_L2294_Crossworks\**Prog**\bin\**demoprog_olimex_lpc_l2294_20mhz.srec** 
  
-To download this **demoprog_olimex_lpc_l2294_20mhz.sx** (or .srec) file to the remaining flash memory using the bootloader, start the **Microboot** program and click the "​**Browse**"​-button. Browse to the "\Target\Demo\ARM7_LPC2000_Olimex_LPC_L2294_GCC\**Prog**\bin\" directory and select the **demoprog_olimex_lpc_l2294_20mhz.sx** file to start the download. ​+  ​* \Target\Demo\ARM7_LPC2000_Olimex_LPC_L2294_Crossworks\**Prog**\bin\**demoprog_olimex_lpc_l2294_20mhz.srec**
  
-{{:​manual:​lpc2000_download.png?​|}}+===== Firmware update procedure =====
  
-Once the download ​completed, ​the newly programmed software will be started by the bootloader. You can verify this by checking that the status LED blinks. Congratulations! That's all there is to using the bootloader.+To download the demo program \Target\Demo\ARM7_LPC2000_Olimex_LPC_L2294_Crossworks\**Prog**\bin\**demoprog_olimex_lpc_l2294_20mhz.srec** using the bootloader, follow ​the instructions in the following links, depending on the communication interface you intend ​to use:
  
 +  * [[manual:​uart_demo|Firmware updates using the UART communication interface]]
 +  * [[manual:​can_demo|Firmware updates using the CAN communication interface]]
  
 +===== Programming external flash EEPROM =====
  
 +The Olimex LPC-L2294 board has an additional 2MB of external Intel C3 flash. This demo includes support for programming this external flash EEPROM with the bootloader. This also demonstrates the hook function functionality through which additional memory devices can be supported in the bootloader. To enable programming of the external flash EEPROM, open "​\Target\Demo\ARM7_LPC2000_Olimex_LPC_L2294_Crossworks\**Boot**\blt_conf.h"​ and change the value of BOOT_NVM_HOOKS_ENABLE:​
  
 +<​code>​
 +#define BOOT_NVM_HOOKS_ENABLE ​          (1)
 +</​code>​
  
  
  
 +After this, follow the steps outlined above, to rebuild and reprogram the bootloader and user program.  ​