PSoC™ 4 Forum Discussions
Dear Receiver,
In the following manuel,
CY8C4xxx, CYBLxxxx Programming specification (infineon.com)
I would like to know what's the difference between "Flash protection" and "chip level protection" in the following figure 2-2 ? Thank you so much.
Show Less
Hello,
Due to the need to transmit large audio files and read data segment by segment, currently using single buffering for data transmission generates noise between each segment. What I can think of is using a dual buffering mechanism similar to STM32 MCU DMA. Does PSOC DMA have dual buffering? Or is there any other way to solve this noise problem?
Regards,
Chris
Show LessHello everyone!
I need to change the IDAC range during the execution time. The device I´m using is CY8C4245AXI and there is not a native function to make it. How can I do that?
Thanks in advance!
Show LessHi,
I am trying to create a project which will send UART data to another device on a key press and get response for it.
But I am unable to receive response from another device.
We have a microcontroller which would respond with data to modbus query via UART.
We can able to send our UART query from our CY8C4248LQI-BL583 device and that is also received on other microcontroller's end. The microcontroller also responds with response, but I cant able to get all the data.
Query data -> readQuery[] = {0x01, 0x03, 0x10, 0x10, 0x00,0x01, 0xAA, 0xAA};
Expected data response { 0x01, 0x03, 0x02, 0x0E, 0x1c, 0xBD, 0xED, 0xAA}
But I am not getting full buffer, can any one help me to get full stream of data on UART.
I am sharing the project as attachment for your reference.
Thanks
Hello,
I need to know IDAC's registers in detail when I use DMA operation, but I can not find those registers description in ralated document, where should I get it?
Regards,
Chris
Show LessI am trying to set value on my Characteristics which is read able. But it always gives me 0 ( zero ) Value.
The application is very simple, I am trying to set led state from writing values, which is working good. But I want to set that same led state in another characteristics. I have gone through custom profile implementation document, but that didn't work for me. Can any one please guide me?
Below is my main code for your reference.
/**********************************************************************************************************/
#include "project.h"
void Stack_Handler ( uint32 evenCode, void * eventParam );
void Stack_Handler ( uint32 evenCode, void * eventParam )
{
CYBLE_GATTS_WRITE_CMD_REQ_PARAM_T * wrReqParam;
switch( evenCode )
{
case CYBLE_EVT_STACK_ON:
case CYBLE_EVT_GAP_DEVICE_DISCONNECTED:
CyBle_GappStartAdvertisement( CYBLE_ADVERTISING_FAST );
//PWM_WriteCompare( 500 );
PWM_BLINK_Start();
PWM_DIM_Stop();
break;
case CYBLE_EVT_GATT_CONNECT_IND:
case CYBLE_EVT_GAP_DEVICE_CONNECTED:
//PWM_WriteCompare( 0 );
PWM_BLINK_Stop();
PWM_DIM_Start();
break;
case CYBLE_EVT_GATTS_WRITE_CMD_REQ:
case CYBLE_EVT_GATTS_WRITE_REQ:
wrReqParam = (CYBLE_GATTS_WRITE_CMD_REQ_PARAM_T *) eventParam;
if (CYBLE_LED_GREEN_CHAR_HANDLE == wrReqParam->handleValPair.attrHandle)
{
if (wrReqParam->handleValPair.value.len > 0)
{
uint8 Value[10] = {0};
int loopCounter = 0;
while(loopCounter < wrReqParam->handleValPair.value.len)
{
Value[loopCounter] = wrReqParam->handleValPair.value.val[loopCounter];
loopCounter ++;
}
Value[wrReqParam->handleValPair.value.len] = '\0';
if( strcmp((const char *)Value, "LED_ON") == 0 )
{
PWM_DIM_WriteCompare(0);
}
else if( strcmp((const char *)Value, "LED_OFF") == 0 )
{
PWM_DIM_WriteCompare(100);
}
}
}
CyBle_GattsWriteRsp(cyBle_connHandle);/* Send Response to Write request receievd */
break;
}
}
int main(void)
{
//uint8 String[10] = {0};
uint8 String = 4;
CyGlobalIntEnable; /* Enable global interrupts. */
CyBle_Start( Stack_Handler );
PWM_DIM_Start();
PWM_BLINK_Start();
CYBLE_GATT_HANDLE_VALUE_PAIR_T setReadHandler;
//strcpy((char *)String, "LED_State");
setReadHandler.attrHandle = CYBLE_LED_READ_LED_STATE_CHAR_HANDLE;
setReadHandler.value.val = (uint8 * )&String; // Use a pointer to the value
setReadHandler.value.len = sizeof(String); // Length of the data
CyBle_GattsWriteAttributeValue(&setReadHandler, 0, &cyBle_connHandle, CYBLE_GATT_DB_PEER_INITIATED);
/* Place your initialization/startup code here (e.g. MyInst_Start()) */
for(;;)
{
/* Place your application code here. */
CyBle_ProcessEvents();
}
}
/* [] END OF FILE */
/*************************************************************************************************/
Show LessHello,
I'm trying to use the function powf in a design.
The target device is CY8C4245AXI-483.
Of course I've included math.h but when I build i Get the message:
"Build error: undefined reference to `powf'"
Building the same code on another target (CY8C4025AZI-403) biuld is successfull.
Can You please help?
thanks,
Alfonso
Show LessHello all,
Does exist a tool to compare TopDesign files?
Thanks in advance.
Yacob.
我们有个Cypress PSOC 应用的问题,想咨询一下。
我们目前用的CY8C3246, firmware 用到了Watchdog
从库函数的描述看,有4档 timer periods. 我们现在选择的已经是最长的间隔了。
CyWdtStart(3, 0); // enable WDT 2.048-3.072s
我们想用更长的timer periods,有什么办法吗?
Show Less