Error with "platformio run --target upload"

420 views
Skip to first unread message

Najeh Marzouk

unread,
Jan 15, 2018, 9:24:14 AM1/15/18
to LINOROBOT
Hi! 

When i tried to upload the codes i got the error in the picture below. 

I'm using arduino mega2560 and this is my platformio.ini :
[env:mega]
platform = atmelavr
framework = arduino
board = megaatmega2560
upload_port = /dev/ttyACM0
# targets = upload
#  


thanks!
error.JPG

Juan Miguel Jimeno

unread,
Jan 15, 2018, 9:55:52 AM1/15/18
to LINOROBOT
Can you try this:

rm -rf ~/linorobot_ws/src/linorobot/firmware/teensy/.pioenvs/

and uncomment this line: 


The encoder library is optimised for Teensy boards.

Najeh Marzouk

unread,
Jan 15, 2018, 10:13:15 AM1/15/18
to LINOROBOT
thanks for the quick replay!!

I tried but i still have the same problem.
Does it works if i upload the code manually with the arduino IDE ?

I think we should change it to : #define ENCODER_USE_INTERRUPTS ?

Juan Miguel Jimeno

unread,
Jan 15, 2018, 10:55:09 AM1/15/18
to LINOROBOT
I'm able to upload on my Mega with this setup.

Are there any changes on the firmware yet?

Najeh Marzouk

unread,
Jan 15, 2018, 11:48:36 AM1/15/18
to LINOROBOT
I'm only able to upload the code manually from the arduino IDE but for sure i can't change the motor velocity with the "teleop_twist_keyboard". 
I still have the same problem with  "platformio run --target upload".

Christopher Coballes

unread,
Jan 16, 2018, 8:48:32 AM1/16/18
to LINOROBOT

Hi Sir NaJeh,

I think you can upload the program in the Arduino Mega,
just tweak the encoder files.

One thing you can encounter a problem is the math program 
using the GY-85 sensor.


Please update any improvement that you have.

Thanks

-Chris

Holopaul

unread,
Apr 10, 2018, 3:59:12 PM4/10/18
to LINOROBOT
What is your pin config for Arduino Mega?

Christopher Coballes

unread,
Apr 29, 2018, 10:05:09 AM4/29/18
to LINOROBOT


Hi Sir  Holopaul,


Good day.

You can choose whatever digital pins as what Sir JImeno did in teensy 3.2
Just take note  please choose pin with  interrupts in the encoder
and pwm pins for the motor EN.

Please check this out

Thanks

-Christopher
Reply all
Reply to author
Forward
0 new messages