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.

How can i read out data from NAND Flash (EVM6678L)

Other Parts Discussed in Thread: SYSBIOS

Hello,


I'am developing an gesture recognition system on a TMDXEVM6678L.
My application loads at the beginning some MB of binary files containing reference gestures via fopen, which takes a lot of time.
I thought i could save those reference gestures to NAND Flash, so i don't have to wait so long for every little testrun.

I used the nandwriter_evmc6678l application and placed the reference gesture (test1.bin) at address 0x80000000 after loading the .out file to core 0 and hit run.

the output gives me:

NAND Writer Utility Version 01.00.00.01

Flashing block 1 (0 bytes of 36720)
Flashing block 2 (16384 bytes of 36720)
Flashing block 3 (32768 bytes of 36720)
Reading and verifying block 1 (0 bytes of 36720)
Reading and verifying block 2 (16384 bytes of 36720)
Reading and verifying block 3 (32768 bytes of 36720)
NAND programming completed successfully


But, at which address can i access my gesture? My nand_writer_input.txt contains these two lines:

file_name  = test1.bin
start_addr = 16384

But at address 16384 (0x4000) i can't find my gesture values. I also checked 0x7000000 or 0x70004000 but i can't find my values there.


How can i copy the writen gestures from NAND to lets say L2SRAM in my application using IPC and SYSBIOS and from which address?

Best Regards,

Florian

  • Hi,

    Refer flash_verify() on NAND writer (nandwriter_evmc6678l) application. This function Read back the data file that was just flashed. Refer "\ti\mcsdk_2_01_02_06\tools\writer\nand\src\nandwriter.c" for more information.

    Thanks,
  • Hi Florian,
    Where & How your application has been loaded to DSP? If the application has been loaded to flash then in which offset it is loaded?

    As mentioned by Ganapathi above, you shall refer the API's to read from flash and write to L2.
  • Hello Ganapathi and Rajasekaran,

    thank you for your replies.
    I checked out the flash_verify() function in nandwriter.c and wonder, if the pointer "scrach_block" should point to the location i want to load the data into which is stored in the Flash.
    Am i right with asuming, that the startadress of the flash and the size of the block comes from the nandWriterInfo object?

    My Problem is, that i can't find the codeline, where the function for writing TO Flash gets its start adress of the memory where to read from and the start adress of the flash where to write to.

    Rajasekaran,

    I don't try to load an application to Flash, but some sort of data i wan't to save. But i think it doesn't matter.
    As you can see in my first post, the nand_writer_input.txt contains the line:

    start_addr = 16384

    I think that should be the adress where the writen data will lie?

    As i said, i'am not shure, where the adresses and sizes for the source and destination memory are given to the functions flash_nand() and flash_verify().
    I hope you can give me some good advice about that.

    Regards,
    Florian