Hello everyone,
I would like to ask if anybody has successfully programmed the A-Star 328PB Micro from Pololu
Here is the board link:
Thanks,
Alexis
Hello everyone,
I would like to ask if anybody has successfully programmed the A-Star 328PB Micro from Pololu
Here is the board link:
Thanks,
Alexis
How did you program it previously in the Arduino IDE? Via its serial bootloader or ICSP?
Now i am using arduino ide and program it via serial bootloader
Can you give a screenshot of your used Arduino IDE settings? Treating it as a Nano or Uno or…?
You can just use the equivalent board
target for PlatformIO. E.g. nanoatmega328new
or uno
or the more direct ATmega328PB
target. Uploading works as normal because all these boards already use the upload method arduino
which is the standard serial upload.
below is the screenshot from Arduino IDE
You can create a simple project like
platformio.ini
[env:ATmega328PB]
platform = atmelavr
board = ATmega328PB
board_build.f_cpu = 8000000L
src/main.cpp
#include <Arduino.h>
void setup() { }
void loop() { }
And check if you can upload that successfully.
its compiling the code but is stops here the com port is correct
Configuring upload protocol…
AVAILABLE: arduino
CURRENT: upload_protocol = arduino
Looking for upload port…
Use manually specified: COM3
Uploading .pio\build\ATmega328PB\firmware.hex
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0xd4
And Platformio.ini is:
[env:ATmega328PB]
platform = atmelavr
board = ATmega328PB
board_build.f_cpu = 8000000L
framework = arduino
upload_port = COM3
upload_speed = 9600
I know of no bootloader that uses 9600 baud. I think that you think that this is the baud rate you’re using in your Setup.begin()
call, but this has to be put in monitor_speed
.
Remove this line. If it doesn’t work, upload the log of a verbose upload.
Upload speed for the 8Mhz board is 57600 (per Pololu’s BSP), so that upload speed is definitely not correct! Since the default in the ATmega328PB configuration is 115200, if using the default (i.e. not setting
upload_speed
at all) doesn’t work or autoswitch magically somehow, try upload_speed = 57600
. You’ve already overridden board_build.f_cpu
and those are the only two main settings that should need to be changed.
I have change the buad rate to 57600 and It worked… Thanks a lot guys…
Working parameters are :
[env:ATmega328PB]
platform = atmelavr
board = ATmega328PB
board_build.f_cpu = 8000000L
framework = arduino
upload_port = COM3
upload_speed = 57600