@mkiiskila: Thanks for providing the DA1469x board support.
I'm putting together a tutorial how to get Newt working on these boards
with Nimble.
So far I gathered these bits of information. Apparently, it's not quite
enough.
Please help me getting it complete:

PREREQ

(not longer required) install NEWT manually (version 1.7 required), copy
binary to /usr/local/bin

(not longer required) http://apache.cs.utah.edu/mynewt/apache-mynewt-1.7.0/

(officially) brew tap JuulLabs-OSS/mynewt; brew update; brew install
mynewt-newt

install ARM toolchain:

https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-rm/downloads

install OpenOCD

https://github.com/gnu-mcu-eclipse/openocd/releases


export PATH


create project

newt new NewtBLE

cd NewtBLE/


TRANSPORT

Dialog DA14695 dev kit

Nimble transport

https://github.com/apache/mynewt-nimble/tree/master/nimble/transport/da1469x


In order to use integrated BLE Controller (CMAC) on DA1469x you will need

a binary firmware to be loaded to CMAC. Library containing such firmware can

be found in SDK package available at:

https://www.dialog-semiconductor.com/products/da1469x-product-family


Copy sdk/interfaces/ble/binaries/DA1469x-Release/libble_stack_da1469x.a file

to src/ subdirectory and rebuild you application.


cp libble_stack_da1469x.a
repos/apache-mynewt-nimble/nimble/transport/da1469x/src

FLASH LOADER

newt target create da1469x_flash_loader

newt target set da1469x_flash_loader
app=@apache-mynewt-core/apps/flash_loader

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

newt target set da1469x_flash_loader build_profile=optimized

newt target set da1469x_flash_loader
syscfg=FLASH_LOADER_DL_SZ=0x10000:RAM_RESIDENT=1


APP

newt target create da1469x_blinky

newt target set da1469x_blinky app=apps/blinky

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

newt target set da1469x_blinky build_profile=debug


LOAD FLASHLOADER

>>>  must run "newt run da1469x_blinky" first to create flash_loader.img,
then load it

newt load da1469x_flash_loader


RUN

newt run da1469x_blinky 0

App image successfully generated:
/Users/juergen/wirelesscables/ESP/atag/firmware/NewtBlinky/bin/targets/da1469x_blinky/app/apps/blinky/blinky.img

Loading app image into slot 1

[/Users/juergen/wirelesscables/ESP/atag/firmware/NewtBlinky/repos/apache-mynewt-core/hw/bsp/dialog_da1469x-dk-pro/dialog_da1469x-dk-pro_debug.sh
/Users/juergen/wirelesscables/ESP/atag/firmware/NewtBlinky/repos/apache-mynewt-core/hw/bsp/dialog_da1469x-dk-pro
bin/targets/da1469x_blinky/app/apps/blinky/blinky]


Debugging bin/targets/da1469x_blinky/app/apps/blinky/blinky.elf

*GNU gdb (GNU Tools for Arm Embedded Processors 8-2019-q3-update)
8.3.0.20190703-git*

Copyright (C) 2019 Free Software Foundation, Inc.

License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html
>

This is free software: you are free to change and redistribute it.

There is NO WARRANTY, to the extent permitted by law.

Type "show copying" and "show warranty" for details.

This GDB was configured as "--host=x86_64-apple-darwin10
--target=arm-none-eabi".

Type "show configuration" for configuration details.

For bug reporting instructions, please see:

<http://www.gnu.org/software/gdb/bugs/>.

Find the GDB manual and other documentation resources online at:

    <http://www.gnu.org/software/gdb/documentation/>.


For help, type "help".

Type "apropos word" to search for commands related to "word"...

Reading symbols from bin/targets/da1469x_blinky/app/apps/blinky/blinky.elf
...

0x20000d04 in g_os_main_stack ()

Resetting target

0x20000262 in da1469x_m33_sleep_state ()

(gdb) c

Continuing.


Program received signal SIGTRAP, Trace/breakpoint trap.

0xdeadbeee in ?? ()

(gdb)

Reply via email to