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.

Not able to write NOR Flash on custom board

Hi,

I have tested nor writer program(C:\ti\mcsdk_2_01_02_05\tools\writer\nor\evmc6678l) on evaluation kit TXEVM6678 and it is working good, but when i tried the same program on custom board, it is not flashing NOR.

[C66xx_0] NOR Writer Utility Version 01.00.00.03

file opened nor_writer_input.txt
file read nor_writer_input.txt

above lines are seen in console, after this processor is in continuous running state.

regards,

vamshi

  • Hi Vamshi,

    Have you using same NOR flash chip on your custom board? EVM have N25Q128A21BSF40F NOR chip.

    Please try to debug the norwriter_evmc6678l code via CCS and find out which function is failed.

    Thanks,
  • Hi,

    I have used same Nor flash(N25Q128A21BSF40F) on custom board.

    nor writer is failing at platform_init() function.

    Regards,

    Vamshi

  • Hi Vamshi,

    Have you got "Platform init failed!" error message in debug window. If you using gel file for initialize the DSP means Platform_init() is not mandatory, uncommand the platform init code and test it. I have tested this way in EVM, it is working fine.

    Please check your hardware connection setup, NOR flash is detected properly or not.

    Thanks,
  • Plesae find the NOR writer debug log message;

    [C66xx_0] NOR Writer Utility Version 01.00.00.03

    Flashing sector 0 (0 bytes of 698800)
    Flashing sector 1 (65536 bytes of 698800)
    Flashing sector 2 (131072 bytes of 698800)
    Flashing sector 3 (196608 bytes of 698800)
    Flashing sector 4 (262144 bytes of 698800)
    Flashing sector 5 (327680 bytes of 698800)
    Flashing sector 6 (393216 bytes of 698800)
    Flashing sector 7 (458752 bytes of 698800)
    Flashing sector 8 (524288 bytes of 698800)
    Flashing sector 9 (589824 bytes of 698800)
    Flashing sector 10 (655360 bytes of 698800)
    Reading and verifying sector 0 (0 bytes of 698800)
    Reading and verifying sector 1 (65536 bytes of 698800)
    Reading and verifying sector 2 (131072 bytes of 698800)
    Reading and verifying sector 3 (196608 bytes of 698800)
    Reading and verifying sector 4 (262144 bytes of 698800)
    Reading and verifying sector 5 (327680 bytes of 698800)
    Reading and verifying sector 6 (393216 bytes of 698800)
    Reading and verifying sector 7 (458752 bytes of 698800)
    Reading and verifying sector 8 (524288 bytes of 698800)
    Reading and verifying sector 9 (589824 bytes of 698800)
    Reading and verifying sector 10 (655360 bytes of 698800)
    NOR programming completed successfully
  • Hi,

    I have removed platform_init() as you told because it is already initialized by using gel file.Then the nor_writer is failed and the console view is:

    [C66xx_0] NOR Writer Utility Version 01.00.00.03

    file opened nor_writer_input.txt
    file read nor_writer_input.txt
    device open pass
    Write in progress....
    NOR writing...
    Flashing sector 0 (0 bytes of 61432)
    Reading and verifying sector 0 (0 bytes of 61432)
    Failure in sector 0, at byte 59384, (at byte 0 in the data file) expected 0x00000014, read 0x000000ff
    NOR read verify failed

    Actually i want to attach my gel file but i am not able to attach here(as i am not able to see any option for attaching a word doc to this reply) for further reference.

    regards,

    Vamshi

  • Hi Vamshi,

    I think the NOR flash is not responding properly. Please try to use SPI analyser to validate the NOR flash on your custom board.

    It is not a software issue. Please check your hardware connection setup, NOR flash is detected properly or not.

    Thanks,