Is there a "How To" on flashing a 328 with the new HAH Firmware?

13 replies [Last post]
danward79
Offline
Joined: 19 Jan 2011

Hi,

I have a few 328 chips and would like to flash one with the latest firmware. Is there any instructions on this? I have looked around but can't find anything.

I have an arduino board and an FTDI cable, so could use one of a few approaches. I was thinking of burning the arduino bootloader and then just flashing the "liveboxHAH" code onto the chip.

I think my quiery is around the chip running at 7MHz, do I need to set some fuse bits? Or will I be able to get away without doing that?

Cheers

 

Dan

garrydwilms
Offline
United Kingdom
Joined: 31 Mar 2011
Use avr studio and flash the hex code

There is a write up for this somewhere which I followed no problem. I will have a dig round for it

Here it is: http://www.dbzoo.com/arduino/isp_with_stk500

brett
Offline
Providence, United States
Joined: 9 Jan 2010
Yes this is doable

Dan,

This is definately doable.  In fact I've done this myself and I have v3.4 running on a 328 with the Arduino bootloader. The only thing you need to keep in mind is that that the code must be compiled using 7.xxxxMhz clock.   The easier route would be to attach the Arduino with the 328 chip and bootloader to the HAH and download the pre-compiled HEX and follow the same process as written up for the jeenodes on flashing from the HAH itself.

Brett

PS: you don't need any special fuse bits etc.. just whatever the defaults are for the Arduino bootloader is fine.

Alanmh
Offline
Reading, United Kingdom
Joined: 7 Jul 2010
Is it possible to do this

Is it possible to do this with a HAHNode?, not sure what the bootloader Brett refers to is?

Thanks 

 

Alan

brett
Offline
Providence, United States
Joined: 9 Jan 2010
Sorry?

Sorry what is your question?  I'm not clear on your problem?

The Bootloader I'm refering to is the one that is shipped with an Arduino, HAHNodes and JeeNodes  You require a bootloader so you can flash .HEX file from the HAH or from the PC without having to need a ISP.

Brett

Alanmh
Offline
Reading, United Kingdom
Joined: 7 Jul 2010
The question is :I have a

The question is :

I have a HAHNode (Jeenode) (or will have as soon as it arrives back from Derek;-)) 

I have an old 328 chip for the HAH since I ordered a new one from the shop., but the new one is only v2.8 and I want to update to the latest 3.x version as I have had some RF issues (if I understood the other thread correctly).

So, I want to update my old 328 chip (running v1.something) to 3.x using the method you link to above using the HAHNode. Sounds like it will work, just want to make sure.

brett
Offline
Providence, United States
Joined: 9 Jan 2010
HAH chips did not ship with a bootloader

Derek does not flash down a bootloader when he ships the HAH chips.  So your existing v2.8 HAH chip although perfectly fine can't be upgraded easily until it has a bootloader on it.  You have a couple of options I guess.

1) Buy an ISP programmer so you can flash down a bootloader and/or HEX file's directly.
2) See if anybody on the forums can flash a bootloader for you.
3) See if anybody has a spare AVR with a bootloader and you can trade chips in the post :)

I have mentioned to Derek that in future we should ship with bootloaders, not sure if the new v3.4 have bootloader on them or not (I don't do that side of things) initially we did not as it was an untested configuration - but since then I've had mine running v3.4 with a bootloader quite nicely.

Brett

g7pkf
Offline
United Kingdom
Joined: 11 Jan 2011
I can do it (possibly)

Never done it but i do have a isp and 500 programmer along with avr studio v4.

now is there an ELF? or ELM? (cant remember the exact file type) avalible as this sets all fuse bits etc etc correctly (as i understand it)

I do have a 3.4 chip and a spare 328 so i may have a go at copying tommorrow but as i say i am new to these mega chips.

I live near MIlton Keynes.

 

Dean

derek
Offline
Glasgow, United Kingdom
Joined: 26 Oct 2009
The correct fusebits will already be set

I do this when preparing all HAH AVR 328s. You only need to flash the new .cpp.hex file.

Alternatively, I'm happy to re-flash a returned 328 chip with the latest firmware (so long as you include a S.A.E.).

Derek.

g7pkf
Offline
United Kingdom
Joined: 11 Jan 2011
I don't mind either

I know Derek is a very busy person i don't mind doing a "swap" over as long as postage is covered.

dean

 

P.S Derek do you have an ELF file for firmware? (production version of AVR studio software)

derek
Offline
Glasgow, United Kingdom
Joined: 26 Oct 2009
Flashing the HAH firmware

I don't use a .ELF file when flashing the HAH 328 chips.

If you want to flash your own chip, simply follow my notes at http://www.dbzoo.com/arduino/isp_with_stk500

The latest AVR firmware hexfile is at http://code.google.com/p/livebox-hah/downloads/detail?name=AVR-r271.hex

Cheers,

Derek.

Alanmh
Offline
Reading, United Kingdom
Joined: 7 Jul 2010
Thanks

Dean and Derek

Yes, I thought Derek is busy as he is never home.

Dean, I dont have your address, Dont know if this forum supports PM?

Alan

Alanmh
Offline
Reading, United Kingdom
Joined: 7 Jul 2010
There is a slight error

In Brett's URL for the hex code use this to see a list http://code.google.com/p/livebox-hah/downloads

Alan

BoxingOrange
Offline
United Kingdom
Joined: 11 Jun 2010
Sorted Yet?

Dan,

Did you get sorted with a replacement 328, if not let me know and I can do it for you,

Karl

Hardware Info