UART Bootloder protocol: Write command have no effect on memory, despite all required ACKs recieved.
Hi, i have problem with bootloader protocol on USART. Write command gives all ACKs but there is no effect on memory.
Other commands seems to work fine, with all ACKs, i can read memory fine. I was checking memory using STM Programmer.
I'm using NUCLEO F439ZI.
Termios settings for UART are:
cfmakeraw(&settings);
settings.c_cflag &= ~PARODD;
settings.c_cflag |= PARENB;
settings.c_cflag &= ~CSTOPB;
settings.c_cc[VMIN] = 0;
settings.c_cc[VTIME] = 10;
cfsetispeed(&settings, B115200);
cfsetospeed(&settings, B115200);
Commands used for tests are:
printf "\x7F\x31\xCE" >/dev/ttymxc2
printf "\x08\x00\x00\x00\x08" >/dev/ttymxc2
printf "\x03\x55\x55\x55\x55\x03" >/dev/ttymxc2
For those commands i receive 4 ACKs.
Then using :
printf "\x7F\x11\xEE" >/dev/ttymxc2
printf "\x08\x00\x00\x00\x08" >/dev/ttymxc2
printf "\x0F\xF0" >/dev/ttymxc2
Gives unchanged memory back.
