Can I compile C code without using Axoloti environment?


#1

Thank you very much for help!!!!
FD


#2

Please be more specific...
Do you want to load/run your own binaries on the Axoloti board?
Do you want to compile code from Axoloti to a different target?


#3

Hello,
I would try to load and run a binary written without Axoloti IDE on the Axoloti board directly in C code, because I work with PortAudio library on the Raspberry Pi board and I would transfer my current work on this platform because of its features.
Greetings,
FD


#4

Axoloti does not run Linux.... its an RTOS using CHIBIOS, and port audio doesnt support it.

but you can write your own C code if you want for axoloti, basically you could create a single object which contained all the code you wanted to execute, and it could merely interface at the audio in and output level via the buffers.

so you could probably port your code fairly easily.
Im not familiar with what portaudio offers over an above shielding you from the OS's audio system.


#5

You can either integrate your code in a ChibiOS project (start with the firmware directory in the Axoloti sources).

Or you can bypass Chibi and hit the hardware directly. This would require you to set up the codec and DMA streams and fill a buffer with the code you already have. This is moderately difficult if you're not familiar with embedded code.

As technobear says, you could also put the main loop of your code into a custom Axoloti object, but this might be difficult depending on how it's structured. This is most likely the easiest way to go.

Beware, though, that the Axoloti board is much slower than the Raspberry Pi and has much less memory and space for code.