First of all, context: I'm implementing a program in ARM Cortex A9 processor. I had an issue related to the C code itself which was solved here: How to set the values of an array to a single variable
First I wrote the code in my computer (OS Linux 64 bits) and the accepted answer in the above link works. However, when I did the same in the ARM A9 it didn't. I did a simple test on ARM:
uint64_t test = 0x1B26B354A1CF;
printf("%lx", test);
it prints:
d
The same in my computer:
uint64_t test = 0x1B26B354A1CF;
printf("%lx \n", test);
prints:
1b26b354a1cf
So it seems like an overflow problem or a problem handling that "big" data. How can I find a workaround or an alternative solution to this?
Target: ARTY Z7 FPGA (in this problem you can ignore the "FPGA" part. I'm just workint with the processor this board has: ARM A9 CORTEX)