Skip to content

Commit

Permalink
Fix typo in a comment and wording of autobaud legend
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanrueger committed Nov 16, 2022
1 parent 1d89177 commit 77bec7c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/hexls
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ my %feature = (
'V' => " + `V` vector bootloader: patches the vector table itself during upload, skips verifying the first page\n",
'p' => " + `p` bootloader protects itself from being overwritten\n",
'r' => " + `r` preserves reset flags for the application in the register R2\n",
'a' => " + `a` autobaud detection (f_cpu/8n and less with discrete divisors, normally n = 2, 3, ...)\n",
'a' => " + `a` autobaud detection (f_cpu/8n using discrete divisors, n = 1, 2, ..., 256)\n",
'c' => " + `c` bootloader provides chip erase functionality (only recommended for large MCUs)\n",
'?' => " + `?` unable to tell from .hex file whether this feature is present\n",
'.' => " + `.` unable to tell from .hex file whether this feature is present\n",
Expand Down
6 changes: 3 additions & 3 deletions src/urboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* + EEPROM read/write support
* + Vector bootloader for devices without a boot section or to save space on devices with one
* + Software UART: no hardware UART required, but also useful when the chip's CPU frequency
* and the bootloader's desired baud rate are incompatible (eg, 8 MHz and 115200 baud)
* and the bootloader's desired baud rate are incompatible (eg, 8 MHz and 115,200 baud)
* + Subroutine pgm_write_page(sram, progmem) for applications so they can change themselves:
* on many MCUs the SPM write flash only works when called from the bootloader section
* + Dual programming from external SPI flash memory for over-the-air programming
Expand Down Expand Up @@ -570,7 +570,7 @@ void urbootPageWrite(void *sram, progmem_t pgm) {
* [ 61563, 63437]
* [ 7695, 61515] = [0.985*F_CPU/(8*256), 1.015*F_CPU/(8*33)]
*
* Notice that the ubiquituous 115300 baud is actually out of specs for popular 16 MHz MCU builds.
* Notice that the ubiquituous 115,200 baud is actually out of specs for popular 16 MHz MCU builds.
* In practice, tolerances of up to 2.5% may actually work, though that is not recommended. Also
* signal noise and cable length plays a big role in whether communication is stable. The maximum
* permitted baud rate of F_CPU/8 may not always work. Above set of baud rates is generated by
Expand All @@ -592,7 +592,7 @@ void urbootPageWrite(void *sram, progmem_t pgm) {
* and tx lines otherwise. The options RX and TX specify which pins are used for software I/O. The
* syntax is the same as with LED and SFMCS: Use any pin descriptor in Atmel format such as
* AtmelPB2 or as Arduino pin number as in TX=ArduinoPin2. Can be overwritten in Makefile. The
* default baud rate depends on the CPU frequency of the board and is 115200 for 8 MHz or above.
* default baud rate depends on the CPU frequency of the board and is 115,200 for 8 MHz or above.
*
*
* WDTO=<timeout> (watchdog timeout)
Expand Down

0 comments on commit 77bec7c

Please sign in to comment.