Programming mega88pb with avr studio 4

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

The device isn't in the chip list... is there any way to add the device parameters ?

Or am I forced to go to Studio 6 ?

By  selecting mega88P I can erase, set/change fuses but if I try to program ( in auto with check sig unchecked) it goes through the motions of programming but fails on the first verify byte (=0xFF)

Any ideas ?

Last Edited: Fri. Sep 4, 2015 - 09:26 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

It is tough to add a chip to an older version of a compiler.

If you get just one register wrong, you are in trouble, and then you have to try to figure out if it is your addition to the compiler that is buggy, or if it is your code that is buggy.

 

If you had a pre-release chip that wasn't yet in the compiler, then you would have a good reason to make the effort to try and add it to the supported chips list.

 

That isn't the case, here, however, and I'd suggest you just accept the fact it is  time to upgrade Studio and go for it.

 

JC 

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

If you want to use AS4 with newer chips then download and use the Atmel Toolchain instead of WinAvr if using C, otherwise you need the latest .inc files only if using assembler.

 

You could use AVRdude for programming provided that either you know how to modify the file to use the new chip or someone else has already done it.

 

No chance of debugging however with dW with the old studio, well unless some clever person would figure out the correct files to modify and add.

 

As a long time hater of AS5 and AS6 I'm currently using AS7.0 beta and it seems to mostly behave after the initial "I'm gonna hate this one too".

 

Most other stuff is still AS4.18.

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

Last Edited: Sat. Sep 5, 2015 - 12:34 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Is there a tutorial for adding the current Atmel Toolchain to AS4?  It should be relatively easy, right?

 

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

No tutorial that I know of, just point the Studio to the folder where the toolchain resides in your project.

 

I think that the last of the Mahicans, AS4.19, does this by default and it may just be the case of updating the toolchain when a new version is available for newer chips.

 

hmmm looks like I'm still using winAvr make however

 

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

LOL I 'll install AS6 and just use it as a programmer smiley

 

Too much software fiddling does my head in, especially high level stuff

Thanks,

 

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

You don't have to "tell" Studio 4. It picks up the location of "atmel toolchain" from the registry so will find the last one you installed (it USED to do that with WinAVR too but in the switch from 4.18 to 4.19 they deliberately stopped doing this - presumably to force users to use Atmel toolchain not WinAVR even though, at the time, their compiler build was shite. (their recent 4.8.1 and 4.9.2 are as well built as Winavr was)