-
Notifications
You must be signed in to change notification settings - Fork 6
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
How to run it on Raspberry Pi Pico? #6
Comments
Alternatively, could you provide the reference to the SPI protocol you use? Like, what kind of commands are available, and what they look like. |
It seems the structure was actually OK. After implementing functions from "platform" folder, I've managed to compile the code.
What does it mean? |
Hi YuryMalyshev, thanks for the detailed information. I just came to the same result about the missing platform implementation. When porting the API to another platform (as the RP2040), one needs to implement the platform layers for the given platform. This is the main part of porting the API, so you already have made a big leap by doing so. Are you aware of our porting guides? Regarding the new questions:
Unfortunately, we can not provide a register map for several reasons. One of them is the complexity that is built into the API to generate reasonable measurement values. Please let me know if you need further help. Best regards, |
Thank you for the answer. Yes, I glanced over the porting guide. The main confusion was due to my mistake with CMake, I didn't link the library properly at first, so functions from
the subsequent call passes. Other than that, all tests (except PIT, I don't need it right now) passed now. |
Hello Yury, |
Hello, I gave up on it for now, it's no longer a priority for us. I'll take another look during/after Christmas holidays. I'll think about how to share the code because I created a bunch of CMakeLists files all over the place, so I want to clean it up a bit. |
Hi,
I'm trying to compile it for Raspberry Pi Pico (RP2040, ARM Cortex-M0+) but I can't get it to work. I'm not sure what I'm doing wrong, maybe my CMakeLists.txt is not properly set up.
My current project structure is as follows:
Project/
├──libraries/
│..├──AFBR-S50-API/
│..│..├──Include/
│..│..│..├──api/
│..│..│..│..├──
│..│..│..│..└── CMakeLists.txt
│..│..│..├──platform/
│..│..│..│..├──
│..│..│..│..└── CMakeLists.txt
│..│..│..├──utility/
│..│..│..│..├──
│..│..│..│..└── CMakeLists.txt
│..│..│..├── argus.h
│..│..│..└── CMakeLists.txt
│..│..├──Lib/
│..│..│..└── < .a files>
│..│..├──Test/
│..│..│..└── < Test files >
│..└── CMakeLists.txt
├── main.c
├── pico_sdk_import.cmake
└── CMakeLists.txt
So, I've put your library into the "libraries" folder and added CMakeLists.txt to each folder.
"CMakeLists.txt" in the "api", "platform", and "utility" is simply
Where the project name (in this case "api") is set to the folder name
"CMakeLists.txt" in the "Include" folder is:
"CMakeLists.txt" in the "libraries" folder is just
The main "CMakeLists.txt" is:
My "main.c"
I'm also attaching the project folder if you want to look it at it yourself
AFBR-S50.tar.gz
The text was updated successfully, but these errors were encountered: