Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Bascom 2080 / USBASP programmer / ATMEGA328PB

 
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-AVR
View previous topic :: View next topic  
Author Message
q065522

Bascom Member



Joined: 17 Dec 2009
Posts: 5

germany.gif
PostPosted: Fri Feb 17, 2017 3:13 pm    Post subject: Bascom 2080 / USBASP programmer / ATMEGA328PB Reply with quote

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
View user's profile
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 5272
Location: Holland

blank.gif
PostPosted: Fri Feb 17, 2017 3:36 pm    Post subject: Reply with quote

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
View user's profile Visit poster's website
q065522

Bascom Member



Joined: 17 Dec 2009
Posts: 5

germany.gif
PostPosted: Fri Feb 17, 2017 5:51 pm    Post subject: Reply with quote

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
View user's profile
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 5272
Location: Holland

blank.gif
PostPosted: Mon Feb 20, 2017 4:27 pm    Post subject: Reply with quote

attached an update.
_________________
Mark
Back to top
View user's profile Visit poster's website
q065522

Bascom Member



Joined: 17 Dec 2009
Posts: 5

germany.gif
PostPosted: Tue Feb 21, 2017 12:36 pm    Post subject: Reply with quote

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
View user's profile
teccs

Bascom Member



Joined: 14 Oct 2006
Posts: 66

usa.gif
PostPosted: Wed Oct 10, 2018 6:33 am    Post subject: 2.0.8.1 Same error with ATMEGA 168 and ATMEGA 1284P Reply with quote

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
View user's profile Visit poster's website
Paulvk

Bascom Member



Joined: 28 Jul 2006
Posts: 1213
Location: SYDNEY

australia.gif
PostPosted: Wed Oct 10, 2018 7:19 am    Post subject: Reply with quote

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
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-AVR All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum