On Fri, Mar 04, 2016 at 03:28:30AM +0100, Nges B wrote:
> $ newt target create blinky command can not create a new project
> because it already exist.
Yes, you are right about that. However, that should not be a problem.
There are two steps in setting up a newt target:
1. Create the target (newt target create)
2. Configure the target (newt target set)
So now you just need to perform step 2. You can configure a target any
time after it has been created. For example:
$ newt target create blinky
Creating target blinky
Target blinky successfully created!
$ newt target show blinky
blinky
arch=sim
name=blinky
$ newt target set blinky arch=cortex_m4
Target blinky successfully set arch to cortex_m4
$ newt target show blinky
blinky
arch=cortex_m4
name=blinky
$ newt target set blinky compiler=arm-none-eabi-m4
Target blinky successfully set compiler to arm-none-eabi-m4
$ newt target show blinky
blinky
arch=cortex_m4
compiler=arm-none-eabi-m4
name=blinky
$ newt target set blinky project=blinky
Target blinky successfully set project to blinky
$ newt target show blinky
blinky
arch=cortex_m4
compiler=arm-none-eabi-m4
name=blinky
project=blinky
$ newt target set blinky bsp=hw/bsp/olimex_stm32-e407_devboard
Target blinky successfully set bsp to hw/bsp/olimex_stm32-e407_devboard
$ newt target show blinky
blinky
arch=cortex_m4
bsp=hw/bsp/olimex_stm32-e407_devboard
compiler=arm-none-eabi-m4
name=blinky
project=blinky
$ newt target set blinky compiler_def=debug
Target blinky successfully set compiler_def to debug
$ newt target show blinky
blinky
arch=cortex_m4
bsp=hw/bsp/olimex_stm32-e407_devboard
compiler=arm-none-eabi-m4
compiler_def=debug
name=blinky
project=blinky
Chris