Hi,
I made the Olimex BSP defaults such that it’ll have bootloader present.
What this means is that in order to download blinky, you’ll need
3 things built. bin2img the tool, bootloader and blinky itself.
This is what newt targets to use:
[marko@IsMyLaptop:~/src3/larva]$ newt target show bin2img
bin2img
bsp: hw/bsp/native
name: bin2img
arch: sim
compiler: sim
project: bin2img
compiler_def: debug
[marko@IsMyLaptop:~/src3/larva]$ newt target show boot_olimex
boot_olimex
compiler: arm-none-eabi-m4
project: boot
compiler_def: optimized
bsp: hw/bsp/olimex_stm32-e407_devboard
name: boot_olimex
arch: cortex_m4
[marko@IsMyLaptop:~/src3/larva]$ newt target show blink_olimex
blink_olimex
compiler: arm-none-eabi-m4
project: blinky
compiler_def: debug
bsp: hw/bsp/olimex_stm32-e407_devboard
name: blink_olimex
arch: cortex_m4
And then build them, and download bootloader and blinky (or
any other project).
[marko@IsMyLaptop:~/src3/larva]$ newt target build bin2img
Building target bin2img (project = bin2img)
Linking bin2img.elf
Successfully run!
[marko@IsMyLaptop:~/src3/larva]$ newt target build boot_olimex
Building target boot_olimex (project = boot)
Linking boot.elf
Successfully run!
[marko@IsMyLaptop:~/src3/larva]$ newt target build blink_olimex
Building target blink_olimex (project = blinky)
Linking blinky.elf
Successfully run!
[marko@IsMyLaptop:~/src3/larva]$ newt target download boot_olimex
Downloading with
/Users/marko/src3/larva/hw/bsp/olimex_stm32-e407_devboard/olimex_stm32-e407_devboard_download.sh
[marko@IsMyLaptop:~/src3/larva]$ newt target download blink_olimex
Downloading with
/Users/marko/src3/larva/hw/bsp/olimex_stm32-e407_devboard/olimex_stm32-e407_devboard_download.sh
> Begin forwarded message:
>
> From: [email protected]
> Subject: [3/3] incubator-mynewt-larva git commit: Switch to use boot loader
> with Olimex 407 platform by default.
> Date: November 10, 2015 at 2:35:06 PM PST
> To: [email protected]
> Reply-To: [email protected]
>
> Switch to use boot loader with Olimex 407 platform by default.
>
>