A question is Component "adc_pal" into example "freertos_mpc5748g"

cancel
Showing results for 
Search instead for 
Did you mean: 

A question is Component "adc_pal" into example "freertos_mpc5748g"

186 Views
shingo
Contributor II

Hi:

 New a project from example "freertos_mpc5748g" in "SDK PA RTM v3.0.3", and then add a "adc_pal" and a "linflexd_uart". 

  Add the initialization code after the component is configured.

  Set a breakpoint at the ADC_Init() at line 144 in the main file, and Debug it on the DEVKIT, But it could not run to the next statement. And suspend it, here a problem is emerging.

shingo_1-1618036665594.png

ADC_Init() or "adc_pal" do not work properly under the freertos?

Please see the attachment for details.

 

BR.

 

 

 

 

 

 

Tags (1)
0 Kudos
1 Reply

172 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

It is mandatory to call init and other functions (if drivers uses OS services) after starting scheduler. Otherwise it won't work.

You can take a look at:

https://www.freertos.org/FreeRTOS_Support_Forum_Archive/March_2017/freertos_What_is_normal_method_fo...

Regards,

Lukas

 

0 Kudos