Hi, How can i use jtag pin (P1.4) as gpio for output? Do i have to burn otp for jtag options or can i handle it over SDK?
BR
Hi,
I have different BLE sensors which broadcast their measured data within the payload of their BLE advertising.
Can I read out this advertising payload with CodeLess AT-Commands on the DA14531MOD module?
And can I configure the module to scan permanently for BLE advertisements of other devices?
Thanks in advance.
Hello,
I am using DA14583 usb kit.
I am able to control D9(White LED) and D10(Red LED) using hw_gpio_set_pin_function(). But RGB led pins donot having gpio port and pin configuration. How should i control RGB led.
thanks
jackyjoy
Hi,
I am using the DA14531MOD module on an IoT-device and want to connect to BT sensors with the module as master/central and "simultaneously" connect a smartphone to the module which can control the IoT device with the module as slave/peripheral. When the IoT device connects to the sensors to achieve their data, the user should not get a disconnect notification in the app on its smartphone.
Is it possible to set up this configuration with CodeLess? And how can I do this?
How many connections at one time are possible with the DA14531MOD in central role?
Thanks in advance.
Best regards.
亲爱的总理对话,
我们刚刚收到了首批10个DA14531 SmartBond微型模块。
我们已经有了DA14531开发工具包Pro以及:DA14531模块开发子板。在这个子板上已经焊接了一个SmartBond微型模块。SmartBond Flash程序员可以很好地将代码下载到模块的Flash中。
现在的问题是:如何对单个微小模块进行编程?如何将单独的模块连接到开发工具包?
对原始模块进行脱焊并总是焊接一个新模块是相当危险的。
哪个文档描述了编程独立模块?
提前谢谢。
Hi. Thought we had this working earlier but failing to patch the latest SDK with the hotfix on 2 different Windows 10 systems.
1) From where can we download the patch.exe utility to perform this patching? Believe this tool is not native to Windows 10.
2) On one Windows 10 system, the PC locks or is waiting on some additional information to proceed. Following the install.txt is not working.
3) On another Windows 10 system, the PC reports that the patch.exe cannot be found.
>patch
'patch' is not recognized as an internal or external command,
operable program or batch file.
Update:
Just caught my typo of missing out on the "<" pipe character. This will fix (I think) one of the PC but patch.exe is missing on another Windows 10 box. Is it a 3rd party tool?
patch -p1 < <PATH_TO_HOTFIX_EXTRACT>/sdk.patch
I think the patch.exe tool is from here:
GnuWin download | SourceForge.net
but why would this detail be left out of the documentation? Or we missed it?
Hello,
I'm trying to generate external interrupt for LIS2DE12 for motion detection but while OS_TASK_NOTIFY_WAIT() it's doing Starting CPU target... and i'm not able to get notified value for OS_TASK_NOTIFY_WAIT .Can you help me for it??
here is my configuration for interrupt generation..,
void wakeup_interrupt_cb(void)
{
hw_wkup_reset_interrupt();
OS_TASK_NOTIFY_FROM_ISR(acc_main_h, 0x1, OS_NOTIFY_SET_BITS);
}
static void LIS2_WakeupEventsTask( void *pvParameters )
{
int8_t wdog_id;
OS_BASE_TYPE ret;
uint32_t ulNotifiedValue;
lis2de12_int1_src_t src;
/* Accelerometer Interrupt Pins */
hw_gpio_configure_pin(HW_GPIO_PORT_0, HW_GPIO_PIN_12, HW_GPIO_MODE_INPUT_PULLUP, HW_GPIO_FUNC_GPIO, true); // ACCELEROMETER_INT1
hw_gpio_pad_latch_enable(HW_GPIO_PORT_0, HW_GPIO_PIN_12);
hw_gpio_pad_latch_disable(HW_GPIO_PORT_0,HW_GPIO_PIN_12);
hw_wkup_init(NULL);
hw_wkup_configure_pin(HW_GPIO_PORT_0,HW_GPIO_PIN_12, true, HW_WKUP_PIN_STATE_LOW);
hw_wkup_register_gpio_p0_interrupt(wakeup_interrupt_cb, 1);
/* Enable interrupts of WKUP controller */
hw_wkup_enable_irq();
/* Accelerometer-I2C Configuration */
li2de12_hdl = ad_i2c_open(LI2DE12);
sensor_init(li2de12_hdl);
enableWakeUpDetect(li2de12_hdl);
/* Register ble_multi_link task to be monitored by watchdog */
wdog_id = sys_watchdog_register(false);
for (;;) {
printf (" LIS2_WakeupEventsTask Task \r\n");
/* Notify watchdog on each loop */
sys_watchdog_notify(wdog_id);
/* Suspend watchdog while blocking on OS_TASK_NOTIFY_WAIT() */
sys_watchdog_suspend(wdog_id);
/* Wait on any of the notification bits, then clear them all */
ret = OS_TASK_NOTIFY_WAIT(0, OS_TASK_NOTIFY_ALL_BITS, &ulNotifiedValue, OS_TASK_NOTIFY_FOREVER);
/* This must block forever, until a task notification is received. So, the
return value must be OS_TASK_NOTIFY_SUCCESS */
OS_ASSERT(ret == OS_TASK_NOTIFY_SUCCESS);
/* Read INT pin 1 in polling mode
* or read src status register
*/
if(ulNotifiedValue & 0x1)
{
lis2de12_int1_gen_source_get(li2de12_hdl, &src);
if (src.xh || src.yh || src.zh)
{
hw_gpio_set_inactive(HW_GPIO_PORT_0, HW_GPIO_PIN_24);
hw_gpio_pad_latch_enable(HW_GPIO_PORT_0, HW_GPIO_PIN_24);
hw_gpio_pad_latch_disable(HW_GPIO_PORT_0,HW_GPIO_PIN_24);
enableWakeUpDetect(li2de12_hdl);
}
else
{
hw_gpio_set_active(HW_GPIO_PORT_0, HW_GPIO_PIN_24);
hw_gpio_pad_latch_enable(HW_GPIO_PORT_0, HW_GPIO_PIN_24);
hw_gpio_pad_latch_disable(HW_GPIO_PORT_0,HW_GPIO_PIN_24);
enableInactivityDetect(li2de12_hdl);
}
}
/* Main Application */
sys_watchdog_notify_and_resume(wdog_id);
}
}
Thanks & Regards,
Zinal.