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 NAND Flash Error

Hello

I have been trying to flash my EVM5515 with a program of my own.
So after reading a piece of threads on the forum, I first tried to flash with an example. So in a prompt I launched :
"C:\Program Files\Texas Instruments\ccsv4\tools\compiler\c5500\bin\hex55" -boot -v5505 -serial8 -b oled.out -o oled.bin
Then in code composer studio, I launched programmer.out (connect target, load program C:\Program Files\Texas Instruments\ccsv4\emulation\boards\evm5515_v1\tests\demo\programmer.out)
In the console, I got :
Choose the device...
0XX - CPLD setup only
1x - NAND Flash [CSx: 2,3,4,5]

2x - NOR Flash [CSx: 2,3,4,5]
3x - SPI EEPROM [x=1: EVM, x=2: USB Stick]
4 - IIC EEPROM
5 - MMC;  6 - SD

And I entered :
C:\Apps\TI_bins\oled.bin

I got a lot of messages, until it indicated that it was done. So I powered of the thing, unplugged the USB, powered it on, then the oled program launched well.
Thus I was confident the method was good.
Then I tried with the same method, all seemed to be well. But now when I power the EVM on, the screen stays dark and I have no sound, so I think the program is not running.

I can still run programs in debug mode, but I have a lot of error messages and I can't flash the board any more (process stop at NAND Flash...).

The error messages are :
When connecting :
    Error connecting to the target:
    Error 0x80000244/-1143
    Fatal Error during: Register, Initialization, OCS,
    The memory at 0x00000000 continually indicated it was 'not ready'
    All memory operations currently in progress were aborted in order
    to regain control of the processor.
    This is considered a catastrophic event, but the debugger should
    still be able to access memory and CPU registers.
    System state has been altered.  It is strongly advised
    that the processor should be reset before resuming execution,

I click on retry, and after three seconds :
    Trouble Writing Memory Block at 0x1021 on Page 2 of Length 0x1:
    Error 0x80000002/-1143
    Fatal Error during: Memory,
    The memory at 0x00002044 continually indicated it was 'not ready'
    All memory operations currently in progress were aborted in order
    to regain control of the processor.
    This is considered a catastrophic event, but the debugger should
    still be able to access memory and CPU registers.
    System state has been altered.  It is strongly advised
    that the processor should be reset before resuming execution,

I click on Ok and all seems well (for I can launch programs in debug mode).

So, is there a way to reset the NAND flash or to skip the NAND boot in order to boot correctly on the standard EVM demo ?

Thanks in advance for any help or suggestion

  • hi,

     

    This is the way you need to do:

    Insert 141 before your file directory and name.

    The first number 1: Select NAND flash

     The second number 4: CHIP select number, C5515 EVM CS4 connected to NAND.

    The third number 1: Write

    Therefore the command should be like 141C:\Apps\TI_bins\oled.bin                                                   

    Note: There is no space between 141 and C:\Apps\TI_bins\oled.bin.

    Regards,

    Hyun

  • hi

    I am sorry I made a mistake in my post. When flashing I entered :

    141C:\Apps\TI_bins\oled.bin

    That one worked well (it was a TI example), the trouble is that it didn't work for a program of my own (at least the flash was OK but it doesn't boot well) and that I can not flash the board with anything.


    Bests

  • hi,

    OK, then, it's not a programming issue. So you cannot program it any more with oled.bin or still your code doesn't boot?

    Regards,

    Hyun

  • If I power the board on with no USB connected, the screen stays black and I have no sound whereas  the program I flashed draws some lines and emits bips on the headphone... so I think there is a problem in the boot sequence.

    But I plug the USB cable on, I can connect to the target via CCSv4, load any program and run it.

    The problem is that I have a lot of annoying error messages (those I entered in red) and that any flashing attempt never ends.

  • So do anyone has any idea about my problem?

    Is that possible to completly erase the NAND flash in order to return to the previous state ?