Dear Cmake Tool,
I plan to use the LPC54606 and downloaded the SKD but it came with pre-configured with the LPC54608.
How do I change the MCU from one flavor to another?
Thx,
hy
First, a few concepts around the MCUXpresso SDK...
The SDK includes all the drivers and header files for a selected devices. The SDK will also include middleware that was selected during the build process.
Each NXP device has a "recommended board", there are instances where the recommended board features a different device that the one selected. Often times this is a superset device or some other software compatible device. Examples provided in the SDK are board specific, so they will target the specific board hardware and populated device. The included examples are developed and tested on functional development boards.
Porting an SDK example to custom hardware featuring a different device than the one included on an NXP development board will take some effort, but the structure of the SDK should help make this a very doable process.
For this specific example, the full LPC54606 SDK will include the SDK files for the LPC54606 device and will include the SDK files for the LPC54608 device (these are included in order to support the LPCXpresso608 board, that is the recommended board for the LPC54606).
The example projects are based on boards, since that is how NXP tests and releases the example projects. There are no example projects provided for devices only. The MCUXpresso IDE does have templates that it uses to create empty (or “hello world”-like) projects for devices. However, there is not an equivalent project generator provided by NXP for GCC / CMake.
The folder structure of the SDK is very consistent and this will allow for the CMakeList file to be relatively easy to convert to a new device.
General steps for converting a CMake project for LPCXpresso54608 to a custom LPC54606 board:
The application should compile at this time. Depending on the example application you will likely need to review how the board.h file was used and update the defines to match your specific hardware.