Atbackend ATtiny416 error

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

Hello everyone, im working on a project that uses atbackend standalone for programming ARM related chips. When i try to flash a program with that atbackend code:

 

atprogram -t atmelice -i swd -d  ATtiny416  program -f  program.hex

 

and it returns that result: 

 

Assertion failed: px != 0, file e:\jenkins_mcu\workspace\atbackend__build__master__win32-x86\atbackend\build\win32_vc140\third_party\include\boost\smart_ptr\shared_ptr.hpp, line 710
TCF channel terminated
error: [Errno 10054] Varolan bir bağlantı uzaktaki bir ana bilgisayar tarafından zorla kapatıld
  File "tcf\channel\AbstractChannel.py", line 69, in run
  File "tcf\channel\StreamChannel.py", line 61, in read
  File "tcf\channel\ChannelTCP.py", line 96, in getBuf
[ERROR] JSON error: Failed to parse response to  Tool:setProperties: Command C Tool setProperties aborted

 

what i tried: -updated java

-updated atbackend

-installed  new packets from atpackmanager

 

and still having same error output. I did a search about that error but it seems nobody had that error before. I appreciate all kind of helps and ideas. Thanks sincerely.

 

 

Last Edited: Fri. Nov 26, 2021 - 04:36 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

sami.yilmaz wrote:
programming ARM related chips

sami.yilmaz wrote:
atprogram -t atmelice -i swd -d  ATtiny416  program -f  program.hex

 

An ATtiny is not an "ARM related chip" - it is an AVR.

 

So what target are you actually trying to program?

 

EDIT

 

As  meolsen points out (below), SWD does not make sense for any AVR - so, presumably, you do mean an ARM ?

 

in another recent thread, you wrote:
"atprogram -t atmelice -i swd -d  ATSAM3X8E -setGPNVMBIT 0x00000003"

 

so you meant SAM3x8E ?

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
Last Edited: Thu. Nov 25, 2021 - 01:34 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

SWD + ATtiny?

:: Morten

 

(yes, I work for Microchip, yes, I do this in my spare time, now stop sending PMs)

 

The postings on this site are my own and do not represent Microchip’s positions, strategies, or opinions.

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

sami.yilmaz wrote:
programming ARM related chips

sami.yilmaz wrote:
atprogram -t atmelice -i swd -d  ATtiny416  program -f  program.hex

An ATtiny is not an "ARM related chip" - it is an AVR.

So what target are you actually trying to program?

EDIT

As  meolsen points out (below), SWD does not make sense for any AVR - so, presumably, you do mean an ARM ?

in another recent thread, you wrote:
"atprogram -t atmelice -i swd -d  ATSAM3X8E -setGPNVMBIT 0x00000003"

so you meant SAM3x8E ?

 

I'm sorry that i wrote wrong references. My other question is about a project i still work on it, still not finished. This one is another product. I'm new on microchip programming. So probably im doing wrong on so much things.

In my case, i coded a C# interface that crypting a hex file and in other screen it does decrypt hex file and burn it into microchip. And it is working well. So in product department nobody can access source code of my hex files (i hope). 

To sum up i need to use atbackend to program my ATtiny416 microchip. So i tried to use that code: 

 

atprogram -t atmelice -i swd -d  ATtiny416  program -f  program.hex 

 

and i got that error in return. What am i doing wrong. Thanks for helping me.

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

If you followed the hints about swd you would find that the interface for ATtiny416 is called UPDI. So try "-i updi".

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


sami.yilmaz wrote:
i need to use atbackend to program my ATtiny416

So you are in the wrong forum: this is for ARM-based devices - you need the AVR section

 

A moderator can move it for you:

 

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...