Disable modules PX4

I know that the following question could be pretty simple but I’m not sure about what I did.

I have a Flight controller with a small amount of Memory so I have to disable some modules before flashing the firmware on the FC. How can I do that?

I’m using Ubuntu 22.

I assume you are looking for this?

make px4_fmu-v5x boardconfig

Where px4_fmu-v5x is the name of the board you need to enable/disable modules.

1 Like

Ho @Igor_Misic thanks for the replay. I saw it, so if I got it I have to run the make with my target board with boardconfig at the end. After that I have to do the make again with upload at the end or what?

I saw it, so if I got it I have to run the make with my target board with boardconfig at the end. After that I have to do the make again with upload at the end or what?

you are correct.

It works, but when I remove some modules I get errors, for some of these it makes sense but for others not at all. For example I tried to remove fw_att_control because I will use my flight controller on a multicopter and it seems reasonable that I won’t need modules related to fixed wing airframes

I ran into the same issue, maby there’s some thing to do with the method implementation, some control methods may be reused.
If you want you can still delete some lines of code from the fw_att_control module to reduse the built size of firmware tho.

thanks for the information. It seems a little bit brutal as a solution :disappointed_relieved: