I have configured plaformio.ini as per the docs and i still get:
[env:AVR128DB48]
platform = atmelmegaavr
board = AVR128DB48
framework = arduino
monitor_speed = 115200
board_build.mcu = avr128db48
board_build.f_cpu = 24000000L
avrdude: jtagmkII_getsync(): sign-on command: status -1
The com port is available and there are no other apps running / tied to it.
The error indicates that there is a problem with the board…
Any thoughts / guidance or help would be appreciated.
-m
Does the chip have the Optiboot USB bootloader flashed on it? With which method / settings do you flash it in the Arduino IDE?
Max,
Here is the hardware kit:
The AVR-IoT Cellular Mini Development Board, developed in partnership with Sequans, allows you to prototype secure cellular IoT applications quickly. It features an AVR128DB48 microcontroller (MCU), an ATECC608 CryptoAuthentication security device...
Yes it has a bootloader, Arduino programmer:
Curiosity Namo (nEDBG, debug chip:ATSAMD21E18)
-m
I think if it has a bootloader you 1. want to use upload_protocol = arduino
so that it ends up calling avrdude -c arduino ..
. and 2. you might need the improvements from https://github.com/platformio/platform-atmelmegaavr/pull/48 since that informs the core it’s running with OPTIBOOT.
Let my try some things out…
Max,
I just checked (memory failing…)
There is NO optibootloader.
-m
Okay. I also noticed we have
{
"build": {
"core": "dxcore",
"extra_flags": "-DARDUINO_AVR_AVR128DB48 -DARDUINO_avrdb -DLED_BUILTIN=PIN_PB3 -DSerial=Serial3",
"f_cpu": "24000000L",
"mcu": "avr128db48",
"variant": "48pin-standard"
},
"hardware": {
"oscillator": "internal"
},
"frameworks": [
"arduino"
],
"name": "Curiosity Nano AVR128DB48",
"upload": {
"maximum_ram_size": 16384,
"maximum_size": 131072,
"protocol": "pkobn_updi"
},
This file has been truncated. show original
and it uses the upload protocol pkobn_updi
.
Have you tried using board = curiosity_nano_db
instead of
michael2:
board = AVR128DB48
already?
Max,
That did it: board = curiosity_nano_db.
Once again, thank you for the help!
-m
1 Like