⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.xmece.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
2 posts / 0 new
Last post
singhui
Offline
Last seen:3 years 2 weeks ago
加入:2015-12-07 07:46
DA14585 range extender

Hi Dialog expert

I would like to implement range extender on DA14585 using SDK 604
I look at reference design Range Ext example and try to move the code to SDK604 but fail

I wounder that DIAGPORT_SEL and DIAGPORT_REVERSE seems to be removed at datasheet.h on SDK604.

I modify the app_range_extender_enable on app_range_ext.c as following

void app_range_extender_enable(void)
{

//SetBits32(BLE_CNTL2_REG, DIAGPORT_SEL, 0); // BLE diag port
//SetBits32(BLE_CNTL2_REG, DIAGPORT_REVERSE, 0); // diag port not reversed

SetBits32(BLE_CNTL2_REG, 0x18, 0); // BLE diag port
SetBits32(BLE_CNTL2_REG, 0x20, 1); // diag port not reversed

// Select signals
SetBits32(BLE_DIAGCNTL_REG, DIAG1, 0x28);
SetBits32(BLE_DIAGCNTL_REG, DIAG2, 0x08);

// Enable Diagnostic at BLE core
//SetBits32(BLE_DIAGCNTL_REG, DIAG0_EN, 1); // enable Diag ports.
SetBits32(BLE_DIAGCNTL_REG, DIAG1_EN, 1);
SetBits32(BLE_DIAGCNTL_REG, DIAG2_EN, 1);

// Enable Diagnostic at GPIO multiplexing

SetBits16(P04_MODE_REG, PID , 18);
SetBits16(P04_MODE_REG, PUPD, 3); //TXEN = P0_4

SetBits16 (P02_MODE_REG、PID、18);
SetBits16(P02_MODE_REG, PUPD, 3); //RXEN = P0_2

// SetBits16(P07_MODE_REG, PID , 18);
// SetBits16(P07_MODE_REG, PUPD, 3); //wlan coexistence = P0_7

}

I would like to use P0_4 as TX enable and P0_2 as RX enable.
Do anyone give me some tips to make it works?

问候

SH

Device:
MT_dialog
Offline
Last seen:2 months 1 week ago
Staff
加入:2015-06-08 11:34
Hi singhui,

Hi singhui,

The register file regarding how to enable the diagnostics is a bit different from the 580 and the 585, there is no DIAGPORT_SEL or DIAGPORT_REVERSE bitfields in the BLE_CNTL2_REG and that is why those are ommited by the datasheet.h file, therefore the driver for the range extender is not compatible with the 585. There is no official release of a range extender reference design on the 585 but i trust that soon is going to be released, .

Thanks MT_dialog