PSoC™ 6 Forum Discussions
I have been using Cy_SysLib_Delay() to wait. In my effort to use more MBedOS calls, I found wait_ms. In trying to use it, I've found some sort of conflict between wait_ms and us_ticker_read. Also, I found in the wait documentation on MBedOS that the wait family of functions prevents deep sleep from occurring. An alternative would be to split up my code and then use LowPowerTimeout that would call another function to continue operation.
What is the correct way to wait? Is there a way to wait that allows the processor to enter deep sleep mode?
EDIT: I'm using MBedOS 5.12
Show LessIn the PSOc Creator thermometer example (CE218138_BLE_Thermometer_RTOS) , they use 2 separately pins that are physically connected externally.
Is this necessary? Why can't they share a THER_OUT pins? I was able to get device configurator in MTB to do it on port 10, but is there any reason it won't work?
Show Less
In the Modus Toolbox 1.1 PDL library, these two functions are described. The documents found in https://www.cypress.com/documentation/component-datasheets/multi-counter-watchdog-mcwdtpdl show Cy_MCWDT_SetInterruptMasked being used but not Cy_MCDWDT_SetInterrupt.
Here are the descriptions from the PDL API:
Cy_MCDWDT_SetInterrupt:
Sets MCWDT interrupt sources in the interrupt request register.
Cy_MCDWDT_SetInterruptMask
Writes MCWDT interrupt mask register.
This register configures which bits from MCWDT interrupt request register will trigger an interrupt event.
- How do the interrupt sources after triggers from the interrupt request register?
I'm working on a PSOC6 project using FreeRTOS and emWin.
I really would like to boost the performance of the overall system, so I tried setting the compiler optimization option to SPEED. But when I do that I get
undefined reference to vTaskSwitchContext port.c line 423
Can anybody tell me why turning on the SPEED option causes this error. And better still, how to fix it?
Thanks,
Ed H.
Show LessHello Community, Hello Cypress Masters,
I am working on a PSoC 6 Project which implements the CYBLE-41604-02 Module ( for faster development )
Programming environment is the PSoC Creator 4.3
The PCB design is the following....:
Pushbutton connected to P0_4 ( wakeup pin ), reaction is confirmed in an ISR test.
2 x 3v3 LDO regulators.. REG1 ( 100mAh lipo, to 3v3 to VBACKUP via diode, ENA tied to itself to be always on )
REG2 ( 2000 mAh lipo, to 3v3 to VDDD System, ENA pin tied to P0_5 PMIC control pin )
My test aproach was to enable the PMIC pin in the System / Operating Conditions and set the VBACKUP to dedicated powersupply.
The test so far resulted in fail.
CM0 is starting CM4, in CM4 i have my LED Blink routine based on the Button ISR example (CE219521) if i go to sleep it disables the PMIC pin and shuts down. If i push the button it doesnt wakeup again and also the REG2 stays disabled. If i disable the PMIC pin and manually set P0_5 to HIGH in initial it runs. so it enters sleep and wakes up again fine. but the REG2 keeps running.
I want to shut down the VDDD Domain for sleep. only keeping vbackup running for later RTC usage and wakeup.
Does someone have a working example for making the corect power staging ?
I was looking through the Cy_sysPm PDL but i wasnt successfull.
I dont find anything in the example pages 😞
Many greetings
Thomas
Show LessHello,
I am designing the DFU host on one Cypress MCU to bootload the other PSoC 6 MCU, as far as I know, there is no example code nor any explanation of the .cyacd2 file format.
Here is what I found:
BLE OTA/DFU host example? This is not applicable as the reference is designed to work with .cyacd file, not .cyacd2 file.
Device Firmware Update Host Tool Source Code? The source code is simply not available based on the feedback.
My question is that could we at least get the .cyacd2 file parser file, so that we can implement the host code on the MCU?
Honestly, releasing the DFU host utility source will greatly help this type of project. Otherwise, it is wasting everybody's time to reverse engineer the DFU SDK code. Cypress will sell the chip anyway regardless of the DFU, the DFU does not make a profit. With the current situation, it could only hurt the business due to the bad customer experience.
I hope Cypress engineer would re-consider the strategy.
Thanks,
Oxanagig
Show LessI'm using a PSOC62 cy8c6247bzi_d54. I'm using Modus Toolbox v1.1 and cannot currently upgrade.
I'm trying to sort out an issue where a GPIO interrupt handler is taking a long time to get called on the CM0+ after the interrupt fires or sometimes even appears to be ignored. I don't think it's an issue with a masked interrupt or interrupts beings disabled, though that merits more checking.
I would like to change the interrupt priority for the GPIO from the default. Right now, I'm using gpio_irq_init to set up the interrupt which uses a hard-coded interrupt priority of 3 for the CM0+. gpio_irq_init calls gpio_irq_setup_channel which in turn makes the following actions:
// Sets the default priority
Cy_SysInt_Init (calls NVIC_SetPriority)
gpio_irq_enable
NVIC_EnableIRQ
Rather than duplicate and modify the code and force all GPIOs to use the same interrupt priority, could I safely call NVIC_SetPriority after returning from gpio_irq_init? Or do I need to call NVI_DisableIRQ, then NVIC_SetPriority, and then NVIC_EnableIRQ? Is there anything else I should consider that I haven't already mentioned?
Show LessHello
We are developing with CYBLE-416045-02 with built-in PSoc6.
The product is battery-powered and repeats Deep Sleep Mode and Active Mode to reduce current consumption as much as possible during operation.
I want to display the voltage status with LED during operation. Is it possible to use PWM during Deep Sleep Mode?
As far as I can see from the table below, I feel that it cannot be used while in Deep Sleep mode.…
If not possible, is there another idea to reduce current consumption?
Best Regards
Hayato
Show LessPSoC 63 has a smaller BGA package (116-BGA) available than PSoC 61 or 62.
Can the PSoC 63 be designed in with the BLE radio disabled such that compliance testing isn't required?
Show LessI am trying to define an IoT application on a real combustion engine, allocated on an area showing a temperature lower than 125 ºC (Peltier cells), and using PSOC 6. It should also be ideal to get the electric energy from the engine temperature, and testing with the "Solar powered IoT device kit". But I was not able to see any application note or example to start documenting the Project. Any recommended idea? how to use it with the mentioned kit?
Many thanks in advance
JF
Show Less