Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8041

SDK • Re: Calling RP20240 SDK from another language

$
0
0
Just FYI - I posted this in the Other Languages forum because I was sure where to post it.

Is it possible to call just pieces of the RP2040 SDK from another programming language? I'll post this in the Pico forum too. I'm a retired programmer and I use to do calls from a particular language I was using to .DLL files (in the Windows environment) to access certain functionality that I need in my particular language. Is this possible with the RP2040 C/C++ SDK?

Frank
The ease this can be done depends from which language you want to call SDK functions.

For example, the Pico version of BBC Basic uses the SYS keyword to call SDK functions. This may require rebuilding for functions not already linked into the environment, but that takes a minute.

https://github.com/Memotech-Bill/PicoBB

I think Micro Python has an extension feature that allows linking SDK functions and C libraries.

Other languages available on the Pico include TinyGo and Rust. It's not clear to me how easy a multi-language project is with respect to those.

https://tinygo.org/docs/reference/micro ... lers/pico/

https://github.com/rp-rs/rp-hal#gettting_started

Statistics: Posted by ejolson — Thu Apr 10, 2025 4:18 pm



Viewing all articles
Browse latest Browse all 8041

Trending Articles