Re: newest BSP on OSX

2019-08-06 Thread Dr. Juergen Kienhoefer
thanks Chris
@utzig: the mcuboot app part worked to build the tools.
Here is what I did, adjusting the tutorial
https://mynewt.apache.org/latest/tutorials/blinky/arduino_zero.html


newt target create arduino_boot

newt target set arduino_boot bsp=@mynewt_arduino_zero/hw/bsp/arduino_zero

newt target set arduino_boot app=@mcuboot/boot/mynewt

newt target set arduino_boot build_profile=optimized

newt target set arduino_boot syscfg=BSP_ARDUINO_ZERO=1


newt target create arduino_blinky

newt target set arduino_blinky app=apps/blinky

newt target set arduino_blinky bsp=@mynewt_arduino_zero/hw/bsp/arduino_zero

newt target set arduino_blinky build_profile=debug

newt target set arduino_blinky syscfg=BSP_ARDUINO_ZERO=1

Then to get the app running I follow these instructions
https://cdn-learn.adafruit.com/downloads/pdf/debugging-the-samd21-with-gdb.pdf

Since I have a Jlink, I start the JLINK server:

JLinkGDBServer -if SWD -device ATSAMD21E18


Run GDB

arm-none-eabi-gdb-py

(gdb) target extended-remote :2331


(gdb) load bin/targets/arduino_boot/app/boot/mynewt/mynewt.elf

Loading section .text, size 0x41fc lma 0x0

Loading section .ARM.exidx, size 0x18 lma 0x41fc

Loading section .relocate, size 0x28 lma 0x4214

Start address 0xb8, load size 16956

Transfer rate: 2069 KB/sec, 4239 bytes/write.


(gdb) load bin/targets/arduino_blinky/app/apps/blinky/blinky.elf

Loading section .text, size 0x42a0 lma 0xc020

Loading section .ARM.exidx, size 0x18 lma 0x102c0

Loading section .relocate, size 0x38 lma 0x102d8

Start address 0xc0d8, load size 17136

Transfer rate: 16734 KB/sec, 4284 bytes/write.

But I just can't seem to run the newt build apps.
Any help?

On Tue, Aug 6, 2019 at 1:50 PM Christopher Collins  wrote:

> On Mon, Aug 05, 2019 at 02:13:54PM -0700, Christopher Collins wrote:
> > I am not sure how the brew distribution gets updated, but it looks
> > like we have fallen behind here.  I will look into getting this
> > updated today.
>
> FYI- I have updated brew with newt and newtmgr 1.7.
>
> Chris
>


Re: newest BSP on OSX

2019-08-06 Thread Christopher Collins
On Mon, Aug 05, 2019 at 02:13:54PM -0700, Christopher Collins wrote:
> I am not sure how the brew distribution gets updated, but it looks
> like we have fallen behind here.  I will look into getting this
> updated today.

FYI- I have updated brew with newt and newtmgr 1.7.

Chris


Re: newest BSP on OSX

2019-08-06 Thread Fabio Utzig
On Tue, Aug 6, 2019, at 2:45 PM, Dr. Juergen Kienhoefer wrote:

> The app/boot was removed after version 1.6.0
> Is there a replacement for that now? A change of the core version number in
> project.yml did not help.
> The error still is:
> Error: Could not resolve app package: @apache-mynewt-core/apps/boot

For "1.7.0" or "master" it should be: "@mcuboot/boot/mynewt"


Re: newest BSP on OSX

2019-08-06 Thread Dr. Juergen Kienhoefer
Hi Chris,
Still having issues with the versions. Running through the tutorials I
noticed that some files have changed.
I tried this:
https://mynewt.apache.org/latest/tutorials/blinky/arduino_zero.html
The app/boot was removed after version 1.6.0
Is there a replacement for that now? A change of the core version number in
project.yml did not help.
The error still is:
Error: Could not resolve app package: @apache-mynewt-core/apps/boot

On Mon, Aug 5, 2019 at 3:10 PM Dr. Juergen Kienhoefer 
wrote:

