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.

Create second bootloader on C6748

Hi all,

I want to create second bootloader on C6748. Here is the implemented procedure.  

Prepare the image:
1. Build a small 2nd bootloader(.out), convert to DSP binary by AISgen tool(called boot.bin). The 2nd bootloader is used to speed up the UART baudrate.
2. Build the main image, convert to DSP binary by AISgen(called dspImage.bin).
3. Load DSP image by CSS, dump the memory between "Jump&Close address" and "main() address" => save to file(called CFG.cfg).
 
Load and run:
4. Load boot.bin to DSP with AIS boot mechanism (DSP is running the TI original bootloader in this step).
5. Load CFG.cfg to the "jump&close" address of dspImage.bin (DSP is running boot.bin at this moment).
6. Do section load ("0x58535901") of dspImage.bin to DSP with AIS boot mechanism.
7. DSP execute to the 'jump&close" address of dspImage.bin.

Please guide we how to get the information and content between the address of "jump&close" and the address of "main()" .

BTW, we used a stupid way in step 3 and step 5 so far...

Thanks in advance.

B.R.

OC
 

  • Hi OC,
    I think, you can make use of our Starterware bootloader code to be a secondary bootloader code for your project to speedup the UART baud rate or whatever.

    C:\ti\C6748_StarterWare_1_20_04_01\build\c674x\cgt_ccs\c6748\lcdkC6748\bootloader

    In this example, you need to mention the entry point of your DSP app that needs be run with newer baud rate which is modified by secondary bootloader.

    C:\ti\C6748_StarterWare_1_20_04_01\bootloader\src\bl_main.c
    unsigned int DspEntryPoint = 0x11802000; // Put entry point of DSP application.

    Refer to this wiki too.
    processors.wiki.ti.com/.../OMAPL138_StarterWare_Booting_And_Flashing
  • Hi Shankari,

    I have the same problem with this issue. 

    I try to build the project 'bootloader' as you mentioned in the reply, but failed.

    --------------------------------------------------------------

    I loaded the project '\ti\pdk_C6748_2_0_0_0\C6748_StarterWare_1_20_03_03\build\c674x\cgt_ccs\c6748\evmC6748\bootloader' to CCS, and got the error message when building : 

    Cannot run program "make": Launching failed
    Error: Program "make" is not found in PATH

    --------------------------------------------------------------

    If I loaded the project from 'C:\ti\pdk_C6748_2_0_0_0\C6748_StarterWare_1_20_03_03\build\c674x\cgt_ccs\c6748\lcdkC6748\bootloader', it cannot be build and got the message : 

    **** Build of configuration Debug for project bootloader_c674x_c6748_lcdkC6748 ****

    Nothing to build for project bootloader_c674x_c6748_lcdkC6748

    Do I need some extra setting in CCS to build these projects successfully?

    Thanks for the help!!!

    Albert

  • Hi Albert Chiu,

    I have attached a document for you which will give you step by step instruction on how to import the starterware example into CCS , how to build, how to run on C6748 LCDK etc.

    C6748_LCDK-Booting_Flashing1.zip

  • Hi Shankari G,

    I did load the project from 'C:\ti\pdk_C6748_2_0_0_0\C6748_StarterWare_1_20_03_03\build\c674x\cgt_ccs\c6748\lcdkC6748\bootloader', but when I press rebuild, it cannot be build and got the message : 

    **** Build of configuration Debug for project bootloader_c674x_c6748_lcdkC6748 ****

    Nothing to build for project bootloader_c674x_c6748_lcdkC6748

    Thanks!

  • Hi Albert,

    May be you can post the screenshot of CCS.