View previous topic :: View next topic |
Author |
Message |
hzz
Joined: 20 Feb 2007 Posts: 314
|
Posted: Mon Jul 23, 2018 6:42 pm Post subject: AVRISP STK500 USB ISP Programmer |
|
|
I can`t find theAtmel AVRISP MKii programmer anymore; instead I see the AVRISP STK500 USB ISP Programmer (which is not made by Atmel/Microchip). Does anyone have experience with this programmer and Bascom?
(Notice that I'm not talking about the STK500 development board but just an USB programmer similar to the AVRISP MKii)
(BASCOM-AVR version : 2.0.7.9 , Latest : 2.0.8.1 ) |
|
Back to top |
|
|
O-Family
Joined: 23 May 2010 Posts: 320 Location: Japan
|
|
Back to top |
|
|
EDC
Joined: 26 Mar 2014 Posts: 971
|
Posted: Tue Jul 24, 2018 6:17 am Post subject: |
|
|
Where did you search? On every auction portal like eBay or Aliexpress you can find them (MK2).
MK2 is better because can programm Xmegas. It cover ISP, PDI and TPI interfaces. |
|
Back to top |
|
|
hzz
Joined: 20 Feb 2007 Posts: 314
|
Posted: Wed Jul 25, 2018 12:14 am Post subject: |
|
|
I used to buy the MK2 from the Atmel page, but now they say: "This product is no longer available for sale. For a replacement, see the Atmel-ICE" but BASCOM does not support the Atmel-ICE, does it?
I cannot find AVRISP XPII at Digikey or Mouser or other serious provider either. I wonder if BASCOM supports any original USB programmer which is not obsolete. |
|
Back to top |
|
|
O-Family
Joined: 23 May 2010 Posts: 320 Location: Japan
|
Posted: Wed Jul 25, 2018 3:06 am Post subject: |
|
|
I also have "Atmel-ICE-BASIC", but Mark decided not to correspond with BASCOM.
Therefore, I also gave up using.
"USB AVRISP XPII" is a clone manufactured by "Waveshare Electronics" in Shenzhen, China.
Purchasing is possible with "Waveshare Electronics" direct selling or in China's mail order AliExpress.
Of course, it corresponds to PDI of Xmega.
I can not directly link the seller to the forum, so follow the seller's link from my page. |
|
Back to top |
|
|
EDC
Joined: 26 Mar 2014 Posts: 971
|
Posted: Wed Jul 25, 2018 4:17 am Post subject: |
|
|
In Bascom Options->Programmer you can set "External Programmer"
When you search google about "atmel ice standalone" you will find AN2466 and read in it that Atmel Studio comes with command line utility for Atmel ICE. It calls "atprogram".
So you can set fuse bits with Atmel Studio and then program your uC with HEX or BIN from Bascom.
In AN2466 you can read example parameters should be given to atprogram. If they wrote : "atprogram -t atmelice -i ISP -d ATmega328PB program -f file.elf" you should remove "atprogram" and change "file.elf" with "{FILE}" (at the end) and Bascom will pass HEX or BIN into the atprogram
You can find special tab for "parameter" and there you should set/write this parameters.
Sorry that I cant provide full example of screenshot but I have actually set Externall Programmer for flashing Arduino Leaonardo. Take a look. |
|
Back to top |
|
|
O-Family
Joined: 23 May 2010 Posts: 320 Location: Japan
|
Posted: Wed Jul 25, 2018 5:37 am Post subject: |
|
|
Of course, I think that everyone knows how to use "External Programmer".
However, as with writing "HEX file compiled with BASCOM" using "Atmel Studio", it takes time and effort.
I think that is troublesome and I do not like it.
If so, it is much more convenient to use "USBasp" which can also write fuses with the $PROG command!
Last edited by O-Family on Wed Jul 25, 2018 5:50 am; edited 1 time in total |
|
Back to top |
|
|
EDC
Joined: 26 Mar 2014 Posts: 971
|
Posted: Wed Jul 25, 2018 5:45 am Post subject: |
|
|
O-Family wrote: | However, as with writing a compiled HEX file with "Atmel Studio", it takes more time and effort. |
Using command line utility "atprogram" for HEX dont fire AtmelStudio. It is quick. LINK TO APPNOTE
Because some codes of user @hzz are signed "$regfile = x128A3.def", I think we are also talking about programming Xmegas what USBasp cant do. |
|
Back to top |
|
|
hzz
Joined: 20 Feb 2007 Posts: 314
|
Posted: Wed Jul 25, 2018 3:58 pm Post subject: |
|
|
I will take a look at AN2466 and BASCOM external programmer and see if I can get a practical solution
Thanks!
(Yes, I just use XMEGAs) |
|
Back to top |
|
|
albertsm
Joined: 09 Apr 2004 Posts: 5913 Location: Holland
|
Posted: Wed Jul 25, 2018 7:45 pm Post subject: |
|
|
Most clones will work fine. I use a clone from olimex with altered firmware for libusb support.
you do not need atprog for that.
i also started to work on ICE support but one thing lead to another so i have no idea when that will be ready for publication. _________________ Mark |
|
Back to top |
|
|
O-Family
Joined: 23 May 2010 Posts: 320 Location: Japan
|
Posted: Thu Jul 26, 2018 12:22 am Post subject: |
|
|
EDC wrote: | Using command line utility "atprogram" for HEX dont fire AtmelStudio. It is quick. LINK TO APPNOTE |
I do not think operation on the command line is convenient.
So, I prefer using AtmelStudio's IDE.
EDC wrote: | Because some codes of user @hzz are signed "$regfile = x128A3.def", I think we are also talking about programming Xmegas what USBasp cant do. |
So, I recommend "USB AVRISP XPII" I demonstrated. |
|
Back to top |
|
|
hzz
Joined: 20 Feb 2007 Posts: 314
|
Posted: Thu Jul 26, 2018 12:22 am Post subject: |
|
|
OK, Thanks Mark |
|
Back to top |
|
|
|