PX4-Autopilot: Memory and mavlink problems pixhawk v2
I noticed that my pixhawk v2 was having some problems, so I hooked up the console in telem 4/5.
What I see at random are different problems:
- Memory problems: this warning comes out “WARNING WARNING WARNING! Revision A has a silicon errata: This device can only utilize a maximum of 1MB flash safely! https://docs.px4.io/en/flight_controller/silicon_errata.html” but I havn’t found any way to fix it. And it’s not only a warning because later this happens:
“nsh: mount: mount failed: Out of memory nsh: mkfatfs: mkfatfs failed: Out of memory”
- Mavlink problems: I have a custom “extras” script to launch mavlink instances. In particular the script is the following:
mavlink stop-all
#ESP
#mavlink start -r 20000 -b 921600 -d /dev/ttyS0
#USB
mavlink start -d /dev/ttyACM0 -b 1000000 -m custom
mavlink stream -d /dev/ttyACM0 -s HEARTBEAT -r 2
mavlink stream -d /dev/ttyACM0 -s ATTITUDE_QUATERNION -r 50
mavlink stream -d /dev/ttyACM0 -s ATTITUDE -r 10
mavlink stream -d /dev/ttyACM0 -s HIGHRES_IMU -r 50
mavlink stream -d /dev/ttyACM0 -s GPS_RAW_INT -r 5
mavlink stream -d /dev/ttyACM0 -s GLOBAL_POSITION_INT -r 50
what happens sometimes at random is this error: "INFO [mavlink] all instances stopped INFO [mavlink] mode: Custom, data rate: 50000 B/s on /dev/ttyACM0 @ 1000000B ERROR [mavlink] could not open /dev/ttyACM0 WARN [mavlink] mavlink for device /dev/ttyACM0 is not running WARN [mavlink] mavlink for device /dev/ttyACM0 is not running WARN [mavlink] mavlink for device /dev/ttyACM0 is not running WARN [mavlink] mavlink for device /dev/ttyACM0 is not running WARN [mavlink] mavlink for device /dev/ttyACM0 is not running WARN [mavlink] mavlink for device /dev/ttyACM0 is not running "
I really don’t know where to start fixing it. Can it be all related to memory issues? Why isn’t it able to open /dev/ttyACM0 sometimes?
PS: I tried to update the bootloader with https://docs.px4.io/v1.9.0/en/advanced_config/parameter_reference.html#SYS_BL_UPDATE without any success.
About this issue
- Original URL
- State: open
- Created 5 years ago
- Comments: 18 (8 by maintainers)
All the errors involve the sdcard. What size is it? How is it formatted? Do you have another you can try?
You’re running out of RAM. You need to either stop some modules (unused mavlink instances for example), or get newer hardware with more RAM (e.g Pixhawk 4)
The Silicon Errata warning is about Flash, and is unrelated to the issues you’re seeing.