You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2021/04/13 09:45:11 UTC
[GitHub] [mynewt-core] kasjer edited a comment on pull request #2559: SiFive Typo Fix
kasjer edited a comment on pull request #2559:
URL: https://github.com/apache/mynewt-core/pull/2559#issuecomment-818521749
Hi @robertlipe, here is what you need to do to run blinky on hifive1 board:
create target for bootloader:
```sh
newt target create riscv-boot
newt target set riscv-boot app=@mcuboot/boot/mynewt
newt target set riscv-boot bsp=@apache-mynewt-core/hw/bsp/hifive1
newt target set riscv-boot build_profile=optimized
```
create target for blinky application
```sh
newt target create riscv-blinky
newt target set riscv-blinky bsp=@apache-mynewt-core/hw/bsp/hifive1
newt target set riscv-blinky app=apps/blinky
newt target set riscv-blinky build_profile=debug
```
build bootloader (bin) and application (img)
```sh
newt build riscv-boot
newt create-image riscv-blinky timestamp
```
now load bootloader and application
```sh
newt load riscv-boot
newt load riscv-blinky
```
This all assumes that you have **openocd** with riscv support installed and that
your compiler is **riscv64-unknown-elf-gcc** which was what originally used from freedom sdk.
Now it maybe more common to use **riscv-none-embed**, if this is the case for start you can
update **compiler/riscv64/compiler.yml** to use prefix that you have compiler for.
best regards
Jerzy
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org