USBFS_deviceAddress causes compiler error (AN82072)

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

cross mob
lock attach
Attachments are accessible only for community members.
jotic_1250681
Level 2
Level 2
First like received First like given Code Expert

I have followed the instructions in AN82072 "PSoC 3 and PSOc 5 USB General..." All components are up to date and USBFS configuration follows those in the app note.  I use a CY8CKIT-059 and downloaded the project referred to in the app note.  When I try to compile the program I get the following message:

prj.M0120:Build error: conflicting type qualifiers for 'USBFS_deviceAddress"   main.c, line 78, col 15

That line reads: extern uint8 USBFS_deviceAddress;

Any suggestions about how to correct the program so I can try the USB application?  Thank you.

Project attached.

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

Hi,

If you place your pointer on the error line, you can see more detail of the error.

002-aaa.JPG

In this case, USBFS_deviceAddress was defined as "volatile uint8" somewhere else.

So I changed the line to

   extern volatile uint8  USBFS_deviceAddress;

Then I could compile your project.

003-compiled.JPG

moto

View solution in original post

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

Hi,

If you place your pointer on the error line, you can see more detail of the error.

002-aaa.JPG

In this case, USBFS_deviceAddress was defined as "volatile uint8" somewhere else.

So I changed the line to

   extern volatile uint8  USBFS_deviceAddress;

Then I could compile your project.

003-compiled.JPG

moto

0 Likes