SolidGeek / VescUart

An Arduino library for interfacing with the VESC over UART
GNU General Public License v3.0
177 stars 92 forks source link

Secondary UART not working with Nano 33 BLE #23

Closed JoeyDiamond closed 1 year ago

JoeyDiamond commented 3 years ago

I am trying to use this library with the new Arduino Nano 33 BLE board and am getting compilations issues. From some research it appears to not be compatible with the Nano 33 BLE's UART setup. The issues are visible when you run the "setCurrent" example program and the errors I get are:

Arduino: 1.8.13 (Windows 10), Board: "Arduino Nano 33 BLE"

In file included from C:\Users\sailo\AppData\Local\Arduino15\packages\arduino\hardware\mbed\1.3.2\cores\arduino/mbed/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_SDK_15_0/modules/nrfx/mdk/nrf.h:79:0,

                 from C:\Users\sailo\AppData\Local\Arduino15\packages\arduino\hardware\mbed\1.3.2\cores\arduino/mbed/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/TARGET_MCU_NRF52840/device/cmsis.h:21,

                 from C:\Users\sailo\AppData\Local\Arduino15\packages\arduino\hardware\mbed\1.3.2\cores\arduino/mbed/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/TARGET_MCU_NRF52840/TARGET_ARDUINO_NANO33BLE/PinNames.h:20,

                 from C:\Users\sailo\AppData\Local\Arduino15\packages\arduino\hardware\mbed\1.3.2\variants\ARDUINO_NANO33BLE/pinmode_arduino.h:17,

                 from C:\Users\sailo\AppData\Local\Arduino15\packages\arduino\hardware\mbed\1.3.2\cores\arduino/Arduino.h:29,

                 from sketch\setCurrent.ino.cpp:1:

C:\Users\sailo\AppData\Local\Arduino15\packages\arduino\hardware\mbed\1.3.2\cores\arduino/mbed/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_SDK_15_0/modules/nrfx/mdk/nrf52840.h:2405:67: error: expected ')' before '*' token

 #define NRF_POWER                       ((NRF_POWER_Type          *) NRF_POWER_BASE)

                                                                   ^

C:\Users\sailo\Documents\Arduino\libraries\VescUart-master\src/datatypes.h:385:3: note: in expansion of macro 'NRF_POWER'

 } NRF_POWER;

   ^

C:\Users\sailo\AppData\Local\Arduino15\packages\arduino\hardware\mbed\1.3.2\cores\arduino/mbed/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_SDK_15_0/modules/nrfx/mdk/nrf52840.h:2405:67: error: expected ')' before '*' token

 #define NRF_POWER                       ((NRF_POWER_Type          *) NRF_POWER_BASE)

                                                                   ^

C:\Users\sailo\Documents\Arduino\libraries\VescUart-master\src/datatypes.h:385:3: note: in expansion of macro 'NRF_POWER'

 } NRF_POWER;

   ^

C:\Users\sailo\AppData\Local\Arduino15\packages\arduino\hardware\mbed\1.3.2\cores\arduino/mbed/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_SDK_15_0/modules/nrfx/mdk/nrf52840.h:2405:67: error: expected ')' before '*' token

 #define NRF_POWER                       ((NRF_POWER_Type          *) NRF_POWER_BASE)

                                                                   ^

C:\Users\sailo\Documents\Arduino\libraries\VescUart-master\src/datatypes.h:420:2: note: in expansion of macro 'NRF_POWER'

  NRF_POWER power;

  ^

C:\Users\sailo\AppData\Local\Arduino15\packages\arduino\hardware\mbed\1.3.2\cores\arduino/mbed/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_SDK_15_0/modules/nrfx/mdk/nrf52840.h:2405:67: error: expected ')' before '*' token

 #define NRF_POWER                       ((NRF_POWER_Type          *) NRF_POWER_BASE)

                                                                   ^

C:\Users\sailo\Documents\Arduino\libraries\VescUart-master\src/datatypes.h:420:2: note: in expansion of macro 'NRF_POWER'

  NRF_POWER power;

  ^

exit status 1

Error compiling for board Arduino Nano 33 BLE.

Index error: could not find referenced tool name=xtensa-esp32-elf-gcc version=1.22.0-80-g6c4433a-5.2.0 packager=esp32

Index error: could not find referenced tool name=esptool_py version=2.6.1 packager=esp32

Index error: could not find referenced tool name=mkspiffs version=0.2.3 packager=esp32

Index error: could not find referenced tool name=xtensa-esp32-elf-gcc version=1.22.0-80-g6c4433a-5.2.0 packager=esp32

Index error: could not find referenced tool name=esptool_py version=2.6.1 packager=esp32

Index error: could not find referenced tool name=mkspiffs version=0.2.3 packager=esp32

Index error: could not find referenced tool name=xtensa-esp32-elf-gcc version=1.22.0-80-g6c4433a-5.2.0 packager=esp32

Index error: could not find referenced tool name=esptool_py version=2.6.1 packager=esp32

Index error: could not find referenced tool name=mkspiffs version=0.2.3 packager=esp32

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

I am quite certain this is not a problem with the library, but rather an issue in the setup for this particular board. I am closing this.