Boards.txt definition for no bootloader

Hi,

I want to use a 328P on an own pcb and only flash it over isp. I would like to use the standard definition for a Uno but with a removed boot loader to free same space

uno.name=Arduino Uno without bootloader

uno.vid.0=0x2341
uno.pid.0=0x0043
uno.vid.1=0x2341
uno.pid.1=0x0001
uno.vid.2=0x2A03
uno.pid.2=0x0043
uno.vid.3=0x2341
uno.pid.3=0x0243

uno.upload.tool=avrdude
uno.upload.protocol=arduino
uno.upload.maximum_size=32256
uno.upload.maximum_data_size=2048
uno.upload.speed=115200

uno.bootloader.tool=avrdude
uno.bootloader.low_fuses=0xFF
uno.bootloader.high_fuses=0xDE
uno.bootloader.extended_fuses=0xFD
uno.bootloader.unlock_bits=0x3F
uno.bootloader.lock_bits=0x0F
uno.bootloader.file=optiboot/optiboot_atmega328.hex

uno.build.mcu=atmega328p
uno.build.f_cpu=16000000L
uno.build.board=AVR_UNO
uno.build.core=arduino
uno.build.variant=standard

Best solution is to use MiniCore:

It has a Tools > Bootloader > No Bootloader option

If you insist on reinventing the wheel by making your own board definition, you will need to change the "uno" board identifier to something unique. You will also need to change upload.maximum_size to 32768 and bootloader.high_fuses to 0xDF.

Whether using MiniCore or your own board definitions, you must to a Tools > Burn Bootloader to disable the BOOTRST (boot reset vector) fuse.

unonobootloader.name=Arduino Uno without bootloader

unonobootloader.vid.0=0x2341
unonobootloader.pid.0=0x0043
unonobootloader.vid.1=0x2341
unonobootloader.pid.1=0x0001
unonobootloader.vid.2=0x2A03
unonobootloader.pid.2=0x0043
unonobootloader.vid.3=0x2341
unonobootloader.pid.3=0x0243

unonobootloader.upload.tool=avrdude
unonobootloader.upload.protocol=arduino
unonobootloader.upload.maximum_size=32768
unonobootloader.upload.maximum_data_size=2048
unonobootloader.upload.speed=115200

unonobootloader.bootloader.tool=avrdude
unonobootloader.bootloader.low_fuses=0xFF
unonobootloader.bootloader.high_fuses=0xDF
unonobootloader.bootloader.extended_fuses=0xFD
unonobootloader.bootloader.unlock_bits=0x3F
unonobootloader.bootloader.lock_bits=0x0F
unonobootloader.bootloader.file=optiboot/optiboot_atmega328.hex

unonobootloader.build.mcu=atmega328p
unonobootloader.build.f_cpu=16000000L
unonobootloader.build.board=AVR_UNO
unonobootloader.build.core=arduino
unonobootloader.build.variant=standard

Thanks for both suggestions!!
Didnt know about Minicore and will try this first

Which part of your code example disables/remove the bootloader?

The fuse change disables the boot reset vector, which means you can use the full flash memory for your application.

The Arduino IDE fails compilation (and thus the upload) if the sketch size exceeds upload.maximum_size. So by increasing this to 32 kB, the IDE will allow uploads of sketches that use up to the full flash capacity of the chip.

MiniCore also bundles an empty bootloader so that the Burn Bootloader command doesn't waste time flashing a bootloader that is not going to be used.

Mh, I get exit status 1 with MiniCore, IDE 1.8.9
Will try it first with the boards.txt

OK, well if you decide to give MiniCore another try, I'm sure we can help you fix the error, but we'd need the full error output. There are a near infinite number of possible causes of the generic "exit status 1".