cancel
Showing results for 
Search instead for 
Did you mean: 

DALI Interface for STM32G MCU

KPras.1
Associate

Hi,

I am planning to implement DALI on STM32G MCU, I have looked at the documentation but all the example projects are with STM32L1 or STM32F1 and the library provided by STM is based on IAR workbench. My questions are

  1. Can I implement DALI Slave on STM32G MCU?
  2. Can I use the library files provided in DALI002(based on STM32L1) directly in my project?

Thanks for your Help in Advance.

Best Regards,

Prasanna

1 ACCEPTED SOLUTION

Accepted Solutions
Imen.D
ST Employee

Hello @KPras.1​ and welcome to the Community =)

DALI can be ported to some another STM32 MCU. The DALI project has 2 parts:

  1. DALI stack is hardware independent
  2. HAL layer – hardware dependent

HAL layer are available for STM32F1, STM32L1 MCU, and there is no plan to port this to STM32G0.

The HAL layer should be ported from given MCU (F1, L1) to target MCU according hardware differences.

The DALI HAL layer is using only GPIO, Timer, EXTI interrupts and EEPROM storage, and those IP can differ between MCUs.

So, the HAL layer can be quite simple ported to another STM32 microcontroller, and you can do this according your needs (which GPIO used, which timer used).

Hope my answer helped you! 😊

Please mark my answer as best by clicking on the "Select as Best" button if it helped. This will help other users find that answer faster.

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen

View solution in original post

1 REPLY 1
Imen.D
ST Employee

Hello @KPras.1​ and welcome to the Community =)

DALI can be ported to some another STM32 MCU. The DALI project has 2 parts:

  1. DALI stack is hardware independent
  2. HAL layer – hardware dependent

HAL layer are available for STM32F1, STM32L1 MCU, and there is no plan to port this to STM32G0.

The HAL layer should be ported from given MCU (F1, L1) to target MCU according hardware differences.

The DALI HAL layer is using only GPIO, Timer, EXTI interrupts and EEPROM storage, and those IP can differ between MCUs.

So, the HAL layer can be quite simple ported to another STM32 microcontroller, and you can do this according your needs (which GPIO used, which timer used).

Hope my answer helped you! 😊

Please mark my answer as best by clicking on the "Select as Best" button if it helped. This will help other users find that answer faster.

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen