PSoC™ 5, 3 & 1 Forum Discussions
Hi,
I'm not as experienced on USB-related programming overall.
I happen to be using a PSoC5LP and the USBFS in UART (CDC) mode (with the USB_UART component). I assume this question can apply to USB CDC communication in general.
The issue:
I can detect when the host PC opens a serial port using the EP0 (end point 0) interrupt service.
I'm trying to detect when the host closes the serial port. I can also see the EP0 ISR is occurring at this time.
I'm trying to decode what messages from the host is being sent with no real success.
I've looked on the USB 2.0 specification and cannot find any info about what requirements the host must do when informing the device on the other end that the port has just closed.
I would appreciate the help in pointing me in the right direction. Thank you in advance.
Show LessI create an example project about USBFS UART for cy8ckit-059 and I want to know why my laptop can't detect the device when development board is connected to the laptop via micro usb.
Show LessHow to install FreeRTOS to psoc5lp (CY8Ckit-059) project in psoc creator 4.4 environment?
I am programming a PSoC3 Microcontroller (CY8C3246PVI-147) via the PSoC Creator 4.4 software.
After adding some functions during compilation I get the following errors:
*** ERROR L107: ADDRESS SPACE OVERFLOW
SPACE: CONST SEGMENT: ?CO?CYFITTER_CFG LENGTH: 00098BH
*** ERROR L120: CONTENT BELONGS TO ERRONEOUS SEGMENT
SEGMENT: ?CO?CYFITTER_CFG
Program Size: data=71.5 xdata=4752 const=2443 code=53415
The command 'LX51.exe' failed with exit code '2'.
In the .map file there is this:
BASE START END USED MEMORY CLASS
==========================================================
X:000000H X:000000H X:001FFFH 001290H XDATA
C:000000H C:002800H C:00FFBFH 00D0A7H CODE
C:000000H C:002800H C:00FFBFH 00098BH CONST
I:000000H I:000000H I:00007FH 000042H DATA
I:000020H.0 I:000020H.0 I:00002FH.7 000001H.5 BIT
I:000000H I:000000H I:0000FFH 000004H IDATA
Would anyone be able to advise me on how to solve this?
Thanks
Show LessHi all,
Just a short note that I see CY8C5868LTI-LP039 is again available at Farnell (at least in the Netherlands)
Only 27 in stock and high price (30 euro) but more stock (2000) coming up march 10 2023
PS : I'm not related to Farnell, just dropping this message because I know many companies are waiting for this component to be restocked
Greets Patrick
Show LessHi,
I'm working on a 20-year project where the equipment I'm asked to upgrade uses a UART at 9600 baud 8-bit MARK parity and 1 stop bit.
I'm setting my UART to Data bits: 9-bits with Parity Type: Mark/Space.
By default the SPACE parity is set when sending the bytes in the packet. After many coding experiments, I have failed to set the parity to MARK.
Does any have an example project where the MARK parity is continuously set for all the bytes?
Thanks in advance.
Show Less
I'm using the PSoC5 component UART V2.50.
I'm trying to send out a data stream of 8-bit bytes with 90% of them being with MARK parity.
I tried multiple coding experiments to try to get even just one byte with MARK parity. All the bytes ended with SPACE parity.
I followed the directions in the UART datasheet. No luck.
I'm probably missing something here. An example program where all the bytes sent as set as MARK parity would be helpful.
As a side note: I created a kludge using a SPI Master to generate the 11 bit pattern with MARK parity for transmission. The UART can successfully detect when MARK parity occurs (although it doesn't flag a parity error just indicates the status of this bit).
The sad part about the SPI Master kludge is that the SPI data begins (not a problem) and ends (a problem) with '0' after the transmission is complete. This causes a false start bit for the next data being received to all other multi-drop devices on the line.
This is related to my previous post: I-need-a-UART-configuration-that-supports-8M1-8-bit-MARK-parity-1-stop-bit
Show Less
Hello,
I use CY8C21534 for a project, how do I change the interrupt priority of CSD?
Hello everbody,
i hope you can help me a little bit.
At the moment I am trying to program a PSoC 5 (CY8C5268LTI-LP030) with the CommandLineInterface.
Unfortunatey it isn´t working properly 😞
What have I done...
At the moment I am using this commands in a script:
OpenPort KitProg/0720063201324400 C:\Program Files (x86)\Cypress\Programmer
HEX_ReadFile "C:/HexFile/Testfile.hex"
SetAcquireMode "Reset"
SetProtocol 8
SetProtocolClock 152
SetProtocolConnector 0
SetPowerVoltage 5.0
//PowerOn
DAP_AcquireChip
PSoC3_EraseAll
PSoC3_ProgramRowFromHex 0x03 0 0
DAP_ReleaseChip
ClosePort
quit
Till the command "PSoC3_ProgramRowFromHex 0x03 0 0 " everything looks good. But while using this command I get following error message:
"PSoC3_ProgramRowFromHex 0x03 0 0
E
Timeout of SPC polling. Lost communication with chip (Status = 0x00)
PSoC3_ProgramRowFromHex 0x03 0 0 returned 80004005
80004005 OK"
And I am not sure how to fix it. I don´t know the problem... Is there anybody with an idea how to fix it?
Question 2:
Is there a command to program the whole hexfile without the rowId and arrayId? For example the command Program(). Unfortunately the UserGuid tells me it is only for PsoC1 😞
And is the arrayId 0x03 the correct id?
Many thanks in advance. I hope somebody can help me! 🙂
Ando some more informationen.
I am using a KitProg2 and the programming with PsocCreator oder PscoCProgrammer is working without any problems. So I guess there is no hardwareproblem.