ADC DMA Example doesn't work with my S32CT Configuration

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

ADC DMA Example doesn't work with my S32CT Configuration

1,214 Views
simon98
Contributor III

Hi,

i'm trying the ADC-DMA Example on S32K3X8EVB-Q289.

 

I've tried to configure the ADC module by myself based on the S32CT configuration given with the example ( all seems the same on S32CT).

When i download my application on the board the adc callback it's executed correctly because i've put a toggle-led block inside it and i could see the led blinking.

The problem is that it does not do the conversion....

 

I've also tried to import the example's configuration of the ADC and RM modules in my configuration file (.mex)... Surprisingly it converts only one time after the initialization but not continuously...

 

Confronting the 2 .mex file i could see that the differences seems to be some parts of the ADC module that are written in different places in the .mex files .... i don't know why....

 

I'd need some help to understand and fix this thing as i don't want to fall on it again in the future... I attach my model with both the files, the one created by me and the other with the mudels imported from the example...

 

Thanks,

Simon

0 Kudos
Reply
2 Replies

1,139 Views
simon98
Contributor III

Hi,
i have questions on all three points you've mentioned:


1) the conversion trigger source is SW and it's been done every 10 ms by Adc_StartGroupConversion.

2)"DMA configuration — it might be set to stop after one transfer unless it’s explicitly looped or retriggered." where i'm a able to see if DMA configuration is doing that? cause i screened all madules of the DMA example and confronted with mine .mex and there's literally no difference...

3)what do you mean with ADC command  list?

 

It is not clear yet how is that the .mex configured by meworks differently from a .mex with imported configuration from the DMA example...

Could you please check the project attached if presents the same behavior with both .mex?

 

thanks,

Simon

0 Kudos
Reply

1,184 Views
simon98
Contributor III

I've found out that using the configuration imported form the example .mex, if i start the communication with my FreeMASTER project it works correctly showing me the adc output value changing while moving the potentiometer on the board...

I don't understand this behavior... could someone help?

I attach my FreeMASATER project

 

Thanks,

Simon

0 Kudos
Reply