Page 1 of 1

ATSAMS7 Command line programming via USB

Posted: Thu Sep 08, 2016 10:29 pm
by neotrackman
Processor: ATSAMS70Q19A
SAM-BA version: 3.1.3

Any idea's why this happens ?

It's present in "device-manager"...

I Erase it ...
I Reset it ...

When i try to Program the uCtrl using the SAM-BA command line (via USB) i get this error:

C:\Temp\sam-ba_3.1.3-win32\sam-ba_3.1.3>sam-ba.exe -x Test.qml
Opening serial port 'COM6'
Connection opened.
C:/Temp/sam-ba_3.1.3-win32/sam-ba_3.1.3/qml/SAMBA/Applet.qml:112: Error: Could not initialize applet lowlevel (status: undefined)
Connection closed.



Test.qml: (modified example file from the installation)

import SAMBA 3.1
import SAMBA.Connection.Serial 3.1
import SAMBA.Device.SAMV7 3.1

AppletLoader {
connection: SerialConnection { }

device: SAMV7 { }

onConnectionOpened: {
// load/init lowlevel applet
appletInitialize("lowlevel")

// load/init flash applet
appletInitialize("flash")

// erase all flash
appletFullErase()

// flash program
appletWrite(0, "mw-ctrl.bin")

// set GPNVM1 (boot from flash)
appletSetGpnvm(1)
}
}

Re: ATSAMS7 Command line programming via USB

Posted: Wed Aug 30, 2017 11:47 am
by jmbrederveld
Perhaps try the 3.2.0 release from Github:
https://github.com/atmelcorp/sam-ba/releases