I don't know if I'm dealing with a hardware or software problem at this point. I have a custom NRF52810 board with chip antenna and no LF clock, in SES. In SDK 16 I modified the ble_app_hids_keyboard_pca10040e_s112 in the following ways....
Build
memory Segments
FLASH RX 0x0 0x2ffff;RAM RWX 0x20000000 0x5fff
Code Generation
ARM FP ABI Type = Soft
ARM FPU Type = None
Link
Section Placement Macros
FLASH_PH_START=0x0
FLASH_PH_SIZE=0x2ffff
RAM_PH_START=0x20000000
RAM_PH_SIZE=0x5fff
FLASH_START=0x19000
FLASH_SIZE=0x0x2ffff
RAM_START=0x20001a40
RAM_SIZE=0x5fff
Preprocessor
Preprocessor Definitions
APP_TIMER_V2
APP_TIMER_V2_RTC1_ENABLED
BOARD_CUSTOM
FLOAT_ABI_SOFT
INITIALIZE_USER_SECTIONS
NO_VTOR_CONFIG
NRF52810_XXAA
NRF52_PAN_74
NRF_SD_BLE_API_VERSION=7
S112
SOFTDEVICE_PRESENT
Runtime Memory Area
Heap Size
2048
Main Stack Size
2048
Debug
Target Device
nrf25810_xxaa
Loader
Additional Load File[0]
../../../../../../components/softdevice/s112/hex/s112_nrf52_7.0.1_softdevice.hex
-------------------
Created custom_board.h (from pca10040.h)
Replace project files:
ses_startup_nrf52.s -> ses_startup_nrf52810.s
system_nrf52.c-> system_nrf52810.c
Remove
uart source files...
nrf_drv_uart.c
Edit sdk_config.h
disable UART, UARTE, LOG_BACKUP_UART
set LF_SRC==0 in multiple places
NRF_SDH_CLOCK_LF_RC_CTIV 16
NRF_SDH_CLOCK_LF_RC_TEMP_CTIV 2
NRF_LOG_BACKEND_RTT_ENABLED 1
disable BSP (No buttons on my board)
enable RTT logging backend
-----------------------
I will attach the project and sdk_config files. RTT logging only seems to work when selecting "Build and Run" rather than "Build and Debug". SES doesn't output any RTT logging in the built-in terminal. Here is the RTT output I'm getting...
00> <info> app_timer: RTC: initialized.
00>
00> <info> app: HID Keyboard example started.
00>
00> <info> app: m_whitelist_peer_cnt 1, MAX_PEERS_WLIST 8
00>
00> <info> app: Fast advertising.
00>
00> <info> app: Slow advertising.
00>
00> <error> app: Fatal error
00>
The Fast advertising runs for a couple minutes, Slow advertising for several more minutes, and then finally the Fatal error. During this advertising process I am searching for new Bluetooth devices in Windows. I've tried the builtin Bluetooth adapter (4.0) and a USB Bluetooth adapter (4.2) and neither can find the adversiting signal. My laptop is within a half meter of the board. Can you help me diagnose this problem?