DA1468x

advertising data stops updating

Thu, 2017-02-23 16:41--Anonymous (not verified)

I have set a manufacturer specific data string in the advertising data. I use a OS_timer to call a function repeatedly to update the advertising data. using the following code:

static void mnf_tim_cb(OS_TIMER timer)
{

// hw_gpio_toggle(HW_GPIO_PORT_1, HW_GPIO_PIN_5);//devkit use 0_7 for device

mnf_flag_1++;
ble_gap_adv_stop();

if(mnf_flag_1 == 0xFF)
mnf_flag_1 = 0x04;

adv_data[10] = mnf_flag_1;
ble_gap_adv_data_set(sizeof(adv_data), adv_data, name_len + 2, scan_rsp);

UART2 pin on DA14681 board (basic)

Thu, 2017-02-23 15:33--jamesleo-konka

Hi Dialog,
I want to use UART2 to communicate with other device.
But I don't know which port/pin is ready for UART2.
//------------------------------------------------
/* UART 2 */
#if CFG_DEMO_AD_UART
#if dg_configBLACK_ORCA_MB_REV == BLACK_ORCA_MB_REV_D
# define CFG_GPIO_UART2_TX_PORT (HW_GPIO_PORT_4)
# define CFG_GPIO_UART2_TX_PIN (HW_GPIO_PIN_2)
# define CFG_GPIO_UART2_RX_PORT (HW_GPIO_PORT_4)
# define CFG_GPIO_UART2_RX_PIN (HW_GPIO_PIN_1)
#else

Continue ADC sampling in the background, for BLE application

Wed, 2017-02-22 05:55--jamesleo-konka

Hi Dialog,
Is it possible to implement continue ADC sampling in the background?
For example, in DMA mode at BLE mode.
I'm not sure whether the OS_TIMER is precision to do the us/ms level sampling.
For a long period sampling, we can use the software timer - if no precision is required.
Does the HW ADC be blocked when system get into sleep for BLE application?

Is there a sample code for this ADC mode?

Thanks

GPIO pad latch enable

Tue, 2017-02-21 12:17--edwardwhite

Hello

What is the proper way to latch a GPIO pin (dev kit LED D2) so that it's state is retained during sleep?
I've tried usinghw_cpm_activate_pad_latches(), however it still doesn't work. The current code flow is as follows:

hw_cpm_deactivate_pad_latches(); // allow pins to be changed
hw_gpio_set_active(LED_PORT, LED_PIN); // turn on LED
...
fflush(stdout); // empty buffer before latching pins and sleeping
hw_cpm_activate_pad_latches(); // latch pins before sleeping
// sleep here

Thanks!

Calculating Heap and retained RAM

Tue, 2017-02-21 09:38--ArminL

Hi Dialog,

1.
my custom application based on multi-link demo.
In SDK 1.0.6 heap size is
#define configTOTAL_HEAP_SIZE 13312 /* This is the FreeRTOS Total Heap Size */
在SDK 1.0.8.1堆大小
#define configTOTAL_HEAP_SIZE 9216 /* This is the FreeRTOS Total Heap Size */

Why are there different sizes in these two SDKs for the same project? How can I calculate heap size for my custom application?

2.
How much retained RAM is required by the SDK?

Thanks
Armin

Error mark, but can pass building

Tue, 2017-02-21 08:31--jamesleo-konka

Hi Dialog,
Smartsnippets make some 'error' mark on file, but the project can pass the building and run program as expected.
通常这些错误我s about the definning, like 'i2c_device' - even if you include the 'hw_i2c.h' 'ad_i2c.h' ....

How to identify the 'real' error or a 'pseudo' one? or clear the 'error' mark.

Thanks

Custom advertising data

Tue, 2017-02-21 08:22--Anonymous (not verified)

Hi Dialog,

I'm trying to add custom manufacturer data to advertising data using this:

static const uint8_t adv_data[] = {
0x12, GAP_DATA_TYPE_LOCAL_NAME,
'D', 'i', 'a', 'l', 'o', 'g', ' ', 'P', 'e', 'r', 'i', 'p', 'h', 'e', 'r', 'a', 'l',
GAP_DATA_TYPE_MANUFACTURER_SPEC,'A'
};

the device stops advertising (or I can't see the advertise data). What is the correct way to add manufacturer specific data to advertise string?

DA14681 RAM溢出错误提示

Mon, 2017-02-20 03:28--index219

Hi Dialog,
我在使用DA14681开发过程中,初始化一个2k大小的buf,定义如下:
PRIVILEGED_DATA buf[2*1024];
编译后提示错误:...: ROM variables region (starting at 0x07FDC000) overflowed by RetRAM0

如果去掉PRIVILEGED_DATA,编译通过,无错误。

手册中写到:
64 kB One-Time-Programmable (OTP) memory
128 kB Data SRAM with retention capabilities
16 kB Cache SRAM with retention capabilities
128 kB ROM (including boot ROM and BLE stack)
请问一下:
1.PRIVILEGED_DATA修饰符的区别?
2.DA14681官方是否有资料说明:系统的内存资源是如何分布?变量该如何添加对应修饰符,使其定义到指定的SRAM区域?

system_init 某些指令被阻塞?

Mon, 2017-02-20 01:41--jamesleo-konka

Hi Dialog,
在 hrp_sensor 工程中, 初始化在 system_init 中执行。
//----------------------------------------
static void system_init( void *pvParameters )
{
OS_TASK handle;
unsigned char d;
i2c_device dev;

#if defined CONFIG_RETARGET //<--- CONFIG_RETARGET 已经定义,为了使用 printf
extern void retarget_init(void);
#endif
....
....

printf("BLE hrp demo" NEWLINE);

dev = ad_i2c_open(MAX30100); //----初始化 I2C 设备----------------------

Pages

订阅RSS - DA1468x