Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| lwc:hardware:logicgreen [2023/08/11 12:14] – John Harrison | lwc:hardware:logicgreen [2023/12/13 13:32] (current) – John Harrison | ||
|---|---|---|---|
| Line 15: | Line 15: | ||
| * [[https:// | * [[https:// | ||
| - | ==== In Circuit Programming with PlatformIO ==== | + | ==== In Circuit Programming with CLion and PlatformIO ==== |
| - | add this to .platformio.ini: | + | |
| < | < | ||
| [env: | [env: | ||
| Line 26: | Line 26: | ||
| upload_speed = 19200 | upload_speed = 19200 | ||
| upload_flags = | upload_flags = | ||
| + | -v | ||
| + | -V | ||
| -C | -C | ||
| $PROJECT_PACKAGES_DIR/ | $PROJECT_PACKAGES_DIR/ | ||
| Line 36: | Line 38: | ||
| upload_command = avrdude $UPLOAD_FLAGS -U flash: | upload_command = avrdude $UPLOAD_FLAGS -U flash: | ||
| </ | </ | ||
| + | * then choose '' | ||
| + | ==== Memory ==== | ||
| + | If using ISP and you run out of memory you can overwrite the bootloader if you wish (and I wish because I did). In '' | ||
| + | |||
| + | ==== Random ==== | ||
| + | * software reset: | ||
| + | < | ||
| + | VDTCR = 0x80; // make register writeable for a short time | ||
| + | VDTCR = 0x00; // clear bit 6 | ||
| + | </ | ||