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

px4io: set safety on before going into bootloader #4860

Merged
merged 1 commit into from
Jun 21, 2016

Conversation

julianoes
Copy link
Contributor

@julianoes julianoes commented Jun 21, 2016

Sometimes when flashing new firmware without power cycle, the IO update fails because safety
is off. In this case, we should set safety on first before putting the
IO board into bootloader mode.

In the APM world where I've seen this error, it looks as follows:

Trying PX4IO board
px4io config read error
px4io: driver init failed
Loading /etc/px4io/px4io.bin
[PX4IO] using firmware from /etc/px4io/px4io.bin
[PX4IO] bad sync 0xff,0xff
[PX4IO] bad sync 0xff,0xff
[PX4IO] bad sync 0xff,0xff
[PX4IO] bad sync 0xff,0xff
[PX4IO] bad sync 0xff,0xff
[PX4IO] bad sync 0xff,0xff
[PX4IO] bad sync 0xff,0xff
[PX4IO] bad sync 0xff,0xff
[PX4IO] bad sync 0xff,0xff
[PX4IO] bad sync 0xff,0xff
[PX4IO] bad sync 0xff,0xff
[PX4IO] bad sync 0xff,0xff
[PX4IO] bad sync 0xff,0xff
[PX4IO] bad sync 0xff,0xff
[PX4IO] bad sync 0xff,0xff
[PX4IO] bootloader not responding
px4io: error updating PX4IO - check that bootloader mode is enabled
Failed to upgrade PX4IO firmware
px4io config read error
px4io: driver init failed
No PX4IO board found

@LorenzMeier, @tridge: Do you agree with the change?

@LorenzMeier
Copy link
Member

Yep, let's get this in.

Sometimes when flashing new firmware, the IO update fails because safety
is off. In this case, we should set safety on first before putting the
IO board into bootloader mode.
@julianoes julianoes force-pushed the fix_io_update_fail branch from 3771ff6 to 8441777 Compare June 21, 2016 07:03
@LorenzMeier LorenzMeier merged commit 8aee443 into master Jun 21, 2016
@LorenzMeier LorenzMeier deleted the fix_io_update_fail branch June 21, 2016 07:15
LorenzMeier pushed a commit that referenced this pull request Jun 21, 2016
Sometimes when flashing new firmware, the IO update fails because safety
is off. In this case, we should set safety on first before putting the
IO board into bootloader mode.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants