Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arduino compile problems #2

Open
dheera opened this issue Feb 14, 2019 · 2 comments
Open

Arduino compile problems #2

dheera opened this issue Feb 14, 2019 · 2 comments

Comments

@dheera
Copy link

dheera commented Feb 14, 2019

Problem: Unable to compile any sketch for Aerocore 2 for Jetson.

System: Ubuntu 18.04, Arduino IDE 1.8.5
I followed the directions in stm32f4_0/README.

Here's what I get:
screenshot from 2019-02-14 08-59-12

Then I run apt-get install gcc-arm-none-eabi and edit .arduino15/packages/aerocore-2-for-nvidia-jetson-arduino-bsp/hardware/stm32/1.0.0/platform.txt and change
compiler.path={runtime.tools.arm-none-eabi-gcc.path}/bin/
to
compiler.path=/usr/bin/
and now here's what I get:
screenshot from 2019-02-14 09-02-39

@GumstixExperimental
Copy link

There was an error in the arduino hardware variant definition for the STM32 and it has been corrected. Please uninstall and delete the package and reinstall it.

  • After you have uninstalled the package from the device manager interface you will need to remove the zipfile found at ~/.arduino15/staging/packages/aerocore-2-for-nvidia-jetson.zip or the interface will reinstall the old package.
  • Add this link to the contributed URL field in settings if you haven't already.
  • Use the device manager to install the Aerocore 2 package.

@dheera
Copy link
Author

dheera commented Feb 15, 2019

Thanks. I had to take the following additional steps:

  • Uninstall gcc-arm-none-eabi -- it doesn't work
  • Install gcc-arm-embedded from ppa:team-gcc-arm-embedded/ppa instead
  • Remove a stray "*/" from the end of PeripheralPins.c
  • Still had to change "compiler.path={runtime.tools.arm-none-eabi-gcc.path}/bin/" to "compiler.path=/usr/bin/" -- your package doesn't provide runtime.tools.arm-none-eabi-gcc so {runtime.tools.arm-none-eabi-gcc.path} returns nothing
  • Change both instances of "$(dirname $0)/dfu-util/dfu-util" to "sudo $(dirname $0)/dfu-util/dfu-util" in dfu_upload.h
  • Start the Arduino IDE from a terminal so sudo password can be entered for DFU loading.
    After that I got it to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants