cancel
Showing results for 
Search instead for 
Did you mean: 

External Mode with STM32L476RG not working

MArvi.1
Associate II

Hi all.

I'm trying to run external mode simulation using:

  • Matlab R2022a.
  • CubeMx 6.2.0
  • STM32 Mat\Target(not sure which version)
  • Nucleo L476RG

I have created a simple LED example to test the external mode and I used the Embedded Coder to integrate it with the CubMX Project file. The problem is when i'm trying to run in external mode, I can't do it because the Monitor&Tune button is grayed out and I can't press it. In the Hardware Implementation settings, I have checked the External Mode at the Interface section. Could you guys please help me where I went wrong?

Thanks a lot.

0693W00000QKg6AQAT.png

1 REPLY 1

Again, you need to be referring Simulink & Matlab questions to Mathworks:

https://community.st.com/s/question/0D53W00001eaP7NSAU/how-do-i-configure-stm32l476rg-and-use-the-timerencoder-modepwm-in-matlabsimulink

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.