Hi,
I have a custom board that has a dwm3001c, and I want to run the ss_twr_initiator, but when I call dwt_probe, my software enters the hardfault_handler. I have modified the DWM3001CDK-DW3_QM33_SDK-FreeRTOS and added the example ss_twr_initiator in it.
my custom board pin configuration is as follows
// Arduino board mappings
#define ARDUINO_13_PIN NRF_GPIO_PIN_MAP(0, 3) // used as DW3000_CLK_Pin
#define ARDUINO_12_PIN NRF_GPIO_PIN_MAP(0, 29) // used as DW3000_MISO_Pin
#define ARDUINO_11_PIN NRF_GPIO_PIN_MAP(0, 8) // used as DW3000_MOSI_Pin
#define ARDUINO_10_PIN NRF_GPIO_PIN_MAP(1, 6) // used as DW3000_CS_Pin
#define ARDUINO_9_PIN NRF_GPIO_PIN_MAP(1, 19) // used as DW3000_WKUP_Pin
#define ARDUINO_8_PIN NRF_GPIO_PIN_MAP(1, 2) // used as DW3000_IRQ_Pin
#define ARDUINO_7_PIN NRF_GPIO_PIN_MAP(0, 25) // used as DW3000_RST_Pin
#define DW3000_RST_Pin ARDUINO_7_PIN
#define DW3000_IRQ_Pin ARDUINO_8_PIN
#define DW3000_WUP_Pin ARDUINO_9_PIN
my section placement macros :
FLASH_PH_START=0x0
FLASH_PH_SIZE=0x80000
RAM_PH_START=0x20000000
RAM_PH_SIZE=0x20000
FLASH_START=0x0
FLASH_SIZE=0xe4000
FCONFIG_START=0x1e000
FCONFIG_SIZE=0x1000
DEFAULT_CONFIG_START=0x1d000
DEFAULT_CONFIG_SIZE=0x400
INIT_START=0x1f000
RAM_START=0x20000000
RAM_SIZE=0x20000
my memory segment:
FLASH RX 0x0 0x100000;RAM1 RWX 0x20000000 0x40000
my preprocessor definitions
UWBMAC_BUF_PLATFORM_H=“uwbmac/uwbmac_buf_malloc.h”
UWBMAC_VERSION=“R11.9.2”
CLI_BUILD
BOARD_CUSTOM
USB_ENABLE
NRF_CRYPTO_BACKEND_MBEDTLS_ENABLED=1
NRF_CRYPTO_ALLOCATOR=NRF_CRYPTO_ALLOCATOR_MALLOC
MBEDTLS_CMAC_C
PROJECT_NAME=“DW3_QM33_SDK”
NRF52833_XXAA
UWBSTACK