2018-05-10 02:12 AM
Hello,
I have a small big problem. I configured my stm32 (F429) in CubeMx, everything works after sending positive data from the computer to STM32, but sending 0 resets the remaining bytes.E.g:I send: 1 2 3 4 5 0 7 8I receive: 1 2 3 4 5 0 0 0Can I change it? If I can do how?Thanks for help
2018-05-10 04:35 AM
Are you sending ascii values of these numbers or just numbers? I believe sending value 0 not ascii 48 which is ascii value of number 0 will tell your program that this is the last character in series and it won't send out any more data.
2018-05-10 08:53 AM
I'm sending just numbers. Can I change it somehow?
2018-05-11 03:01 AM
You can simply try to add 48 to each number before sending and subtract 48 after receiving.