Hello:

The nrf52pdk cannot be used with the new nrf52dk which you are using (PCA 
10040). It is not hard to fix; you just need to remove the CODE_RAM section 
from the linker script and adjust the total amount of RAM. We just got our 
nrf52dk boards and will have a bsp for it shortly (next week) but the changes 
are simple. I can send you an updated linker script if you like or you can make 
the changes locally. There are only three lines you should have to change:

1) Remove CODE_RAM from MEMORY sections.
2) Change RAM from 0x8000 to 0x10000 (since this has 64K).
3) Change CODE_RAM to RAM for bssnz section.

I am on the IRC so if you have issues let me know.

Will

> On Apr 22, 2016, at 9:11 AM, Wayne Keenan <[email protected]> wrote:
> 
> Hi,
> 
> I can't get the bletiny or the bleprph or the nimble walkthru to work,
> although the blinky sample does.
> 
> macOS: 10.11.4
> board: nrf52  on a PCA10040
> 
> 
> Please note that in order to get the bleprph app to compile in my new
> project I had to perform a copy and monkey patch the app name as the
> pkg.yml was missing from the bleprph folder, e.g.:
> 
> cp repos/apache-mynewt-core/apps/bletiny/pkg.yml
> repos/apache-mynewt-core/apps/bleprph/pkg.yml
> nano repos/apache-mynewt-core/apps/bleprph/pkg.yml
> [change app name]
> 
> 
> $ newt version
> Apache Newt (incubating) version: 0.8.0-b2
> 
> 
> 
> $ JLinkExe -v
> SEGGER J-Link Commander V5.12b (Compiled Apr 15 2016 14:56:37)
> DLL version V5.12b, compiled Apr 15 2016 14:56:31
> 
> 
> $ newt target show
> targets/my_blinky_sim
>    app=apps/blinky
>    bsp=@apache-mynewt-core/hw/bsp/native
>    build_profile=debug
> targets/myble
>    app=@apache-mynewt-core/apps/bleprph
>    bsp=@apache-mynewt-core/hw/bsp/nrf52pdk
>    build_profile=optimized
> 
> 
> 
> 
> $ newt load myble -v
> Loading image with:
> /Users/wayne/local.projects/newt/projects/nrf52/bleperip/repos/apache-mynewt-core/hw/bsp/nrf52pdk/nrf52pdk_download.sh
> /Users/wayne/local.projects/newt/projects/nrf52/bleperip/repos/apache-mynewt-core/hw/bsp/nrf52pdk/
> /Users/wayne/local.projects/newt/projects/nrf52/bleperip/bin/myble/apps/bleprph/bleprph
> BLE_DEVICE LIBC SHELL
> Successfully loaded image.
> shinytoo:bleperip wayne$ newt debug myble
> Debugging
> /Users/wayne/local.projects/newt/projects/nrf52/bleperip/bin/myble/apps/bleprph/bleprph.elf
> SEGGER J-Link GDB Server V5.12b Command Line Version
> 
> GNU gdb (GNU Tools for ARM Embedded Processors) 7.8.0.20150604-cvs
> Copyright (C) 2014 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
> /Users/wayne/local.projects/newt/projects/nrf52/bleperip/bin/myble/apps/bleprph/bleprph.elf...JLinkARM.dll
> V5.12b (DLL compiled Apr 15 2016 14:56:31)
> 
> -----GDB Server start settings-----
> GDBInit file:                  none
> GDB Server Listening port:     3333
> SWO raw output listening port: 2332
> Terminal I/O port:             2333
> Accept remote connection:      yes
> Generate logfile:              off
> Verify download:               off
> Init regs on start:            off
> Silent mode:                   off
> Single run mode:               on
> Target connection timeout:     0 ms
> ------J-Link related settings------
> J-Link Host interface:         USB
> J-Link script:                 none
> J-Link settings file:          none
> ------Target related settings------
> Target device:                 nRF52
> Target interface:              SWD
> Target interface speed:        4000kHz
> Target endian:                 little
> 
> Connecting to J-Link...
> done.
> J-Link is connected.
> Firmware: J-Link OB-SAM3U128-V2-NordicSemi compiled Mar 15 2016 18:03:17
> Hardware: V1.00
> S/N: 682739375
> Checking target voltage...
> Target voltage: 3.30 V
> Listening on TCP/IP port 3333
> Connecting to target...Connected to target
> Waiting for GDB connection...Connected to 127.0.0.1
> Reading all registers
> Read 4 bytes @ address 0x20000384 (Data = 0x28006AF0)
> Read 2 bytes @ address 0x20000358 (Data = 0x0020)
> Read 2 bytes @ address 0x2000035A (Data = 0xF7FF)
> Read 2 bytes @ address 0x2000035C (Data = 0xFFA7)
> 0x20000384 in bsp_flash_areas ()
> (gdb) cont
> Continuing.
> Starting target CPU...
> 
> 
> [No BLE advertising, the jsegger status LED blinks really fast]
> 
> 
> ^CDebugger requested to halt target...
> ...Target halted (PC = 0x2000046C)
> Reading all registers
> Read 4 bytes @ address 0x2000046C (Data = 0x4770D1F9)
> Read 2 bytes @ address 0x20000400 (Data = 0x4E20)
> Read 4 bytes @ address 0x20000484 (Data = 0x4001E504)
> Read 2 bytes @ address 0x20000402 (Data = 0x2002)
> Read 2 bytes @ address 0x20000404 (Data = 0x6030)
> 
> Program received signal SIGTRAP, Trace/breakpoint trap.
> 0x2000046c in impure_data ()
> 
> 
> 
> 
> All the best
> Wayne

Reply via email to