G400-S SAM-BA failure

I have a custom PCB using a G400-S that isn’t accepting programming through SAM-BA. Other PCBs in the same batch are working fine. Power supplies all read correctly, and switching USB ports and reinstalling the SAM-BA driver did not help.

Module appears in Devices and Hardware as “Bossa Program Port” even when PA11 (Pin 75) is not pulled to ground on power up. Update.bat fails with the following log file contents:

-I- Waiting …
-I- TCL platform : Windows NT
-I- SAM-BA 2.12 on : windows
current connection is \USBserial\COM16, \USBserial\COM16 to be matched
-I- Retrieved arguments from command line :
-I- argv 0 : \USBserial\COM16
-I- argv 1 : at91sam9g15-ek
-I- argv 2 : Loader.tcl
-I- Connection : \USBserial\COM16 (target(comType) = 0)
-I- Board : at91sam9g15-ek
-I- Traces Level : 4
-I- target(handle) : 31131536
Read device Chip ID at 0xfffff240 — get 0x819a05a1
-I- Found processor : at91sam9g15 (Chip ID : 0x819a05a1)
sourcing device file C:/Program Files/Atmel/sam-ba_2.12/sam-ba.exe/…/tcl_lib/devices/at91sam9g15.tcl
sourcing board description file C:/Program Files/Atmel/sam-ba_2.12/sam-ba.exe/…/tcl_lib/at91sam9g15-ek/at91sam9g15-ek.tcl
-I- Loading applet applet-lowlevelinit-sam9g15.bin at address 0x300000
-I- Memory Size : 0x0 bytes
-I- Buffer address : 0x4
-I- Buffer size: 0x0 bytes
-I- Applet initialization done
-I- Low level initialized
-I- External RAM Settings : extRamVdd=0, extRamType=1, extRamDataBusWidth=32, extDDRamModel=0
-I- External RAM Settings : extRamVdd=0, extRamType=1, extRamDataBusWidth=32, extDDRamModel=0
-I- Loading applet applet-extram-sam9g15.bin at address 0x300000
-I- Memory Size : 0x8000000 bytes
-I- Buffer address : 0x300B90
-I- Buffer size: 0x0 bytes
-I- Applet initialization done
-I- External RAM initialized
-I- Command line mode : Execute script file : Loader.tcl
-I- Loading applet applet-extram-sam9g15.bin at address 0x300000
-I- Memory Size : 0x8000000 bytes
-I- Buffer address : 0x300B90
-I- Buffer size: 0x0 bytes
-I- Applet initialization done
-I- DATAFLASH::Init 0 (trace level : 4)
-I- Loading applet applet-dataflash-sam9g15.bin at address 0x20000000
-E- Script File Loader.tcl returned error : Error Initializing DataFlash Applet (Can’t detect known device) - Error Initializing DataFlash Applet (Can’t detect known device)
while executing
"error “Error Initializing DataFlash Applet ($dummy_err)”"
(procedure “DATAFLASH::Init” line 14)
invoked from within
"DATAFLASH::Init 0"
(file “Loader.tcl” line 11)
invoked from within
"source $scriptFile"

Any ideas?

Edit:

I’ve now tried to update the rest of my modules. 2 out of 12 could not be updated. One of those modules had 5 V inadvertently applied to the 1.8V and 3.3V supply pins due to a couple of mis-populated linear voltage regulators. This has since been fixed. The 2nd module never had incorrect power applied to it, but is experiencing the same issue.

@ bigtwisty - It looks like the board is having an issue with detecting the flash chip, I would contact us to begin an RMA.