PSoC™ 5, 3 & 1 Forum Discussions
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.
Hello,
I'm using the UART API as follows:
while(0 == UART_1_GetRxBufferSize());
Receive = UART_1_GetByte();
if((Receive & 0xFF00) == 0) {
*data = (char) (Receive & 0x00FF);
}
The UART component datasheet states for UART_GetByte():
Return Value: uint16: MSB contains status and LSB contains UART RX data. If the MSB is nonzero, an error has occurred.
I'm getting 0x20 for the MSB. Digging through the API sourcecode, it seems that bit 5 indicates that the FIFO is not empty (UART_1_RX_STS_FIFO_NOTEMPTY).
I wonder if I'm handling the return value wrong or if the API simply has a bug - I think it should mask out the FIFO not empty flag since if the FIFO still has data this is not an error 😄
Anyone can confirm this?
Regards
Hello, quick question, it looks like Modus Tool Kit doesn't support PSOC5 devices, is this a permanent thing, is the PSOC5 being discontinued, or are they keeping the PSOC Creator around for the PSOC5 devices?
Thank you
Joe
Show LessCan you Directly give your HEX file & GUI (EXE) for recreated potentiostat work to p20210447@hyderabad.bits-pilani.ac.in . So that I can try with that.
Show Less
DPV , SWV using PSoc |Provide HEX for prototyping kit & GUI(EXE)
EIS using PSoc |Provide HEX for prototyping kit & GUI(EXE)
Does anyone had gone through Experimental Replication Of https://ieeexplore.ieee.org/stamp/stamp.jsp?arnumber=9808143 Using PSoc 5LP? Portable All-in-One Electroanalytical
Device for Point of Care
Kindly provide HEX File for PSoc 5LP prototyping Kit & GUI(EXE) to p20210447@hyderabad.bits-pilani.ac.in
Show LessPS C:\Users\Avinash\OneDrive - hyderabad.bits-pilani.ac.in\Documents\Python Scripts> python Potentiostat_GUI.py
-------------------------------------------------
Measurement frequency: 500.02083420142503 Hz
Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Users\Avinash\AppData\Local\Programs\Python\Python310\lib\tkinter\__init__.py", line 1921, in __call__
return self.func(*args)
File "C:\Users\Avinash\OneDrive - hyderabad.bits-pilani.ac.in\Documents\Python Scripts\Potentiostat_GUI.py", line 228, in Send_CV_Settings
self.user.set_Scan_rate(_scan_rate)
File "C:\Users\Avinash\OneDrive - hyderabad.bits-pilani.ac.in\Documents\Python Scripts\Potentiostat_userinput.py", line 46, in set_Scan_rate
self.comm.usb_write(scan_rate_formatted) # Send command
File "C:\Users\Avinash\OneDrive - hyderabad.bits-pilani.ac.in\Documents\Python Scripts\Potentiostat_communication.py", line 76, in usb_write
self.ep_out.write(message)
AttributeError: 'NoneType' object has no attribute 'write'
-------------------------------------------------
Plot title is stored.
-------------------------------------------------
Plot legend is stored.
-------------------------------------------------
Cyclic Voltammetry initialization has started.
Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Users\Avinash\AppData\Local\Programs\Python\Python310\lib\tkinter\__init__.py", line 1921, in __call__
return self.func(*args)
File "C:\Users\Avinash\OneDrive - hyderabad.bits-pilani.ac.in\Documents\Python Scripts\Potentiostat_GUI.py", line 273, in Start_CV_scan
self.user.run_CyclicVoltammetry()
File "C:\Users\Avinash\OneDrive - hyderabad.bits-pilani.ac.in\Documents\Python Scripts\Potentiostat_userinput.py", line 113, in run_CyclicVoltammetry
self.comm.usb_write("R")
File "C:\Users\Avinash\OneDrive - hyderabad.bits-pilani.ac.in\Documents\Python Scripts\Potentiostat_communication.py", line 76, in usb_write
self.ep_out.write(message)
AttributeError: 'NoneType' object has no attribute 'write'
@sk7211 It would be beneficial & time-saving If you can directly provide me with all your Files of yours ..HEX. GUI(EXE) . Most importantly zadig driver installer can detect.
https://community.infineon.com/t5/PSoC-5-3-1/Potentiostat/td-p/366804
Show Less