Cypress技术论坛
直播中

李丹

7年用户 1371经验值
私信 关注
[问答]

Psoc6 BLE低功耗模式是否可以将Core M0 Plus和M4唤醒到活动模式?

大家好:
对于PSoC6,如果核心M0Plus和M4进入深度休眠模式,祝福ISR可以唤醒核心M0Plus和M4到活动模式吗?

以上来自于百度翻译


     以下为原文
  Hi All:
    For  Psoc6 ,if the Core M0 Plus and the M4  go into the Deep sleep mode, can the BLESS isr can wake up  the Core M0 Plus and the M4 to the active  mode?

回帖(6)

秦婷婷

2018-9-29 16:14:40
你好,
BLE被停止,寄存器被保存在深度休眠模式中,因此根本不应该产生祝福中断。
对于睡眠,这是可能的,当您启用ISR为两个核心。
当做,
阿希姆

以上来自于百度翻译


     以下为原文
  Hi,
 
BLE is stopped and the registers are retained in Deep Sleep Mode, so there should be no BLESS Interrupt generated at all.
For Sleep, this is possible when you enable the isr for both cores.
 
regards,
Achim
举报

张帆

2018-9-29 16:23:22
你好,
对阿希姆的响应的一个修正,祝福中断(触发每个广告/连接间隔)是一个深度睡眠中断,并且能够唤醒来自DeepSleep的内核。
也就是说,将一个中断映射到两个内核不是一个好主意。虽然从理论上讲,它可以映射到两个内核并唤醒它们。在WHO清除中断时,将存在一个竞争条件。如果您使用的是BLE组件/PDL,那么它将祝福中断映射到实现控制器的核心。
如果你需要唤醒另一个核心,那么你可以使用IPC从被祝福中断(控制器核心)唤醒的核心通知另一个核心。还要注意的是,当您为BLE选择“双核架构”时,CM0+(Controller)通过IPC SoeStudio唤醒CM4(主机),每当需要在主机端处理数据时。可以将回调附加到IPC中断,并可以使用该回调来处理所需的数据。
如果你需要帮助的话,请告诉我。
当做,
Meenakshi Sundaram R

以上来自于百度翻译


     以下为原文
  Hello,
 
One correction to Achim's response, the BLESS interrupt (that triggers every Advertisement/Connection interval) is a DeepSleep interrupt and is capable of waking up the cores from DeepSleep.
 
That said, it is not a good idea to map a single interrupt to both the cores. Though theoretically it can be mapped to both the cores and wake-up both of them. There will exist a race condition on who clears the interrupt. If you are using the BLE component/PDL, then it maps the BLESS interrupt to the core that implements the controller.
 
If you need to wake-up the other core, then you can use IPC to notify the other core from the core that is woken up by the BLESS interrupt (controller core). Also note that when you select the "Dual-core architecture" for BLE, then CM0+ (controller) wakes-up CM4 (Host) through the IPC SystemPipe, whenever there is a need to process data on the host side. You can attach a callback to the IPC interrupt and can use that to process the required data.
 
Let me know if you need any help with that.
 
Regards,
Meenakshi Sundaram R
举报

李丹

2018-9-29 16:35:59
引用: 斯图尔特233 发表于 2018-9-29 14:42
你好,
对阿希姆的响应的一个修正,祝福中断(触发每个广告/连接间隔)是一个深度睡眠中断,并且能够唤醒来自DeepSleep的内核。
也就是说,将一个中断映射到两个内核不是一个好主意。虽然从理论上讲,它可以映射到两个内核并唤醒它们。在WHO清除中断时,将存在一个竞争条件。如果您使用的是BLE组件/PDL,那么它将祝福中断映 ...

你好,msur:
如果保佑ISR可以唤醒核心从深度睡眠模式。说,如果连接已建立,之间的两连接事件核心的控制器可以进入深度睡眠模式。下一个连接的事件发生后,一个中断的祝福可以唤醒核心处理B乐活动。因为产品用户电力的电池,需要降低功耗。
你有没有降低电力消耗的好主意?

以上来自于百度翻译


     以下为原文
  Hi,msur:
    If the bless isr can wake up the core from the Deep Sleep  mode .Say that if the a connection has established,between the tow connection event the core of the controller can into the Deep Sleep mode.After the next connection event happen ,a interrupt  of the bless can wake up the core to handle the BLE event .Because the product of customer power by the battery and need to reduce power consumption.

   Do you have any good idea to reduce power consumption?
举报

张帆

2018-9-29 16:52:58
引用: 723662364d 发表于 2018-9-29 14:55
你好,msur:
如果保佑ISR可以唤醒核心从深度睡眠模式。说,如果连接已建立,之间的两连接事件核心的控制器可以进入深度睡眠模式。下一个连接的事件发生后,一个中断的祝福可以唤醒核心处理B乐活动。因为产品用户电力的电池,需要降低功耗。
你有没有降低电力消耗的好主意?

是的,这是完全可能的。你可以参考我们的PSoC 6在这里找到我的例子-CE212736-PSoC 6 MCU与蓝牙低能量(BLE)连接-找到一个关于如何实现它的例子。在例子中,CM4(主机)依赖于来自CM0+(控制器)的IPC中断(系统管道)来唤醒它并处理BLE事件。CM0+依赖于祝福中断(广告或连接)来唤醒DeepSleep。
当做,
Meenakshi Sundaram R

以上来自于百度翻译


     以下为原文
  Yes this is perfectly possible. You can refer to our PSoC 6 Find me example here - CE212736 - PSoC 6 MCU with Bluetooth Low Energy (BLE) Connectivity - Find Me for an example on how to implement it. In the example, CM4 (host) relies on IPC interrupt (System pipe) from CM0+(Controller) to wake it up and Process the BLE Events. And CM0+ relies on the BLESS interrupt (either advertisement or connection) to wake it up from DeepSleep.
 
Regards,
Meenakshi Sundaram R
举报

更多回帖

发帖
×
20
完善资料,
赚取积分