Closed gurpreetshanky closed 4 years ago
Have you ever tried to using sam-ba with the jumper(JP5) connected? According to page 15 of the user guide, when the jumper is removed the /CE will be high, and the NAND flash is disabled, the applet could not detect the NAND.
@TonyHan11 okk I made changes to my steps
still its the same error
Here are some requests needed before erase NAND with sam-ba from serial port:
Now sam-ba -p serial -b sama5d3-xplained -a nandflash -c erase
should work properly. Before execute the command please keep the serial port closed, otherwise the following error would occur:
"Error: Could not open serial port 'COMx': Access is denied."
Following is the log of erase NAND:
Opening serial port 'COMx'
Connection opened.
Detected memory size is 268435456 bytes.
Page size is 2048 bytes.
Buffer is 22528 bytes (11 pages) at address 0x0030a4a0.
NAND header value is 0xc0902405.
Supported erase block sizes: 128KB
Executing command 'erase'
Erased 131072 bytes at address 0x00000000 (0.05%)
Erased 131072 bytes at address 0x00020000 (0.10%)
Erased 131072 bytes at address 0x00040000 (0.15%)
... ...
Erased 131072 bytes at address 0x0ffc0000 (99.95%)
Erased 131072 bytes at address 0x0ffe0000 (100.00%)
Connection closed.
Hey @TonyHan11 I was able to flash it. I didn't even have to use the j2 port , just the j6 port. thanks.
Hello,
i'm trying to erase the flash in this board using sam-ba tool. I removed the NAND CS jumper and connected the USB to laptop and pressed reset button, upon which I can see monitor mode by pressing V# on serial port. When I run this command
sam-ba -p serial -b sama5d3-xplained -a nandflash -c erase
I get following error
Opening serial port 'COM6' Connection opened. C:/Dev/embedded_rust/sam-ba_3.3.1-win32/sam-ba_3.3.1/qml/SAMBA/Applet.qml:247: Error: Could not initialize applet (status: undefined) Connection closed.
Any ideas or Am I doing something wrong?