Skip to content

osqp used with an MCU(STM32 F405/F407) #614

Discussion options

You must be logged in to vote

Hi @andreaskruger, sorry for not replying earlier. OSQP should be capable of being used on these micro controllers, but the exact files you will need depend on the version of OSQP you are using. Which version are you trying?

For OSQP 0.6, you will need to add all the source files from the src and include directories to your project, and also set the OSQP_EMBEDDED_MODE define to either 1 or 2 (depending on if you want to allow vector updates only, or both vector and matrix updates). You can then use the code generation facilities in the Python or Matlab interfaces to generate the matrices/vectors and the solver that you can then deploy on your MCU.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by andreaskruger
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Embedded Using embedded OSQP
2 participants