Using Processor Expert to setup SDHC under KDS 3.0 with KSDK 1.2 is broke.
Steps to reproduce. . .
Create a new project
1) File > New > Kinetis Project
2) Project Name: sdhc_broke, next
3) Boards > Kinetis > FRDM-K64F, next
4) KSDK 1.2.0 (absolute path), Processor Expert (standalone), next
5) GNU C Compiler, finish
Add SD Card component
1) Add component from: Components Library > KSDK 1.2.0 > Peripheral Drivers/HAL > Memories > fsl_sdcard
Build Project
1) Generate PEx Code
2) Edit Sources | main.c
3) Uncomment the "for(;;) { }" statement on line 52, save
4) Build Debug version
Debug project and observe behavior
1) Insert Transflash card
2) Debug project (wait for automatic pause at PE-low_level_init())
3) Resume (see Thread #1 running in Debug window)
4) wait a few seconds, then Pause
You will notice that the processor never reaches our for(;;) loop. It is always stuck at SDHC_HAL_GetCurState() in fsl_sdhc_hal.c .
- Audi