> Thank you very much, that did it. On MacOS this gets only the old 1.5.0
> version with no way to upgrade to 1.7.0
>
> $ brew tap JuulLabs-OSS/mynewt
> $ brew install mynewt-newt
>
>
> Installing the newt binary from your link got the latest 1.7.0 version and
> I was able to upgrade and build an example for the Dialog chip.
> Cheers
>
>
> On Mon, Aug 5, 2019 at 2:12 PM Christopher Collins 
> wrote:
>
>> Hi Juergen,
>>
>> Run the following:
>>
>> newt upgrade && newt sync
>>
>> (instead of `newt install`).  This will download updates for those
>> Mynewt repos.
>>
>> You might also need to upgrade your version of the newt tool.  I am not
>> sure how the brew distribution gets updated, but it looks like we have
>> fallen behind here.  I will look into getting this updated today.  In
>> the meantime, you can download the 1.7.0 macOS binary here:
>> https://www.apache.org/dyn/closer.lua/mynewt/apache-mynewt-1.7.0/
>>
>> (click the top link, then `apache-mynewt-newt-bin-osx-1.7.0.tgz`).
>>
>> Chris
>>
>> On Mon, Aug 05, 2019 at 12:53:08PM -0700, Dr. Juergen Kienhoefer wrote:
>> > Hi, I was wondering how I can get the latest BSP on a MacOS
>> installation.
>> > Installing newt with brew gets version 1.5.0. The bsp is in 1.7.0
>> >
>> > newt install
>> >
>> > Skipping "apache-mynewt-core": already installed (1.5.0)
>> >
>> > Skipping "mcuboot": already installed (0.0.0)
>> >
>> > Skipping "apache-mynewt-nimble": already installed (1.0.0)
>> >
>> > Skipping "mynewt_arduino_zero": already installed (0.0.0)
>> >
>> >
>> > then
>> >
>> >
>> > newt target set mytarget
>> > bsp=@apache-mynewt-core/hw/bsp/dialog_da1469x-dk-pro
>> >
>> > newt build mytarget
>> >
>> >
>> > gets me that error:
>> >
>> > Error: Could not resolve BSP package:
>> > @apache-mynewt-core/hw/bsp/dialog_da1469x-dk-pro
>> >
>> >
>> > my project file:
>> >
>> > repository.apache-mynewt-core:
>> >
>> > type: github
>> >
>> > vers: 1-latest
>> >
>> > user: apache
>> >
>> > repo: mynewt-core
>> >
>> >
>> > Still does not give me that BSP.
>> >
>> >
>> > Any suggestions would be appreciated.
>>
>


Re: newest BSP on OSX

2019-08-05 Thread Dr. Juergen Kienhoefer
Thank you very much, that did it. On MacOS this gets only the old 1.5.0
version with no way to upgrade to 1.7.0

$ brew tap JuulLabs-OSS/mynewt
$ brew install mynewt-newt


Installing the newt binary from your link got the latest 1.7.0 version and
I was able to upgrade and build an example for the Dialog chip.
Cheers


On Mon, Aug 5, 2019 at 2:12 PM Christopher Collins  wrote:

