Pages: 1 ... 3 4 [5]   Go Down
Author Topic: Uploading troubles to 1284p  (Read 9213 times)
0 Members and 1 Guest are viewing this topic.
Global Moderator
Offline Offline
Brattain Member
*****
Karma: 480
Posts: 18732
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

This is the boot code version number. I think it is not supposed to be at that location. See optiboot.c and the Makefile: the version is meant to be in a section named "version".

Oh well, that makes sense. My uploader program did not like those extra bytes at that address. Doesn't make sense to be programming address 0x0000 when uploading a bootloader.
Logged


SF Bay Area (USA)
Offline Offline
Tesla Member
***
Karma: 132
Posts: 6746
Strongly opinionated, but not official!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
For some reason the big bootloaders do not have this option.
Bug.  Fixed in the source.  http://code.google.com/p/optiboot/issues/detail?id=56
Logged

Offline Offline
Full Member
***
Karma: 9
Posts: 109
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Ok, I will follow optiboot development over there. (I thought the head of optiboot development was in your arduino repo at github).
Logged

SF Bay Area (USA)
Offline Offline
Tesla Member
***
Karma: 132
Posts: 6746
Strongly opinionated, but not official!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I thought the head of optiboot development was in your arduino repo
It was, but I decided that there needed to be a separate head for optiboot developments that weren't relevant to the Arduino core platforms.  Of the ten changes that have been made since the 4.4 version deployed by Arduino, only one is relevant to the "real" arduino cores (and that not until they upgrade compiler versions.)  Most have been for the 1284 (which had never been part of an official Arduino board.)
Logged

Offline Offline
Jr. Member
**
Karma: 0
Posts: 81
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I alo started a 1284p adventure, using this board.
Schematic and PCB of the board http://arduino.cc/forum/index.php/topic,80483.msg732693.html#msg732693.
Uploaded the bootloader, following maniacbug blog without any problems.
Then I tried uploading a sketch with USB BUB-II (modern device).
But all I got was error.
I then placed the 1284P on a breadboard ( nick setup), and that worked.
On the diagram, you can find a RS232 interface, this makes a pullup for the RX line, the BUB couldn't pull down
this line far enough to work.
I cut the trace's to R9 and (R6/TXled), and now the board works fine for me.

Thanks to Nick, Manicbug , and all others contributing




Logged

Sweden
Offline Offline
Sr. Member
****
Karma: 13
Posts: 257
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

@ nick
Tried uploading larger sketches?

Not yet.

Quote
and Is the bootloader uploaded by your https://github.com/nickgammon/arduino_sketches/tree/master/Atmega_Board_Programmer same as the one provided by maniacbug?

It is the file optiboot_atmega1284p.hex from maniacbug's GitHub page. Slightly modified to change some of the consecutive 0xFF bytes to be 0x00 because of the problem with uploading a lot of consecutive 0xFFs to the Uno using the standard Optiboot (known bug there).

@ Nick: Can you please upload your modified HEX file to some host. I would want to burn the bootloader using my PC. The hex data is written in a array. And I can't get my head around how to reverse the data from array to HEX file again.

//Thanks in advance!
Logged

Global Moderator
Offline Offline
Brattain Member
*****
Karma: 480
Posts: 18732
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I must be going blind because I can't even see any consecutive 0xFFs to speak of any more.

I don't have a .hex file, I just edited the C code in spots to change 0xFF to 0x00.

However all you really need to do is, if the .hex file has line(s) near the end with completely 0xFF, just delete them. Can you provide a link to the file you are trying to use?
Logged


Global Moderator
Boston area, metrowest
Online Online
Brattain Member
*****
Karma: 533
Posts: 26958
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Here's the hex file I've been using as bootloader,
the pins_arduino.h variant,
and the boards.txt entry:

Code:
##############################################################

bobuino.name=Bobuino
bobuino.upload.protocol=arduino
bobuino.upload.maximum_size=130048
bobuino.upload.speed=115200
bobuino.bootloader.low_fuses=0xff
bobuino.bootloader.high_fuses=0xde
bobuino.bootloader.extended_fuses=0xfd
bobuino.bootloader.path=optiboot
bobuino.bootloader.file=optiboot_atmega1284p.hex
bobuino.bootloader.unlock_bits=0x3F
bobuino.bootloader.lock_bits=0x0F
bobuino.build.mcu=atmega1284p
bobuino.build.f_cpu=16000000L
#bobuino.build.core=arduino:arduino
bobuino.build.core=standard
bobuino.build.variant=bobuino

##############################################################

* optiboot_atmega1284p.hex (1.47 KB - downloaded 16 times.)
* pins_arduino.h (6.08 KB - downloaded 22 times.)
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Global Moderator
Offline Offline
Brattain Member
*****
Karma: 480
Posts: 18732
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

That doesn't seem to have a lot of consecutive FFs in it, so that particular problem shouldn't apply.
Logged


Sweden
Offline Offline
Sr. Member
****
Karma: 13
Posts: 257
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I must be going blind because I can't even see any consecutive 0xFFs to speak of any more.

I don't have a .hex file, I just edited the C code in spots to change 0xFF to 0x00.

However all you really need to do is, if the .hex file has line(s) near the end with completely 0xFF, just delete them. Can you provide a link to the file you are trying to use?

Here you go =): https://github.com/maniacbug/mighty-1284p/blob/master/bootloaders/optiboot/optiboot_atmega1284p.hex
Logged

Pages: 1 ... 3 4 [5]   Go Up
Jump to: