how comes the px4io-v2.bin file into the PIXHAWK

649 views
Skip to first unread message

Peter Plischka

unread,
Mar 8, 2014, 1:05:19 PM3/8/14
to drones-...@googlegroups.com
Hi there,

can someone tell me how the px4io-v2.bin file comes into the PIXHAWK?

I compile my AC firmware with "make" on Linux or Windows.
The file px4io-v2.bin is also generated

After the Firmware upload with the MP I always get the melody and two tones.


Peter

Robert Lefebvre

unread,
Mar 8, 2014, 1:15:57 PM3/8/14
to drones-discuss
I think it gets loaded into the primary processor, which then dumps it into the FMU processor on bootup?  I've never actually done anything with that file and just ignore it.  Not sure if that's correct, but if it's not, I'd like to know about it.

I know that when making major changes to the firmware (ie: going between 3.0 and 3.1 branches) the FMU did need to update on it's first bootup.


--
You received this message because you are subscribed to the Google Groups "drones-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drones-discus...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Peter Plischka

unread,
Mar 8, 2014, 2:47:16 PM3/8/14
to drones-...@googlegroups.com
Hi Robert,

the
px4io-v2.bin seems to  contain changes from PX4Firmware or PX4NuttX .
They always ​​changes often. I think that it should be up to date.

I would imagine that it is stored on the SD card and when booting with holding down the button it will be loaded.

Peter

Xian06

unread,
Mar 8, 2014, 3:03:39 PM3/8/14
to drones-...@googlegroups.com
This files not working on Pixhawk because PX4IO board version 10. Pixhawk has board version 9.
Message has been deleted

Craig Elder

unread,
Mar 8, 2014, 3:11:45 PM3/8/14
to drones-discuss
Peter,

When the main code is compiled the px4io file is stored in ROM FS as /etc/px4io/px4io.bin

When the system starts up if that file is compared to the one installed in the px4io board and then the one on the io board is updated if required.




--

Peter Plischka

unread,
Mar 8, 2014, 3:38:31 PM3/8/14
to drones-...@googlegroups.com
Hi Craig,

I have not understood it.
When I download a firmware with the MP to the PIXHAWK,  the two files "ArduCopter-v2.px4" and "px4io-v2.bin"
are located in a directory on my hard drive. Where  both files transferred from the MP to the PIXHAWK?

Peter

Craig Elder

unread,
Mar 8, 2014, 8:40:23 PM3/8/14
to drones-discuss
>>>Where  both files transferred from the MP to the PIXHAWK?

both files are not transferred to the Pixhawk.  If you have a copy of px4io-v2.bin located on your  hard drive it is probably from some other time that you downloaded it

The px4io.bin is built and included as part of ArduCopter-v2.px4 in a ROM File system as /etc/px4io/px4io.bin







--

Peter Plischka

unread,
Mar 9, 2014, 5:10:45 AM3/9/14
to drones-...@googlegroups.com
Super Craig, Thank you ..
I always thought that the px4io v2 has yet to be transferred.

Peter

Robert Lefebvre

unread,
Mar 9, 2014, 8:47:27 AM3/9/14
to drones-discuss
Thanks Craig, that's about what I thought.

So do I understand right that, when I'm compiling using Make, it generates the px4io.bin file first, and then builds that file into the main hex file that actually gets uploaded, putting it in the directory as you state?  

Xian06

unread,
Mar 9, 2014, 1:02:04 PM3/9/14
to drones-...@googlegroups.com


2014. március 8., szombat 19:05:19 UTC+1 időpontban Peter Plischka a következőt írta:

Peter Plischka

unread,
Mar 10, 2014, 2:45:04 AM3/10/14
to drones-...@googlegroups.com
The compiler always generates the two files "px4io-v2.bin" and "ArduCopter-v2.px4".

If the file px4io-v2.bin is not needed, we should not create it. This can save compile time.

Peter

Robert Lefebvre

unread,
Mar 10, 2014, 9:14:58 AM3/10/14
to drones-discuss
Peter, when I compile, if I don't use make px4-clean first, I think it reuses the old files. Only takes a couple minutes to compile.


--

Peter Plischka

unread,
Mar 10, 2014, 9:40:46 AM3/10/14
to drones-...@googlegroups.com
Hi Robert,

if I make a Quadro "make px4-v2" and then do immediate an Hexa "make px4-v2-hexa" the files are of equal size.
If I do an "make clean"
between , I get two different files.
I think the make clean or px4-clean is already important.

regards Peter
Reply all
Reply to author
Forward
0 new messages