Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

High RAM usage on NXP FMUK66 on main (likely due to UAVCAN) #21836

Closed
dirksavage88 opened this issue Jul 11, 2023 · 10 comments
Closed

High RAM usage on NXP FMUK66 on main (likely due to UAVCAN) #21836

dirksavage88 opened this issue Jul 11, 2023 · 10 comments

Comments

@dirksavage88
Copy link
Contributor

dirksavage88 commented Jul 11, 2023

Describe the bug

High ram usage (maxed) on main using the FMUK66 by Nxp.

To Reproduce

This is with uavcan enabled and active connections to a uavcan gps+mag. Could not open a system console or console commands not recognized due to max ram usage. Nothing else out of the ordinary running (see screenshot). There is 256k ram on this FMU

Expected behavior

Could not replicate on stable/1.13 where ram usage was not causing issues.

Screenshot / Media

IMG_3177
IMG_3176

Flight Log

Will send log on discord at request (dm)

Software Version

Main

Flight controller

FMUK66

Vehicle type

Multicopter

How are the different components wired up (including port information)

No response

Additional context

No response

@dirksavage88
Copy link
Contributor Author

So according to @PetervdPerk-NXP this is a known issue with uavcan enabled due to listener expansion with no known solution as of yet. Perhaps make uavcan selective of which listeners/topics?

@junwoo091400 junwoo091400 changed the title [Bug] High RAM usage on NXP FMUK66 on main High RAM usage on NXP FMUK66 on main Jul 18, 2023
@junwoo091400 junwoo091400 changed the title High RAM usage on NXP FMUK66 on main High RAM usage on NXP FMUK66 on main (likely due to UAVCAN) Jul 18, 2023
@dirksavage88
Copy link
Contributor Author

Thanks @junwoo091400 for updating the title now that we know the exact cause of the high ram usage on this board

@DronecodeBot
Copy link

This issue has been mentioned on Discussion Forum for PX4, Pixhawk, QGroundControl, MAVSDK, MAVLink. There might be relevant details there:

https://discuss.px4.io/t/px4-community-q-a-august-02-2023/33434/1

@henrykotze
Copy link
Contributor

I dont have that NXP board but try this PR whether it helps to reduce the RAM usage.
#21928

@dirksavage88
Copy link
Contributor Author

I'll give it a shot @henrykotze.

In the mean time I disabled mavlink on the 2nd telem port and that helped reduce RAM usage.

@mrpollo
Copy link
Contributor

mrpollo commented Aug 8, 2023

Hey @PetervdPerk-NXP have you experience this before? Have any helpful tips for us?

@henrykotze
Copy link
Contributor

@dirksavage88 you will just need to configure the board via the 'make boardconfig' command and disable all uavcan related subscribers and controllers.

@dirksavage88
Copy link
Contributor Author

Kazam_screenshot_00012

About 90%, and I disabled all the uavcan subscribers except for GPS (which I use over DroneCAN), optical flow (I have a can flow sensor I use from time to time) and rangefinder. Serial over telem is back to default.

@DronecodeBot
Copy link

This issue has been mentioned on Discussion Forum for PX4, Pixhawk, QGroundControl, MAVSDK, MAVLink. There might be relevant details there:

https://discuss.px4.io/t/px4-community-q-a-september-20-2023/34296/2

@dirksavage88
Copy link
Contributor Author

Fixed in #21928

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants