Hi, every one
I use TM4C123GXL for a flash bootloader demo. I customized the Tivaware bootloader code to use UART1 as the port. My host device is a raspberry pi and I use pyserial(python serial module ) to send the bootloader command packet what I saw in the Tivaware Bootloader User's guide. My question is as below :
At the first, there is only the customized bootloader code locating at 0x0000.I can send ping,get_status,download and send command from the raspberry pi.When I reset TM4C123gxl,it will start from the bootloader and go to the application which will flash the on board for a while and jump to bootloader(via jumpBootloader()).
I add the UARTstdio in the bootloader so I can debug the code from another uart port on my PC.After the jumptToBootloader() happen, I found every command can't get a response. I found it seems like the buffersize is not enough and this caused by a wrong reading of the first byte of the packet.For example, in ping command,the first byte should be 0x03 but the TM4C123GXL read it as 252 which causes the buffer too small.
Does anyone know what may be the cause of the issue??
really appreciate for any help