[riot-users] Flash to board: Nucleo F446RE

Alexandre Abadie alexandre.abadie at inria.fr
Wed Sep 11 11:16:18 CEST 2019


Hi, 

If I understand correctly, you are trying to flash the nucleo board from a virtual machine running on a Windows host. In this case, if no NUCLEO-F446 directory is automatically mounted when you plug the board, this means: 
- you have to install the virtualbox extension pack corresponding to your virtualbox version. If I remember correctly, you must stop virtualbox during the setup of the extension. 
- you need to enable USB support in the VM settings and verify virtualbox can share the USB device with the VM. 

Let us know if this solves your flashing issue. 

Alex 

----- Le 11 Sep 19, à 10:00, dicek bear <dicek334 at gmail.com> a écrit : 

> Dear RIOT users,

> Hello, Recently I downloaded the latest version RIOT-OS 2019-09 and try to
> execute "default" example at first.

> Now it successed to run "native" target and send, receive data by using "txtsnd"
> command between 2 ports.

> Next step, I want to program "default" example into Nucleo-F446RE board.
> Compiling is no problem, but flashing the board failed as following,

> ---------------------------------------------------------------------------------------------------------
> vagrant at vagrant:~/RIOT/examples/default$ make BOARD=nucleo-f446re flash
> Building application "default" for "nucleo-f446re" with MCU "stm32f4".
> "make" -C /home/vagrant/RIOT/boards/nucleo-f446re
> "make" -C /home/vagrant/RIOT/boards/common/nucleo
> "make" -C /home/vagrant/RIOT/core
> "make" -C /home/vagrant/RIOT/cpu/stm32f4
> "make" -C /home/vagrant/RIOT/cpu/cortexm_common
> "make" -C /home/vagrant/RIOT/cpu/cortexm_common/periph
> "make" -C /home/vagrant/RIOT/cpu/stm32_common
> "make" -C /home/vagrant/RIOT/cpu/stm32_common/periph
> "make" -C /home/vagrant/RIOT/cpu/stm32f4/periph
> "make" -C /home/vagrant/RIOT/drivers
> "make" -C /home/vagrant/RIOT/drivers/periph_common
> "make" -C /home/vagrant/RIOT/drivers/saul
> "make" -C /home/vagrant/RIOT/sys
> "make" -C /home/vagrant/RIOT/sys/auto_init
> "make" -C /home/vagrant/RIOT/sys/auto_init/saul
> "make" -C /home/vagrant/RIOT/sys/fmt
> "make" -C /home/vagrant/RIOT/sys/isrpipe
> "make" -C /home/vagrant/RIOT/sys/newlib_syscalls_default
> "make" -C /home/vagrant/RIOT/sys/phydat
> "make" -C /home/vagrant/RIOT/sys/pm_layered
> "make" -C /home/vagrant/RIOT/sys/ps
> "make" -C /home/vagrant/RIOT/sys/saul_reg
> "make" -C /home/vagrant/RIOT/sys/shell
> "make" -C /home/vagrant/RIOT/sys/shell/commands
> "make" -C /home/vagrant/RIOT/sys/stdio_uart
> "make" -C /home/vagrant/RIOT/sys/tsrb
> text data bss dec hex filename
> 17428 144 2660 20232 4f08
> /home/vagrant/RIOT/examples/default/bin/nucleo-f446re/default.elf
> /home/vagrant/RIOT/dist/tools/openocd/openocd.sh flash
> /home/vagrant/RIOT/examples/default/bin/nucleo-f446re/default.elf
> /home/vagrant/RIOT/dist/tools/openocd/openocd.sh: line 124: [: : integer
> expression expected
> ### Flashing Target ###
> Open On-Chip Debugger 0.9.0 (2015-09-02-10:42)
> Licensed under GNU GPL v2
> For bug reports, read
> [ http://openocd.org/doc/doxygen/bugs.html |
> http://openocd.org/doc/doxygen/bugs.html ]
> hla_swd
> Info : The selected transport took over low-level target control. The results
> might differ compared to plain JTAG/SWD
> adapter speed: 2000 kHz
> adapter_nsrst_delay: 100
> none separate
> srst_only separate srst_nogate srst_open_drain connect_deassert_srst
> Info : Unable to match requested speed 2000 kHz, using 1800 kHz
> Info : Unable to match requested speed 2000 kHz, using 1800 kHz
> Info : clock speed 1800 kHz
> Error: open failed
> in procedure 'init'
> in procedure 'ocd_bouncer'
> /home/vagrant/RIOT/examples/default/../../Makefile.include:556: recipe for
> target 'flash' failed
> make: *** [flash] Error 1
> ---------------------------------------------------------------------------------------------------------

> It looks like that a on board ST-Link V2 programmer is not accessed and accepted
> from the PC (RIOT-OS) crrectly.
> I only installed "git", "vartual_box" and "vagrant" in the Windows10 PC.
> Do I need to install other softwares, device drivers in the Windows 10 PC ?.

> Regards,
> Dicek Bear.

> _______________________________________________
> users mailing list
> users at riot-os.org
> https://lists.riot-os.org/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/users/attachments/20190911/f466ade1/attachment-0001.htm>


More information about the users mailing list