WestfW
bb9ae67aee
Day of testing and minor edits.
...
The RTC might be busy at startup.
This seems to be working - code successfully uploaded, after I got all the fuses right.
2019-09-03 02:57:51 -07:00
WestfW
1d763359a7
Debugging.
2019-09-02 03:03:17 -07:00
WestfW
4c12f27e66
New version of optiboot for Mega0 and xTiny AVRs. Uses NVMCTRL, and of course all of the peripherals have changed.
...
This is an initial commit of code that compiles. There's no reaon to expect it to be working yet! (but: only 430 bytes, with EEPROM support!)
2019-09-01 21:58:21 -07:00
WestfW
5c67c2d688
Fix bug(s) in calculation of rjmp offset for virutal boot builds.
...
See https://github.com/Optiboot/optiboot/issues/275
2019-08-28 14:06:33 -07:00
WestfW
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
WestfW
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
Bill Westfield
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
Thomas Deal
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
WestfW
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
Bill Westfield
6ab10b545a
Merge pull request #256 from SpenceKonde/master
...
Fix virtualboot for tiny841 and others
2018-10-09 21:51:49 -07:00
Bill Westfield
2bc6d71497
Merge branch 'master' into master
2018-10-09 21:51:31 -07:00
Bill Westfield
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
Bill Westfield
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
majekw
e866cae9d7
Fix attiny84 and possible other chips without hardware UART
2018-10-09 23:42:35 +02:00
majekw
5d40a2afcc
Fix compilation of attiny828at8_5v and atmega168 BIGBOOT=1
2018-10-08 23:35:30 +02:00
majekw
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
Spence Konde (aka Dr. Azzy)
d0c7d5c64c
Fix led flash on tx5, tx61
...
Since these have weirdo timer1's
2018-10-08 01:14:56 -04:00
Spence Konde (aka Dr. Azzy)
a5c9de3fd0
pin defs for more attiny
2018-10-08 01:14:16 -04:00
WestfW
eea6dad0ae
Fix ATtiny828; proper USART conditionals in pin_defs.h,
...
remove infinite recursion for "make attiny828at8"
2018-10-06 23:02:05 -07:00
Spence Konde (aka Dr. Azzy)
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
Spence Konde (aka Dr. Azzy)
1f9d9661c3
Revert "Generalize virtualboot fix"
...
This reverts commit 714a3f31ea
.
2018-10-07 01:31:20 -04:00
Spence Konde (aka Dr. Azzy)
714a3f31ea
Generalize virtualboot fix
...
and extend to devices with 4-byte vectors
2018-10-07 01:29:33 -04:00
Spence Konde (aka Dr. Azzy)
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
WestfW
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
WestfW
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
WestfW
e5c412b073
Documentation edits
2018-09-26 16:16:30 -07:00
WestfW
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
WestfW
8254ebab42
Change Wiki links to actual http links.
2018-09-26 03:05:59 -07:00
WestfW
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
WestfW
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
WestfW
f3308fc40d
Fix credits for the do_spm code.
v8.0
2018-09-20 01:30:51 -07:00
WestfW
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
Bill Westfield
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
WestfW
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
Bill Westfield
e0f998df41
Merge pull request #249 from Mm7/master
...
Fix baud rate setting for single speed mode
2018-09-05 01:35:10 -04:00
Marco Milanese
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
Bill Westfield
9b8e1f9a8b
Merge pull request #248 from majekw/appstart
...
Save 2-6 bytes on appStart function.
2018-08-19 02:42:05 -07:00
majekw
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
majekw
66fdd11ebb
Travis-CI: targets update, compilation matrix with sizes, documentation
2018-08-17 02:22:32 +02:00
WestfW
862e9dd5e8
Help Text for tinyxx7
7.0-180815
2018-08-14 21:43:19 -07:00
WestfW
d8f209a544
Add ATtiny87 base (untested)
2018-08-14 21:38:42 -07:00
WestfW
2fd356ff5d
Add basic ATtiny167 support. (LIN UART)
2018-08-14 19:45:20 -07:00
WestfW
1f961dfb93
Fix comments
2018-08-07 13:12:58 -07:00
WestfW
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
WestfW
4eb02969bc
__wr_spmcsr was wrong for cpus where it was out of the io space.
2018-08-07 01:56:21 -07:00
WestfW
a70f090eb9
Add make help for AVR_FREQ and SINGLESPEED
2018-08-05 18:55:59 -07:00
WestfW
b30d32e152
Finish SINGLESPEED option support
2018-08-05 18:51:42 -07:00
WestfW
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
WestfW
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
WestfW
8eb696369a
Add build info to BIGBOOT images. Fix some minor bugs.
2018-08-03 17:06:24 -07:00