View previous topic :: View next topic |
Author |
Message |
q065522
Joined: 17 Dec 2009 Posts: 5
|
Posted: Fri Feb 17, 2017 3:13 pm Post subject: Bascom 2080 / USBASP programmer / ATMEGA328PB |
|
|
In version 2080 an error occurs with my USBASP programmer when I start Identify Chip:
"ATmega328PB , Flash : 32768 , EPROM: 1024
Chip Device ID : 1E9516
Can not set clock frequency. Please check for usbasp firmware update"
I bought a new USBASP programmer with "V2.0" , but it is the same problem.
Has everyone else this problem and how could it be solved ??
I try to use the ATmega328PB because I need 3 timers with 16Bit.
In the attached testcode the compiler show an error when I say "enable icp1". The equivalent register order "Timsk1.5 = 1" can be compiled and works (in simulator)
The same with icp3. icp5 not tested.
"Lock and Fuse bits" in the programmer menu offers the "Full-swing Crystal".
But the 328PB datasheet says the full swing mode is no more available ?
Is it possible to use the "m328PBdef.dat" in Bascom 2078 ? There my programmers works.
Many questions. Hope someone can help me.
Bye
Joachim
(BASCOM-AVR version : 2.0.8.0 , Latest : 2.0.7.8 ) |
|
Back to top |
|
|
albertsm
Joined: 09 Apr 2004 Posts: 5913 Location: Holland
|
Posted: Fri Feb 17, 2017 3:36 pm Post subject: |
|
|
In 2080 there is an error/warning id the chose clock can not be set. In older versions there was no such message. But not having an indication about a failure can lead to problems when programming fuse bytes.
The question : which clock do you have selected?
The programmer will work despite the message btw.
ICP1 : it appears that TICIE1 definition is missing.
Just add it to the dat file. I will ask Tomi to check it.
fuse bits : better trust the data sheet. i will have it checked. We usually use the XML file form atmel since these are created from the same software as the actual chip. _________________ Mark |
|
Back to top |
|
|
q065522
Joined: 17 Dec 2009 Posts: 5
|
Posted: Fri Feb 17, 2017 5:51 pm Post subject: |
|
|
Hello Mark,
thanks for reply.
I tried to use
KLA987: 001110 Ext.Crystal Osc.
It didn't work. Thats why I used the intern RC-Osc.
"m328PBdef.dat" in Bascom 2078 is possible?
kind regards
Joachim |
|
Back to top |
|
|
albertsm
Joined: 09 Apr 2004 Posts: 5913 Location: Holland
|
Posted: Mon Feb 20, 2017 4:27 pm Post subject: |
|
|
attached an update. _________________ Mark |
|
Back to top |
|
|
q065522
Joined: 17 Dec 2009 Posts: 5
|
Posted: Tue Feb 21, 2017 12:36 pm Post subject: |
|
|
Hi Mark,
the problems are solved with the new "m328PBdef.dat"
Timer 1 / 3 / 4 works well up to 20 Mhz (external clock) under Bascom 2080 and 2078 also.
Thanks for Your fast help.
best regards
Joachim |
|
Back to top |
|
|
teccs
Joined: 14 Oct 2006 Posts: 69
|
Posted: Wed Oct 10, 2018 6:33 am Post subject: 2.0.8.1 Same error with ATMEGA 168 and ATMEGA 1284P |
|
|
I clicked on Manual Program and then clicked on Identify Chip.
Same error on ATMEGA 168 and ATMEGA 1284P.
Not programming anything, just identifying the chip. Will this cause me any problems with programming the chips?
Thank you,
Tim |
|
Back to top |
|
|
Paulvk
Joined: 28 Jul 2006 Posts: 1257 Location: SYDNEY
|
Posted: Wed Oct 10, 2018 7:19 am Post subject: |
|
|
I have been programming a M644P at 10Mhz even though I get the same error
and it has been working ok just might be a problem at higher speeds
I found this in the past with a 1248P at 20mhz
so I switched to internal RC at 8Mhz to program
then switched back to external crystal and all was well
seemed to go ok with the change of fuse bits
Regards Paul |
|
Back to top |
|
|
|