Go Down

Topic: New optiboot; beta testers welcome... (Read 135219 times) previous topic - next topic

Testato

thanks, i will read it,
do you have your first Karma  ;)
- [Guida] IDE - http://goo.gl/ln6glr
- [Lib] ST7032i LCD I2C - http://goo.gl/GNojT6
- [Lib] PCF8574+HD44780 LCD I2C - http://goo.gl/r7CstH

darksoul

Hi Guys!
i'll been working on a small plc controller atmega32 based.
I'm using the latest optiboot for the bootloader.
and Arduino IDE for the programming and flashing stuff.

So my question is: I want my application from Arduino IDE to be flashed on EXTERNAL EEPROM.
in optiboot.c i can add an #define SUPPORT_EEPROM, as far as i understood, i should add external eeprom support to flash the application.

But, when i don't add any eeprom, but enable the function, my Arduino IDE still flashed the application, by the logic it shouldn't.

so any support here? someone tried to do something similar?

westfw

no, the EEPROM support in optiboot refers to using the serial port (and avrdude) to the internal EEPROM of the chip, as a separate memory type (so that you could load up EEPROM data along with the sketch.)
Note that an AVR can NOT "run an application" from either external or internal EEPROM, only from the flash program memory.)


Riva

The Moteino can be wireless programmed and I think it loads the file into a flash chip (over wireless) then invokes a special bootloader that can program the arduino from the flash chip. Maybe you can adapt it's code/bootloader to your needs.
http://lowpowerlab.com/blog/2013/05/05/wireless-programming-update/
I might seem like an idiot but remember it takes one to know one.
Forum user generally fall into three categories (the good, the bad & the a**hole) what category do you fit in?

lukas12p

Hi,
I am trying to burn optiboot on my Arduino Pro Mini 3.3v 8MHz using Arduino ISP (Nano 5V).
So I:
-uploaded example sketch for ArduinoISP,
-changed boards.txt ( https://code.google.com/p/optiboot/downloads/detail?name=optiboot-v5.0a.zip&can=2&q=
-downloaded some also newer bootloader (hex file, https://code.google.com/p/optiboot/source/browse/optiboot/bootloaders/optiboot/optiboot_atmega328_pro_8MHz.hex?spec=svn9e0c0b9db6fea6f77590c235dab1c39024b9d89c&r=1eeecd3a4bac6923664f15caff7fb7b945b97506
-connected ISP board with target board with logic converter (3.3-5V), PIN_11,12,13 + 10 to RST,
-in Arduino IDE set board to optiboard, paste hex file to sketch and burned bootloader.

Log file:
http://www.wklej.eu/index.php?id=0e08e74523

So I think it looks ok, but I cannot upload any sketch. After reseting the board it blinks twice. I use the same serial connection as before (works with previous bootloader).
Do You have any idea what am I doing wrong?

Code: [Select]

Binary sketch size: 1,106 bytes (of a 32,256 byte maximum)
L:\ARDUINO\hardware/tools/avr/bin/avrdude -CL:\ARDUINO\hardware/tools/avr/etc/avrdude.conf -v -v -v -v -patmega328p -carduino -P\\.\COM22 -b115200 -D -Uflash:w:M:\Temp\build6508076842444733300.tmp\Blink.cpp.hex:i

avrdude: Version 5.11, compiled on Sep  2 2011 at 19:38:36
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is "L:\ARDUINO\hardware/tools/avr/etc/avrdude.conf"

         Using Port                    : \\.\COM22
         Using Programmer              : arduino
         Overriding Baud Rate          : 115200
avrdude: Send: 0 [30]   [20]
avrdude: Send: 0 [30]   [20]
avrdude: Send: 0 [30]   [20]
avrdude: Recv:
avrdude: stk500_getsync(): not in sync: resp=0x00

avrdude done.  Thank you.

westfw

It's not clear than any of the 8MHz versions of optiboot ever worked at 115200bps.
You're better off loading up the 16MHz bootloaders, and halving the baudrate in boards.txt.
(this is sort-of covered by https://code.google.com/p/optiboot/issues/detail?id=58 and https://code.google.com/p/optiboot/issues/detail?id=78 )

lukas12p

Hi,
I changed def. baud rate in makefile to 57600, compiled using Your omake 'short cut' and now it works.
Thank You

westfw

Since Google code is going away, Optiboot has been moved to GitHub:
https://github.com/Optiboot/optiboot

At least some of the wiki documentation and links have been fixed to account for the move, and there was some rework necessary to get the wiki pages looking like they used to.  I think it's mostly correct.


Coding Badly


Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy