|
From: Giacomo T. <gia...@gm...> - 2012-04-20 08:52:47
|
Thanks so much for your reply. My problem with the firmware was little different. After the start of the bootloader the utility said "Device firmware is more recent than expected. Are you using an old version of this software?". Anyway I used a win32 computer with hyperterminal (Ymodem) and I was able to flash the CompositeForSTM32W.bin on the MB951 and now in ubuntu it works perfect. My last (hope last) question is how to have the same bootloader on the MB950. I try to press all buttons but i can't access to the bootloader. Giacomo Tanganelli Il 20 aprile 2012 09:43, Konstantin Klubnichkin <kkl...@gm...> ha scritto: > Hello! > > Regarding the serialdump. Actually the contiki hangs inside the MB951 > because of the wrong Contiki port - there are no sensors onboard, but the > code is trying to initialize them and goes into infinite wait trying to > init I2C MEMS sensor. > It's done in platform/mbxxx/contiki-main.c: > SENSORS(&button_sensor,&temperature_sensor,&acc_sensor); > > For MB951 it must be > SENSORS(&button_sensor); > > Actually there is no even button_sensor, but that was a quick fix without > modifying all other code that is using sensors. > > Regarding the flasher. > It's a big success that you can execute the flasher, I had to upgrade my > Ubuntu to achieve this. > So now the issue is in STM32F firmware. STM32F is used as USB2Serial > converter on board. > To upgrade the firmware you should unplug the board, press and hold the > button (it's the single one there), plug board in, wait couple of seconds > and then release the button. > At this point the internal bootloader is started, so you can connect to > ttyACM0 and should see something like this > > ================== 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 > ========================================================== > > If so, you have to upload new firmware. First download the current version > by pressing 2 and then receiving the file by X-modem or Y-modem protocol > (depends on firmware version). > Then upload new firmware by pressing 1 and sending CompositeForSTM32W.bin > file (near stm32w_flasher binary) using the same protocol. > In case of failure play with different protocols. > In case of success you'll get new firmware and will be able to flash the > board. > > In case you don't get the bootloader menu - you have too old firmware and > have to use Win32 computer to flash it using Win32 stm32w_flasher. > I've tried to use virtual machine without any success - this composite > device was never passed to VM. > > 2012/4/20 Giacomo Tanganelli <gia...@gm...> >> >> I tried to treat ttyACM0 as ttyUSB0 but i have problem with the >> stm32w_flasher and also with the serialdump-linux. For >> serialdump-linux (in the tools/stm32w folder) i tried with -b115200 >> /dev/ttyACM0 but in all configuration i can obtain only the first line >> of the output (Contiki starts on...) and i can't read more data. For >> stm32w_flasher i installed hal and libssl0.9.8 but the utility says: >> >> INFO: STM32W flasher utility version 2.0.0b2 for Linux >> ERROR: Failed to get firmware type: Invalid reply >> ERROR: Trouble while resetting board on port : '/dev/ttyACM0' >> ERROR: Error while initiliazing interface >> >> Do you have a solution? >> >> Thanks in advance >> Giacomo Tanganelli >> >> Il 19 aprile 2012 20:29, Konstantin Klubnichkin >> <kkl...@gm...> ha scritto: >> > Hello! >> > >> > It's not a problem at all, just treat ttyACM0 as ttyUSB0. >> > You may face an issues with programming, if so - contact me, I've solved >> > it. >> > >> > 2012/4/19 Giacomo Tanganelli <gia...@gm...> >> >> >> >> I read in a previous message that someone was able to flash both >> >> MB951A and MB950 in Ubuntu after an Ubuntu upgrade. i'm using Ubuntu >> >> 11.10 now but i'm not able to flash and also i can not use serialdump >> >> or any other tools like minicom or putty. When i put MB951 or MB950 >> >> Ubuntu recognize them as ttyACM0 instead of ttyUSBx or ttySx. Does >> >> anyone know how to solve this problem? Or maybe tell me which Ubuntu >> >> upgrade is necessary? >> >> >> >> thanks in advance >> >> Giacomo Tanganelli >> >> >> >> >> >> >> >> ------------------------------------------------------------------------------ >> >> For Developers, A Lot Can Happen In A Second. >> >> Boundary is the first to Know...and Tell You. >> >> Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! >> >> http://p.sf.net/sfu/Boundary-d2dvs2 >> >> _______________________________________________ >> >> Contiki-developers mailing list >> >> Con...@li... >> >> https://lists.sourceforge.net/lists/listinfo/contiki-developers >> > >> > >> > >> > >> > -- >> > Best regards, >> > Konstantin Klubnichkin >> > >> > >> > ------------------------------------------------------------------------------ >> > For Developers, A Lot Can Happen In A Second. >> > Boundary is the first to Know...and Tell You. >> > Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! >> > http://p.sf.net/sfu/Boundary-d2dvs2 >> > _______________________________________________ >> > Contiki-developers mailing list >> > Con...@li... >> > https://lists.sourceforge.net/lists/listinfo/contiki-developers >> > >> >> >> ------------------------------------------------------------------------------ >> For Developers, A Lot Can Happen In A Second. >> Boundary is the first to Know...and Tell You. >> Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! >> http://p.sf.net/sfu/Boundary-d2dvs2 >> _______________________________________________ >> Contiki-developers mailing list >> Con...@li... >> https://lists.sourceforge.net/lists/listinfo/contiki-developers > > > > > -- > Best regards, > Konstantin Klubnichkin > > ------------------------------------------------------------------------------ > For Developers, A Lot Can Happen In A Second. > Boundary is the first to Know...and Tell You. > Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! > http://p.sf.net/sfu/Boundary-d2dvs2 > _______________________________________________ > Contiki-developers mailing list > Con...@li... > https://lists.sourceforge.net/lists/listinfo/contiki-developers > |