I had a project which works fine under niosII. I upgrade all the project with niosv and all seems fine except printing values in juart-terminal. Here is the main code : #include <stdio.h> #inclu...
When you use breakpoint, there is sufficient delay for alt_avalon_i2c_master_rx() to return rxbuffer[1] = 0x01 at the first attempt.
However, when you let the application to run normally, usleep(3000) is not enough to get rxbuffer[1] = 0x01. Perhaps it is only possible after a few attempts. Thus, co2U32, tempU32, and humU32 remains at 0 due to rxbuffer[1] = 0x0. Which leads to memcpy 0 into the printed variables, that is also 0.
To proof this phenomena, you can define different initial value between the printed variables & intermediary variables. This can help to understand whether it is a memcpy or rxbuffer issue.