Stuck in OSIF_TimeDelay() When Read from SD Card

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

Stuck in OSIF_TimeDelay() When Read from SD Card

1,389 Views
sx
Contributor III

Hey Guys,

I want to read a txt file from a SD card with 5748G. First I created a project from the example project in SDK_PA_RTM_v3.0 which called 'sdhc_fatfs_mpc5748g' and it worked well. Then I created a 'S32DS Application Project' and added necessary components just like the example project. But when I debug this new project, it was stuck in fuction 'void OSIF_TimeDelay(const uint32_t delay)' and couldn't get out. So please help me to find out whether I miss some steps to make it work.

TimeDelay.PNG

Here are some pictures to show the similarities and differences between two projects:

clock_manager of second project

Clock.PNG

SXOSC.PNG

clock_manager of example project

Clock_E.PNG

SXOSC_E.PNG

fatfs of second project

FATFS.PNG

fatfs of example project

FATFS_E.PNG

osif of second project

OSIF.PNG

osif of example project

OSIF_E.PNG

rtcTimer of second project

RTC1.PNG

RTC2.PNG

rtcTimer of example project

RTC1_E.PNG

RTC2_E.PNG

sdhc of second project

SDHC.PNG

sdhc of example project

SDHC_E.PNG

usdhc of second project

USDHC.PNG

usdhc of example project

USDHC_E.PNG

uart of second project

UART.PNG

uart of example project

UART_E.PNG

pin_mux:PinSettings

I only configured pins of LINFlexD_10 and uSDHC in the second project, but in the example project, there are more pins  configured which seems not necessary.

main.c of second project

MAIN.PNG

main.c of example project

MAIN_E.PNG

lukaszadrapa

@Peter Vlna

Labels (1)
Tags (2)
0 Kudos
3 Replies

1,130 Views
TomLightning
Contributor III

Hi,

maybe a bit too late but I had the same issue and could solve it by reducing the cable length of the debug wires (Debugger to Microcontroller).

Hope I could help!

Tom

0 Kudos

1,148 Views
sx
Contributor III
0 Kudos

1,148 Views
sx
Contributor III

Can anybody help me? TOT

0 Kudos