PSoC™ 6 Forum Discussions
Hi
1. When is "cy_stc_ble_gapc_adv_report_param_t" issued and when is "cy_stc_ble_gapp_scan_rsp_data_t" ?
2. I have 2, PSOc6's , the first is a peripheral and the second is a central. I can read the peripheral name correctly, but the UUID is corrupt:
thanks
Show Less
Hi
In PSoC63, What is the benefit of splitting the BLE stack among CM0 and CM4?
What is the best practice (or architecture) when designing a system with multiple sensors and BLE link?
thanks
Show LessI am using PSOC 6 - CYBLE-416045 setup using VS code , modustoolsbox, using RTC to set alarms There are two options available PDL or HAL using PDL can enable two alarms and able to get alarms callback handlers called, not found the HAL api to set two separate alarms Help appreciated 🙂
Show LessI am trying to build a library as guided by chatgpt
Creating and using an external library (.a) in PSoC Creator involves a few steps. Here's a step-by-step example using PSoC Creator:
Step 1: Create a New Project
- Launch PSoC Creator.
- Go to
File > New > Project...
and select your PSoC device. - Click "OK."
Step 2: Create a Library Project
- Go to
File > New > Project...
again. - Select "Library" as the project type.
- Give your library project a name and specify its location. Click "OK."
- In your library project, you can create functions, variables, and code that you want to reuse in other projects.
- Build your library project. This will generate the .a file you need.
But when i tried to build the library, I am getting the following error:
build error cyfitter.h no such file or directory
How to avoid this error?
Kindly suggest
Show LessHi Everybody,
I try to find out, how to calibrate the RTC in PSoC6 devices. From the Registers Reference Manual a got that I can set the CALIB_VAL in the BACKUP_CAL_CTL register to adjust for the error. In my Sytem I have a TCXO source when the system is running which I can use as a calibration reference. Now, i dont find any information on how i can compare both frequencies the best way. Easiest would be using two timers, each clocked with both sources and hardware syncronised in start and capture. Unfortunately I do not know a possibility to get the LFCLK into the digital domain to be used with the timers.
Somehow the Reference Manual says something about a 512Hz Signal output that can be CAL_OUT bit in the register, but I did not find any information on which pin or internal instance that signal is put out.
Can anybody help me with this?
best regards,
Christian
Show LessHello everyone! (Read the edit at the final)
I'm working with the low-power modes, and in the documentation from Infineon, the only one I found, link: https://infineon.github.io/psoc6pdl/pdl_api_reference_manual/html/group__group__syspm__functions__power.html
It explains the functions, but there are not many examples of them, or at least I couldn't find them.
As the title expresses I want to go out from a ULP mode, because I was testing a code and in this code, after entering this mode, it keeps popping up the message that is supposed to be shown only when the core is in ULP, a thing shouldn't be because technically the function Cy_SysPm_CpuSendWakeupEvent(); is taking it out of that mode. Or maybe I'm wrong, it only wakes up for a moment and comes back to ULP mode. So, in that case, please let me know how can I access the active mode again with a simple function like the ones there are to enter these power modes (in the link I provided).
I'll put part of my code as the complete one is longer, but the thing is that when my variable reaches more than 100, enters the ULP, and it only goes to the second condition, meaning it never went out definitely from the ULP and enters the active mode just for a while with the WakeupEvent function (the IsActive functions I know are redundant but I wanted to make sure it was the reason of my failed attempt to go out of the ULP mode but it is not the reason, with or without those commented conditions it doesn't go back to active mode definitely, it prints me my 2 messages in the 2nd if):
if((int)variable > 100 && !Cy_SysPm_IsSystemUlp() /*&& Cy_SysPm_Cm4IsActive()*/)
{
Uart_Printf_PutString("\n\rTransition to Ultra Low Power Mode...\n");
Cy_SysPm_SystemEnterUlp();
CyDelay(10);
}
if(Cy_SysPm_IsSystemUlp() /*&& !Cy_SysPm_Cm4IsActive()*/)
{
Uart_Printf_PutString("\n\rTransition out from ULP Mode...\n");
CyDelay(1000);
Cy_SysPm_CpuSendWakeupEvent();
if(Cy_SysPm_Cm4IsActive())
Uart_Printf_PutString("\n\rShould be Active now\n");
CyDelay(1000);
}
CyDelay(100);
}
Could you please help me? Thanks in advance.
Edit: Guys I found out that the Low Power mode is an Active mode, as well as the ULP, because in the Cy_Hal documentation the normal mode appears as LP and the LowPower as ULP, and also in a state diagram it shows that is the system in the mode but the CPU is active or sleeping. This might be the reason why I cannot go out from ULP, so I just go to LP to come back to Active mode? thanks in advance! 😉
Gio
Show Less
How to configure CYW54907 in CYW954907AEVAL1F for current and RF evaluation.
I'm able to flash example programs to the board using ModusToolBox. I've flashed the device with "Tester WiFi- Bluetooth console, " enabling the chip to scan WiFi and connect with any hotspot.
Is there any example with which we can use the device with some tool like the "wl tool" with which we can give commands to the device to configure it in different modes?
Also how to make current measurements to measure the current consumed by the chip at these modes, what modification has to be done to get the measurement points(VBAT and VDDIO).
Show Less
Hello community!
I need help
I have a project using PSoC 6 and MH-Z19B sensor
but I can't find a library of this sensor on PSoC 6 or an example of this sensor on PSoC 6!
What I could find was the MHZ19 library written for Arduino, which I don't know how to rewrite for PSoC use!
Can someone help me rewrite the MHZ19 library for PSoC 6? Or the program can read the MH-Z19B sensor on PSoC Creator!
Thanks
Dear Engineers.
I am trying to create a picovoice project using board CY8CKIT-062S2-43012, but picovoice is not showing up in project-creator.
I think it was displayed before, do you know why?
I am using ModusToolbox 3.1.0 and project creator 2.10.
Show LessHello
I am building an interface for FSLP (force sense linear potentiometer) to detect user touch swipes.
I am using comparator ISR to detect the user touching the FSLP, then take a pressure reading from the ADC, if pressure exceeds the threshold, then the firmware reconfigures the pin config of the FSLP and runs the ADC again to take 10 readings that represent the position of the user touch on the FSLP strip. It works perfectly. I have to add 20ms delay between ADC readings to capture 10 consecutive readings that can track the user swiping the sensor.
The logic goes as follows:
1. User touches the sensor, this triggers comparator isr if the touch produces voltage that exceeds the threshold.
2. Comparator ISR triggers single ADC capture to read the force and check it against the threshold of a touch.
3. If force is enough, this reconfigures the FSLP pins and calls ADC_StartConvert()
4. The rest is managed by the DMA_ADC using single descriptor that is required to capture 10 readings, 20ms apart.
Now I am trying to do this using DMA to avoid the 10 x 20ms delays in runtime.
I am using EOS that triggers the DMA. But the slowest SPS is ~1,700, I only need 50 samples spaced 20ms apart.
Any recommendations ?
Show Less