|
From: Konstantin K. <kkl...@gm...> - 2012-02-09 09:50:02
|
2012/2/9 Etienne Dublé <eti...@im...> > Le 08/02/2012 12:45, Konstantin Klubnichkin a écrit : > > > > I have no idea what is inside the firmware of the STM32F, and there are > no sources for it, or I failed to find. The best I can do if I by incident > the STM32F firmware is upgraded - just plug the board in with the button > pressed. After this I "speak" not to STM32W, but to STM32F, and I can > xmodem STM32F firmware into it. > > That's interesting, where did you find this info? > Well, after that accidental STM32F firmware upgrade, I've inserted the board with the button pressed (it has only one button), it was detected as serial device, then I've connected to it using terminal, pressed enter and saw this: ====================================================================== = (C) COPYRIGHT 2010 STMicroelectronics = = = = In-Application Programming Application (Version 3.3.0) = = By MCD Application Team = ================== Main Menu ============================ Download Image To the STM32F10x Internal Flash ------- 1 Upload Image From the STM32F10x Internal Flash ------- 2 Execute The New Program ------------------------------ 3 Disable the write protection ------------------------- 4 ========================================================== I've uploaded firmware out of the board (pressed 2) and found, that it is the same as CompositeForSTM32W.bin from the v.2.x.x.x stm32w_flasher. Then I looked inside the firmware and found the same text. Then I've taken CompositeForSTM32W.bin from the previouse (v1.x.x.x) version and uploaded it into the board. That's how I've restored it. BTW, this lines can be found in ST example of the UART IAP bootloader, except that the sources provided by ST allow firmware upgrade via HW UART, not USB virtual port, so the next obviouse step is to develop my own version of the IAP using two examples from ST. Without that weird "Mouse+COM port" composite device. For the board without any sensors and only one button. Weird. [...] > sudo ../../../tools/stm32w/stm32w_flasher/stm32w_flasher -f -i rs232 -p > /dev/ttyACM0 -r test-button.bin > [sudo] password for etienne: > INFO: STM32W flasher utility version 2.0.0b2 for Linux > WARNING: Device firmware is more recent than expected. Are you using an > old version of this software ? > Oops, this is interesting. I saw this output in Instant Contiki VM stm32w_flasher, but it still was unable to flash. At the point I have 3 versions of the stm32w_flasher: 1. Coming with Contiki 2.5 - crashes silently 2. Out of the Instant Contiki - can flash FTDI, can't flash STM32F based boards 3. Out of EmberZNet SDK (distributed via ST site) - can flash all boards with 'old' IAP, boards with new IAP can't be passed to VM. Also there is a possible way to adopt stm32flasher open source project, but it also can't be used if the STM32F firmware is... well, proprietary. A little bit longer way than I thought. > > Regards > Etienne > > _______________________________________________ > Contiki-developers mailing list > Con...@li... > https://lists.sourceforge.net/lists/listinfo/contiki-developers > > -- Best regards, Konstantin Klubnichkin |