Groups
Groups
Sign in
Groups
Groups
LINOROBOT
Conversations
Labels
About
Send feedback
Help
Error with "platformio run --target upload"
420 views
Skip to first unread message
Najeh Marzouk
unread,
Jan 15, 2018, 9:24:14 AM
1/15/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 AM
1/15/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to LINOROBOT
Can you try this:
rm -rf ~/linorobot_ws/src/linorobot/firmware/teensy/.pioenvs/
and uncomment this line:
https://github.com/linorobot/linorobot/blob/master/teensy/firmware/src/firmware.ino#L29
The encoder library is optimised for Teensy boards.
Najeh Marzouk
unread,
Jan 15, 2018, 10:13:15 AM
1/15/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 ?
https://github.com/linorobot/linorobot/blob/master/teensy/firmware/src/firmware.ino#L29
Juan Miguel Jimeno
unread,
Jan 15, 2018, 10:55:09 AM
1/15/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 AM
1/15/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 AM
1/16/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 PM
4/10/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to LINOROBOT
What is your pin config for Arduino Mega?
Christopher Coballes
unread,
Apr 29, 2018, 10:05:09 AM
4/29/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
https://www.arduino.cc/en/Main/ArduinoBoardMegaADK?from=Main.ArduinoBoardADK
Thanks
-Christopher
Reply all
Reply to author
Forward
0 new messages