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

How can I send and receive data via SPI? RP2040 #11

Open
firmwarenewbie opened this issue May 22, 2024 · 3 comments
Open

How can I send and receive data via SPI? RP2040 #11

firmwarenewbie opened this issue May 22, 2024 · 3 comments

Comments

@firmwarenewbie
Copy link

firmwarenewbie commented May 22, 2024

I love the idea of this project, but I'm learning to use the RP2040 and have no idea how, using your starter pack, I can initialize SPI at 10MHz, for example, and send and receive data. Is there any example code?

@ataradov
Copy link
Owner

There is no example code for this. This is not meant to be a complete framework, just a basic starter project with the startup code and the build system setup.

The way you support any peripheral is the same - read the datasheet and write the code. Use UART as an example template of enabling the clocks and configuring the pins. You can use the low level functions of the official SDK as a reference too.

@firmwarenewbie
Copy link
Author

Oh, I understand, I don't have the level for this. It would be great to have more examples for an educational setting like the one I'm in. Thanks anyway!

@ataradov
Copy link
Owner

Use the official SDK if you need a lot of support. It has a ton of examples and good community support.
This project will never deviate from the basic template I'm using here. It is just enough code to quickly start a bare metal project. You have to build the rest yourself.

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