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.
PS: Please mark this post as answered via the Verify Answer button below if you think it answers your question. Thanks!
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---
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 represents the LS address bit (the half-word address) and EM_BA represents address bit (A). The maximum number of address lines pins in 16-bit mode are 23, which include EM_BA + EM_A[0:13] +EM_BA (as pin A via PINMUX2 register) + EM_A[15:20] +EM_A (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?
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.
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: :
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
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.
Have you resolve your problm, I met the same problem,would you like give some clues?
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.