lwc:hardware:logicgreen

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
lwc:hardware:logicgreen [2023/08/11 12:14] John Harrisonlwc:hardware:logicgreen [2023/12/13 13:32] (current) John Harrison
Line 15: Line 15:
   * [[https://github.com/dbuezas/lgt8fx/tree/master/lgt8f/libraries/lgt_LowPower|low power mode with the arduino framework]]   * [[https://github.com/dbuezas/lgt8fx/tree/master/lgt8f/libraries/lgt_LowPower|low power mode with the arduino framework]]
  
-==== In Circuit Programming with PlatformIO ==== +==== In Circuit Programming with CLion and PlatformIO ==== 
-add this to .platformio.ini:+  add this to .platformio.ini:
 <code> <code>
 [env:program_via_ArduinoISP] [env:program_via_ArduinoISP]
Line 26: Line 26:
 upload_speed = 19200 upload_speed = 19200
 upload_flags = upload_flags =
 +    -v
 +    -V
     -C     -C
     $PROJECT_PACKAGES_DIR/tool-avrdude/avrdude.conf     $PROJECT_PACKAGES_DIR/tool-avrdude/avrdude.conf
Line 36: Line 38:
 upload_command = avrdude $UPLOAD_FLAGS -U flash:w:$SOURCE:i upload_command = avrdude $UPLOAD_FLAGS -U flash:w:$SOURCE:i
 </code> </code>
 +  * then choose ''update platforms, toolchains, etc.'' for the new environment to be recognized/loaded by CLion
  
 +==== 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 ''boards.txt'' change ''328.upload.maximum_size=29696'' to ''328.upload.maximum_size=30720''
 +
 +==== Random ====
 +  * software reset:
 +<code>
 +    VDTCR = 0x80; // make register writeable for a short time
 +    VDTCR = 0x00; // clear bit 6
 +</code>
  • lwc/hardware/logicgreen.1691774062.txt.gz
  • Last modified: 2023/08/11 12:14
  • by John Harrison