SAMBA 3.3.1 nanflash applet cannot init device

Microchip in-system programming solution: SAM-BA

Moderators: nferre, fab

Posts: 4
Joined: Tue Jun 16, 2020 7:23 pm

SAMBA 3.3.1 nanflash applet cannot init device

Tue Jun 16, 2020 7:43 pm

Dear community,

I face the problem that I cannot flash my sama5d3 based board.
- My OS is Linux (Manjaro-20.0)
- I have a working serial connection, where I can see that SAM-BA monitor arrives at "RomBOOT" and I can see the output of the Applets

With SAM-BA 3.3.1, using the example for

Code: Select all

I can see that both the "lowlevel" and the "extram" applets are executed successfully. But the applet "nandflash" fails because it "cannot autodetect chip".
But how could I "help" the applet in the detection? the device.config.nandflash object has only 3 fields (ioset:1, busWidth:8, header: 0xc0902405) which do not help further.

Code: Select all


Applet 'Low-Level' from softpack 2.17 (v2.17).
Current processor clock: 96 MHz
Current processor clock: 528 MHz

Applet 'External RAM' from softpack 2.17 (v2.17).
Preset 2 (2 x MT47H128M16)
External RAM initialization complete.

Applet 'NAND Flash' from softpack 2.17 (v2.17).
Initializing NAND ioSet1 Bus Width 8
-E- nand_raw_initialize: Could not autodetect chip.
-E- Can't initialize device
On the host side the script's output is:

Code: Select all

Opening serial port 'ttyACM0'
Connection opened.
/path/to/sam-ba_3.3.1/qml/SAMBA/Applet.qml:247: Error: Could not initialize applet (status: 15)
Connection closed.
Any help or hint would be greatly appreciated!
Posts: 4
Joined: Tue Jun 16, 2020 7:23 pm

Re: SAMBA 3.3.1 nanflash applet cannot init device

Wed Jun 17, 2020 6:49 am

It was a timing issue.

I have to "unselect" the flash chip to get into the RomBOOT and I executed the qml script to rapidly and the applet initialization would take place with an "unselected" flash, so no wonder it could not recognize it.

If I use the incremental CLI commands or add a delay before the nandflash applet initialization to make sure I have time to release the unselect button, al works fine.

Return to “SAM-BA”

Who is online

Users browsing this forum: No registered users and 2 guests