PSoC™ 4 Forum Discussions
We are creating a Sound Sensor component on Psoc 4 creator. We are unsure how to create the component itself using the Psoc component creator. We have followed "Psoc Creator Component Author Guide", but were still unable to get the component to work. Here is a link to the detector we are using, Sound Detector Hookup Guide - learn.sparkfun.com.
Show LessWe are starting a project using the sparkfun sound detector. The detector has three pins, envelope, gate, and audio. Each outputs a voltage in regards to the volume of the sound detected. I was wondering which pins on the psoc 4 would be best to use to read these voltages.
Show LessI am unable to get smoth operation of toggling led using self capacitance CapSense button
Hello everyone!
I am currently working on an older (2017) project and codebase to resolve a problem that exists during a FOTA update (Bootloader + Bootloadable). The code appears to be based on the Project051_NOR_Flash_Bootloader example.
What I am seeing with the PSoC4 debugger is that it seems to get stuck in the ExternalMemoryInterface in the while loop that waits for the EMI_IsBusy() state to resolve. This is all happening while performing EMI_EraseAll, just before the FOTA update is about to start.
Is this something you have seen before, that you are aware of?
Maybe what I need to do to resolve this, is to simply update to the latest codebase of the example, because it appears to be slightly different. Was a bug like this resolved in the past? If so which part of the codebase would have to be updated? Some advice would be well appreciated.
Thank you for your help!
Karl
Show LessHi...
I am using psco part CY8C4246AZI-L445 with USB output...
I wanted to implement the kind of touch feedback in my design...
Please suggest me the best suitable part number having at least haptic + USB + 3 UART feature.
or any other part with low cost having haptic feedback..
Thanks in advance...
Show LessHello Everyone,
EDIT: I've solved it. I did not have a clear enough understanding of the CAN Protocol and the Transceiver I was using. There were 2 things I did to solve my issue:
1) I connected the Tx Signal to the Transceiver. I previously did not have it connected to anything and was just probing the pin.
2) I calculated the Sync parameters on the receiving end.
All is well now, but I'll leave this up in case anyone comes across this issue.
ORIGINAL MESSAGE:
I am trying to send data using the CAN peripherals on the CY8CKit-044 and it does not send any data. Below is my code, and I've attached the full project for context.
I'm monitoring the return value of CAN_SendMsg() and it returns a success 8 times then constantly fails. When CAN_SendMsg() succeeds there is no signal on the physical pin (TX: P0[1], RX: P0[0]) when I probe it. It doesn't look like it is actually transmitting anything before it fails.
I'm absolutely lost. I followed the Component Datasheet (incl. trimming with WCO). Even when I load the example project there is no signal on the pins. Has anyone encountered this? Am I forgetting to enable or reset something?
Any insight on this would be a huge help.
/* ---- MAIN LOOP ---- */
CAN_TX_MSG CAN_Msg;
CAN_DATA_BYTES_MSG txData;
#define CAN_MESSAGE_ID (0x1AAu)
#define CAN_MESSAGE_IDE (0u) /* Standard message */
#define CAN_MESSAGE_IRQ (0u) /* No transmit IRQ */
#define CAN_MESSAGE_RTR (0u) /* No RTR */
#define TX_DATA_SIZE (25u)
uint8 MESSAGE[] = {0x00,0x11,0x00,0x11,0x00,0x11,0x00,0x11}; //define 8 bytes of data
int main(void)
{
CAN_Msg.dlc = CAN_TX_DLC_MAX_VALUE;
CAN_Msg.id = CAN_MESSAGE_ID;
CAN_Msg.ide = CAN_MESSAGE_IDE;
CAN_Msg.irq = CAN_MESSAGE_IRQ;
CAN_Msg.msg = &txData;
CAN_Msg.rtr = CAN_MESSAGE_RTR;
uint8 error = 0;
uint8 i;
RGB_Init();
USB_Bridge_Start();
CAN_Start();
CAN_SetOpMode(CAN_ACTIVE_RUN_MODE);
CyGlobalIntEnable; /* Enable global interrupts. */
for(i=0; i < CAN_TX_DLC_MAX_VALUE; i++){
txData.byte = MESSAGE; /* move data to the structure */
}
for(;;)
{
error = CAN_SendMsg(&CAN_Msg);
if(error == CAN_FAIL)
{
RGB_Blink(Red, 1);
}
else if(error == CYRET_SUCCESS)
{
RGB_Blink(Green, 1);
}
}
}
Show LessHello Together,
we made a Bluetooth Dongle, which sends Data from Com-Port to a BLE-Device.
we use the CyBle_GattcWriteLongCharacteristicValues, but only 16 Bytes where received on the BLE-Device.
The handler is build up like this:
CYBLE_GATTC_PREP_WRITE_REQ_T tempHandle;
tempHandle.handleValuePair.attrHandle = cyBle_customCServ[CYBLE_CUSTOMC_SERVER_UART_SERVICE_INDEX]
.customServChar[CYBLE_CUSTOMC_SERVER_UART_SERVER_UART_RX_DATA_CHAR_INDEX]
.customServCharHandle;
tempHandle.handleValuePair.value.val = UART_data;
tempHandle.handleValuePair.value.len = dataLen;
volatile CYBLE_API_RESULT_T t = CyBle_GattcWriteLongCharacteristicValues(cyBle_connHandle, &tempHandle);
The dataLen is 60 and all Data are in the UART_data.
We dont know the mistake yet, maybe you guys have an idea, what is wrong with this method.
Thank you.
Show Lessi'm playing with the capsense function of PSOC 4 pioneer kit. i'm using the matrix widget to control the LED.
the collumns work fine but the second i try to use rows nothing happens. i dont know how or why it doesnt work?
i tried CapSense_CheckIsSensorActive(CapSense_SENSOR_MATRIXBUTTON0_ROW0__MB) but this does nothing
so the question is how do i use the rows of the matrix?
Show LessHello
It is not normal case.
I need to reset MCU using external reset pin.
I need to reset every minutes.
It is home appliance application.
so It always power on and reset every minutes.
Is this reset make any problem of MCU?
Show Less