1
0
mirror of https://github.com/Optiboot/optiboot.git synced 2025-07-29 20:21:11 +03:00

291 Commits

Author SHA1 Message Date
abbe828f81 oops. Last commit had a bug or two, and while every .hex file tha built matched the prvious verion, some of them didn't build at all. 2019-08-27 23:39:25 -07:00
ba257540f8 restructure the Virtual Boot code so that it is easier to read.
These are preprocesing and commenting changes, and do not cause any changes in the binaries (tested for all of the bootloaders generated by the makeall.* scripts.)
2019-08-27 19:17:59 -07:00
b8b760546b Merge pull request #266 from justarandomgeek/master
Put BIGBOOT strings in flash so __do_copy_data doesn't get placed ahead of the jump table.
2019-02-03 01:55:31 -08:00
3f78f99745 Put BIGBOOT strings in flash so __do_copy_data doens't get placed ahead of the jump table. 2019-02-02 15:30:14 -05:00
0a6528d1fc optiboot.h needs to be part of the test_dospm example,
not (just) off as part of the MCUdud cores..
2018-10-11 15:10:22 -07:00
6ab10b545a Merge pull request #256 from SpenceKonde/master
Fix virtualboot for tiny841 and others
2018-10-09 21:51:49 -07:00
2bc6d71497 Merge branch 'master' into master 2018-10-09 21:51:31 -07:00
36a3271a1c Merge pull request #257 from majekw/travis-5
Travis-ci: use avr-gcc 5.4.0 from Arduino, update targets
2018-10-09 21:46:13 -07:00
7c5be22831 Merge pull request #259 from majekw/issue-258
Fix compilation of attiny828at8_5v, atmega168 BIGBOOT=1 and attiny84
2018-10-09 21:43:40 -07:00
e866cae9d7 Fix attiny84 and possible other chips without hardware UART 2018-10-09 23:42:35 +02:00
5d40a2afcc Fix compilation of attiny828at8_5v and atmega168 BIGBOOT=1 2018-10-08 23:35:30 +02:00
8fe96eac33 Travis-ci: use avr-gcc 5.4.0, update targets
- use avr-gcc 5.4.0 shipped with Arduino 1.8.7 as it's the only one
that supports PB chips
- added new targets (mostly ATtiny chips)
- generate comparison with emoji by default
- update allow_failures
2018-10-08 18:07:21 +02:00
d0c7d5c64c Fix led flash on tx5, tx61
Since these have weirdo timer1's
2018-10-08 01:14:56 -04:00
a5c9de3fd0 pin defs for more attiny 2018-10-08 01:14:16 -04:00
eea6dad0ae Fix ATtiny828; proper USART conditionals in pin_defs.h,
remove infinite recursion for "make attiny828at8"
2018-10-06 23:02:05 -07:00
46755bf49a fix last pull
This reverts commit 714a3f31ea. and recommits the changes to optiboot.c (sparing the changes to makefile.tiny which you may want to do differently)
2018-10-07 01:33:23 -04:00
1f9d9661c3 Revert "Generalize virtualboot fix"
This reverts commit 714a3f31ea.
2018-10-07 01:31:20 -04:00
714a3f31ea Generalize virtualboot fix
and extend to devices with 4-byte vectors
2018-10-07 01:29:33 -04:00
0722a8fcfb Fix virtualboot for tiny841 and others
Fix virtualboot on ATTiny841 to use EE_RDY vector and handle vector on second page of flash.
2018-10-06 22:46:01 -04:00
b1b897766d Don't do the BRG divisor analysis for SOFT_UART targets.
(and improve the check that does happen for SOFT_UART.)
2018-10-06 17:25:59 -07:00
bd451cfa0e fix the windows omake.bat (maybe?)
get our own copy of https://github.com/WestfW/Arduino-avr-tools-install
and used that to set up the tool paths.  You still need to make "make"
installed in the path (or in the arduino tools bin directory.)
2018-09-27 01:03:46 -07:00
e5c412b073 Documentation edits 2018-09-26 16:16:30 -07:00
946fcee317 Try to fix some formatting, spelling, and gramar.
(my markdown editor and github don't quite agree on rendering)
2018-09-26 03:18:54 -07:00
8254ebab42 Change Wiki links to actual http links. 2018-09-26 03:05:59 -07:00
a1a552222f Don't build .lst files for PRODUCTION builds.
also, add more help text for MCUDude targets.
2018-09-26 02:53:14 -07:00
df7e4434ac Update README.md Make a new top-level "wiki" directory.
(because keeping the wiki pages in the source tree should allow other people to edit them and make pull requests, more easily that modifying the "protected" wiki pages (without making them fully publicly editable.)
2018-09-26 02:46:01 -07:00
f3308fc40d Fix credits for the do_spm code. v8.0 2018-09-20 01:30:51 -07:00
e9af37fef0 Bumb to Version 8.0: add DO_SPM code
This is not quite the same as MCUdude's code, but it has the same
calling conventions.  This version doesn't use do_spm from the bootloading
code itself, since that recently went to some effort to use more of
the standardized boot.h calls.  That means that this code is a bit
bigger than it really needs to be.  (Still small enough to fit within
the 512byte limit, given recent compilers.)
Sadly, the compiler options that barely fit SUPPORT_EEPROM in 512bytes
are incompatible with DO_SPM, so you have to choose.  Since do_spm was
supported by the MCUDude platforms, and not 512byte version of optiboot
has ever supported EEPROM, the do_spm code wins, for backward compatibility!

Also standardize the "makeall" shell script names, and update the release script.
2018-09-20 01:19:15 -07:00
b10ce15298 Merge pull request #246 from majekw/travis-4
Travis-CI: targets update, compilation matrix with sizes, documentation
2018-09-15 03:56:30 -04:00
20a79ce310 Add code and comment about resetting watchdog.
Which is needed if the bootloader will be invoked by the
sketch as a service ('J' command.)
2018-09-14 02:48:09 -07:00
e0f998df41 Merge pull request #249 from Mm7/master
Fix baud rate setting for single speed mode
2018-09-05 01:35:10 -04:00
97ae2a52f4 Fix baud rate setting for single speed mode
Baud rate is calculated using the hardcoded formula:
	( (F_CPU + BAUD_RATE * 4L) / (BAUD_RATE * 8L) - 1 )
While this is correct for double speed mode, this value is wrong
for single speed mode and leads to corrupted communications.

The issue is fixed by reusing the BAUD_SETTING value.
2018-09-04 14:10:11 +02:00
9b8e1f9a8b Merge pull request #248 from majekw/appstart
Save 2-6 bytes on appStart function.
2018-08-19 02:42:05 -07:00
bf652ba9c0 Save 2-6 bytes on appStart function.
2 bytes on moving code out of function (saves one rcall),
0-4 bytes on using rjmp/jmp instead of ijmp (depends on target).
2018-08-17 17:03:20 +02:00
66fdd11ebb Travis-CI: targets update, compilation matrix with sizes, documentation 2018-08-17 02:22:32 +02:00
862e9dd5e8 Help Text for tinyxx7 7.0-180815 2018-08-14 21:43:19 -07:00
d8f209a544 Add ATtiny87 base (untested) 2018-08-14 21:38:42 -07:00
2fd356ff5d Add basic ATtiny167 support. (LIN UART) 2018-08-14 19:45:20 -07:00
1f961dfb93 Fix comments 2018-08-07 13:12:58 -07:00
b263cada08 Merge in the MCUdude platforms. Don't do baudcheck, and don't warn
about moderate baud errors, if PRODUCTION is set.  (this reduces
clutter in the output and should make things a bit quicker.
developers are supposed to check all the warnings prior to setting
PRODUCTION)
2018-08-07 02:09:01 -07:00
4eb02969bc __wr_spmcsr was wrong for cpus where it was out of the io space. 2018-08-07 01:56:21 -07:00
a70f090eb9 Add make help for AVR_FREQ and SINGLESPEED 2018-08-05 18:55:59 -07:00
b30d32e152 Finish SINGLESPEED option support 2018-08-05 18:51:42 -07:00
ee87d274df More ATtiny fixes. optiboot.c needed the FOURPAGEEASE stuff.
Add ATtiny828, fix some errors in Makefile.tiny.
Make "attiny84" actually a compileable target.
Actually test on live ATtiny84 and ATtiny1634 chips!
2018-08-05 02:42:23 -07:00
57bb015c48 Add ATtiny1634 and ATtiny841, via Makefile.tiny
These are the non-LIN based tinys,
based on https://github.com/SpenceKonde/ATTinyCore/
(Except: segregate and modernize the make instructions!)
2018-08-04 03:08:32 -07:00
8eb696369a Add build info to BIGBOOT images. Fix some minor bugs. 2018-08-03 17:06:24 -07:00
9b83da3489 Update some .hex/.lst files to v7, delete some others
as per https://github.com/Optiboot/optiboot/issues/78
2018-07-30 23:02:59 -07:00
0eb655a0fb Reorganize Makefiles slightly; implement "make help"
Make things reasonably self-documenting.
Group related options together (LED, COMM, extra features.)
Group similar targets together.  Or less randomly, anyway.
2018-07-29 01:35:54 -07:00
565a9b6bbc Include a version number in the .zip file name. 2018-07-27 22:30:58 -07:00
ea848cfc33 Add makeoptions to test various compile options.
Remove use of "error" in Baudcheck not-quite errors, to make searching test logs for actual errors easier.
2018-07-27 22:29:20 -07:00