This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
manual:demos:infineon_xmc1400_boot_kit_gcc [2017/04/24 14:49] voorburg created |
manual:demos:infineon_xmc1400_boot_kit_gcc [2017/04/24 15:02] voorburg [Building and programming the Bootloader] |
||
---|---|---|---|
Line 34: | Line 34: | ||
Before the bootloader can be used, it needs to be built and programmed into the XMC1400'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 XMC1400's internal flash memory. The steps in this section only need to be done once. | ||
- | When using IAR EWARM, simply open the workspace from within the Embedded Workbench. The workspace file (xmc1400.eww) is located at: \Target\Demo\ARMCM0_XMC1_XMC1400_Boot_Kit_IAR\**Boot**\ide\. Once opened, select //Project->Rebuild All// from the menu to compile all the bootloader sources and link them together into the final executable. | + | Set the project as the active project in Eclipse. This is achieved by right-clicking the **Boot** project in the project navigator called //C/C++ Projects//. From the context menu, select //Set Active Project//. Next, select //Project -> Rebuild Active Project// from the menu to compile all the bootloader sources and link them together into the final executable. |
- | The bootloader program is now ready to be programmed into the internal flash memory of the XMC1400. Make sure the XMC1400 Boot Kit is connected to your PC via a USB cable. Next, select //Project -> Download and Debug (Ctrl+D)// from the menu to flash the bootloader program. Once done, you can start the bootloader program by selecting //Debug -> Go (F5)// from the menu. | + | The bootloader program is now ready to be programmed into the internal flash memory of the XMC1400. Make sure the XMC1400 Boot Kit is connected to your PC via a USB cable. Next, right-click the **Boot** project in the project navigator and select //Debug As -> Dave C/C++ Application// from the context menu to flash the bootloader program. This will launch the Debug perspective in Eclipse. Once done, you can start the bootloader program by clicking the green play button on the toolbar or by pressing F8 on the keyboard. |
Alternatively, you can use your favorite programmer to flash the bootloader using one of the following files, depending on what file type your programmer supports: | Alternatively, you can use your favorite programmer to flash the bootloader using one of the following files, depending on what file type your programmer supports: | ||
- | * \Target\Demo\ARMCM0_XMC1_XMC1400_Boot_Kit_IAR\**Boot**\bin\**openblt_xmc1400.out** | + | * \Target\Demo\ARMCM0_XMC1_XMC1400_Boot_Kit_GCC\**Boot**\Debug\**openblt_xmc1400.elf** |
- | * \Target\Demo\ARMCM0_XMC1_XMC1400_Boot_Kit_IAR\**Boot**\bin\**openblt_xmc1400.srec** | + | * \Target\Demo\ARMCM0_XMC1_XMC1400_Boot_Kit_GCC\**Boot**\Debug\**openblt_xmc1400.srec** |
+ | Note that after closing the debug session in Eclipse, the on-board Segger J-Link interface halts the CPU. If you want to continue running the bootloader program, a reset of the microcontroller is needed. An easy method to achieve this is by disconnecting and then reconnecting the USB cable. | ||
===== Building the Demo Program ===== | ===== Building the Demo Program ===== | ||