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.

EVM5515 boot from NOR

I prepared .bin file for simple application playing with LED on EVM5515.

I tried the .bin file to the NOR in two ways - using my code and using the c5515-boot-programmer provided by TI.

I see that in bot cases the FLASH content is the same.

BUT, it simple does not work - after power OFF-ON cycle I see the same application is running displaying text on the LCD - "5515 EVM Demo...".

As I understand the NOR is first in the boot trial sequence, so also if my code is not working boot loader shall load it and this demo application.

Some details:

I am running it from CCS - with empty GEL to be sure that it initializes all what it needs, linker command:

-v5505 --memory_model=large -g --define="_DEBUG" --diag_warning=225 --ptrdiff_size=32 --algebraic --asm_source=algebraic -z -m"leds_EVM5515_CSL_BIOS.map" --stack_size=0x200 --heap_size=0x400 -i"C:/ti/ccsv5/tools/compiler/c5500_4.4.1/lib" -i"C:/ti/ccsv5/tools/compiler/c5500_4.4.1/include" -i"C:/ti/bios_5_42_01_09/packages/ti/rtdx/lib/c5500" -i"C:/ti/bios_5_42_01_09/packages/ti/bios/lib" -i -i"D:/roman-VE/c5515-ccs5/terasonic-EVM5515-CSL-BIOS-5.42-led" -i"/packages/ti/rtdx/lib/c5000" --reread_libs --warn_sections --rom_model --sys_stacksize=0x200

The command file for hex55 looks like:

-boot
-v5505
-b
-serial8
-map leds_EVM5515_CSL_BIOS_hex.map
-o leds_EVM5515_CSL_BIOS.hex
leds_EVM5515_CSL_BIOS.out

The NOR content looks like (starting from address 0x400000):

09AA    0000    96DD    0000    12E8    0000    0060    46B3    2020    2020
2020    F031    0000    004E    14A9    3100    4E13    A431    004E    12F7
31FF    FF00    4E14    6274    2649    6259    46B2    4804    E631    0000
4E14    0600    8BA4    3100    5293    7DC0    0144    7FC0    0144    6E04
02F4    B506    9846    B320    2020    2020    20A9    01E6    0300    0409

What can be wrong here?

  • I just tried this blinks 3 file on my C5515 EVM booted from NOR. Below is my programmer printed for reference.

    http://e2e.ti.com/cfs-file.ashx/__key/communityserver-discussions-components-files/109/1738.xf_5F00_blink_5F00_3.bin

    Choose the device...
    1<filepath> - NOR Flash
    2<filepath> - NAND Flash
    3<filepath> - SPI
    4<filepath> - IIC EEPROM
    5<filepath> - MMC
    6<filepath> - SD
    Choose the device...
    1<filepath> - NOR Flash
    2<filepath> - NAND Flash
    3<filepath> - SPI
    4<filepath> - IIC EEPROM
    5<filepath> - MMC
    6<filepath> - SD
    1C:\Userdata\C5515\New_Powergood\XF_LED_ON\Debug\xf_blink_3.bin
    NOR Flash...
    Erasing chip (NOR)...
    Writing data to device...
    Opening C:\Userdata\C5515\New_Powergood\XF_LED_ON\Debug\xf_blink_3.bin...
    Input file opened
    Programming Complete

    Regards.

  • Dear Steve,

    I tried the sequence with your file (renamed it to  flashimg.bin).

    The output was:

    Choose the device...
    1<filepath> - NOR Flash
    2<filepath> - NAND Flash
    3<filepath> - SPI
    4<filepath> - IIC EEPROM
    5<filepath> - MMC
    6<filepath> - SD
    1
    NOR Flash...
    Erasing chip (NOR)...
    Writing data to device...
    Opening flashimg.bin...
    Input file opened
    Programming Complete

    BUT, the result is the same - after I am disconnecting JTAG and PS and connecting the PS back nothing happens - only led connected to XS is constantly ON.  After I am switching the PS OFF-ON using the switch - the LCD shows the "5515 EVM demo" text.

    What were the jumpers positions in your trial?

    Thanks in advance,

    Ruby

  • http://e2e.ti.com/cfs-file.ashx/__key/communityserver-discussions-components-files/109/2480.cleaner.bin

    Try using this cleaner.bin file to clean out the preloaded image. I don't rememebr when it is. But you can clean out all of it to make sure the preloaded image is gone before you download my test image.

    Hope this help.

    Regards.

  • Hi Steve,

    I tried - it did not help.

    After cleaning other sources I understand that the bootloader took the executable always from SPI also I can see image in NOR that looks correct - 3666.nor_content.dat.

    Is it possible that jumpers positions forces this strange behavior?

    Thanks in advance,

    Rubbi

  • As your tittle said, you are using C5515 EVM. There is no way it can be forced to use SPI boot bypassing NOR or NAND. Have you tried with another board? Has this board been altered?

    After you cleaned the default image in SPI, it should boot nothing, right? Then program my blink XF to NOR, does it boot from NOR?

    You can refer to Spectrum Digital's EVM documents for default jumper settings.

    Regards;.

  • Dear Steve,

    - we have two EVM5515 behaving in the same way

    - I checked that the jumpers are in their default positions - acc. to EVM Technical Reference

    - I checked that the NOR content is exactly as the .bin file

    (could you please check that it shall use 16 bits per word and not 8 - it means that its starts in NOR as 09AA and not as 0009 00AA - also, I suppose it shall be OK as I use the binary I downloaded)

    - The bootloader flashes the WORKING (the LED blinks)  boot to NAND and to the SPI (options 2 and 3)

    It looks that our EVM5515 (as we got them) simple can not boot from NOR.

    The only reason I can think about is that the NOR exits RESET too late.

    Do you have any suggestion for me?

    Thanks in advance,

    Roman

  • The blink XF bin file works on my C5515EVM. If it works on your NAND and SPI but not NOR, then there is problem with your boards. If these boards are purchased new, then I would recommend contacting them for a replacement.

    Regards.

  • In two days I will check this with another (3rd) board.

    Many thanks,