1
0
mirror of https://github.com/Optiboot/optiboot.git synced 2025-08-16 10:41:55 +03:00

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.
This commit is contained in:
WestfW
2020-09-30 01:29:32 -07:00
parent c4ad0a8349
commit 2f3cf2887e
3 changed files with 29 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
## "Examples."
In general, **test_xxx** is a test program for checking some optiboot functionality, while **demo_xxx** is an example of how a user might use an optiboot feature.
----
----
### chaucer*
"big" sketches for testing behavior as sketch sizes get closer to the flash capacity of chips. Especially, "bigger than the old bootloader" and "more than 64k".
----
### demo_reset
Shows out to figure out the reset cause from an application. Since the bootloaders need to fiddle with the normal registers that provide this information, there need to be some extra effort to tell what the original reset cause was.
----
### demo_dospm
Demonstration of an application writing to PROGMEM data arrays using the **do_spm()** or **do_nvmctrl()** features of v8+ optiboot and optiboot_x.
This demo uses the "higher level" macros from Marek Wodzinsk's "optiboot.h", and so works with both older and new AVRs.
----
### test_nvmctrl
Try out the nvmctrl features of the Mega0 and xTiny chips with optiboot.x
This is rather bare-bones and requires knowledge of the nvctrl "peripheral"