PX4-Autopilot icon indicating copy to clipboard operation
PX4-Autopilot copied to clipboard

Insufficient Space for FLASH on Pixhawk 6x build

Open huiyulhy opened this issue 2 years ago • 8 comments

Describe the bug

Tried to compile code in the latest version of main for a Pixhawk 6x, but ran into an error during build that there was insufficient space in the FLASH region

To Reproduce

Steps to reproduce the behavior:

  1. git clone latest main branch (does not need to include submodules)
  2. run build command: make px4_fmu-v6x_default
  3. See error on build command

Expected behavior

Should run into error compiling that FLASH region overflowed. image

huiyulhy avatar Jul 21 '22 17:07 huiyulhy

Same here. image git log image

Will0fD avatar Jul 21 '22 18:07 Will0fD

Commit hash (main): 32c6ec06 This commit was successfully built.

Screenshot from 2022-07-22 07-35-10

muramura avatar Jul 21 '22 22:07 muramura

Commit hash (main): 32c6ec0 This commit was successfully built.

Screenshot from 2022-07-22 07-35-10

@muramura Your FLASH Used Size is about 20KB less than ours. 🤔 Any idea why? We're on the same commit. Maybe it's the compiler? image

Will0fD avatar Jul 21 '22 23:07 Will0fD

Commit hash (main): 32c6ec0 This commit was successfully built.

Screenshot from 2022-07-22 07-35-10

Just curious, what version of Linux are you running on for your development environment?

huiyulhy avatar Jul 21 '22 23:07 huiyulhy

master/main (6a0f394d) Screenshot from 2022-07-22 22-52-35

muramura avatar Jul 22 '22 13:07 muramura

main (6a0f394) :( image

Will0fD avatar Jul 22 '22 16:07 Will0fD

I use the following version of my GCC. ArduPilot uses this version. I also develop ArduPilot.

gcc-arm-none-eabi-10-2020-q4-major

muramura avatar Jul 22 '22 20:07 muramura

I met the same issue as well, what I did was using the command make px4_fmu-v6x boardguiconfig and unselect some of the unused modules or drivers (for example uavcan, camera_capture, and camera_trigger) and save the new configuration, then it solved the problem.

Aeolus-EricKhoo avatar Jul 27 '22 03:07 Aeolus-EricKhoo

It would be interesting to compare the compiler differences (20KB result is quite big!), but this itself is a re occurring problem in PX4 👻

junwoo091400 avatar Dec 02 '22 00:12 junwoo091400