4fe36af849
don't run baudcheck if bash isn't present
2025-05-26 01:31:27 -07:00
c25d93243b
https://github.com/Optiboot/optiboot/issues/357
...
Quit and timeout (will produce an avrdude error) if we try to read EEPROM using a version without EEPROM support.
2025-05-25 01:40:10 -07:00
20a88420a4
Merge pull request #377 from aschnell/master
...
fixed formatting and typos
2024-04-04 23:47:02 -07:00
73ceaf2da6
fixed formatting and typos
2024-03-23 12:13:09 +01:00
439dff1b4d
Merge pull request #375 from dlitz/for-upstream/add-nodate
...
Add NODATE=1 option to Makefile, for deterministic compilation.
2024-02-27 14:22:25 -08:00
2407e34276
Add NODATE=1 option to Makefile, for deterministic compilation.
...
There's already code that checks for NODATE in optiboot.c, so this just
passes the macro definition to the compiler and updates "make help".
Signed-off-by: Darsey Litzenberger <dlitz@dlitz.net >
2024-02-27 01:22:49 -07:00
55d1e6b369
Prevent use of "PINx |= bit" when toggling an LED on a not-IOSPACE port.
...
See https://github.com/Optiboot/optiboot/issues/346
2022-07-18 22:23:31 -07:00
cf6fb869b3
Merge.
...
Merge branch 'master' of https://github.com/Optiboot/optiboot
2022-07-18 22:18:56 -07:00
45d4c1a520
Add tiny-2 chips, and some missing tiny-0 and tiny-1.
...
See https://github.com/Optiboot/optiboot/issues/347
Add a hint to the non-mega0 Makefile about using Makefile.mega0
2022-07-18 22:14:53 -07:00
81bdd404ff
Merge pull request #341 from ondrej-stanek-ozobot/fix_lockfuse_write
...
Fix lock fuse verification step in the ISP target
2022-04-04 17:48:48 -07:00
d54168317a
Fix lock fuse verification step in the ISP target
...
The fuse bits value has to be prefixed with `0x`, otherwise,
avrdude treats it as a filename and the lock fuse write fails.
2022-04-04 13:27:05 +02:00
c8b69303e4
Merge pull request #339 from 2ijies11/fix
...
Fix register for SOFT_UART (PINx -> PORTx)
2022-03-09 17:50:37 -08:00
7676d8fc06
Fix register for SOFT_UART (PINx -> PORTx)
2022-03-07 14:46:16 +00:00
2fc8494074
Merge pull request #335 from mfunkey/m8_rs485
...
Add TXC0 define to make rs485 usable on atmega8
2021-12-25 12:39:45 -08:00
388360a35d
Add TXC0 define to make rs485 usable on atmega8
2021-12-25 11:35:30 +01:00
1ab443cb35
Merge pull request #333 from zygmunt/master
...
Fixed typo in optiboot/bootloaders/optiboot/Makefile.isp for variable FILENAME
2021-11-16 12:45:25 -08:00
93a9bb482e
Fixed ISPFLASH variable in optiboot/bootloaders/optiboot/Makefile.isp
2021-11-16 20:00:48 +01:00
9516fe6ef8
Fixed typo in optiboot/bootloaders/optiboot/Makefile.isp for variable FILENAME
2021-11-16 19:50:49 +01:00
be65a28adb
Custom linker script.
...
Implement a hack to derive section start addresses from the
information like FLASHEND that is present in the source code (via
io.h) This requires a custom linker script that uses symbols defined
by inline ASM in the C program, the inline ASM itself, and some
calculations/guesswork to figure out bootloader size for those
VIRTUAL_BOOT platforms that have a bootloader size larger than 512
bytes but significantly smaller than 1024 bytes.
2021-11-04 18:08:45 -07:00
68b7a55b1e
Fix section-start addresses for attiny167 (.text and .version) and atiny48 (.version)
2021-10-28 23:15:51 -07:00
c377eb8dee
for SOFT_UART, set initial state of pin to HIGH ("idle")
...
https://github.com/Optiboot/optiboot/issues/329
2021-10-21 14:34:46 -07:00
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