PSoC™ 4 Forum Discussions
Hi,
I currently have CY8CKIT-046 and trying example codes that I found on the Internet. In TopDesign section, I added a second button which has exactly same Widget Details as the first. Also ports are configured and main.c file has been edited just like the first button that is in the example code. I built the code and programmed. In CapSense Tuner, device is connected and everything looks OK. But when I try to press the buttons, one of them isn't working at all. Example code works by itself.
What should I do?
Thanks.
P.S: The attached file below is the example code.
Show LessHello,
We would like to know about SW_Tx_UART baud rate tolerance.
In case of UART(SCB mode) default oversamping(12) for IMO 24MHz, the tolerance from 115200bps is from 0.08% to 4.17%.
We hope it between about +/-2%.
So, we should set oversampling value to 16.
In case of SW_TX_UART for IMO 24MHz, what about this case?
Best regards,
Yocchi
Show LessHello.
Our customer is evaluating CY8C4247LTI-L475.
They have questions about software reset.
Please confirm and answer below questions.
Q1)
They used Reset() of Cm0Start.c in order to execute software reset.
But PSoC is frozen after it.
Is API for software reset “Reset()”?
Or should they use other API?
Should they use “CySoftwareReset” if they want to execute software reset?
(“Reset()” is not used at software reset.)
Is “Reset()” a reset command for interrupt? And should “Reset()” be used at bootloader?
(“Reset()” is used at bootloader.)
Q2)
Are there any restrictions and procedure when executing software reset?
Q3)
Is it OK to execute software reset during I2C communication?
Or are there any problems?
For example, PSoC or other I2C devices on same I2C line will hang up at restart if there is a reset before stop condition(so SDA may be locked at low level due to it), software reset is not execute correctly, etc.
Should software reset is executed after I2C communication is complete if there are any problems?
Best Regards.
Yutaka Matsubara
Show LessI'm trying to use the code example CapSense_Csd_P4_Trackpad_Gestures on a CYBLE_214015_01 (psoc 4 ble), but I keep getting a driver error when connecting it to a Windows 10 pc, after a first connection is accomplished.
I read that the code would work better with Windows 8, is there a way to have it rwork on windows 10 or do I need to modify or write any drivers?
Thank you
Show LessHello all,
My code sends a command to a cyble-214015-1 writing a characteristic and then waits for a notification on the same char
mtu is 70 bytes and notify is 3 bytes: 32 2E 9B
Sometimes it works but sometimes it fails: after a timeout of 5 s I pause psoc creator 4.2 and I find this:
The timeout happens on my pc because the command is not syncronized with events, but I receive EVT_CONNECTION_TERMINATED_NOTIFICATION from cy5677, that is CYBLE_EVT_GAP_DEVICE_DISCONNECTED.
The device seems stucked
The function that sends the notification is:
void BLE_notify(uint16_t h, void * v, uint16_t lenght)
{
if (connesso) {
CYBLE_GATTS_HANDLE_VALUE_NTF_T hvntf = {
.attrHandle = h
} ;
uint8_t * dati = (uint8_t *) v ;
while (lenght) {
if (CYBLE_STACK_STATE_BUSY == CyBle_GattGetBusyStatus()) {
CyBle_ProcessEvents() ;
continue ;
}
uint16_t dim = lenght ;
if (dim > mtu-3)
dim = mtu-3 ;
hvntf.value.len = dim ;
hvntf.value.val = dati ;
CYBLE_API_RESULT_T ris = CyBle_GattsNotification(cyBle_connHandle, &hvntf) ;
CyBle_ProcessEvents() ;
switch (ris) {
case CYBLE_ERROR_OK:
DBG_PRINT_HEX("notif ", dati, dim) ;
lenght -= dim ;
dati += dim ;
break ;
case CYBLE_ERROR_MEMORY_ALLOCATION_FAILED:
// Bisogna aspettare che lo stack spedisca i dati
CyBle_ProcessEvents() ;
break ;
default:
// ??? esco
DBG_PRINTF("ERR %s %d ris = 0x%04X\n", __FILE__, __LINE__, ris) ;
lenght = 0 ;
break ;
case CYBLE_ERROR_INVALID_PARAMETER:
// notifiche disabilitate
DBG_ERR ;
lenght = 0 ;
break ;
case CYBLE_ERROR_INVALID_OPERATION:
// Riprovo
DBG_ERR ;
CyBle_ProcessEvents() ;
break ;
}
}
}
else {
DBG_ERR ;
}
}
What am I doing wrong?
Show LessI am using Cy8C4147AZI-S445 on battery, I want to know the level of battery or low voltage detection without any external component. Please guide regarding it.
Thank You
Hi All,
I have a project using the up-gradable BLE stack and BLE and OTA have been working fine... up to this point.
I have recently made quite a few changes to the BLE Profile, and now I when doing an OTA update, the device updates, and gets stuck in the function CyBle_GapGetBondedDevicesList(&bondedDevList), in AfterImageUpdate().
The new firmware runs fine if programmed with the programmer, and itself can be updated OTA and works fine.
Any ideas? I need to be able to update devices already in the field.
TIA
Show LessHi Cypress
Can you offer the Series com port resource code for CYBLE-022001-00 , We need a Virtual Serial Port for communication with CYBLE-022001-00 module , Thank !!
Show LessHello,
Please tell me about IMO accuracy for Automotive PSoC4000S CY8C4024LQS-S411.
There is IMO accuracy spec in the datasheet like below.
We can see +/-2%.
But there is IMO accuracy in the Design Wide Resources of PSoC Creator like blow.
We can see +/-4%.
Why??
Best regards,
Yocchi
Show LessHi,
We are considering using UART of CY8C4248LTI-L485.
WeI would like to swich the stop bit setting by software.
In UART of SCB mode, the data sheet describes how to switch by structure.
However, there seems to be no way to switch the stop bit setting in UART of UDB mode.
I confirm for TRM(architecture and register) but couldn't find a way to switch by software.
Is there a way to switch the stop bit in UART of UDB mode?
Regards,
Show Less