SAM-BA v2.18 Problem

Go To Last Post
8 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0


Hi all,

 

I used to be able to program a large batch of SAME70 boards via SAM-BA v2.18 before.

Now I get "Error h_handle returned zero" problem.

I tried v2.17 and it is the same.

 

I am on Windows 10 21H2.

 

 

Any ideas?

 

TIA

Last Edited: Wed. Nov 24, 2021 - 05:34 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

AfdhalAtiffTan wrote:
I am on Windows 10 21H2.
21H2 isn't yet recommended.

AfdhalAtiffTan wrote:
Any ideas?
One has ten days to reverse a Windows 10 feature update; otherwise, the RTM builds are available and can be brought forward (Windows Update)

 

edit :

21H2 is finally out @ AskWoody

 

"Dare to be naïve." - Buckminster Fuller

Last Edited: Wed. Nov 24, 2021 - 03:48 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0


Thank you for your reply @gchapman.

 

Are there other workarounds for it to work on 21H2?

 

I can use the GUI, but not the CLI tool.

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Tcl has somewhat recent issues on Windows 10; try a more recent Tcl.

Tcl Developer Site

 

"Dare to be naïve." - Buckminster Fuller

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

AfdhalAtiffTan wrote:
Now I get "Error h_handle returned zero" problem.
BOSSA may be an alternative.

AfdhalAtiffTan wrote:
Any ideas?
SAM-BA v3

 


BOSSA | shumatech.com

[fourth paragraph]

The third reason is reliability.  SAM-BA is a complex application built on top of a TCL/TK scripting engine.  It works fairly well under Windows XP but there are a lot of reports of crashing or locking up on Windows Vista and Windows 7.  It also doesn't run well with 64-bit versions of Windows.  BOSSA by contrast is a native application and runs reliably in all versions of Windows from Windows 2000 on up for both 32-bit and 64-bit versions.

GitHub - arduino/BOSSA: BOSSA is a flash programming utility for Atmel's SAM family of flash-based ARM microcontrollers.

 

SAM-BA IN-SYSTEM PROGRAMMER | Microchip Technology

 

"Dare to be naïve." - Buckminster Fuller

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

gchapman wrote:
Tcl has somewhat recent issues on Windows 10; try a more recent Tcl.

 

Thank you for the link.

Unless I misunderstand you, I don't think it is possible to change the TCL version as it is in the .exe binary.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

gchapman wrote:

BOSSA may be an alternative.

 

Any link with examples for Atmel specific applications?

 

gchapman wrote:

SAM-BA v3

 

V3 has limited device support.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

I can't get it to work with UART and now it is working with USB.

 

My script now uses:

sam-ba \USBserial\COM3 at91same70-xplained flash.tcl

 

instead of:

sam-ba COM3 at91same70-xplained flash.tcl

 

My flash.tcl:

FLASH::Init
FLASH::EraseAll
send_file {Flash} "app.bin" 0x00400000 0
compare_file  {Flash} "app.bin" 0x00400000 0
FLASH::ScriptGPNMV 2

 

I think this is a good workaround for me for the time being. I hope this will help others.

 

Thank you all.