Using Hardware Interrupt with STM32 Nucleo F767ZI board

6 visualizaciones (últimos 30 días)
Iarlaith
Iarlaith el 7 de En. de 2025
Editada: Nivedita el 16 de En. de 2025
I want to use a hardware interrupt, in particular, the TXE flag on Simulink, however I have found that there does not appear to be a hardware interrupt block in the simulink support package for stm32 nucleo boards.
The hardware interrupt blocks for STM32F4 Discovery and the ARM Cortex-Mx don't give any errors but I cannot imagine that using them would be correct.
Is there a way to get the TXE flag for the STM32 Nucleo F767ZI on simulink or should I just restart my project on the STM32CubeIDE instead.

Respuestas (1)

Nivedita
Nivedita el 16 de En. de 2025
Editada: Nivedita el 16 de En. de 2025
I would suggest that if you prefer to stay within Simulink, then you could create a custom S-Function in Simulink to handle the TXE flag interrupt. This involves writing C code to interact with the hardware directly and integrating it with Simulink using an S-Function block.
(or)
Similar to an S-Function, you can use a MATLAB Function block to call custom C code. This code can interact with the STM32 Nucleo board to manage the TXE flag.
However, if you do not want to go through the trouble of either of the above options, a more straightforward approach would be to use STM32CubeIDE since it can provide comprehensive support for hardware interrupts, including the TXE flag.

Productos


Versión

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by