PB0 and PB1 activity when bootloader runs on ATmega1284P

I built a programmer board for an ATmega1284P, it has ZIF sockets for the DIP and SMT versionms of the 1284P. It can be used with a standard ISP or an Arduino UNO as the programmer.

To allow me to check that all the pins were working, I put LEDS on each one.

I note that when the processor starts and runs the bootloader code, from Mightycore, it flashes pin PB0 twice, this appears to be part of the Optiboot 'functionality'.

Is there a 8Mhz bootloader out there that does not flash PB0 ?

in Mighty core you can choose the frequency in Tools menu.

did you check the Optibbot source and build options?
you can build it without led blinking

Juraj:
did you check the Optibbot source and build options?
you can build it without led blinking

Er no, never built a bootloader ..................

srnet:
Er no, never built a bootloader ..................

on Linux it is simple. I didn't try it on Widows

I did check out the process, simple for someone who knows how to do it.

Which OS are you using srnet?

srnet:
I did check out the process, simple for someone who knows how to do it.

attached

make atmega1284p AVR_FREQ=8000000L BAUD_RATE=115200 UART=0 LED=B7 LED_START_FLASHES=0 SUPPORT_EEPROM=1

optiboot_flash_atmega1284p_UART0_115200_8000000L_eeprom_support.hex.zip (1.06 KB)

pert:
Which OS are you using srnet?

Normally Windows 7, but I can dual boot, into Linux Mint.

I also have VMs for Windows 8, Windows 10 and Linux Mint again.

Juraj:
attached

make atmega1284p AVR_FREQ=8000000L BAUD_RATE=115200 UART=0 LED=B7 LED_START_FLASHES=0 SUPPORT_EEPROM=1

OK, I will take a look, thanks.

Eventually I want the programmer set up to read files from SD using one of Nick Gammons programs, the idea being to have a complete standalone programmer.

I asked about your OS because I was thinking to provide you with instructions for building Optiboot but it looks like Juraj might have you all taken care of. If you end up still needing advice on how to do it, let me know.

and if you want a version which supports ArduinoOTA library, let me know :slight_smile:

The standard Optioboot bootloader for an 8Mhz 1284P is;

optiboot_flash_atmega1284p_57600_8000000L.hex

And I can upload that from withing the Arduino IDE or seperatly from AVRDUDESS.

I can upload the file you provided;

optiboot_flash_atmega1284p_UART0_115200_8000000L_eeprom_support.hex

But it does not work, I did change the speed in boards.txt to 115200.

srnet:
The standard Optioboot bootloader for an 8Mhz 1284P is;

optiboot_flash_atmega1284p_57600_8000000L.hex

And I can upload that from withing the Arduino IDE or seperatly from AVRDUDESS.

I can upload the file you provided;

optiboot_flash_atmega1284p_UART0_115200_8000000L_eeprom_support.hex

But it does not work, I did change the speed in boards.txt to 115200.

57600 baud version attached

optiboot_flash_atmega1284p_UART0_57600_8000000L_eeprom_support.hex.zip (1.06 KB)

That works, brilliant, thanks a lot.

Now to get it working as an upload from SD card via the UNO.