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.

Am335x Boot application problem for help



Hi all,

My application is base on the starware without OS.

I want to boot the Am335x from SD or Nand for test. and i practice SD boot firstly. step as follows:

i: Prepare the MLO from compile the bootloader in release SDMMC mode,and get the xx_ti.bin,change the name to MLO.

ii:Prepare the app.  import the demo in CCS,  C:\ti\AM335X_StarterWare_02_00_01_01\build\armv7a\cgt_ccs\am335x\evmAM335x\gpio_backlight, and then compile, get the gpioLCDBacklight_ti.bin which located in C:\ti\AM335X_StarterWare_02_00_01_01binary\armv7a\cgt_ccs\am335x\evmAM335x\gpio_backlight\Release,change it's name to app.

iii: Format the SD card,copy the MLO and the app,insert the card and reset board.

Unfortunately,the conslole print the message as follows,

CCCCCCCCStarterWare AM335x Boot Loader

Copying application image from MMC/SD card to RAM

............................................

Jumping to StarterWare Application...

 But the code don't execute, the led is always off

Could anyone give me some advice kindly? Thanks!

Regards,

Stone

 

  • I'd recommend to add some UART-output to the very beginning your LED-app, so you can see within the console if it was really started or not.

    In case not: did you set up your "app" file using tiimage-tool and correct base address?

  • Thanks for your reply.

    I didn't use the tiimage-tool , yet i check the "app" whose Header.address=0x8000_0000 .

    By the way, how to use the  tiimage-tool ? when i double click the  tiimage.exe, it just flashed across and no any dilog box,i don't know why?

    Thanks!

  • Please check out this description: http://processors.wiki.ti.com/index.php/AM335X_StarterWare_Booting_And_Flashing#Usage_of_ti_image_Tool

    To make it short: tiimage 0x80000000 NONE yourapp.bin app

  • For Windows

    1. Open command prompt
    2. Go to /tools/ti_image
    3. If the tiimage.exe is not available, generate one with Cygwin or MingW environvment using the command "gcc tiimage.c -o tiimage"
    4. Execute the image converter by giving proper inputs in the format, tiimage.exe <load address> <boot mode> <input image path/name> <output image path/name> 
    • Examples
    • tiimage.exe 0x402F0400 MMCSD boot.bin MLO
    • tiimage.exe 0x80000000 NONE uartEcho.bin app

    Frankly speaking ,i don't know how to open command prompt ,could you give me some picture to illustrate? 

    Thanks!

  • Throgh the test,i found the xx_ti.bin can be used from compiling in ccs directly,and during the SD boot test i meet a *** question, the app code as follows,

    int main()

    {  

       UARTPuts("\r\nStone test 1 ...\r\n", -1);

        /* Enabling functional clocks for GPIO1 instance. */    

       GPIO1ModuleClkConfig();

        /* Enabling the GPIO module. */    

    GPIOModuleEnable(GPIO_INSTANCE_ADDRESS);

     GPIOModuleReset(GPIO_INSTANCE_ADDRESS);

        /* Setting the GPIO pin as an output pin. */  

    GPIODirModeSet(SOC_GPIO_1_REGS,26,0); //0:output;1:input    

    UARTPuts("\r\nStone test 2 ...\r\n", -1);    

    while(1)    

    {        

    /* Driving a logic HIGH on the GPIO pin. */        

    GPIOPinWrite(GPIO_INSTANCE_ADDRESS,26,GPIO_PIN_HIGH);        

    Delay(0x3FFFF);

            /* Driving a logic LOW on the GPIO pin. */        

    GPIOPinWrite(GPIO_INSTANCE_ADDRESS,26,GPIO_PIN_LOW);        

    Delay(0x3FFFF);    

    }

    Insert the card, the uart message was printed correctly,but the Gpio doesn't work at all. Why?

    And if i debug the   .out file in CCS, it can work normally and the led blinks.

    Could anyone give me  advice?

    Thanks!

    }

  • ok.  i followed this procedure, and i got the message:

    StarterWare AM335x Boot Loader

    Copying application image from MMC/SD card to RAM

    Jumping to StarterWare Application...

    then nothing happens.  but i am happy that the bootloader is now operational!!!  i will study the docs further.  i am running the gpioblink example. 

    thanks...........dd

  • GPIOPinMUX?  where is this function defined?