ADC-DMA Doesn't work on S32K358 Example

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

ADC-DMA Doesn't work on S32K358 Example

463 Views
simon98
Contributor IV

Hi,

Currently i'm using XS32K3X8EVB-Q289 on MBDT 1.8 and i'm trying the ADC-DMA example provided.

The problem that i have is the same mentioned in this my previous ticket:

https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/ADC-DMA-Example-doesn-t-work/m-p/211706...

In the application operation I see, on freemaster, that ADC_POT0 value is updated only once by the ADC: if I change the position of the potentiometer and reset the board the new value of ADC_POT0 is set, but nomore update.

When i enter in debug on S32DS, if i set a breakpoint on Adc_StartGroupConversion call i could see, in the Expressions tab, that ADC_POT0 changes its value accordigly with the potentiometer position:

Screenshot 2026-03-12 170212.png

If i let the program running without breakpoints, on freemaster ADC_POT0 value doesn't update.

I thought that this behaviour was linked to freemaster, which, for some unknown reason, couldn't update the value of ADC_POT0, but if i set a breakpoint on the first line of the Hardware Interrupt Callback ADC_POT0 value doesn't update either in debug mode doing some Resume:

Screenshot 2026-03-12 170854.png

 

I've also tried to add a simple If in simulink where, if i got an adc value greater than 10000, flips the RGBLED0_BLUE. This, to work around the hypothetical freemaster problem but neither in this case worked... so freemaster doesn't cause the problem. 

Screenshot 2026-03-12 172136.png

I'm out of ideas, can anyone help me with this problem?

I attach the project updated.

 

Thanks,

Simon

 

 

 

0 Kudos
Reply
0 Replies