cancel
Showing results for 
Search instead for 
Did you mean: 

internal bootloader through bluetooth (firmware update)

lukasz239955
Associate
Posted on May 25, 2010 at 10:17

internal bootloader through bluetooth (firmware update)

2 REPLIES 2
chikos332
Associate II
Posted on May 17, 2011 at 13:52

Hi,

If you receive 0x1F (instead of ACK 0x79) then it probably means that:

  - The Baudrate you are using is not suitable (too high or too low)

  - Or You are not waiting enough time after sending the 0x7F

  - Or you are not using the correct data format (I think: 8-bit, No parity, 1 Stop bit, but check by yourself AN3155)

There are some similar topics in this forum, try to check them as well.

Cheers.

lukasz239955
Associate
Posted on May 17, 2011 at 13:52

Thanks for reply.

Took me a day of fighting but I did it.

If anybody wants to try heres some hints:

- baudrate should be set 115200, 8Even1 , so parity is EVEN

- bt modules usually work at default baudrate 115200 but no parity, you need to change bt config as well

- the asm code (taken from other topic on this forum) works but before you have to turn off interrupts and uart1 completely.

- I couldn't upload firmware from device only download to device (enough for me)

- you have to do additnioal reset (NVIC_GenerateSystemReset() is good enough) if you want to enter bootloader again - otherwise it will hang and break (that happened in my case)