Hi, On Wed, Aug 7, 2019 at 1:17 AM Dr. Juergen Kienhoefer <juer...@aircable.net> wrote:
> @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: > <snip> > 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 > This is not how it works. You need 3 targets: flash_loader, bootloader and app. What you are missing is a bootloader: newt target create da1469_boot newt target set da1469x_boot app=@mcuboot/boot/mynewt newt target set da1469x_boot bsp=@apache-mynewt-core/hw/bsp/dialog_da1469x-dk-pro newt target set da1469x_boot build_profile=optimized You need to load bootloader and app to flash and this is where flash_loader is used, i.e. you do not load flash_loader, but download script requires it to be able to load app and bootloader to flash. The easiest way to do this is: newt load da1469x_boot newt create-image da1469x_blinky 1.0.0 newt load da1469x_blinky "newt run da1469x_blinky 1.0.0" will create image for app and load it and then start debugging session (as with newt debug) so can be used as a shortcut for app, but bootloader needs to be loaded separately. Also to load bootloader you will need Python 3.7 (3.6 or older won't work) installed because part of bootloader download script which creates product header is written in Python. Without proper product header internal bootloader won't boot our bootloader (mcuboot) and app won't start. Once you load both bootloader and app, it should boot properly. Best, Andrzej