- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I excluded the TopDesign_01.cymacro, which I don't think necessary.
Meantime, I moved a couple of pins to avoid warnings.
So currently the project can be compiled without warning.
But you need to make sure that pin assignments are following your application.
And as I wrote, I'm willing to help you, but I'm not willing to do "your" work.
I hope that with this project as a starting point, you can modify and debug the project on CY8CKIT-059.
moto
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I wonder if you can add the following two lines in general_functions.h as a prototype?
void helper_LCD_clear0(void) ;
void helper_LCD_clear1(void) ;
moto
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I'm sorry, I missed the first 2 functions.
I thought that if you add the following 4 lines in the general_functions.h the conflict would be cleared.
void helper_LCD_clear0(void) ;
void helper_LCD_clear1(void) ;
void helper_LCD_write0(char message[]) ;
void helper_LCD_write1(char message[]) ;
Or am I totally missing point of your question?
moto
Edited: though -> thought
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Oh, I'm sorry that you already have them in the header.
moto
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Kindly resolve the issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I could not open your 2.zip there are missing files.
Could you make another archive which can be opened with PSoC Creator 4.4?
Meantime, yes, I will try to help, but I can not guarantee if I will be able to.
moto
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Use 4.2 PSoc creator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sorry, I had only 4.4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
You had duplicated layers in your project folder
There were projects in
Potentiostat
and
Potentiostat\Design01.cydsn
and the source/header reference are mixed in both folders.
I separated on Design01 project and did
remove from project and add existing items
for each cross-overed sources/headers.
And I could clean the confilit.
moto
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
In the 2.zip there are 2 projects
(1) Potentiostat_RevA8.cyprj
(2) Potentiostat-main.cyprj
And (2) does not seem to be a valid project in this context.
(1) is missing (at least) the following files.
TopDesign.cysch
cv_functions.h
cv_functions.c
If you can salvage these files, we may be able to try to repair the project.
Meantime, although I'm willing to help others here, please don't expect me to read all that documents and rebuild the master class project, I suppose it is yours to do.
moto
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
The problem of TopDesign.cysch was that it must be placed in the <project>\TopDesign\TopDesign.cysch.
So when I created the folder and moved the TopDesign.cysch the project seems to be OK,
except it is still missing cv_func.[ch]
And interestingly enough it compiles now.moto
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Here all files have been given. I am struggling for the last 4 weeks. It will be obliged if you provided the project with all available data mentioned in his thesis. Kindly check that might be there. In the appendix section.
https://blog.mbedded.ninja/programming/microcontrollers/psoc/useful-psoc-macros/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The project owner -(He) has done the development kit & I want to do it with the prototyping kit. cypress -059
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I retarget the device to CY8C5888LTI-LP097 and at least the project can be compiled.
I have not payed attention about the pin, so you may have to re-assign pins for your purpose.
Meantime, please refer to the User Guide of CY8CKIT-059 to decide which pin can be used.
moto
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
PS C:\Users\Avinash\OneDrive - hyderabad.bits-pilani.ac.in\Documents\PSoC Creator\Potentiostat_RevA8.cydsn\Python Scripts> python Potentiostat_GUI.py
-------------------------------------------------
Measurement frequency: 25.00005208344184 Hz
-------------------------------------------------
Scan rate input: 0.05 V/s
Command sent: C 00479999
-------------------------------------------------
Minimum voltage input: -500 mV
Maximum voltage input: 500 mV
Start voltage input: -500 mV
Command sent: L 1532 2532 1532
-------------------------------------------------
Number of cycles input: 1
Command sent: N 01
-------------------------------------------------
Settings have been sent.
-------------------------------------------------
Plot title is stored.
-------------------------------------------------
Plot legend is stored.
-------------------------------------------------
Cyclic Voltammetry initialization has started.
ERROR: --- Failed to read. ---
Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Users\Avinash\OneDrive - hyderabad.bits-pilani.ac.in\Documents\PSoC Creator\Potentiostat_RevA8.cydsn\Python Scripts\Potentiostat_communication.py", line 80, in usb_read
usb_input = self.ep_in.read(size, timeout)
File "C:\Users\Avinash\AppData\Local\Programs\Python\Python310\lib\site-packages\usb\core.py", line 301, in read
return self.device.read(self.bEndpointAddress, size, self.interface, timeout)
File "C:\Users\Avinash\AppData\Local\Programs\Python\Python310\lib\site-packages\usb\core.py", line 656, in read
return fn(
File "C:\Users\Avinash\AppData\Local\Programs\Python\Python310\lib\site-packages\usb\backend\libusb0.py", line 481, in bulk_read
return self.__read(_lib.usb_bulk_read,
File "C:\Users\Avinash\AppData\Local\Programs\Python\Python310\lib\site-packages\usb\backend\libusb0.py", line 566, in __read
ret = int(_check(fn(
File "C:\Users\Avinash\AppData\Local\Programs\Python\Python310\lib\site-packages\usb\backend\libusb0.py", line 387, in _check
raise USBError(errmsg, ret)
usb.core.USBError: [Errno None] b'libusb0-dll:err [_usb_reap_async] timeout error\n'
During handling of the above exception, another exception occurred:
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\PSoC Creator\Potentiostat_RevA8.cydsn\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\PSoC Creator\Potentiostat_RevA8.cydsn\Python Scripts\Potentiostat_userinput.py", line 120, in run_CyclicVoltammetry
data = self.comm.usb_collect_data()
File "C:\Users\Avinash\OneDrive - hyderabad.bits-pilani.ac.in\Documents\PSoC Creator\Potentiostat_RevA8.cydsn\Python Scripts\Potentiostat_communication.py", line 87, in usb_collect_data
data_collect = self.usb_read(64,timeout=10000)
File "C:\Users\Avinash\OneDrive - hyderabad.bits-pilani.ac.in\Documents\PSoC Creator\Potentiostat_RevA8.cydsn\Python Scripts\Potentiostat_communication.py", line 83, in usb_read
print(self.ep_in.read(size, timeout))
File "C:\Users\Avinash\AppData\Local\Programs\Python\Python310\lib\site-packages\usb\core.py", line 301, in read
return self.device.read(self.bEndpointAddress, size, self.interface, timeout)
File "C:\Users\Avinash\AppData\Local\Programs\Python\Python310\lib\site-packages\usb\core.py", line 656, in read
return fn(
File "C:\Users\Avinash\AppData\Local\Programs\Python\Python310\lib\site-packages\usb\backend\libusb0.py", line 481, in bulk_read
return self.__read(_lib.usb_bulk_read,
File "C:\Users\Avinash\AppData\Local\Programs\Python\Python310\lib\site-packages\usb\backend\libusb0.py", line 566, in __read
ret = int(_check(fn(
File "C:\Users\Avinash\AppData\Local\Programs\Python\Python310\lib\site-packages\usb\backend\libusb0.py", line 387, in _check
raise USBError(errmsg, ret)
usb.core.USBError: [Errno None] b'libusb0-dll:err [_usb_reap_async] timeout error\n'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I excluded the TopDesign_01.cymacro, which I don't think necessary.
Meantime, I moved a couple of pins to avoid warnings.
So currently the project can be compiled without warning.
But you need to make sure that pin assignments are following your application.
And as I wrote, I'm willing to help you, but I'm not willing to do "your" work.
I hope that with this project as a starting point, you can modify and debug the project on CY8CKIT-059.
moto
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
PS C:\Users\Avinash\OneDrive - hyderabad.bits-pilani.ac.in\Documents\PSoC Creator\Potentiostat_RevA8.cydsn\Python Scripts> python Potentiostat_GUI.py
-------------------------------------------------
Measurement frequency: 25.00005208344184 Hz
-------------------------------------------------
Scan rate input: 0.05 V/s
Command sent: C 00479999
-------------------------------------------------
Minimum voltage input: -500 mV
Maximum voltage input: 500 mV
Start voltage input: -500 mV
Command sent: L 1532 2532 1532
-------------------------------------------------
Number of cycles input: 1
Command sent: N 01
-------------------------------------------------
Settings have been sent.
-------------------------------------------------
Plot title is stored.
-------------------------------------------------
Plot legend is stored.
-------------------------------------------------
Cyclic Voltammetry initialization has started.
ERROR: --- Failed to read. ---
Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Users\Avinash\OneDrive - hyderabad.bits-pilani.ac.in\Documents\PSoC Creator\Potentiostat_RevA8.cydsn\Python Scripts\Potentiostat_communication.py", line 80, in usb_read
usb_input = self.ep_in.read(size, timeout)
File "C:\Users\Avinash\AppData\Local\Programs\Python\Python310\lib\site-packages\usb\core.py", line 301, in read
return self.device.read(self.bEndpointAddress, size, self.interface, timeout)
File "C:\Users\Avinash\AppData\Local\Programs\Python\Python310\lib\site-packages\usb\core.py", line 656, in read
return fn(
File "C:\Users\Avinash\AppData\Local\Programs\Python\Python310\lib\site-packages\usb\backend\libusb0.py", line 481, in bulk_read
return self.__read(_lib.usb_bulk_read,
File "C:\Users\Avinash\AppData\Local\Programs\Python\Python310\lib\site-packages\usb\backend\libusb0.py", line 566, in __read
ret = int(_check(fn(
File "C:\Users\Avinash\AppData\Local\Programs\Python\Python310\lib\site-packages\usb\backend\libusb0.py", line 387, in _check
raise USBError(errmsg, ret)
usb.core.USBError: [Errno None] b'libusb0-dll:err [_usb_reap_async] timeout error\n'
During handling of the above exception, another exception occurred:
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\PSoC Creator\Potentiostat_RevA8.cydsn\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\PSoC Creator\Potentiostat_RevA8.cydsn\Python Scripts\Potentiostat_userinput.py", line 120, in run_CyclicVoltammetry
data = self.comm.usb_collect_data()
File "C:\Users\Avinash\OneDrive - hyderabad.bits-pilani.ac.in\Documents\PSoC Creator\Potentiostat_RevA8.cydsn\Python Scripts\Potentiostat_communication.py", line 87, in usb_collect_data
data_collect = self.usb_read(64,timeout=10000)
File "C:\Users\Avinash\OneDrive - hyderabad.bits-pilani.ac.in\Documents\PSoC Creator\Potentiostat_RevA8.cydsn\Python Scripts\Potentiostat_communication.py", line 83, in usb_read
print(self.ep_in.read(size, timeout))
File "C:\Users\Avinash\AppData\Local\Programs\Python\Python310\lib\site-packages\usb\core.py", line 301, in read
return self.device.read(self.bEndpointAddress, size, self.interface, timeout)
File "C:\Users\Avinash\AppData\Local\Programs\Python\Python310\lib\site-packages\usb\core.py", line 656, in read
return fn(
File "C:\Users\Avinash\AppData\Local\Programs\Python\Python310\lib\site-packages\usb\backend\libusb0.py", line 481, in bulk_read
return self.__read(_lib.usb_bulk_read,
File "C:\Users\Avinash\AppData\Local\Programs\Python\Python310\lib\site-packages\usb\backend\libusb0.py", line 566, in __read
ret = int(_check(fn(
File "C:\Users\Avinash\AppData\Local\Programs\Python\Python310\lib\site-packages\usb\backend\libusb0.py", line 387, in _check
raise USBError(errmsg, ret)
usb.core.USBError: [Errno None] b'libusb0-dll:err [_usb_reap_async] timeout error\n'
Exception ignored in: <function Device.__del__ at 0x000002314E8A0EE0>
Traceback (most recent call last):
File "C:\Users\Avinash\AppData\Local\Programs\Python\Python310\lib\site-packages\usb\core.py", line 740, in __del__
File "C:\Users\Avinash\AppData\Local\Programs\Python\Python310\lib\site-packages\usb\core.py", line 191, in dispose
File "C:\Users\Avinash\AppData\Local\Programs\Python\Python310\lib\site-packages\usb\core.py", line 188, in release_all_interfaces
File "C:\Users\Avinash\AppData\Local\Programs\Python\Python310\lib\site-packages\usb\core.py", line 124, in managed_release_interface
File "C:\Users\Avinash\AppData\Local\Programs\Python\Python310\lib\site-packages\usb\backend\libusb0.py", line 469, in release_interface
File "C:\Users\Avinash\AppData\Local\Programs\Python\Python310\lib\site-packages\usb\backend\libusb0.py", line 387, in _check
usb.core.USBError: [Errno None] b'libusb0-dll:err [release_interface] could not release interface 0, win error: The device does not recognize the command.\r\n'
PS C:\Users\Avinash\OneDrive - hyderabad.bits-pilani.ac.in\Documents\PSoC Creator\Potentiostat_RevA8.cydsn\Python Scripts>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What to choose?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
May be, I'm a little picky, but the title of this discussion is
"How to resolve conflict type error?"
And I hope that I have already provided you the answer.
So if you need answer(s) to more question(s) would you create a new discussion with
appropriate title so that others can notice the problem point and help you.
Probably I will try, too.
moto
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Is the USBFS problem has occurred?? It is not executed properly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Continuing target program
The target program has stopped at: file: main.c line: 88 function: main address: 0x0000015A. Please solve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
After debug
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What is the meaning debugging is still running
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
shuvra1,
Remember when you commented out this code in "general_functions.h"?
/*void helper_LCD_write0(char message[]);
void helper_LCD_write1(char message[]);
void helper_LCD_format0(uint16 message);
void helper_LCD_format1(uint16 message);
void helper_LCD_clear0(void);
void helper_LCD_clear1(void);*/
Get rid of the comment and the "Implicit declaration" warning goes away.
"Engineering is an Art. The Art of Compromise."
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
shuvra1,
void helper_LCD_write0(char message[]);
void helper_LCD_write1(char message[]);
void helper_LCD_format0(uint16 message);
void helper_LCD_format1(uint16 message);
void helper_LCD_clear0(void);
void helper_LCD_clear1(void);
These are functions used by the "Character_LCD" component.
Calls to the above functions write to the LCD.
On the Cy8CKIT-050 used by Olav Bjerke for his thesis has a 16 character, 2 line LCD display. This is what the "Character_LCD" component and it's functions are configured for.
The CY8CKIT-059 DOES NOT come with an LCD display.
What problem are you trying to solve?
"Engineering is an Art. The Art of Compromise."
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Continuing target program
The target program has stopped at: file: main.c line: 88 function: main address: 0x0000015A
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content