cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC Creator & Designer Software

dany_2093061
New Contributor

Trying to move one of our designs from the PSoC4 platform to PSoC6 and having a lot of work. Many of the function call has changed names and

now the latest problem seems to be that using the Pins component with aliases for the pins will not any more generate #define macros

for referring to the pin.

Also the links from "Help->Support->*" seems to point to some nonexeisting site 😞

Deeply dissapointed with the many bugs in the PSoC6 components...

0 Likes
Reply
1 Solution
AnkitaS_51
Employee

Hi,

You will get this \GeneratedSource\cycfg_pins.h. file by following the steps which as follows:

Go to File->new -> ModusToolbox Application

and then select the Device .

then Import the ModusToolbox based CE project .

modus.mk is the project file to be imported or opened.

I did so and I was able to see the file as shown in this image below:

pastedImage_0.png

Note: Ensure that your psoc6pdl_Cortex-M4 file is opened.

Thanks,

View solution in original post

0 Likes
Reply
6 Replies
AnkitaS_51
Employee

Hi,

Please refer these Code Examples for GPIO usage in PSoC6, this will give an idea of all the possibility of usage available in PSoC6:

https://www.cypress.com/documentation/code-examples/ce220263-psoc-6-mcu-gpio-pins-example

https://www.cypress.com/documentation/code-examples/ce219521-psoc-6-mcu-gpio-interrupt

Thanks,

Ankita

0 Likes
Reply
dany_2093061
New Contributor

From the document you pointed out:

The preferred read method for use with ModusToolbox is using #defines provided by the configuration tool pin names. Pin name

#defines are located in \\<ProjectName>_config\GeneratedSource\cycfg_pins.h.

The problem is the THERE IS NO SUCH FILE. Searched all the generated files for any kind of reference to

the ALIAS names I gave the pins, but with 0 result...

0 Likes
Reply
AnkitaS_51
Employee

Hi,

You will get this \GeneratedSource\cycfg_pins.h. file by following the steps which as follows:

Go to File->new -> ModusToolbox Application

and then select the Device .

then Import the ModusToolbox based CE project .

modus.mk is the project file to be imported or opened.

I did so and I was able to see the file as shown in this image below:

pastedImage_0.png

Note: Ensure that your psoc6pdl_Cortex-M4 file is opened.

Thanks,

View solution in original post

0 Likes
Reply
dany_2093061
New Contributor

I don't have any Modus Toolbox in the File->new selection ???

0 Likes
Reply
AnkitaS_51
Employee

Hi,

You should find something like this as highlighted

pastedImage_3.png

If you are unable to find so please try uninstalling and then installing ModusToolbox from this link:

https://www.cypress.com/products/modustoolbox-software-environment

Regards,

Ankita

0 Likes
Reply