cancel
Showing results for 
Search instead for 
Did you mean: 

ST32MP257F-DK ADC init problem

nh7
Associate II

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?)

    

 

1 REPLY 1
Erwan SZYMANSKI
ST Employee

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.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.