Adding HAL for new NXP Kinetis device K32L2B31


claude@...
 

Hi,

I need to add a new CPU "K32L2B31A" HAL from NXP to the NXP HAL module.
Can I do this by creating an external NXP module an using the ZEPHYR_EXTRA_MODULES variable to declare this new module ?
I tried this way without success because the build mechanism was searching this module in the Zephyr tree.
I think the problem is that my module must be known as an "hal_nxp" module which is in conflict with the Zephyr based "hal_nxp" module.
Is the best way to directly integrate this new CPU in the "hal_nxp" module repository ?

Regards

Claude Henry


Carles Cufi
 

Hi there,

 

Why don’t you send a Pull Request to the hal_nxp repository to add the HAL you need?

 

Thanks,

 

Carles

 

From: users@... <users@...> On Behalf Of Claude Henry via lists.zephyrproject.org
Sent: 23 September 2021 16:19
To: users@...
Subject: [Zephyr-users] Adding HAL for new NXP Kinetis device K32L2B31

 

Hi,

I need to add a new CPU "K32L2B31A" HAL from NXP to the NXP HAL module.

Can I do this by creating an external NXP module an using the ZEPHYR_EXTRA_MODULES variable to declare this new module ?

I tried this way without success because the build mechanism was searching this module in the Zephyr tree.

I think the problem is that my module must be known as an "hal_nxp" module which is in conflict with the Zephyr based "hal_nxp" module.

Is the best way to directly integrate this new CPU in the "hal_nxp" module repository ?


Regards

Claude Henry