# How to compile stm32 code to pixhawk

**URL:** <https://discuss.px4.io/t/how-to-compile-stm32-code-to-pixhawk/23068>\
**Category:** Uncategorized\
**Created:** [June 30, 2021, 12:52am UTC](https://discuss.px4.io/t/how-to-compile-stm32-code-to-pixhawk/23068 "2021-06-30T00:52:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![impactWhey](https://discuss.px4.io/user_avatar/discuss.px4.io/impactwhey/32/8949_2.png) [@impactWhey](https://discuss.px4.io/u/impactWhey)\
**Post date:** [June 30, 2021, 12:52am UTC](https://discuss.px4.io/t/how-to-compile-stm32-code-to-pixhawk/23068/1 "2021-06-30T00:52:15Z")

</div>

hello.  
I’m trying to use pixhawk hardware but don’t want to use px4 code.

In this case, it can be possible to write stm32 code and compile with stm32cubeIDE for pixhawk hardware ? ( never use px4 code)

I know it is not an effective way to flight drone , but want to know how to do this work.

thanks.
