2025-09-03 4:26 AM
Hi,
I'm trying to get ADC working on ST32MP257F-DK board. There is no example in ST's sw-package and the example for ST32MP257F-EV1 board fails in HAL_ADC_Init -function giving error messages:
stm32_serc_handle_ilac:134 SERC exceptions [63:32]: 0x8000000
stm32_serc_handle_ilac:140 SERC exception ID: 59
Can somebody help, what is the difference between these boards with ADC?
(And why there is no ADC example for ST32MP257F-DK?)
2025-09-03 8:32 AM
Hello @nh7 ,
Could you please tell me which is the Flash image that you flashed to boot the board ? Did you use a prepared Flash image or did you make your own one ? Did you do any CubeMX configuration yourself for your device trees ?
The error that you see is a RIF error telling you that you (M33 cortex) is not allowed to use ADC3, which is strange because M33 has access to ADC3 in all our default configuration.
Are you on OpenSTLinux v 6.1 ?
In your Linux console, can you make a "cat /sys/kernel/debug/stm32_firewall/rifsc" and gives the output ?
Kind regards,
Erwan.