-
-
Notifications
You must be signed in to change notification settings - Fork 85
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
Issue compiling on Arduino Nano 33 BLE #28
Comments
I don’t have a Nano 33 BLE, I can only suggest to check the library is correctly picked by the compiler among the inclusions... |
Thanks for the quick response! I'm thinking it's an issue unique to the Nano 33 BLE and/or my machine (I've got the ARM compiler elsewhere on my path, but it doesn't look like Arduino is trying to use that one). I did a compiler with verbose, and it looks like Arduino is simply not finding the library. If you'd like to try it, you can just install the Nano 33 BLE board in the IDE and try compiling the example--no need for the actual hardware. With the UNO selected and verbose, here's what I get for the "Detecting Libraries" step:
With the Nano 33 BLE selected, here's what I get (notice that it doesn't seem to look for the CircularBuffer at all):
|
I don’t even use the Arduino IDE for my development, so... Is it possible the MBed libraries require some specific detail to be picked up? If I remember correctly the Arduino IDE can show the list of libraries you have included in your project: is Circular Buffer in that list? |
No worries. It does seem like a toolchain issue. I can't find it exactly, but I can keep digging. I'm happy to close out the issue, knowing it's specific to one particular Arduino board (that seems to be having lots of issues with other libraries, anyway). |
Feel free to reopen it if you get additional details leading to something wrong in our code. |
I'm having this issue with the same board, did you ever manage to solve it @ShawnHymel ? |
@Knar33 no dice :( I ended up writing my own simple ring buffer instead. |
That's a pity... do you mind to share your code so we can try to give that a comparison? May I suggest you give a try at copying the library files into your project and see if the issue has anything to do with the code? It might be related to some metafile we aren't aware of, rather than to the code itself... |
The reference came from a library I was trying to use: https://github.com/cesarvandevelde/HerkulexServo |
Agreed...I like the idea of the Nano 33, but it's proven to have massive compatibility issues with many Arduino libraries, making it really difficult to work with. |
I'm using the CircularBuffer library on a nano BLE sense. I had the same problem. To remove my code from the debug process, I tried to compile the logging example with the board set to a Uno (successful). I then set the board to nano ble sense and got the 'does not name a type' error. I have a hunch that the keyword CircularBuffer is used somewhere in the code that arduino-fies the BLE sense. I copied the library to a local library named RcircularBuffer (to avoid my hypothesized name conflict) and changed all instances of Circular to Rcircular. I changed the CIRCULAR_DEBUG definitions to RCIRCULAR_DEBUG definitions, though that may have been unnecessary. I changed my code to reference RcircularBuffer and was able to compile and load my code. I offer this as debugging since resolving the name conflict in a civilized way is undoubtedly messy, but for anyone wanting to create a local library, this solution seems to work. Thanks, Roberto, for a great library! Please be kind, this is my first comment on github... |
C++ allows the use of namespaces. This might be a job for a CircularBuffer namespace. (Reference for interested folks: https://www.geeksforgeeks.org/namespace-in-c/) They're designed exactly for this sort of thing. Ex from the above ref:
|
Thanks to the advice of @RicoWilson I found an internal library called "CircularBuffer.h", so it was a name conflict. I solved specifying the path inside the include function:
Also, I had to specify the path of the CircularBuffer.tpp inside the CircularBuffer.h script (placed at the end). |
Can some of you please check the solution currently posted on the I wonder if that itself is a valid fix. Thanks a million to whomever dedicates the time to run this check for me. |
This issue is being marked as stale as it has not been updated in the past 15 days and it will be closed in a week unless it receives the requested attention. |
Issue is being closed due to lack of interaction |
When I try to compile/upload the CircularBuffer example, I get the following error:
It seems to work when I switch the board to something else (e.g. UNO), but it does not work with the Nano 33 BLE.
Any help would be appreciated.
Board: Arduino Nano 33 BLE
Arduino IDE 1.8.11
CircularBuffer Library 1.3.3
The text was updated successfully, but these errors were encountered: