Hi,
Using arduino framework I am running out of memory with my atmega32 project on custom board.
I require to program using the usbasp ICSP board and to not use bootloader. At the moment the AVR is fresh from the fab house and untouched by any programmer.
I have in platformio.ini (excluding all the lib_deps)
[env:ATmega32]
platform = atmelavr
board = ATmega32
framework = arduino
upload_protocol = custom
upload_port = usb
upload_flags =
-C
; use "tool-avrdude-megaavr" for the atmelmegaavr platform
${platformio.packages_dir}/tool-avrdude/avrdude.conf
-p
$BOARD_MCU
-P
$UPLOAD_PORT
-c
usbasp
upload_command = avrdude $UPLOAD_FLAGS -U flash:w:$SOURCE:i
I have spent some hours searching for how to build and upload this project to my newly recevied atmega32 boards without the bootloader being present. To my simple mind there are a mish-mash of concepts and instructions around bootloaders, fuses and avrdude and platformio, the atmel framework and the arduino framework. It seems straightofrward in the arduino IDE but I never want to go back to that !
Would some knowledgeable person be able to just tell me what I do to my project so that run pio --target upload will actually compile and upload my file and not use a bootloader. Is it just a few lines in the platformio.ini ? Is it a few terminal commands ? A combination ?
Help !
Thanks
Eloso