The WORKBENCH part 3

Arduiono IDE, ATMega328P, with different cores selected;

Standard IDE core, maximum is 30720 bytes.
Minicore (optiboot), maximum is 32256 bytes.

I have been swapping to Minicore\Optiboot as I want the watchdog timer to work …

1 Like

ok so its NOT working … :innocent:

1 - erasing the chip works, can’t connect anylonger

55%20AM

Which core are you using ?

If the IDE thinks you only have the standard bootloader, cant see how its going to let you use the extra space that it does not know about.

Although the Minicore seems to be the better option, you seem to have to keep using it.

An standard Arduino IDE (not using Minicore) does not see the Arduino, which is fine if your the only person using the Arduino board, but if someone else needs to program it, I think they need to install Minicore.

So I erased (100 % sure :upside_down_face:)

I burn it again (‘basic’ optiboot)
34%20AM

47%20AM

et voila (that’s french for @Charles :innocent:

22%20AM

blink works ! … conclusion… uhhhhhhhhhhhh no clue
57%20AM

For Charles bootloader arduino still needs to be adapted as described here? Full Arduino Mini LoraWAN below 1uA Sleep Mode

With the Minicore bootloader, no modifications needed, I get a deep sleep of 2uA with a MC1702 regulator in use. Thats a bettery life of 160 years on AAs.

yes that’s what I want to achieve with the LoRa node :smile:

There is an issue to manage regarding power with this board: when you are using Lithium Thyonil LS14500 you need to take into account the current delivery capacity of the battery. It is normally 50mA not more. It means you can’t transmit on LoRaWan over 12-14dB.
source : First steps with LoRa Radio Node (Arduino) - disk91.com - the IoT blogdisk91.com – the IoT blog
fine for in/around your house nodes, if you have your own gateway

ok minicore it is : GitHub - MCUdude/MiniCore: Arduino hardware package for ATmega8, ATmega48, ATmega88, ATmega168, ATmega328 and ATmega328PB

An SX127x device will add something less than 0.1uA when its put into deep sleep, which is easy.

ok tnx

but which one… I understand that with the fast one you can’t use the arduino IDE serial monitor anylonger ?

45%20PM

a supercap will probably help… transmission time is not that long

but that will cost some … ? have to try :wink:

Not tried changing it, the default appears to be the 38400 baud version.

Might be worth experimenting, having the 1000000baud version would be good, 26 times faster.

1000000baud does not seem to work with an 8Mhz processor.

500000baud seems OK.

Absolutely not, I asked some time ago to add to arduino IDE Serial the 250K and 1M speed and it’s done for long know.
image

So to resume, you can burn MiniCore bootloader or mine (both have same base), but mini core Arduino Boards does not allow Arduino IDE to select serial port speed (for uploading), so I just uploaded my boards definition to help you with Mini Lora board. It’s located here

image

cool… I will try that, saves time when debugging tnx

and if I use this bootloader

what setings do I use ?? have the CH2I boards installed :innocent:

49%20PM

@BoRRoZ
This bootloader is quite old (first old try and don’t know what serial speed it is.

So, please use one of (depending if your Arduino target is 8Mhz or 16MHz)
optiboot_flash_atmega328p_250000_8MHZ.hex
optiboot_flash_atmega328p_250000_16MHZ.hex

  • Flash Memories with the hex file above

  • Flash Fuses

  • Then Flash lockbit (lock bits should be flashed last EACH time you flash bootloader)

1 Like
  • found something, and I thought initially that uploading didn’t work with the new bootloader
    I used to test with blink, but blinks example with pinMode(LED_BUILTIN, OUTPUT) doesn’t seem to work with this bootloader So I changed it to

int led = 13;
void setup() {
pinMode(led, OUTPUT);
}
void loop() {
digitalWrite(led, HIGH);
delay(20);
digitalWrite(led, LOW);
delay(800);
}

now its flashing and I can see the extra free memory (however not related) too hypocrite

loranode-optoboot

24%20PM

1 Like

x1457

x1458

perfect enclosure for temp / hum sensor with lora node indoors

1 Like

Yes, was a bug in board definition, it’s now fixed, and I added the new board LoRa Radio Node

Check out the pre defined boards in the readme.

2 Likes