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.

DM643x_NORWriter problem: Erase failure at block address 0x42000000

Other Parts Discussed in Thread: CCSTUDIO

 

 Hi, I am using a project (DM643x_NORWriter) that I have download from www.ti.com/davinciregistration to flash the nor memory present in evmDM6437. The instrucctions in readme are:

1.  Set your device in emulation boot mode.
2.  Open CCS with the appropriate GEL file loaded.
3.  Connect to the DM6437 EVM in CCS (Alt+C).
4.  Load the LC_NORWriter project in CCS (located in \build directory)
5.  Reset the DSP (Ctrl+R)
6.  Load the DM643x_NORWriter.out file (located in \build\debug).
7.  Run the program.
8.  When prompted for the AIS binary, supply the AIS file generated by the
    DM6437_AISGen utility, or by the genAIS.pl perl script.
9.  Downloading the application can take some time...be patient.
10. When complete, you will see various status messages indicating erasure
    and writes are complete.
11. Disconnect the board from CCS (Alt+C).
12. Remove power, change bootmode switches to NOR Fastboot.
13. Restore power and application will boot and execute.

 

        I have follow the steps above (I have put the SW1 to 0000 1000 = Emulation boot; but I cab't find  LC_NORWriter project, I think there is an error as the only project that exist in the folder are  DM643x_NORWriter ) and it gives me the next error :

Erasing the NOR Flash
Erase failure at block address 0x42000000
    ERROR: Erasing NOR failed.
    NOR flashing failed!

 

       I have tried several time with no success... could someone told me anything about this issue? I need to program the NOR flash of our custom board and I was happy to find this project but it seems not to work well even in the evmDM6437.

 

 

Thanks

 

 

  • I tried the same utility on my EVM and I get the same error as you. It appears something is wrong with the utility as I have successfully flashed the same EVM with the flashburn utility many times before. I will have to check on this internally to see what we can do about fixing the utility that is up there, and perhaps get you a version that works sooner.

  • Thanks Bernie, I really would appreciate that. Thanks for your support

     

     

  • Hi,

    i am not sure if it could still help you but I had a similar problem and found out the reason for it:

    While trying to do some tests with the NOR-Flash on EVMDM6437, I used the functions of the board support library ("evmdm6437bsl.lib"). I found out, that in "<CCStudio>\boards\evmdm6437_v2\lib\evmdm6437bsl\evmdm6437_flash_id.c" a wrong sector size is used for the SPANSION NOR-Flash S29GL256N. I am not familiar with LC_NORWriter but if it links against this lib, this may be the same mistake.

    There is a function called "EVMDM6437_FLASH_getTotalPages()", where the device id is checked for DEV_S29GL256N_1, 2 and 3. Since the sectors size is not 64K but 128K, you must set

    device_flash_pages += 128;
    device_flash_page_length = 0x20000;
    device_flash_page_len_pow2 = 17;

    With the pjt-file it is easy the recompile the library. It is also possible that the bug has already been fixed in newer releases.