Skip to main content
user2912328's user avatar
user2912328's user avatar
user2912328's user avatar
user2912328
  • Member for 5 years, 11 months
  • Last seen more than 1 year ago
comment
Programfault when dereferencing a 64bit int on due
yes you are right about both points. Missing & and multiple of 4
answered
Loading…
awarded
answered
Loading…
awarded
comment
Programfault when dereferencing a 64bit int on due
Thank you. I was aware of the fact of 8bit vs 32bit. I haven't tried your code but it seems right. What did the trick for me in the end was the following: void putData64(byte* packet, int pos, uint64_t data) { uint32_t* out= (uint32_t*) (packet+pos+2); uint32_t* in= (uint32_t*) data; *(out++)= *(in++); *(out++)= *(in++); }
awarded
awarded
revised
Loading…
Loading…
comment
'"/dev/ttyACM0": Permission denied' on Ubuntu 18.04
Just one more thing: are you sure ttyAMC0 is the correct port? On my ubuntu machine its ttyUSB0
Loading…