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

Cant upload Razor_AHRS #61

Open
WorkingBones opened this issue Aug 30, 2021 · 1 comment
Open

Cant upload Razor_AHRS #61

WorkingBones opened this issue Aug 30, 2021 · 1 comment

Comments

@WorkingBones
Copy link

WorkingBones commented Aug 30, 2021

I get this error

updated error

Arduino: 1.8.15 (Linux), Board: "Arduino Uno"

/home/ubuntu/catkin_ws/src/razor_imu_9dof/src/Razor_AHRS/Sensors.ino: In function 'bool enableCIPOpullUp()':
Sensors:78:2: error: 'ap3_err_t' was not declared in this scope
ap3_err_t retval = AP3_OK;
^~~~~~~~~
Sensors:79:2: error: 'am_hal_gpio_pincfg_t' was not declared in this scope
am_hal_gpio_pincfg_t cipoPinCfg = AP3_GPIO_DEFAULT_PINCFG;
^~~~~~~~~~~~~~~~~~~~
Sensors:80:2: error: 'cipoPinCfg' was not declared in this scope
cipoPinCfg.uFuncSel = AM_HAL_PIN_6_M0MISO;
^~~~~~~~~~
Sensors:80:24: error: 'AM_HAL_PIN_6_M0MISO' was not declared in this scope
cipoPinCfg.uFuncSel = AM_HAL_PIN_6_M0MISO;
^~~~~~~~~~~~~~~~~~~
Sensors:81:30: error: 'AM_HAL_GPIO_PIN_DRIVESTRENGTH_12MA' was not declared in this scope
cipoPinCfg.eDriveStrength = AM_HAL_GPIO_PIN_DRIVESTRENGTH_12MA;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Sensors:82:25: error: 'AM_HAL_GPIO_PIN_OUTCFG_PUSHPULL' was not declared in this scope
cipoPinCfg.eGPOutcfg = AM_HAL_GPIO_PIN_OUTCFG_PUSHPULL;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Sensors:83:23: error: 'AP3_SPI_IOM' was not declared in this scope
cipoPinCfg.uIOMnum = AP3_SPI_IOM;
^~~~~~~~~~~
Sensors:84:23: error: 'AM_HAL_GPIO_PIN_PULLUP_1_5K' was not declared in this scope
cipoPinCfg.ePullup = AM_HAL_GPIO_PIN_PULLUP_1_5K;
^~~~~~~~~~~~~~~~~~~~~~~~~~~
Sensors:85:29: error: 'retval' was not declared in this scope
padMode(MISO, cipoPinCfg, &retval);
^~~~~~
/home/ubuntu/catkin_ws/src/razor_imu_9dof/src/Razor_AHRS/Sensors.ino:85:29: note: suggested alternative: 'Serial'
padMode(MISO, cipoPinCfg, &retval);
^~~~~~
Serial
Sensors:85:2: error: 'padMode' was not declared in this scope
padMode(MISO, cipoPinCfg, &retval);
^~~~~~~
/home/ubuntu/catkin_ws/src/razor_imu_9dof/src/Razor_AHRS/Sensors.ino:85:2: note: suggested alternative: 'pinMode'
padMode(MISO, cipoPinCfg, &retval);
^~~~~~~
pinMode
Sensors:86:20: error: 'AP3_OK' was not declared in this scope
return (retval == AP3_OK);
^~~~~~
/home/ubuntu/catkin_ws/src/razor_imu_9dof/src/Razor_AHRS/Sensors.ino: In function 'bool beginIMU()':
Sensors:92:2: error: 'power_adc_disable' was not declared in this scope
power_adc_disable(); // Power down ADC. It it started by default before setup().
^~~~~~~~~~~~~~~~~
exit status 1
'ap3_err_t' was not declared in this scope

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

@carpenma
Copy link

For others finding this thread as I did, be advised that for Apollo-based boards this error can be resolved by rolling back to a v1.x release of the Sparkfun Apollo3 Boards collection in Arduino IDE.

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