Přeskočit na hlavní obsah

Intro

This directory contains a FreeRTOS project to build either a Blinky, or MPU demo for the RM46L852.

It is set up to blink LEDs on the Texas Instruments LAUNCHXL2-RM46 and the TMDXRM46HDK Development Kits.

The code related to the Main Demo Files can be found in the source directory. The code related to the board setup can be found in the BoardFiles directory

Building​

This demo can either be loaded into Texas Instrument's Code Composer Studio (CCS). or built using CMake.

CCS Build​

If building with CCS you need to install CCS, and then install the ARM Compiler Tools as well as the Hercules Safety MCUs device support targets.

After doing this, you can then open this directory in CCS, which will load up the project. If everything installed correctly you should then be able to build and flash to the board.

Please be aware there is a filter on CMakeLists.txt and the build directory in the CCS project.

This is to keep CCS from attempting to use resources generated with a CMAKE build. If a directory other than "build" is selected when building using CMAKE, CCS will attempt to use the the files in that directory, leading to build issues in CCS. At time of writing this can be fixed by right clicking the folder in CCS and selecting "Exclude from build".

CMake build​

When using CMake you will need to install a compatible version of the Arm GNU Toolchain and add this to your PATH.

After doing this inspect the demo_task.h file to see what the possible demo configurations are, and select your desired demo config.

The all options builds all combinations of these. Example Usage:

cmake -S . -B build;
make -C build all;

The generated binaries can then be found in the build directory. These binaries can then be flashed to the board by using Uniflash or by using CCS.

UART Output​

Rudimentary UART output is available by opening a Serial Connection to the board. The settings for the UART are a BAUD rate of 115200, 1 stopbit, and None Parity