I can't program the NOR flash, I try with H-Flasher (jtag) but in the H-Flasher I do not find S29AL016J70TF102 (my NOR flash device). I try with AM29LV160DB but that did not work. can anyone help me plz ?
mini2440 128M S29AL016J70TF102
This problem has come up 2 or 3 times in the last 6 months. No one has reported back what the solution is so I can only assume there are a number of useless mini2440s out there. My suggestion is to complain to whoever you bought it from telling them that part of supplying a usable development system is the ability to re-flash the primary bootloader. Good luck.
Hi Francisco, I know this may be too late. You have a Spansion NOR flash chip on your board. Use the attached .hfc script file with H-JTAG to program it. If it doesn't, google for a Spansion chip H-JTAG script file (.hfc). It might help. @davef: The Spansion parts seem to be a recent addition to the Mini2440 boards. I have one on my board too and the above script worked for me. (PS: Remove the .txt at the end of the filename before using) Gautam
@Gautam, My board also has S29AL016J70TF102 NOR chip. From where to find the .hfc file for this CHIP? or how to create the .hfc file from the datasheet?
@miniarm: What is your problem when flashing the NOR? If you use the newest version of H-TAG from their website you find the Spansion NOR's in the list. Use the S29AL016MT NOR. Are you not able to flash (completing with errors) or is SuperVivi not working properly? In my case flashing completes successfully but i got no output on serial console when booting the NOR. I am not sure if my hardware is broken or if SuperVivi is not working properly after flashing.
@Titus, In Programming section If i press the check button to test the connection fails saying 'can't halt to wait and enter into debug state' I am not able to flash the NOR flash. Lots in sand. :(
Ok, what happens, when you press the Reset Button and then the Check Button above of the programming mask? If it reports an ID check error, try the S29AL016MB NOR. It seems that are going different types of the S29AL016J70TF102 NOR chip around. Another possibility is that it needs a SoftReset before if the ID is reported ok. I have changed the hfc script from Gautam to MT version with SoftReset and MB with and without SoftReset. I hope this helps. Good luck!
@Titus, Thanks for the file and your time. I have tried your given file, but still gettting the same result. Don't know what is wrong over here. Please Help. Also find the attached pictures for the ref.
Sorry, just read that you wrote that you pressed the check button. Then the MT with SoftReset should work or your NOR chip is broken.
When bot MT and MB with SoftReset don't work i think it is an hardware problem, probably the NOR chip. Which device you use for flashing? The LPT port wiggler delivered with the board with custom config? If not, try it. It works fine for me.
@Titus, From where to find the LPT port wiggler and custom config file? in DVD? which file i should look after...? Can you please tell me your steps which works, may be I will blindly follow the step it it works.
I use the LPT device coming with the mini2440 board. It looks like the one in the attached picture. I assume you know the manual for flashing , else it can be found there: http://www.andahammer.com/assets/Uploads/All2440/Firmware/JTAGingTheNOR.pdf Be aware to config the pins like described under "Setting the menu". Then i load the FriendlyArm_Mini2440.his by clicking the button "S". Next step: Selecting the flash Spansion S29AL1016MB (try also S29AL1016MT), or load the hfc file. Under "configure" ind H-JTAG you can add SoftReset, but fpr me it was not necessary. Under "Program" i did a Reset and a Check which both was reported ok. Then erase the whole chip Then select SuperVivi and click Program Maybe i can do a manual with Screenshots, but no time today to do so ;-) Good luck!
@Titus, Thank you for the long explanation. Can you please give me one more favour. Can you please send me your screen shots of Flash Selectiom, Init Script, Configuration and Programming? so that I can verify the exact steps. I took same steps as describe by you above, but still it is giving me same error of 'Can't halt target and make it into DEBUG state'. Please send me you configuration screen shots that will be much better for me as I have two board in dead condition.
@miniarm: Please check if your boot switch (slide switch on the side opposite to the power switch) is in NOR boot position. If it is in the NAND boot position, you will get an error like yours. Hope that helps. Gautam
@Gautam, I am operating the board in NOR only. I also done the same steps describe by @Titus, but no luck :(. Can you please share the screen shots of your procedure for same NOR chip with H-JTAG version 1.1. That will be great help for me. -- miniarm
I have some probles jtagging this NOR....I have 5 mini2440 to jtag with the old supervivi....any help ? I follow all the instructions suggested by Titus, but with no luck! Thanks in advance Eugenio
Hi Eugenio, I know this may sound stupid but it helps if one verifies each step to isolate the problem. 1. Does your board show up in H-JTAG with ARM920T chip id: 0032409D? (If not, check your JTAG hardware setup.) 2. If yes, start H-Flasher and check if the Spansion part number for your NOR flash is available in the list. (If not, try using H-JTAG v 2.1) 3. Choose the correct flash part number matching your board. Then, in H-Flasher got to the step for "Programming" the flash. Click on the <Check> button and see if the Flash part is detected. 4. Only if Steps 1, 2 and 3 above are correct, will your flash programming complete successfully. Please let me know where you are stuck. I'd like to help. Good luck! Gautam
Hi Gautam, I've done all the 4 steps suggested by your last msg...but I obtain these error when press Check button: Error: Can't download driver at specified address In Configuration page I set: 16bit x 1 chip Flash start addr: 0000 RAM start addr 0x4000000000 The Version of HJTAG is 2.1 Thanks! Eugenio
Hi Eugenio, AFAIK the RAM start address for Mini2440 is 0x30000000! That might probably explain the error message. Try changing RAM address to 0x30000000. I think it should solve your problem. (From what I know, the JTAG uses RAM as a buffer while flashing the NOR chip.) Good luck! Gautam
For me it works with address 0x40000000. But using 0x30000000 makes sense as RAM really starts at 0x30000000.
Hi Gautam, thank you! With 0x300.... works! Now I'm able to reflash the Spansion NOR.... Thanks! Eugenio