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.

66AK2H12: [EVMK2H] NAND Driver and FTL Example Requests

Part Number: 66AK2H12

Hi, All.

Here is my environment:

- Board : K2EVM-HK (SoC : 66AK2H12X)

- PDK : 4.0.4

- CCS : 7.0.0.00043

I have the NAND driver and FTL (Flash Translation Layer) solution that our team had used before.

The NAND interface used here was the IP designed by our team.

And I want to port these solutions to EVMK2H as easily and quickly as possible.

Can you provide NAND driver and FTL example for EVMK2H?

Regards,

Donghwi

  • Hi Donghwi,

    I've forwarded this to the SW experts. Their feedback should be posted here.

    BR
    Tsvetolin Shulev
  • Donghwi,

    We provide a NAND Writer software as part of our Processor SDK RTOS offering which can be found under pdk_k2hk_4_0_4\packages\ti\boot\writers and also have NAND drivers provided in u-boot and Linux kernel in Processor SDK Linux that are validated on this device.

    you can choose to use any driver that matches your requirement to port your flashing solution on this device.

    Regards,
    Rahul
  • Dear Rahul,

    Thanks for your reply.

    * Environment
    + TI SYS/BIOS (Linux is not used)

    I was able to confirm the NAND flash operation using the NAND Writer SW and platform_test Project.
    - NAND Writer SW : pdk_k2hk_4_0_4\packages\ti\boot\writer\nand
    - platform_test : pdk_k2hk_4_0_4\packages\ti\platform\evmk2h\platform_test

    Next, I tried to port combination of NAND Writer and platform_test to my project.
    (platform_test body in source code level not library+ nandwriter.c)

    Finally, I was able to verify the NAND Writer SW behavior in my project.
    And, I also could check NAND operation using local buffer instead of file input through some code modification.
    But, all of these tests were applied in the DSP environment.

    There are some strange behaviors when applying the same task to ARM.
    ARM is running in SMP mode.

    I ignored some dsp-specific functions and variables to run on the ARM.
    (EX. DNUM, CSL_chipReadDNUM, CSL_chipReadTSCL, TSCL ...)

    1. The return value is null when the file is opened.
    2. Values of pBuffer value in NandReadDataBytes is filled with 0x30.
    (function path : platform_device_open >> NandGetDetails >> NandReadSpareArea >> NandReadDataBytes)
    For dsp, this values are 0xff.

    Could you give me some advice or solution for me?

    Thanks again.
  • Dear Rahul,

    I resolved this issue with slight delay when sending the column, page, and block address to the NAND device using NandAleSet.

    Unlike DSP NAND project, ARM NAND project did not work properly without some delay during column, page, and block address assignment.

    I am grateful for your help to port the NAND driver to my project.

    Regards,
    Donghwi