How to resolve conflict type error? & Implicit declaration of a function?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
shuvra1
Level 5
Level 5
100 sign-ins 10 likes given 100 replies posted

shuvra1_0-1664258617065.png

shuvra1_1-1664258635951.png

 

 

0 Likes
1 Solution
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

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

View solution in original post

49 Replies
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

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

0 Likes

Did not get your point, Kindly resolve the issue. Attached are the files. Modify it for Cypress -059 & revert me back.

0 Likes
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

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

0 Likes
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Hi,

Oh, I'm sorry that you already have them in the header.

moto

0 Likes
shuvra1
Level 5
Level 5
100 sign-ins 10 likes given 100 replies posted

Kindly resolve the issue

0 Likes
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

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

0 Likes
shuvra1
Level 5
Level 5
100 sign-ins 10 likes given 100 replies posted

Send me a modified file & one screen shot of the PSoC creator interface.

0 Likes
shuvra1
Level 5
Level 5
100 sign-ins 10 likes given 100 replies posted

Use 4.2 PSoc creator

0 Likes
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Sorry, I had only 4.4

0 Likes
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

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

 

Based on your this work kindly help me to complete this project as an experimental replication. It's a humble request.

 

Note- Potentiostat_RevA8 is the original project

0 Likes
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

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

0 Likes
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Hi,

I did the same for Design01.cydsn.zip now it should be compiled.

For 2.zip there are missing files, so that I can not repair the project.

moto

shuvra1
Level 5
Level 5
100 sign-ins 10 likes given 100 replies posted

Please change these values to your work. As I have checked with the reference project I have shared just now with you. Note- Potentiostat_RevA8 is the original projectio2.pngio.pngScreenshot 2022-09-27 102016.pngScreenshot 2022-09-27 101925.png

0 Likes
shuvra1
Level 5
Level 5
100 sign-ins 10 likes given 100 replies posted

Its a humble request I am struggling from 4 weeks. Please . Willing to laid down to your foot. Please do that

 

This is the cysch file. Modified.

0 Likes
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

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

0 Likes

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.

shuvra1_1-1664269831538.png

 

https://blog.mbedded.ninja/programming/microcontrollers/psoc/useful-psoc-macros/

shuvra1_0-1664269663869.png

 

0 Likes
shuvra1
Level 5
Level 5
100 sign-ins 10 likes given 100 replies posted

shuvra1_1-1663814885390.png

0 Likes
shuvra1
Level 5
Level 5
100 sign-ins 10 likes given 100 replies posted

The project owner -(He) has done the development kit & I want to do it with the prototyping kit. cypress -059

0 Likes
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

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

I am struggling for the last 4 weeks. It will be obliged if you can provide me the project with all available data/code mentioned in his thesis. Kindly check that. In the appendix section.

shuvra1_0-1664270397126.png

 

shuvra1_0-1664270189661.png

 

Highly obliged.

 

0 Likes

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'

0 Likes
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

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

I do understand but here he has provided all adjacent code with detailed logic.  As  I have shared with you error I am facing Is due to USBFS?? 

0 Likes

How to change that ??

0 Likes

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>

0 Likes
shuvra1
Level 5
Level 5
100 sign-ins 10 likes given 100 replies posted

shuvra1_0-1664273662076.png

What to choose?

0 Likes
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

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

0 Likes

Is the USBFS problem has occurred?? It is not executed properly.

0 Likes

Continuing target program
The target program has stopped at: file: main.c line: 88 function: main address: 0x0000015A. Please solve

0 Likes
shuvra1
Level 5
Level 5
100 sign-ins 10 likes given 100 replies posted

shuvra1_0-1664282785193.png

After debug

0 Likes
shuvra1
Level 5
Level 5
100 sign-ins 10 likes given 100 replies posted

shuvra1_0-1664283055942.png

What is the meaning debugging is still running

0 Likes
Len_CONSULTRON
Level 9
Level 9
Beta tester 500 solutions authored 1000 replies posted

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.

Len
"Engineering is an Art. The Art of Compromise."
0 Likes
shuvra1
Level 5
Level 5
100 sign-ins 10 likes given 100 replies posted

It is the One - Please look in to it.

0 Likes

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.  

Len_CONSULTRON_0-1664284956775.png

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?

Len
"Engineering is an Art. The Art of Compromise."
0 Likes

Continuing target program
The target program has stopped at: file: main.c line: 88 function: main address: 0x0000015A

0 Likes
shuvra1
Level 5
Level 5
100 sign-ins 10 likes given 100 replies posted

shuvra1_0-1664283997520.png

 

0 Likes