Hi J,You are sending the bytes as a string instead of one single byte.
For example the first byte 0xB5 is sent as four characters "0" "×" "B" "5"
Call periph_wr() has no data to be sent.
When reading from the slave, the SPI master has to provide the clock by writing dummy bytes.
Hi J,You are sending the bytes as a string instead of one single byte.
For example the first byte 0xB5 is sent as four characters "0" "×" "B" "5"
Call periph_wr() has no data to be sent.
When reading from the slave, the SPI master has to provide the clock by writing dummy bytes.
Hi J,I don't know the ublox SPI protocol, but guess, that you should send the whole message before the ublox has the return message available.
Do you have the calculated checksum in your message?
Hi S,What the heck is this line for:
m2s(i) = m2s(i) + i
You are adding the loop counter to the value. So, M2S(1) will become 0x63 instead of 0x62, M2S(2) will become 0x0c instead of 0x0a, and so on....
All the values of your initial string will be totally different than what you initialized them as...