mini2440 128M S29AL016J70TF102

Francisco
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 ?

davef
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.

costas
i had the same problem has annyone solusion on that?
thanks

Gautam
Attachment: H-Flasher_S29AL016T.hfc.txt (1 KB)
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

miniarm
@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?

Titus Breidung
@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.

miniarm
@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. :(

miniarm
Attachment: error.JPG (84.78 KB)
@Titus,

Attached please find the error log message.

Titus Breidung
Attachment: S29AL016MT_SoftReset.hfc.txt (1.02 KB)
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 Breidung
Attachment: S29AL016MB.hfc .txt (1 KB)
S29AL1016MB ohne SofReset

Titus Breidung
Attachment: S29AL016MB_SoftReset.hfc .txt (1.02 KB)
S29AL1016MB with SofReset

miniarm
Attachment: error.JPG (81.86 KB)
@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.

miniarm
Attachment: init.JPG (97.8 KB)
Also find the init snapshot which shows the Softreset.

Titus Breidung
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.

Titus Breidung
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.

miniarm
@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.

Titus Breidung
Attachment: 2013-02-26_15-14-33_640.jpg (1.78 MB)
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!

miniarm
@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.

Gautam
@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

miniarm
@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

eugenio alessi
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

Gautam
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

Eugenio Alessi
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

Titus Breidung
Hi Eugenio,

have you verified that the NAND/NOR switch is at position NOR?

Eugenio ALESSI
Hi Titus,
yes I checked the switch and it is in NOR position.

Thanks!

Eugenio

Gautam
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

Titus Breidung
For me it works with address 0x40000000. But using 0x30000000 makes sense
as RAM really starts at 0x30000000.

Eugenio ALESSI
Hi Gautam,
thank you! With 0x300.... works! Now I'm able to reflash the Spansion
NOR....

Thanks!

Eugenio