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.

TMS320C6748: NANDWriter from CCS not working

Part Number: TMS320C6748
Other Parts Discussed in Thread: OMAP-L138

Hello,

I created a NANDwriter CCS project for writing to NAND memory from DSP. The project build without errors . I myself defined EXTERNAL_RAM_START and EXTERNAL_RAM_END  as well as NAND START. The program hangs at  DEVICE_ExternalMemInit in DEVICE_init. I dont know where all to make change. However I have to write to NAND via CCS and check NAND booting as I am planning to have these options in my customised board.Attached is my project

With regards

Shaliniccs_110_boot.zip

  • The team is notified. They will post their feedback directly here.

    BR
    Tsvetolin Shulev
  • Hello,

    My issue is not resolved yet.I am using c6748 LCDK kit.

    First I tried with downloaded example that has NANDWRITER_DSP.pjt at OMAP_FLASH\OMAP-L138_FlashAndBootUtils_2_40\OMAP-L138_FlashAndBootUtils_2_40\OMAP-L138\CCS\NANDWriter. I build the project after defining Uint32 NANDStart= 0x62000000. But the program fails to reset the device goes to some unknown state.

    Then I tried C6748_StarterWare\build\c674x\cgt_ccs\c6748\lcdkC6748\bootloader. It also fails and shows NAND read failed..How can I program NAND by emulator.

    Please help me . Share if you have any CCS workspace programming NAND in c6748.

    Thanks in advance

    Shalini
  • Hello,

    Please post me reply. I am not able to solve it.

    With Regards
    Shalini
  • Shalini,

    If you are using C6748 LCDK then you don`t need to change any thing in the NANDWriter code other than changing the NAND Width(line 81) at the top of nandwriter.c. The NAND base address and all other configuration is designed to work with 8 bit NAND and 16 bit NAND  on TI evaluation platforms.

    If you are having issue building the NAND Writer then here is a document that describes the procedure to rebuilld it with CCSv7:

    Building_CCS_based_Flash_Writers_Serial_Flash_and_boot_Utilities_in_CCSv7.docx

    Regards,

    Rahul

  • Hello,

    I tried to follow the document and imported NANDWriter_DSP but it shows it has nothing to build. Please send me correct project folder NANDWriter_DSP.

    Thanks in advance

    With Regards
    Shalini
  • Shalini,

    The NANDWriter_DSP project is found under OMAP-L138_FlashAndBootUtils_2_40\OMAP-L138\CCS\NANDWriter.

    We have 2-3 internal TI engineers who have followed this document and have confirmed that they have the setup working so I would recommend you work from a clean work area and try these steps out.

    Regards,
    Rahul
  • Hello,

      Thank you for reply.I tried to import project but failed.

    Then I created a new workspace copied all files, but I get error like EXTERNAL_RAM_END,EXTERNAL_RAM_START,NAND_Start not defined. In which header files are these?

    Also I found that in device.h

    #define DEVICE_EMIF_NAND_BUS_WIDTH DEVICE_BUSWIDTH_8BIT is wrong . I changed to 16 bit. Like this there may be error I expect in headers.

    Please upload a project workspace providing all required headers compatible with CCS7 as it is part of TI's package and therefore TI's part to make it clear. I request those TI engineers once to import project to ccs7 and get back with a complete workspace uploaded if possible. I am struggling for past 1 week with this stuff.ccs_boot.rar

    Attached is my workspace. please check it  and get back if possible with how to solve errors.

    With Regards

    Shalini

  • Shalini,

    Just a general comment: In order to find out  where for example EXTERNAL_RAM_END is defined, use a text program that lets you search through several files/folders (e.g. Notepad++ -> CTRL+F -> Find In Files), and search for the variable/define. If you search in the whole PDK folder, you usually find what you are looking for.

    You commented that the bus width was wrong, Rahul already wrote "If you are using C6748 LCDK then you don`t need to change any thing in the NANDWriter code other than changing the NAND Width(line 81) at the top of nandwriter.c. The NAND base address and all other configuration is designed to work with 8 bit NAND and 16 bit NAND  on TI evaluation platforms."

    Anders.

  • Hello,

    Thank you for reply.

    Rahul already wrote "If you are using C6748 LCDK then you don`t need to change any thing in the NANDWriter code other than changing the NAND Width(line 81) at the top of nandwriter.c. The NAND base address and all other configuration is designed to work with 8 bit NAND and 16 bit NAND on TI evaluation platforms."

    Rahul was talking about only line 81 in main Nandwriter.c. I was talking about change made inside device.c header file.

    Still my issue is not resolved.

    With Regards
    Shalini