1966486_en-US

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

1966486_en-US

1966486_en-US

Open-CMSIS-Packs: EmSA Example

GOAL

Learn how to import CMSIS packs into existing projects. In this particular project, CMSIS packs from EmSA will be used alongside the lpcxpresso55s16_mcan_interrupt_transfer example obtained from the LPCXpresso55s16 SDK.


ENVIRONMENT

This guide requires MCUXpresso IDE v11.9.1 or latest.


PROCEDURE

1. Import the lpcxpresso55s16_mcan_interrupt_transfer example into the workspace. In this example, SDK drivers, startup and board interface files are readily available. CAN pins are already routed and enabled.

OCP-EmSA-Step1.gifOCP-EmSA-Step1.gif

 

 

2. Launch Config Tools to configure the clock for the CAN peripheral

OCP-EmSA-Step2.gifOCP-EmSA-Step2.gif



3. Configure the clock for the CAN peripheral.

I. Set up the main clock so that it is generated from crystal or oscillator, and it is evenly dividable by 40 MHz.

OCP-EmSA-Step3.gifOCP-EmSA-Step3.gif

 

II. Change the PLL configuration an even multiple of 40 MHz

OCP-EmSA-Step3.2.gifOCP-EmSA-Step3.2.gif

 

III. Set the CAN divider to get a 40 MHz clock.

OCP-EmSA-Step3.3.gifOCP-EmSA-Step3.3.gif


4. Update the code.

OCP-EmSA-Step4.gifOCP-EmSA-Step4.gif

 

5. Add Open-CMSIS Packs to the project.

OCP-EmSA-Step5.gifOCP-EmSA-Step5.gif

 

6. Project set-up

I. Add the watchdog driver.

OCP-EmSA-Step6.gifOCP-EmSA-Step6.gif

 

II. Exclude the fsl_mcan.c module from the build. A dedicated version is included in the EmSA packs.OCP-EmSA-Step6.2.gifOCP-EmSA-Step6.2.gif


III. Add the main.c module from CMSIS template

OCP-EmSA-Step6.3.gifOCP-EmSA-Step6.3.gif

 

IV. Exclude or remove the original main source code mcan_interrupt_transfer.c file.

OCP-EmSA-Step6.4.gifOCP-EmSA-Step6.4.gif


7. Save and build the project.

OCP-EmSA-Step7.gifOCP-EmSA-Step7.gif

 

 




Open-CMSIS-Packs
Tags (1)
No ratings
Version history
Last update:
‎11-20-2025 04:28 AM
Updated by: