-
Notifications
You must be signed in to change notification settings - Fork 55
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
HITL doesn't work with Ppprzlink 2.0 #80
Comments
Where is compiled this code, which MCU/CPU ? |
I did. I will run some more tests and post a better output info. |
Update: The code is from With pprzlink 1.0 (and
With pprzlink 2.0 (and
With
So clearly with pprzlink 2.0 and unaligned access enabled I get the correct Also, when I just read and display I am kind of out of ideas - it could be related to the compiler (gcc 5.4) and many other things, but it is also just very weird:-/ |
Just to be sure, could you try with a more recent (GCC7) compiler ? |
Actually, I was probably doing something wrong in the end. Can you try the |
The issue is apparently memory alignment,
From nps_main_hitl.c when parsing
DL_COMMANDS
:Pprzlink 1.0
Pprzlink 2.0
length
is at index 4, andpayload
is at index 5length
is returned properly, but instead of a pointer to thepayload
I am getting NULL (DL_COMMANDS_values(buf) = NULL) and as a result memcopy crashes (access to memory at NULL).prints
while the buffer values are:
(sender id =9, dest_id=0, class=telemetry, msg_id=102)
When turning the alignment off, the same result is produced.
@gautierhattenberger what do you think?
The text was updated successfully, but these errors were encountered: