This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

OMAP-L138: Don't succeed to boot application to NAND flash

Part Number: OMAP-L138
Other Parts Discussed in Thread: OMAPL138

Hello all, 

I'm working on the OMAP-L138 LCDK board and I'm trying to boot the facedetect application (present in the SDK, v2.0) to the NAND flash, such that the application will run automatically at boot. 

I followed the instructions from the document "bios_c6sdk_user_guide.pdf" (attached) on page 22. I just replaced the device by OMAPL138_LCDK (with C6748 as the device the burning process remains blocked at some point). But when I turn the dip switches to NAND mode and turn on the device, nothing happens. Is this document relevant?

I generated the AIS file exactly as requested in the file. I figured that maybe the bootloader version is not correct, but unfortunately, I didn't succeed in reading the version of the ROM bootloader.

Any help would be appreciated. 

Thanks a lot, 

Armand 

bios_c6sdk_2_0_user_guide.pdf

  • Hi,

    I've notified the RTOS team. feedback will be posted here.

    Best Regards,
    Yordan
  • Hello Yordan,
    Could you please notify once again the RTOS team?
    This is a very important issue, which is blocking us for further development.
    If more information is needed I'd be glad to update you here.
    Thanks a lot,
    Armand
  • I escalated internally. Please share the SDK version.

    Best Regards,
    Yordan
  • I'm using the 2.0 version (c6sdk_02_00_00_00)

    I also checked the bootloader version, it is the latest (d800k008)

    Regards,

    Armand

  • Armand,

    The Facedetect was supported on C6748 device as an out of box example when we supported OpenCV baseline on this device back in 2010. Currently only Processor SDK RTOS software is supported on this devices so the C6 SDK software is available for download for reference but we don`t support that baseline anymore.

    However, I would like to explain the issue that you are running into to provide some guidance. C6748 is DSP boot device so when you flash the boot image the image will boot on the DSP core. The OMAPL138 device is a ARM boot master device where the DSP is powered off until the ARM wakes it up to start execution so you can`t take the same boot image and load it on OMAPL138 device. you need to boot a secondary boot loader that will wake up the DSP and start execution of tthe facedetect demo.

    this mechanism is demonstrated in many wiki articles:
    processors.wiki.ti.com/.../OMAPL138_StarterWare_Booting_And_Flashing
    processors.wiki.ti.com/.../Boot_Images_for_OMAP-L138

    On OMAPL138, you can run the demo with an emulator to test the software.

    Regards,
    Rahul
  • Hello Rahul,
    Thanks for your answer. I also tried to load to the NAND flash memory the compiled User Bootloader, converted into an AIS file, besides the image (facedetect.bin), converted to a bin file with the tool out2rprc.exe. To summarize, that's what I tried:
    - Loaded in CCS the following projects: bootloader_c674x_c6748_lcdkC6748 and facedetect_lcdk (from StarterWare and demos respectively)
    - Changed into the bootloader project the variable entryPoint (also tried with DspEntryPoint) in the file bl_main.c to the entry point of the facedetect application (found in the file facedetect_lcdk.map in the facedetect project)
    - Compiled both projects in CCS (v7.2)
    - Extracted both .out files
    - Converted the bootloader_c674x_c6748_lcdkC6748.out to the file boot.ais thanks to the AISgen tool, with the configuration file corresponding to the LCDK (present in the SDK files)
    - Converted facedetect_lcdk.out to facedetect_lcdk.bin with the program out2rprc.exe (also present in the SDK files)
    - Executed the following script (before, I set the DIP switches as requested: 01010000):

    @echo 1 - Erasing the flash memory
    "C:\Program Files (x86)\Texas Instruments\pdk_C6748_2_0_0_0\C6748_StarterWare_1_20_03_03\tools\flash_writer\sfh_OMAP-L138.exe" -targetType OMAPL138_LCDK -flashType NAND -p COM16 -erase

    @echo 2 - Program the flash memory
    "C:\Program Files (x86)\Texas Instruments\pdk_C6748_2_0_0_0\C6748_StarterWare_1_20_03_03\tools\flash_writer\sfh_OMAP-L138.exe" -flash c:\lcdkProgram\boot.ais c:\lcdkProgram\facedetect_lcdk.bin -targetType OMAPL138_LCDK -flashType NAND -p COM16

    Result:
    - After setting the DIP switches to NAND boot mode (01110000), the program is not running.
    - Though, if I burn the User Bootloader (UBL) to the device through JTAG, the user bootloader successfully loads the application to the shared RAM and the program runs as expected.

    My goal would be that the ROM bootloader (version d800k008, checked with an appropriate GEL file in CCS) loads the UBL, and afterwards that the UBL loads the application present in the NAND flash as it happens in Debug mode (after burning the UBL through CCS).

    Could you please provide some step-by-step instructions to help me to succeed in my task? I tried a lot of different configurations and I'm quite lost...


    I hope that the problem is clear,
    Thanks a lot,
    Armand

  • Hello,
    Is there a chance that the team looked at the issue ?
    Thanks a lot,
    Armand
  • Any update ? I'm really stuck here...
    Thanks,
    Armand
  • Armand,

    The software baseline that you are using is from C6SDK which was released in 2011. This software is available to download and use "as-is"
    Alos, the demo that you are trying to run is meant for C6748 LCDK that you are trying to run on OMAPL138 part. This is not something that we can support due to legacy nature of the software and the custom nature of your request.

    As indicated in our guidelines for expectation of support on E2E for RTOS software, we only can support device with Processor SDK baseline software
    processors.wiki.ti.com/.../Checklist_for_Processor_SDK_RTOS_questions_on_E2E

    Processor SDK RTOS for this device can be downloaded here:
    www.ti.com/.../processor-sdk-omapl138

    Regards,
    Rahul