PSoC™ 4 Forum Discussions
text.format{('custom.tabs.no.results')}
Hi,
In my application, it needs two profiles (one is HID and the other is customer profile),
On startup, the firmware will detect the switch for choosing one of two profiles,
that means only one profile will be advertised to GAP central device.
I don't know how to implement two profiles on the PSoC Creator,
Please help me, thanks!
Aaron Deng
Show LessFor some reason this code gets stuck at sprintf in debug mode. Any tips?
#include <project.h>
#include <stdio.h>
int main()
{
CyGlobalIntEnable; /* Enable global interrupts. */
UART_Start();
char* str;
sprintf(str, "Hello");
for(;;)
{
UART_UartPutString(str);
}
}
What a difference between Type "uint8[] " and "uint8 array" in Custom Characteristic Field of BLE?
And how to assign array type " uint8[] [] " ?
Show LessHi,
I'm trying to program PSoC board as HID client. I am sending by UART some messages to PC to know what is goings-on. I have an event HCI Status and code number 4. It is page timeout. What am I doing wrong?
I am using CY8CKIT-042-BLE. PRoC module has program from example HID-Keyboard and I have connection by BLE between those modules. I have this error after trying to connect.
Events I have got in terminal:
CYBLE_EVT_STACK_ON
CYBLE_EVT_GAPC_SCAN_START
CYBLE_EVT_GAPC_SCAN_PROGRESS_RESULT
CYBLE_EVT_GAPC_SCAN_PROGRESS_RESULT
CYBLE_EVT_GAPC_SCAN_STOP
CYBLE_EVT_HCI_STATUS: 4
CYBLE_EVT_GATT_CONNECT_IND
CYBLE_EVT_GAP_DEVICE_CONNECTED
Pawel
Show LessI had another contents right below this contents.
First, I want to make 2-years-periodic Timer using WDT which has 2~4-hours-periodic Timer.
and to make time exact, I want to use RTC.
but as you say, RTC couldn't operate in deep sleep Mode. but I must two things.
how can i use with this things?
Show LessWhat to do if I need to use RTC as timer each time I receive event ? All this code ? :
RTC_Start();
RTC_SetDateAndTime ....
RTC_SetAlarmHandler(AlarmIsrHandler);
.
Show LessHi,
i am stuck using pir sensor on Psoc4 BLE, I've found a documentation explaining how to use pir on psoc family, and set the necessary circuit to obtain low-pass and high-pass filter as external. Datasheet says that i need 2 opamps to amplify signal coming from sensor, and 2 opamps for comparing(even if 2 opamps are available for psoc4 ble, i've tried to make that circuit) . I also use adc and drive led with pwm for observing voltage change depends on movement. I may have some wrong points about using gpio pins. I am not sure and cannot understand which step is wrong. My circuit is not working. I am sharing my project file and circuit picture. I know circuit is so complicated to figure it out; but you may give me a clue about my wrong. I am looking forward to hearing your response.
Note: Circuit in DSC_0516 and 0517, resistors i used at above are for amplfication with opams, te other ones are for filter operations.
Show LessAt first, I want to use WDT timer that has more than 2 hours, and want to use WDT with rtc.
but documentation that i reffered explains only WCO. so I tried to revise WDT0 by handling some option in .cwrk
in conclusion, I want to use WDT and RTC separately and WDT must have more than 2 hours. RTC will be only use start time and deadline
time. and every more than 2hours. my program will be wake up by WDT in deep sleep mode. how can i control timer??
please help me.. U_U;;
Show LessHello,
I cannot get CYBLE-014008-00 Deep Sleep Current to correct level. Datasheet specifies 1.3 uA current for Deep Sleep Mode.
Here is one setup that I have tested:
-CYBLE-14008-EVAL connected to CY8CKIT-42 BLE Pioneer Board.
-Following application programmed
#include <project.h>
int main(void)
{
CySysPmDeepSleep();
//CySysPmHibernate();
}
-CYBLE-14008-EVAL removed from CY8CKIT-42 BLE Pioneer Board.
-Power supplied to CYBLE-14008-EVAL board (J1 pins 23 and 24)
-Current is measured from power supply
As a result I am getting currents of 1.1 - 1.3 mA
If I comment out CySysPmDeepSleep() and enable CySysPmHibernate() Current goes to specified levels of Hibernate mode.
I have set debug pins to GPIO-mode from PSOC-Creator.
Could somebody help me to get Sleep current to specified level?
Show LessNow My project use two TCPWM as pwm and another two TCPWM component as timer, my tcpwm pin is fixed with P1.0 and P1.2 on my hardware, which are TCPWM[0].lineout and TCPWM[1].lineout in cydwr file pin assignment. But now I found my pwm0 is assigned to CYREG_TCPWM_CNT3 and pwm1 is assigned to CYREG_TCPWM_CNT2, two timer counter occupied CYREG_TCPWM_CNT1 and CYREG_TCPWM_CNT0 in code. So the problem seems the pin assignment is conflicted to the code generated by PSOC creator?
Show Less