PSoC™ 4 Forum Discussions
Hello,
New to PSoC, just testing different components to see if PSoC fit our needs.
One of the tasks is to communicate with a Master over RS485 using MODBUS protocol. Baudrate is 921600.
Master send a request packet to Slave (PSoC) twice every second and expect updated values as reply.
Master request send 0x02, 0x04, 0x01, 0x13.
After some testing I've concluded that PSoC save the bytes in wrong order:0x04, 0x01, 0x13, 0x02.
That is so weird that it took some time to even believe.
Tried to read documents, examples and forum posts without finding a reason for this to happen.
Missing something essential?
We're using CY8CKIT-043.
I'll attach minimal bundle .zip file.
while i am adding debug .h and .c file in my UART project and getting below error .
Build error: The command 'arm-none-eabi-gcc.exe' failed with exit code '1'.
i want to use DBG_PRINTF(" "); function for that i had include debug.h and debug.c now it showing me (Build error: undefined reference to `DBG_PRINTF') error .
Show LessHi,
I have some dubts about the Proc.
what I do with the pins not used the EZ-PROC? How do I set to prevent the leakage current.
Leds can connect directly to the pins of the EZ-PROC? He can provide necessary current to light LEDs? If so, which pins can I use?
Thank you!
Show LessHello,
I'm trying to characterize power consumption on the CY8CKIT-042 BLE kit and compare performance against Nordic nRF51 and nRF52 for BLE radio events.
Does Cypress have BLE current profile for connection and advertising event? Nordic provides this data in the datasheet/product specification and Softdevice specification. I checked the PSoC_4_PSoC_4XX7_BLE datasheet and TRM and could not find the data. Do you guys have this internally and could share?
The application note "Designing for Low Power and Estimating Battery Life for BLE Applications" provides some reference but leaves a bit to be desired. Figure 9 and 10 are oscilloscope captures for advertising and connection event with sub time-periods referenced as alpha terms. Figure 21 and 23 are cartoon diagrams showing the different BLE radio modes and also if the Cortex M0 is active.
If I could have this figure with rough time periods for each mode and expected current consumption that would be great.
Attached figure of what I'm looking for here:
http://i.imgur.com/eGo5h6L.png
http://i.imgur.com/uOwoI5S.png
Thank you,
Nicholas
Hi everyone,
I'm trying to get the Bootloader over the air running with my CYBLE-022001-00.
Now I realized that my normal application (without the bootloadable-component) already uses 94.4% of the available Ram.
I guess this is why I'm getting errors when i put the bootloadable component in and try to compile.
My question now is pretty basic, so I don't know exactly if this is the right forum, but I post it anyway:
Can someone tell me where in my project I use all the ram??
My project is still pretty small (ok, it uses the BLE-component, but this chip is made for this...), so I'm wondering how anyone would ever build a bootloadable application if this doesn't fit.
Or maybe someone can tell me another error in my thinking, because i need this application to be bootloadable.
I would really appreciate the help.
Best regards,
Gregor
Show LessUpdating component Cy_boot 4.1 to Cy_boot 4.2 (PSoC Creator 3.3) causes gcc printf to fall into an interrupt unhandled trap;
I tried component CY_Boot 5.2 and the problem is still there. It works fine with component Cy_boot 4.1.
What is the new procedure to use gcc printf ?
Show LessI'm referencing the Dynamic Broadcaster and Battery Level examples from 100 Days, and wanted to work on a switch that would interrupt, computer the battery percentage, update the advertisement info, and restart broadcasting. Using the module only, and not the dev kit, if pin 3[7] were my ADC pin, would I just 'jump' that pin to VDDR? Do I need a 1uF cap of anything?
Show LessIf i am building my application ,it throws following errors..
Build error: .\CortexM0\ARM_GCC_493\Debug\ipsp.elf section `.heap' will not fit in region `ram'
Build error: region RAM overflowed with stack
Build error: region `ram' overflowed by 0 bytes
How to rectify these problems...?
Thanks and Regards,
Sridhar Naidu.
Show LessI have attached the example file for the central role. I ran across the followings problem. Once the user button is pushed the breakpoint triggers on this button push, but after the program is resumed the program continues to trigger even though the switch is not active.
Show LessHello all, Please have a look at this function in a Proximity Sensing regards:
/***** Function Name: Output_Init *********
* Summary: * Output_Init() performs following functions:
* 1: Starts PRSm * Parameters: * None. * Return: * None***/
void Output_Init(void)
{
/* Set up WDT to generate the wakeup/timing ISR */
/* Update the match register for generating a periodic WDT ISR. */
/*Note: In order to do a periodic ISR using WDT, Match value needs to be
updated every WDT ISR with the desired time value added on top of the
existing match value */
#if ((0u != CapSense_IS_M0S8PERI_BLOCK) && (0u == (CY_PSOC4_4100BL || CY_PSOC4_4200BL || CY_PSOC4_4100M || CY_PSOC4_4200M)))
CySysWdtWriteMatch(WATCHDOG_TIMER_COUNT);
#else
CySysWdtWriteMatch(0, WATCHDOG_TIMER_COUNT);
#endif /* (0u != CapSense_IS_M0S8PERI_BLOCK) */
#if ((0u != CapSense_IS_M0S8PERI_BLOCK) && (0u == (CY_PSOC4_4100BL || CY_PSOC4_4200BL || CY_PSOC4_4100M || CY_PSOC4_4200M)))
/* Enable the WDT interrupt in SRSS INTR mask register */
CySysWdtUnmaskInterrupt();
#else
CySysWdtClearInterrupt(0);
#endif /* (0u != CapSense_IS_M0S8PERI_BLOCK) */
/* Map the WatchDog_ISR vector to the WDT_ISR */
WDT_ISR_StartEx(WatchDog_ISR);
/* Start PRSm block */
PRSm_Init();
PRSm_WriteCounter(LED_OFF_DUTY);
PRSm_Enable();
}
Please explain the meaning of following lines:
#if ((0u != CapSense_IS_M0S8PERI_BLOCK) && (0u == (CY_PSOC4_4100BL || CY_PSOC4_4200BL || CY_PSOC4_4100M || CY_PSOC4_4200M)))
Thanks & Regards-
Amit
Show Less