- Try using alternate pin names in the block mask. Some pins might not be listed in the standard mapping table, but you can find their mappings in “PeripheralPins.c”: https://github.com/ARMmbed/mbed-os/blob/mbed-os-5.14.1/targets/TARGET_STM/TARGET_STM32H7/TARGET_STM32H743xI/TARGET_NUCLEO_H743ZI2/PeripheralPins.c
- You can also check out the following MathWorks’ documentation linked to the usage of alternate pin names: https://www.mathworks.com/help/releases/R2022b/supportpkg/nucleo/ug/alternate-pin-names.html
- Also, make sure the ADC pins you’re using are actually supported by the Mbed platform. ADC pins mentioned below can be used in the block: https://os.mbed.com/platforms/ST-Nucleo-H743ZI2/
- If you need more flexibility with ADC settings, using Embedded Coder for STM32 could help: https://www.mathworks.com/matlabcentral/fileexchange/43093-embedded-coder-support-package-for-stmicroelectronics-stm32-processors
2022 or later version giving error when compiling model for nucleo board
7 views (last 30 days)
Show older comments
using nucleo h743zi2 board working fine with matlaab version 2020 but when compling in later version gives error when using some analog pins on the board
0 Comments
Answers (1)
Shlok
on 7 Mar 2025
Hi Yuvadhan,
It looks like the issue is due to changes in pin mapping in newer MATLAB versions, which is why your model compiles fine in 2020 but runs into errors in later versions.
You can try these steps to resolve it:
Hope that helps!
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!