osqp used with an MCU(STM32 F405/F407) #614
-
Is there any documentation on the use of OSQP on an STM32 F407? Trying to use the OSQP on my MCU but cant seem to find any information how or what to add to my MCU project. Any suggestions are welcome |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
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 |
Beta Was this translation helpful? Give feedback.
-
Hi @imciner2, no worries. There were no problems at all implementing OSQP on a micro controller such as an STM32f407g and it runs very smoothly. Thanks for the information though. Andreas |
Beta Was this translation helpful? Give feedback.
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.