PSoC™ 4 Forum Discussions
Hi,
I am working on a color LED controller, and want the user to be able to upload their own programs over a USB-UART link. Does anyone have any examples of this for PSOC? What are the best methods to do this? Just stream the data and look for terminating characters?
Thank you,
Tom
Show LessI'm using a PSOC CY8C4248AZI-L485 and trying to implement the USBUART but no matter what I do, I can't get it to recognize the device in Windows.
I started with the sample USBUART project, and made very few changes beyond stripping out some #ifdef code that wasn't executing, and adding a red and green status LED.
The 4248 is running at 3.3V, and I'm self-powering it from an external source. The 5V from the USB is applied to the VBUS, and I've tried all combinations of VBUS monitoring both on and off. I've tried swapping D+/D- and it made no difference. The D lines were initially passed through series resistors, but I've since eliminated them. There is no other filtering or static protection on the current prototype.
Whenever I plug it in, I get an error message in Windows (10) that the Device Descriptor Request Failed. It usually recognizes that I did plug something in to the USB port, but I will add that especially early on during the dev cycle, it wouldn't always attempt to load drivers. Somewhere along the way it's gotten more responsive to that function.
I installed the .inf file that is generated as part of the projct (I had to boot into the recovery mode to allow Windows to install an unsigned driver). That made no difference.
I had also installed some generic Cypress USB driver that I found during my travels, but that hasn't seemed to make any difference either.
Attached is the project as it stands today, as well as a screenshot of the error message that I'm seeing in Device Manager.
I'm new to the USB device development, so I'm not really sure what else might be useful to others to troubleshoot. It seems like I'm just one little step away from getting this going though.
Zack
Show LessI am completely new to this platform. I have a PSoC 4200 BLE CY8C4247LQ. I am not sure this is the right forum.
I need to read an analog pin to get the voltage read by a sensor I conected. It is an IR sensor (TCST 2103), I want to get the voltage the sensor is reading but I haven't found an easy way to do it. I don't know how to use the SAR ADC since in my PSoC Creator there is just a "Sequencing SAR ADC" with multiple inputs I don't understand.
Can you please give me some ideas about how to connect it and how to read after that? I thought it would be as easy as a digital pin. Or if I need an external circuit to modify the signal before reading it.
Show LessHi,
I am new to the PSoC and have couple of hardware questions to the experts.
I am using the Pioneer kit as a development board and need to free up some port pins with out crippling the usability of the base board and the KitProg functions. I have left alone the SWD, I2C and UART pins that are connected to the KitProg but want to remove the FRAM and free up P5,0 and P5.1.
By doing so, can anybody know what functions of the Pioneer Kit will be affected? My other question is how important is SWD? I am planning to use the PSoC module 143 which has 256Kb of memory.
Thanks.
Nathan
Show LessHi there,
I'm using the CY8CKIT-042-BLE pioneer kit with the PSoC 4 CY8C4247LQI-BL483 module. I'd like to use a bluetooth app to drive a PWM signal, so I'm using the Android example code "Find Me" service with the "Find Me" target as the PSoC 4 BLE. The app connects to and can send the various alerts to the PSoC 4 BLE with no problem. However, if I add a TCPWM block to the project with an input clock signal at 480kHz, the TCPWM configured with a period of 50Hz (value of 4800), and a compare value of 4400 (approximately 1.5ms), the PWM output to pin 3.4 is completely inconsistent with the TCPWM configuration. The period is around 300ms with a duty cycle of about 16%, instead of a period of 20ms and a duty cycle of 7.5%. If I create a project with only the TCPWM (and no BLE module), the TCPWM behaves exactly as expected. Are there any known issues between the BLE module and TCPWM module? I'm attaching my two projects for reference. Any help would be greatly appreciated.
Thanks,
Becky
Show LessI need very small size Bluetooth module for my simple project. I saw a very small BLE Bluetooth module (10x10x1.8mm) and i was thinking to use my new project. I bought 5 of them. But when i tried them, they are not work like classic modules. I used HC-05 and HC-06 modules as well before, Classic modules are simple, just paired. But bigger than BLE.
My question is : Why BLE modules are very difficult for simple usage? My Ble modules (CYBL10563 IC) can't paired. Is there simple method for to use them like HC-05?
Show LessTo the Cypress team and Community,
What solutions are you using for software, and getting data to the cloud? Are you using dedicated gateways or smartphones? It would be nice to see some more examples using popular cloud based services like Blynk, freeboard, Ubidots, Adafruit IO, AWS or Google IOT.
In this instance, I am looking to use an app called Blynk, which is absolutely wonderful for a small company like ours to develop an IOT product without having to have a staff Android or IOS coder, which we could not afford. I have looked into developing my own app, which has proven to be particularly daunting for BLE projects.
The problem is that all example code runs on Arduino-style C++ programs. The list of examples for BLE is here:
https://github.com/blynkkk/blynk-library/tree/master/examples/Boards_BLE
I would like to dive in some more and try to port all of their libraries, but right now it seems like it would just be easier to use another device. If I opened a ticket, is this something that I could get help with, or is it too big of a project?
Thank you,
Tom
Show LessHi,all
I want to use the Printf () function to print the serial port information.
For example:
Normal:
UART_SpiUartPutArray("Helon Test\r\n",sizeof("Helon Test\r\n"));//Uart can print the serial port information.
Now,i want to do like this:
printf("Helon Test\r\n");//"Helon Test\r\n" receviced by serial tool.
so,my question is how can i do to print the serial port information by printf() function?And the _Write () function has been rewrited,but printf("Helon Test\r\n") still can't print the serial port information.the _Write () function as follow:
int _write(int file, char *ptr, int len)
{
int i;
file = file;
for (i = 0; i < len; i++)
{
UART_SpiUartWriteTxData(*ptr++);
}
return len;
}
Hi,
I am using PSoC4100M for a project. I have two SCB components. One configured as I2C master and the other as UART. The I2C and UART pins are routed to different ports. I2C on port 1 and UART on port4.
When I compile the project I get CyDsFit Error which says
"E2809: Unable to find a valid placement for pins and fixed-function blocks. See the Digital Placement's Detailed placement messages section in the report file for details"
and gives the following suggestion
The placer is not able to place all of the carry chains without backtracking. It fills one UDB bank to 15/16 and the other to 7/8 and cannot place the final 2-datapath chain. As a workaround, add a control file to the TopDesign component (in Workspace Explorer's Components tab) with the following lines: ATTRIBUTE placement_force OF \Timer_ADPActiveTime:TimerUDB:sT16:timerdp:u0\ : LABEL IS "U(2,0)"; ATTRIBUTE placement_force OF \Timer_OutputPeriod:TimerUDB:sT24:timerdp:u0\ : LABEL IS "U(3,1)"; ATTRIBUTE placement_force OF \Timer_OutputActiveTime:TimerUDB:sT24:timerdp:u0\ : LABEL IS "U(0,1)"; This will fill the datapaths in the second UDB bank and allow the placer to assign the remaining datapaths.
I added the above lines to the control file. But it still gives the same error.
Please find attached the project bundle.
Best Regards,
-arp
Show LessHi:
I want to use the PSoC4 EZI2C Slave block.
I also study the example "SCB_EzI2cCommSlave", but I can't find where i can get the sub-address from master.
In this demo project, it is said that the read base address is 0x03, but I can't find where it is set?
For example:
The master want to read data from sub-address"0x01"-"0x05", how can I set the slave?
Best regards
thanks a lot.
Show Less