The data is being put into the array correctly. The problem is that you are printing the index, i, as though it was a printable character. It isn't.
Change the type of i from uint8_t to int, and see if that doesn't look better.
The data is being put into the array correctly. The problem is that you are printing the index, i, as though it was a printable character. It isn't.
Change the type of i from uint8_t to int, and see if that doesn't look better.