This is an automated email from the ASF dual-hosted git repository. jerzy pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
The following commit(s) were added to refs/heads/master by this push: new 2b667ec hw/bsp/dialog: Start flash loader with XTAL32M 2b667ec is described below commit 2b667ecaf3a5226c09431706500204b8937e5e18 Author: Jerzy Kasenberg <jerzy.kasenb...@codecoup.pl> AuthorDate: Wed Jun 10 12:19:26 2020 +0200 hw/bsp/dialog: Start flash loader with XTAL32M If application was running on 96MHz PLL flash loader seems to have problem flashing board. This switches system clock to XTAL32 before flash loader code is executed. --- hw/bsp/dialog_da1469x-dk-pro/dialog_da1469x-dk-pro_download.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/bsp/dialog_da1469x-dk-pro/dialog_da1469x-dk-pro_download.sh b/hw/bsp/dialog_da1469x-dk-pro/dialog_da1469x-dk-pro_download.sh index 11cf770..9755363 100755 --- a/hw/bsp/dialog_da1469x-dk-pro/dialog_da1469x-dk-pro_download.sh +++ b/hw/bsp/dialog_da1469x-dk-pro/dialog_da1469x-dk-pro_download.sh @@ -122,6 +122,8 @@ symbol-file $FLASH_LOADER # valid for Macronix flash found on Dialog development kits) set *(int *)0x3800000C = 0xa8a500eb set *(int *)0x38000010 = 0x00000066 +# Set XTAL as system clock +set *(int *)0x50000014 = 0x00000040 set *(int *)0x500000BC = 4 set \$sp=*(int *)0x20000000