> Hi Juergen,
>
> Run the following:
>
> newt upgrade && newt sync
>
> (instead of `newt install`).  This will download updates for those
> Mynewt repos.
>
> You might also need to upgrade your version of the newt tool.  I am not
> sure how the brew distribution gets updated, but it looks like we have
> fallen behind here.  I will look into getting this updated today.  In
> the meantime, you can download the 1.7.0 macOS binary here:
> https://www.apache.org/dyn/closer.lua/mynewt/apache-mynewt-1.7.0/
>
> (click the top link, then `apache-mynewt-newt-bin-osx-1.7.0.tgz`).
>
> Chris
>
> On Mon, Aug 05, 2019 at 12:53:08PM -0700, Dr. Juergen Kienhoefer wrote:
> > Hi, I was wondering how I can get the latest BSP on a MacOS installation.
> > Installing newt with brew gets version 1.5.0. The bsp is in 1.7.0
> >
> > newt install
> >
> > Skipping "apache-mynewt-core": already installed (1.5.0)
> >
> > Skipping "mcuboot": already installed (0.0.0)
> >
> > Skipping "apache-mynewt-nimble": already installed (1.0.0)
> >
> > Skipping "mynewt_arduino_zero": already installed (0.0.0)
> >
> >
> > then
> >
> >
> > newt target set mytarget
> > bsp=@apache-mynewt-core/hw/bsp/dialog_da1469x-dk-pro
> >
> > newt build mytarget
> >
> >
> > gets me that error:
> >
> > Error: Could not resolve BSP package:
> > @apache-mynewt-core/hw/bsp/dialog_da1469x-dk-pro
> >
> >
> > my project file:
> >
> > repository.apache-mynewt-core:
> >
> > type: github
> >
> > vers: 1-latest
> >
> > user: apache
> >
> > repo: mynewt-core
> >
> >
> > Still does not give me that BSP.
> >
> >
> > Any suggestions would be appreciated.
>


Re: newest BSP on OSX

2019-08-05 Thread Christopher Collins
Hi Juergen,

Run the following:

newt upgrade && newt sync

(instead of `newt install`).  This will download updates for those
Mynewt repos.

You might also need to upgrade your version of the newt tool.  I am not
sure how the brew distribution gets updated, but it looks like we have
fallen behind here.  I will look into getting this updated today.  In
the meantime, you can download the 1.7.0 macOS binary here:
https://www.apache.org/dyn/closer.lua/mynewt/apache-mynewt-1.7.0/

(click the top link, then `apache-mynewt-newt-bin-osx-1.7.0.tgz`).

Chris

On Mon, Aug 05, 2019 at 12:53:08PM -0700, Dr. Juergen Kienhoefer wrote:
> Hi, I was wondering how I can get the latest BSP on a MacOS installation.
> Installing newt with brew gets version 1.5.0. The bsp is in 1.7.0
> 
> newt install
> 
> Skipping "apache-mynewt-core": already installed (1.5.0)
> 
> Skipping "mcuboot": already installed (0.0.0)
> 
> Skipping "apache-mynewt-nimble": already installed (1.0.0)
> 
> Skipping "mynewt_arduino_zero": already installed (0.0.0)
> 
> 
> then
> 
> 
> newt target set mytarget
> bsp=@apache-mynewt-core/hw/bsp/dialog_da1469x-dk-pro
> 
> newt build mytarget
> 
> 
> gets me that error:
> 
> Error: Could not resolve BSP package:
> @apache-mynewt-core/hw/bsp/dialog_da1469x-dk-pro
> 
> 
> my project file:
> 
> repository.apache-mynewt-core:
> 
> type: github
> 
> vers: 1-latest
> 
> user: apache
> 
> repo: mynewt-core
> 
> 
> Still does not give me that BSP.
> 
> 
> Any suggestions would be appreciated.


newest BSP on OSX

2019-08-05 Thread Dr. Juergen Kienhoefer
Hi, I was wondering how I can get the latest BSP on a MacOS installation.
Installing newt with brew gets version 1.5.0. The bsp is in 1.7.0

newt install

Skipping "apache-mynewt-core": already installed (1.5.0)

Skipping "mcuboot": already installed (0.0.0)

Skipping "apache-mynewt-nimble": already installed (1.0.0)

Skipping "mynewt_arduino_zero": already installed (0.0.0)


then


newt target set mytarget
bsp=@apache-mynewt-core/hw/bsp/dialog_da1469x-dk-pro

newt build mytarget


gets me that error:

Error: Could not resolve BSP package:
@apache-mynewt-core/hw/bsp/dialog_da1469x-dk-pro


my project file:

repository.apache-mynewt-core:

type: github

vers: 1-latest

user: apache

repo: mynewt-core


Still does not give me that BSP.


Any suggestions would be appreciated.