No MACROS generated from pins component in psoc6 ??

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

cross mob
dany_2093061
Level 1
Level 1

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
1 Solution

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
6 Replies
AnkitaS_51
Employee
Employee
100 likes received 50 likes received 25 likes received

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

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

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,

0 Likes

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

0 Likes

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