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.

Difficulty in booting my arm application code

Other Parts Discussed in Thread: OMAP-L138, OMAPL138

hi,

I have a problem.can not boot。I am using custom board and external memory is MT46H32M16 -LFBF-6B (mDDR ).I think UBL found boot,but can not booting  at 0xC1080000.Im using  

Serial Boot and Flash Loading Utility for OMAP-L138.I have m

odified  the parameters passed to the function DEVICE_ExternalMemInit to match the mDDR timing requirements for the custom board(DEVICE.C,OMAP-L138/Common/src) Uboot is my application (.out file) and generated bin file using aisgen utility.and in my terminal output is comming like:

C:\Documents and Settings\user\My Documents\reshmi\sfh_31\OMAP-L138\GNU>sfh_OMAP-L138.exe -flashType SPI_MEM -flash G:\ubl_31\ubl_OMAPL138_SPI_MEM.bin G:\arm_boot\spi.bin -v

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

   TI Serial Flasher Host Program for OMAP-L138

   (C) 2011, Texas Instruments, Inc.

   Ver. 1.67

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

 

 

Platform is Windows.

      [TYPE] UBL and application image

       [UBL] G:\ubl_31\ubl_OMAPL138_SPI_MEM.bin

 [APP IMAGE] G:\arm_boot\spi.bin

    [TARGET] OMAPL138

    [DEVICE] SPI_MEM

 

Attempting to connect to device COM1...

Press any key to end this program at any time.

 

(AIS Parse): Read magic word 0x41504954.

(AIS Parse): Waiting for BOOTME... (power on or reset target now)

(AIS Parse): Read invalid BOOTME string.

(AIS Parse): Boot aborted.

Booting SFT failed. Trying again (you may need to reset the target)...

(AIS Parse): Read magic word 0x41504954.

(AIS Parse): Waiting for BOOTME... (power on or reset target now)

(AIS Parse): BOOTME received!

(AIS Parse): Performing Start-Word Sync...

(AIS Parse): Performing Ping Opcode Sync...

(AIS Parse): Processing command 0: 0x58535901.

(AIS Parse): Performing Opcode Sync...

(AIS Parse): Loading section...

(AIS Parse): Loaded 8704-Byte section to address 0x80000000.

(AIS Parse): Processing command 1: 0x58535901.

(AIS Parse): Performing Opcode Sync...

(AIS Parse): Loading section...

(AIS Parse): Loaded 824-Byte section to address 0x80002200.

(AIS Parse): Processing command 2: 0x58535906.

(AIS Parse): Performing Opcode Sync...

(AIS Parse): Performing jump and close...

(AIS Parse): AIS complete. Jump to address 0x80000000.

(AIS Parse): Waiting for DONE...

(AIS Parse): Boot completed successfully.

 

Waiting for SFT on the OMAP-L138...

        Target: BOOTUBL

        Target:    DONE

 

Flashing UBL G:\ubl_31\ubl_OMAPL138_SPI_MEM.bin (8148 bytes) at 0x00000000

 

        Target:         INFO: SPI Memory Initialization passed.

        Target: Flashing UBL...

        Target: SENDIMG

        Target:   BEGIN

 100% [ ████████████████████████████████████████████████████████████ ]

                  Image data transmitted over UART.

 

        Target:    DONE

   0% [ ------------------------------------------------------------ ]

   0%               Programming UBL into flash...

 100%   ████████████████████████████████████████████████████████████

                             Verifying...

 100%   ████████████████████████████████████████████████████████████

                       UBL programming complete

        Target:    DONE

 

Flashing application G:\arm_boot\spi.bin (1672 bytes)

 

        Target: SENDIMG

        Target:   BEGIN

 100% [ ████████████████████████████████████████████████████████████ ]

                  Image data transmitted over UART.

 

        Target:    DONE

   0% [ ------------------------------------------------------------ ]

                Programming application into flash...

 100%   ████████████████████████████████████████████████████████████

                             Verifying...                             0010000

 100%   ████████████████████████████████████████████████████████████

                   Application programming complete

        Target:    DONE

        Target:    DONE

 

Operation completed successfully.

And when i switch to Spi boot mode output is like:

OMAP-L138 initialization passed!

Booting TI User Boot Loader
 UBL Version: 1.65
 UBL Flashtype: SPI
Starting SPI memory Copy...
Valid magicnum, 0x55424CBB, found at offset 0x00010000.
   DONE
Jumping to entry point at 0xC1080000.

Kindly suggest me fixing this issue?

 

  • Try connecting to CCS and making sure the memory at 0xC0000000 is read/writable. If not, check the DDR config registers to make sure it matches your intended settings.

    Also where is the PC when you connect at this point?

    Jeff

  • Jeff,

       Thank You for your suggestion.I got it working by changing arm to the supervisor mode.Also few mddr register setting changes needed to be done.Now my application is booting from spi flash.But when i try to boot from Nor flash,it showed a nor open failure.wht could be the issue?i used Serial Boot and Flash Loading Utility for OMAP-L138 V31.

    Thanks,

    Reshmi.

      

  • Make sure you create a new AIS file for the NOR boot. Theres an additional configuration word that needs to be stuck at the beginning of the image to tell whether its 8 or 16 bit, and AISgen will stick this in there for you.

    Jeff