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.

dm365 with nor flash

i have a question about dm365, I found the dm365  support boot from nor flash in the pdf. but when i write the  nor flash ,the EM_WE,EM_OE.EM_CE are always high,so i can not write to the nor flash. Can you help me?

  • Please make sure the pin mux 2 register, PINMUX2, bit 7, 8, 9 are 0,0,0 and the memory accesses are within the 0x0200_0000 - 0x03FF_FFFF space for EM_CE0 or the memory accesses are within the 0x0400_0000 - 0x05FF_FFFF space  for EM_CE1.

    Thanks,

    Tai

     

  • Dear Tai:

    First to explain is that i used the nor flash model is MX29GL128E(16MBytes).

     I have make  the mux 2 register PINMUX2 to 0x0000005A and the register PINMUX4 to  0xAAAA5555,So that GIO38--->EM_A15,GIO39--->EM_A16,GIO40---

    >EM_A17,GIO41--->EM_A18,GIO42--->EM_A19,GIO36--->EM_A21,GIO43--->EM_A20 ;

    Now I have encountered major problems is that I can write datas into the  nor flash whose addree from 0x0200 0000 to 0x0200 FFFF ;if the address above   0x0201 0000(including 0x0200 1000) ,I read the data of the address .whose data equal 0x0200 0000. for example:(*0x02010000) == (*0x0200 0000) ,(*0x02010001) == (*0x0200 0001) ,(*0x02010002) == (*0x0200 0000).............

    Similar to above,I can write datas into the  nor flash whose addree from 0x0202 0000 to 0x0202 FFFF;I can write datas into the  nor flash whose addree from 0x0204 0000 to 0x0204 FFFF......

    Between the address of  xxxx xxxx xxxx xxx0 0000 0000 0000 0000 and  xxxx xxxx xxxx xxx1 1111 1111 1111 1111  formed a circle,I have used  the Oscillograph Observation waveforms of EM_A15,but I did't  find EM_A15 Changed(holding low).

    I found   some words,the detail were attached:


      16-bit  mode:    EM_BA[1]      represents    the  LS   address    bit  (the  half-word    address)    and   EM_BA[0]
                represents  address  bit  (A[14]).  The  maximum  number  of  address  lines  pins  in  16-bit  mode  are  23,
                which include EM_BA[1] + EM_A[0:13] +EM_BA[0] (as pin A[14] via PINMUX2 register) + EM_A[15:20]
                +EM_A[21] (via PINMUX4 register)
                Note: Pins EM_A[15:21] are available by programming the PinMux4 register in software after boot, but
                must be pulled down externally so that valid voltage levels are provided on the full set of address pins
                during boot time. EM_A[15:21] come out of reset as GPIO pins per the PinMux4 register.

    warning:I pulled down EM_A[15:21] during boot timing.

    Through unremitting efforts at last I succeeded.

    Thanks very much .

     


     

  • OK ,No problem .Can you Describe your question clealy ,please.I just resolve the problem of writing data into nor flash .

  • thank you for the information. now we can erase/write to the Nor flash successfully.

    however we can not boot up from Nor flash. we are using the Ti dm365 EVM board, with Nor flash expansion bd through J14(EMIF) connector.

    We set SW4 to 110 as per SPRUFG5 table85.

    Can you advice whatelse do we need to boot up?

    Thanks.

  • Now , i work on the platform of dm365. i do the ipnc_dm365.but i do not want the audio and the network.i only need the camera with video,so can you tell me how to modify the code of ipnc_dm365.

    thx!

  • Dear sir,

    I use DM365 and s29gl064(8MBytes) (16bit mode) to develop, and I use dvsdk4.02 flash utils.

    I modify some config as http://processors.wiki.ti.com/index.php/NOR_Flash_support_on_DM365:  :

    DEVICE_pinmuxControl(2,0xFFFFFFFF,0x0000005a)

    DEVICE_pinmuxControl(4,0xFFFFFFFF,0xaaaa5555);

    And I change 

    AEMIF->A1CR = 0x3ffffffd;

     

    CFI ok and erase ok,but nor write will verify error.

     

    But I can only nor write ok the first block:

            Target: NOR Write OK through 0x02000800.

            Target: NOR Write OK through 0x02001000.

            Target: NOR Write OK through 0x02001800.

     

    Then it will verify error at next block.

     

    DONE received.  All bytes of image data received...

            Target: Erasing the NOR Flash

            Target: Erased through 0x02002000

            Target: Erased through 0x02004000

            Target: Erased through 0x02006000

            Target: Erased through 0x02008000

            Target: Erased through 0x0200A000

            Target: Erased through 0x0200C000

            Target: Erased through 0x0200E000

            Target: Erased through 0x02010000

            Target: Erased through 0x02020000

            Target: Erased through 0x02030000

            Target: Erased through 0x02040000

            Target: Erased through 0x02050000

            Target: Erase Completed

            Target: Writing the NOR Flash

            Target: NOR write address,data,readAddress=0x02000000,0x0004BD14,0x8017B

    388

            Target: blockSize,Blockaddr=0x00002000,0x02000000,

            Target: NOR Write OK through 0x02000800.

            Target: NOR Write OK through 0x02001000.

            Target: NOR Write OK through 0x02001800.

            Target: verify error=0x00000000,0x0000EB00

            Target: Data verify failed.

            Target: Buffered write failed. Trying normal write

            Target: AMD write address,data=0x02001CA0,0x00000017

            Target: start to veriry data

            Target: Normal write also failed

            Target: NOR Write Failed...Aborting!

     

    Can you give me some message? Thanks.

     

    -

    Qiu

     

     

     

     

  • Hi Qiu

          Have you resolve your problm, I met the same problem,would you like give some clues?