Electronics > Repair
Agilent 34461A corrupted flash
<< < (30/41) > >>
ElectronMan:
If you get JTAG going, here is what you'll need uisng JTAG Commander (the segger tools, if using openocd, replace w1 with mwb and replace mem with mdb in the commands).

First "halt" the CPU while in the uboot prompt.


The first command should output 5 bytes identifying the chip manufacturer and a few parameters (the PBOOT checks this to see if it is natively supported).


--- Code: ---Read ID:
w1 0xBAB10000 0x90
w1 0xBAB20000 0x0
mem 0xBAB00000 5
--- End code ---

Next, PBOOT checks for the ONFI "magic" like this:

--- Code: ---Read ONFI:
w1 0xBAB10000 0x90
w1 0xBAB20000 0x20
mem 0xBAB00000 4
--- End code ---

This should return the letters "ONFI"

Finally, this next is the most likely place there could be an issue. It is the page PBOOT uses to configure itself. It tells it what kind of ECC is in use, as well as lots of other things that could break the boot process if it is wrong. For this reason, the manufacturer includes a checksum in this info, AND alternate copies of parameters later. PBOOT appears to ignore these things.


--- Code: ---Read Parameter Page:
w1 0xBAB10000 0xEC
w1 0xBAB20000 0x0
mem 0xBAB00000 512
--- End code ---

This will grab the complete parameters, with CRC and at least 1 redundant copy.

Make sure you don't resume the CPU after this. Just power cycle it, as you are putting the NAND into a mode UBOOT won't be aware of...
analogRF:
I connected the JTag and tried those commands but the "mem" command always says "Could not read memory." :-// :-// :scared:
analogRF:
if I use mem8 instead of mem, it takes the command with no error but then it does not show anything.
ElectronMan:

--- Quote from: analogRF on August 01, 2023, 01:57:45 pm ---if I use mem8 instead of mem, it takes the command with no error but then it does not show anything.

--- End quote ---

What was the memory error? Can you try this while in the PBOOT loader? That memory range is sometimes not available in earlier and later boot stages. Just drop into that menu and halt it there to try.

Even with the patched loader booting okay, it would be interesting to see what's wrong with your flash parameters page exactly.
analogRF:

--- Quote from: ElectronMan on August 01, 2023, 02:29:09 pm ---
--- Quote from: analogRF on August 01, 2023, 01:57:45 pm ---if I use mem8 instead of mem, it takes the command with no error but then it does not show anything.

--- End quote ---

What was the memory error? Can you try this while in the PBOOT loader? That memory range is sometimes not available in earlier and later boot stages. Just drop into that menu and halt it there to try.

Even with the patched loader booting okay, it would be interesting to see what's wrong with your flash parameters page exactly.

--- End quote ---

just says "Could not read memory." that's it

i'll try it in pboot
Navigation
Message Index
Next page
Previous page
There was an error while thanking
Thanking...

Go to full version
Powered by SMFPacks Advanced Attachments Uploader Mod