1
0
mirror of https://github.com/Optiboot/optiboot.git synced 2025-04-19 10:02:15 +03:00

Commit Graph

  • 20a88420a4
    Merge pull request #377 from aschnell/master master Bill Westfield 2024-04-04 23:47:02 -07:00
  • 73ceaf2da6 fixed formatting and typos Arvin Schnell 2024-03-23 10:52:02 +01:00
  • 439dff1b4d
    Merge pull request #375 from dlitz/for-upstream/add-nodate Bill Westfield 2024-02-27 14:22:25 -08:00
  • 2407e34276 Add NODATE=1 option to Makefile, for deterministic compilation. Darsey Litzenberger 2024-02-27 01:22:49 -07:00
  • 55d1e6b369 Prevent use of "PINx |= bit" when toggling an LED on a not-IOSPACE port. WestfW 2022-07-18 22:23:31 -07:00
  • cf6fb869b3 Merge. Merge branch 'master' of https://github.com/Optiboot/optiboot WestfW 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 WestfW 2022-07-18 22:14:53 -07:00
  • 81bdd404ff
    Merge pull request #341 from ondrej-stanek-ozobot/fix_lockfuse_write Bill Westfield 2022-04-04 17:48:48 -07:00
  • d54168317a Fix lock fuse verification step in the ISP target Ondrej Stanek 2022-04-04 13:27:05 +02:00
  • c8b69303e4
    Merge pull request #339 from 2ijies11/fix Bill Westfield 2022-03-09 17:50:37 -08:00
  • 7676d8fc06 Fix register for SOFT_UART (PINx -> PORTx) 2ijies11 2022-03-07 14:46:16 +00:00
  • 2fc8494074
    Merge pull request #335 from mfunkey/m8_rs485 Bill Westfield 2021-12-25 12:39:45 -08:00
  • 388360a35d Add TXC0 define to make rs485 usable on atmega8 mfunkey 2021-12-25 11:28:24 +01:00
  • 1ab443cb35
    Merge pull request #333 from zygmunt/master Bill Westfield 2021-11-16 12:45:25 -08:00
  • 93a9bb482e Fixed ISPFLASH variable in optiboot/bootloaders/optiboot/Makefile.isp Zygmunt Ptak 2021-11-16 20:00:48 +01:00
  • 9516fe6ef8 Fixed typo in optiboot/bootloaders/optiboot/Makefile.isp for variable FILENAME Zygmunt Ptak 2021-11-16 19:50:49 +01:00
  • be65a28adb Custom linker script. WestfW 2021-11-04 18:08:45 -07:00
  • 68b7a55b1e Fix section-start addresses for attiny167 (.text and .version) and atiny48 (.version) WestfW 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 WestfW 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. WestfW 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. WestfW 2021-10-07 16:45:35 -07:00
  • 159bcabf48 Move the legacy .hex files back to their legacy location. WestfW 2021-10-04 15:07:47 -07:00
  • 28555a490f
    Merge pull request #327 from Virtual-Java/usb-mcus Bill Westfield 2021-10-04 14:38:55 -07:00
  • 5dc3bd3f76 Move legacy hexfiles to legacy directory Jonathan Vetter 2021-10-03 19:47:37 +02:00
  • 5e3d2631f2 Create .gitignore to exclude compile output like .hex, .elf and .lst files Jonathan Vetter 2021-09-30 16:05:02 +02:00
  • 00edb206f3 Improve variable assignment for lockfuse and filename Jonathan Vetter 2021-09-30 12:44:12 +02:00
  • a71f10b57d Add parameter for bigboot in filename Jonathan Vetter 2021-09-29 21:42:03 +02:00
  • 0111ab9ce5 Update README.md Virtual-Java 2021-09-29 12:25:49 +02:00
  • 91e55f26c8 Add bigboot support to USB-MCUs and correct wrong bootsize for atmega16u4 Jonathan Vetter 2021-09-29 00:37:13 +02:00
  • 89ea5b256f Improve Makefile.usbmcus default parameter assignment Jonathan Vetter 2021-09-27 18:41:15 +02:00
  • b82e1f3f98 Correct transposed digits in UART register definitions for USB-MCUs Jonathan Vetter 2021-09-27 17:09:37 +02:00
  • dbecfae710 Remove duplicate UART port check Jonathan Vetter 2021-09-27 16:50:37 +02:00
  • 69ba8378d0 Add support for AVR-USB-MCUs ATmega8u2,16u2,32u2,16u4 and 32u4 Jonathan Vetter 2021-07-17 16:15:32 +02:00
  • 0dd4cedfbd Move the rs485 tx_disable to the end of putch instead of getch, because TXCIF is annoying :-( WestfW 2021-07-08 23:59:56 -07:00
  • 645a92fa92 Attempt RS485 Support (using programmed IO, not the mega0 USART feature.) WestfW 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. WestfW 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. WestfW 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. WestfW 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 WestfW 2021-06-22 16:55:35 -07:00
  • 6e586f34ab Add RS485 support, copied from ATTinyCore WestfW 2021-05-23 01:34:36 -07:00
  • d4077582ce refactor the MCUSR handling to make code more readable. WestfW 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.) WestfW 2021-05-14 18:14:06 -07:00
  • db59a84013 Clean up some of the uglier CPU dependencies to make the code easier to read. WestfW 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. WestfW 2021-05-02 00:55:53 -07:00
  • 88e495c69d More cosmetic changes. Update copyright, rearrange option descriptions. WestfW 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 WestfW 2021-05-01 22:19:27 -07:00
  • 4cc303c8e3
    Merge pull request #296 from benpicco/atmega128rfa1 Bill Westfield 2020-11-09 23:56:20 -08:00
  • 2c558a3f7d Better (?) example of flash write from an Arduino sketch WestfW 2020-11-05 00:20:24 -08:00
  • 9dcfa368ad add support for atmega128rfa1 Benjamin Valentin 2020-10-14 16:07:21 +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) WestfW 2020-09-30 23:44:14 -07:00
  • 4c564c2b17 rename test_reset --> demo_reset WestfW 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. WestfW 2020-09-30 01:29:32 -07:00
  • c4ad0a8349 add missing example comments for do_nvmctrl WestfW 2020-09-30 01:07:54 -07:00
  • 13b1e70478 convert to simpleParser; a proper C++ version of cli WestfW 2020-09-30 01:05:52 -07:00
  • f07ad4feec Fix some whitespace-at-end-of-line issues. WestfW 2020-09-28 13:04:05 -07:00
  • aa46aa0db8 Bump version for fixed do_nvmctrl WestfW 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. WestfW 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) WestfW 2020-09-27 01:30:17 -07:00
  • bb15a13779 Merge branch 'master' of https://github.com/Optiboot/optiboot WestfW 2020-09-27 01:12:31 -07:00
  • 6323176f4c Fix some comments. WestfW 2020-09-27 01:12:11 -07:00
  • bb2d5bd060
    Merge pull request #290 from petersmythe/master Bill Westfield 2020-08-16 02:00:37 -07:00
  • 66958d6a12
    Fix spelling mistakes & grammar Peter Smythe 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" WestfW 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. WestfW 2020-05-29 18:20:26 -07:00
  • 345955996d Merge branch 'master' of https://github.com/Optiboot/optiboot WestfW 2020-05-29 02:39:33 -07:00
  • ca5ef0a5c9 Fix incorrect reference to "pro micro" (which is a 32u4 board) WestfW 2020-05-29 02:38:54 -07:00
  • 85d08800b1
    Merge pull request #282 from enekochan/patch-1 Bill Westfield 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. WestfW 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. WestfW 2020-05-29 01:03:18 -07:00
  • 85c26e8a5a
    Fix Markdown link enekochan 2020-04-08 16:25:07 +02:00
  • a3470cc0c5
    Merge pull request #281 from inajob/osccal Bill Westfield 2020-03-15 01:00:14 -07:00
  • 4e55b23002 change OSCCAL in bootloader inajob 2020-03-14 10:43:47 +09:00
  • 1810af8050 Better error handling for bad UARTTX settings. Update copyright and license pointer. WestfW 2020-01-09 02:06:29 -08:00
  • eac5d189a4 Additional make targets for generic ATmega% and ATtiny%. Also "make version" to report various tool and source versions. Omit the application section from the final binary/hex file. (and explain why!) WestfW 2020-01-09 02:01:52 -08:00
  • 4a5c0b09ba add some documentation, especially: something on compiling optiboot_x WestfW 2020-01-09 01:59:48 -08:00
  • d0cb6654f9 Add clarifying text and "Bootloader Exception" to license. WestfW 2020-01-06 22:43:17 -08:00
  • a2ac10d32d Merge branch 'master' of https://github.com/Optiboot/optiboot WestfW 2019-11-15 20:14:40 -08:00
  • baaa0b0504 Fix some link formats. WestfW 2019-11-15 20:12:54 -08:00
  • 82cb98666c
    Merge pull request #277 from thisiskeithb/pr_add_license Bill Westfield 2019-10-25 14:07:14 -07:00
  • 1204b8dfc8 Change to GPL V2 License thisiskeithb 2019-10-25 04:05:48 -07:00
  • a95d26fb41 Add LICENSE thisiskeithb 2019-10-24 19:51:07 -07:00
  • 1b8e4bce09 Always write PMUX register, even if the pin selection is the default. This may solve some problems if a new bootloader is run without a reset, somehow. WestfW 2019-10-13 00:13:45 -07:00
  • 35ba394479 More support for mega-0 chips WestfW 2019-10-01 02:51:19 -07:00
  • a21d20fd63 Add some mention of optiboot_x WestfW 2019-10-01 02:49:14 -07:00
  • 9fde01e634 Fix LED_INVERT option. Add ATtiny817 to pin_defs_x.h WestfW 2019-09-23 01:55:49 -07:00
  • 142c9f7c5f Dynamically derive the chip clock rate, so we no longer need AVR_FREQ, or separate binaries for different clockrates. WestfW 2019-09-20 19:43:18 -07:00
  • d4c67cdd36 Mostly, add help text to Makefile.mega0 WestfW 2019-09-16 02:13:52 -07:00
  • c3344d7dfc Makefile now usable. For example "make -f Makefile.mega0 drazzy3217" Add LED_INVERT option to makefile option parser. Clean up RSTPIN for chips with only two values. Shave off a few bytes by writing PMUX instead of ORing, and using the default clock speed (20MHz/6) instead of turning off the divider. (not that we need to save space yet.) Implement something for the "do_spm" function. This just writes "cmd" to NVMCTREL.CTRLA; I'm not sure whether an application can write to the page buffer to make that sufficient. Needs testing. WestfW 2019-09-15 02:22:45 -07:00
  • 74efdb6699 Mega0 Makefile in good enough shape for initial commit. "make optiboot_<mcuname>.hex <options>" should build a .hex file for any of the "xmgea3" chips (mega0, tiny0, tiny1) WestfW 2019-09-13 18:26:38 -07:00
  • 775cb1f6cd Implement TIMEOUT option. ATtiny412 working. add RSTPIN option to control the (internal) FUSE values. More source code "prettyfication" WestfW 2019-09-11 02:21:14 -07:00
  • ad0f55574a Two important discoveries: 1) Changing the watchdog period (inc turning it on) requires paying attention to synchonization between the WDT clock and system clock. 2) "jmp 512" doesn't work. I'm not sure exactly what happens, but it doesn't go where I expected. WestfW 2019-09-10 01:17:13 -07:00
  • adafe79832 More 14/20 bit chip defintions. Mostly, struggling with IDEs :-( WestfW 2019-09-06 01:06:24 -07:00
  • 51b9eec272 Fix embarassing copy/paste errors in pin defs for 8pin tiny. Try to add a dummy "application" for freshly programmed parts, that will keep running the bootloader instead of keep running the empty app. (Doesn't work, though. MPLAB won't program it!) Clean up some obsolete comments. WestfW 2019-09-05 02:17:40 -07:00
  • 58a71b130f Modifications for ATtiny4x2, at least as far as compilation. Eliminate RTC-based LED flashing code in favor of busy loop, which is significantly shorter now that peripherals are not in range of quick IO instructions. Minor formatting changes while the code is young (notably spaces after the function name at the spot where they're actually defined, which makes them easier to search for. Ancient corporate coding style guideline...) WestfW 2019-09-04 01:21:27 -07:00
  • 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. WestfW 2019-09-03 02:57:51 -07:00
  • 1d763359a7 Debugging. WestfW 2019-09-02 03:03:17 -07:00
  • 4c12f27e66 New version of optiboot for Mega0 and xTiny AVRs. Uses NVMCTRL, and of course all of the peripherals have changed. WestfW 2019-09-01 21:58:21 -07:00
  • 5c67c2d688 Fix bug(s) in calculation of rjmp offset for virutal boot builds. See https://github.com/Optiboot/optiboot/issues/275 WestfW 2019-08-28 14:06:33 -07:00
  • 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. WestfW 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.) WestfW 2019-08-27 19:17:59 -07:00