Power Consumption

Firmware/software/electronics/mechanics
tobias
Bitcraze
Posts: 2339
Joined: Mon Jan 28, 2013 7:17 pm
Location: Sweden

Re: Power Consumption

Post by tobias »

@kekeller Do you have your code in a fork on github or any other place easy shareable so I can try to debug it.
kekeller
Beginner
Posts: 27
Joined: Wed Oct 05, 2016 3:44 pm

Re: Power Consumption

Post by kekeller »

We ended up getting it sorted. For the pmRunSystem(true); command that needs to run in a while loop. I think there was some issue where it was constantly rebooting inside of the if statement.

It did not solve the 12 second boot time though. So what I ended up modifying the STM firmware to boot quicker by removing the FreeRTOS and simply running the motors directly in main. That works fine for our project.
arnaud
Bitcraze
Posts: 2538
Joined: Tue Feb 06, 2007 12:36 pm

Re: Power Consumption

Post by arnaud »

Good that you solved it. The 12 sec is really strange, something must be timing out. If you still want FreeRTOS back you could look at the printout in the console, maybe it can show what is taking time.
tobias
Bitcraze
Posts: 2339
Joined: Mon Jan 28, 2013 7:17 pm
Location: Sweden

Re: Power Consumption

Post by tobias »

Great you got it working! I'm guessing the 12 sec boot is the MPU9250 self test that never passes and times out.
Post Reply