Skip to content

Instantly share code, notes, and snippets.

@rahji
Created May 26, 2023 20:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rahji/819f56d19fa858e616866955a36c80a9 to your computer and use it in GitHub Desktop.
Save rahji/819f56d19fa858e616866955a36c80a9 to your computer and use it in GitHub Desktop.
Example of a platformio.ini with f_cpu and fuses, set up for Atmel ICE
[env:ATmega328P]
platform = atmelavr
board = ATmega328P
board_build.f_cpu = 8000000L
upload_protocol = atmelice_isp
upload_flags = -e
upload_port = usb
board_fuses.hfuse = 0xD9 ; defaults, flash 2K
board_fuses.lfuse = 0xE2 ; default int 8MHz crystal, but with no prescaler
board_fuses.efuse = 0xFF ; no BOD (default)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment