c9bbfb2e37
Add an AS7-style project with more of the Eval boards defined as targets.
...
(Previous AS support was for v6.x)
This is a single "solution" with multiple "projects" for each board.
2021-10-07 23:07:35 -07:00
e4187d8cda
Fix some PACKS related features.
...
Most importantly, use quotes so that windows paths containing spaces can be used.
2021-10-07 16:45:35 -07:00
159bcabf48
Move the legacy .hex files back to their legacy location.
2021-10-04 15:07:47 -07:00
28555a490f
Merge pull request #327 from Virtual-Java/usb-mcus
...
Add support for AVR-USB-MCU-families ATmegaXYu2/4/6 and AT90USBXYZ6/7 eg. Arduino Uno USB-MCU / Micro
2021-10-04 14:38:55 -07:00
5dc3bd3f76
Move legacy hexfiles to legacy directory
2021-10-03 22:45:22 +02:00
5e3d2631f2
Create .gitignore to exclude compile output like .hex, .elf and .lst files
2021-10-03 22:45:09 +02:00
00edb206f3
Improve variable assignment for lockfuse and filename
2021-10-03 22:43:57 +02:00
a71f10b57d
Add parameter for bigboot in filename
2021-10-03 22:42:33 +02:00
0111ab9ce5
Update README.md
...
Add support for AVR-USB-MCUs
2021-10-03 22:42:09 +02:00
91e55f26c8
Add bigboot support to USB-MCUs and correct wrong bootsize for atmega16u4
2021-10-03 22:41:49 +02:00
89ea5b256f
Improve Makefile.usbmcus default parameter assignment
2021-10-03 22:35:29 +02:00
b82e1f3f98
Correct transposed digits in UART register definitions for USB-MCUs
2021-10-03 22:34:34 +02:00
dbecfae710
Remove duplicate UART port check
2021-10-03 18:49:28 +02:00
69ba8378d0
Add support for AVR-USB-MCUs ATmega8u2,16u2,32u2,16u4 and 32u4
2021-10-03 18:49:14 +02:00
0dd4cedfbd
Move the rs485 tx_disable to the end of putch instead of getch, because TXCIF is annoying :-(
...
Add Spence Konde's startup patches.
2021-07-08 23:59:56 -07:00
645a92fa92
Attempt RS485 Support (using programmed IO, not the mega0 USART feature.)
2021-06-28 00:43:27 -07:00
963abd0282
Automatically change section start address of app for BIGBOOT.
...
add labels for clearer "size" output;
run size on the .hex file as well, to show just the bootloader size.
2021-06-28 00:34:25 -07:00
bcc71438fe
Changes to allow pins_rs485.h to be used with both mega0/xTiny chips as well as older AVRs (PORTx vs VPORTx stuff.)
...
Also adjust the build info included in the BIGBOOT image.
2021-06-27 19:20:01 -07:00
084c69c6b8
More of the great re-formatting and de-tabification.
...
Mostly on optiboot_x.c, this time.
2021-06-27 00:36:05 -07:00
f4fd294e38
add SOFTRX=pin and SOFTTX=pin options to allow the pins to be selected when using SOFT_UART=1
...
pin_defs.h was getting large and ugly, so split out the SOFTRX/SOFTRX/RS485 into separate .h files
2021-06-22 16:55:35 -07:00
6e586f34ab
Add RS485 support, copied from ATTinyCore
2021-05-23 01:34:36 -07:00
d4077582ce
refactor the MCUSR handling to make code more readable.
...
The conditional compilation is moved and changed to define APP Start reasons and WDTRF Clear reasons, leaving the actual code much more straightforward.
(The assorted binaries remain the same.)
2021-05-19 17:53:53 -07:00
4782909e30
Add NO_START_APP_ON_POR and START_APP_ON_EXTR support from ATTinyCore.
...
(with makefile aliases "BOOT_ON_POR" and "APP_ON_EXTR")
(binaries for ATmega328 with these options come out identical to ATTinyCore.)
2021-05-14 18:14:06 -07:00
db59a84013
Clean up some of the uglier CPU dependencies to make the code easier to read.
2021-05-03 23:16:22 -07:00
64bda3d518
Bring the buildable attiny targets up-to-date WRT Spence Konde's ATTinyCore.
...
This fixes the makefiles, expands makeall.tiny.sh, and a small warning generated by optiboot.c.
It does NOT add the other features/fixes from ATTinyCore (like RS485, or NO_START_APP_ON_POR), yet.
2021-05-02 00:55:53 -07:00
88e495c69d
More cosmetic changes.
...
Update copyright, rearrange option descriptions.
2021-05-02 00:49:28 -07:00
564372673a
Big cosmetic/formatting fix.
...
2-space indent default,
no tabs,
fix trailing whitespace,
fix spelling mistakes,
make auto-indent work properly in spite of the conditional compilation
2021-05-01 22:19:27 -07:00
4cc303c8e3
Merge pull request #296 from benpicco/atmega128rfa1
...
Add support for ATmega128rfa1
2020-11-09 23:56:20 -08:00
2c558a3f7d
Better (?) example of flash write from an Arduino sketch
2020-11-05 00:20:24 -08:00
9dcfa368ad
add support for atmega128rfa1
2020-10-15 11:55:45 +02:00
6aa5871762
oops. Finish the test_nmvctrl filename changes.
...
add symbolic values for memory regions (sigrow fuses userrow eeprom) and nvmctrl->ctla command ("copy", write, wp, erase, ep, erwp, pbc, cher, eeer)
2020-09-30 23:44:14 -07:00
4c564c2b17
rename test_reset --> demo_reset
2020-09-30 01:36:43 -07:00
2f3cf2887e
rename some of the test_* examples to demo_* to reflect that they're closer to actual examples, as opposed to some of the other test_* code, which is more like optiboot devlopment testing.
...
add a readme file to the examples directory.
2020-09-30 01:29:32 -07:00
c4ad0a8349
add missing example comments for do_nvmctrl
2020-09-30 01:07:54 -07:00
13b1e70478
convert to simpleParser; a proper C++ version of cli
2020-09-30 01:05:52 -07:00
f07ad4feec
Fix some whitespace-at-end-of-line issues.
2020-09-28 13:04:05 -07:00
aa46aa0db8
Bump version for fixed do_nvmctrl
2020-09-28 03:31:05 -07:00
eb4416a5f0
Add optiboot_x nvmctrl support to optiboot.h
...
minor fixes in test_dospm itself.
test_dospm (which uses only the "high level" calls to read and
write pages) now works the same (I think) on both traditional
AVR and new mega0/xTiny chips.
2020-09-28 02:57:14 -07:00
7975070bdc
Fix do_nvmctrl() (probably)
...
add a test_nvmctrl.ino sketch in examples that allows one to poke at it.
(the test sketch needs additional work; most of optiboo_x.h is commented out, and it should be merged with optiboot.x)
2020-09-27 01:30:17 -07:00
bb15a13779
Merge branch 'master' of https://github.com/Optiboot/optiboot
2020-09-27 01:12:31 -07:00
6323176f4c
Fix some comments.
2020-09-27 01:12:11 -07:00
bb2d5bd060
Merge pull request #290 from petersmythe/master
...
Fix spelling mistakes & grammar
2020-08-16 02:00:37 -07:00
66958d6a12
Fix spelling mistakes & grammar
2020-08-16 08:03:23 +02:00
6f98751c6d
Change the compile option symbols to be true/false instead of sometimes defined/undefined, so that specifying "LED_START_ON=0" doesn't actually cause the same behvaior as "LED_START_ON=1"
2020-06-18 00:48:08 -07:00
243ee94ffa
Add EIND setting for chips with more than 128k flash.
...
Untabify and fix some comment formatting.
2020-05-29 18:20:26 -07:00
345955996d
Merge branch 'master' of https://github.com/Optiboot/optiboot
2020-05-29 02:39:33 -07:00
ca5ef0a5c9
Fix incorrect reference to "pro micro" (which is a 32u4 board)
2020-05-29 02:38:54 -07:00
85d08800b1
Merge pull request #282 from enekochan/patch-1
...
Fix Markdown link
2020-05-29 02:31:00 -07:00
27f6adf44a
Fix "make help", at least on unixy systems. Remove the UARTTX option, which is only relevant for mega0 targets.
...
Remove mega0 targets from the Makefile.extras, where they slipped in accidentallly. They never worked, and caused confusing since a "make atmega4809" would generate compile errors instead of "unknown target" errors.
2020-05-29 02:17:56 -07:00
0b9a50d4e6
Add TIMEOUT option to Makefile. Implement this in optiboot.c
...
Fix comments so that TIMEOUT is in seconds (compatible with optiboot_x)
Check for illegal timeouts on older chips (4s and 8s are impossible on ATmega8) by checking whether the extra bit is defined in the ioxxx.h file.
Update the .hex and .lst files (binaries don't change from this edit, but I never updated them last time.)
2020-05-29 01:03:18 -07:00