User Tools

Site Tools


manual:demos:infineon_xmc4700_relax_kit_cmake

ARM-CM4 XMC4 Infineon XMC4700 Relax Kit CMake

Supported firmware update interfaces

RS232 CAN CAN FD USB TCP/IP SD-card Modbus RTU
Yes Yes No Yes Yes Yes No

Development Environment

This demo is targeted towards the Infineon XMC4700 Relax Kit board, with 2048 kB internal Flash EEPROM and 352 kB internal RAM.

These demo programs are configured for building with CMake, to showcase the use of the OpenBLT CMakeLists.txt interface targets.

To program the bootloader into the internal flash, the on-board J-Link debugger interface can be used, in combination with the Segger J-Flash Lite utility. However, this is not required if you have another means of programming the internal flash.

Toolchain configuration

To build the demo programs it is assumed that CMake, Ninja, and the ARM GNU Toolchain are installed on your PC and available at the system PATH. You can run the following commands to check if this is the case:

cmake --version
ninja --version
arm-none-eabi-gcc --version

Building and programming the Bootloader

Before the bootloader can be used, it needs to be built and programmed into the XMC4700's internal flash memory. The steps in this section only need to be done once.

Start by generating the build environment using CMake. Open a command prompt in directory \Target\Demo\ARMCM4_XMC4_XMC4700_Relax_Kit_CMake\Boot\build and run the command:

cmake -G "Ninja" ..

To build the bootloader, run these commands from the same directory:

ninja clean
ninja all

The output will look something like this:

C:\Work\software\OpenBLT\Target\Demo\ARMCM4_XMC4_XMC4700_Relax_Kit_CMake\Boot\build>ninja clean
[2/2] Cleaning all built files...
Cleaning... 1 files.

C:\Work\software\OpenBLT\Target\Demo\ARMCM4_XMC4_XMC4700_Relax_Kit_CMake\Boot\build>ninja all
[83/83] Linking C executable openblt_xmc4700.elf
   text    data     bss     dec     hex filename
  47508     228   22896   70632   113e8 openblt_xmc4700.elf

The bootloader program is now ready to be programmed into the internal flash memory of the XMC4700. Using your favorite programmer (i.e. OpenOCD or Segger J-Flash Lite), flash the bootloader using one of the following files, depending on what file type your programmer supports:

  • \Target\Demo\ARMCM4_XMC4_XMC4700_Relax_Kit_CMake\Boot\build\openblt_xmc4700.elf
  • \Target\Demo\ARMCM4_XMC4_XMC4700_Relax_Kit_CMake\Boot\build\openblt_xmc4700.srec

Building the Demo Program

Start by generating the build environment using CMake. Open a command prompt in directory \Target\Demo\ARMCM4_XMC4_XMC4700_Relax_Kit_CMake\Prog\build and run the command:

cmake -G "Ninja" ..

To build the demo user program, run these commands from the same directory:

ninja clean
ninja all

The output will look something like this:

C:\Work\software\OpenBLT\Target\Demo\ARMCM4_XMC4_XMC4700_Relax_Kit_CMake\Prog\build>ninja clean
[2/2] Cleaning all built files...
Cleaning... 1 files.

C:\Work\software\OpenBLT\Target\Demo\ARMCM4_XMC4_XMC4700_Relax_Kit_CMake\Prog\build>ninja all
[52/52] Linking C executable demoprog_xmc4700.elf
   text    data     bss     dec     hex filename
  13540      48   16708   30296    7658 demoprog_xmc4700.elf

The output file is

  • \Target\Demo\ARMCM4_XMC4_XMC4700_Relax_Kit_CMake\Prog\build\demoprog_xmc4700.srec

Firmware update procedure

To download the demo program \Target\Demo\ARMCM4_XMC4_XMC4700_Relax_Kit_CMake\Prog\build\demoprog_xmc4700.srec using the bootloader, follow the instructions in the following links, depending on the communication interface you intend to use:

manual/demos/infineon_xmc4700_relax_kit_cmake.txt · Last modified: by voorburg

GNU Free Documentation License 1.3 Powered by PHP Driven by DokuWiki