Quantcast
Channel: Cypress Semiconductor - USB - Known Problems and Solutions
Viewing all articles
Browse latest Browse all 153

EZ USB suite Eclipse code parser and SDCC , type '__bit' not resolved

$
0
0

Hello,

          I have tried to compile the bulkloop demo code installed with EZ USB suite, my target is an FX2 and I have the SDCC compiler installed.  It compiles OK, but if I make any change to the code resulting in an Eclipse parser checking pass, it breaks.  For example:

(in Fx2.h)  typedef __bit        BOOL;  (Eclipse: Type '__bit' could not be resolved)

                   extern __code BYTE   USB_AutoVector; (Eclipse: Multiple markers at this line    - Line breakpoint: Fx2.h      [line: 288]    - Syntax error)

                extern __code DEVICEDSCR        DeviceDscr; (Eclipse: Syntax error)

                 extern CONFIGDSCR __xdata*   EZUSB_GetConfigDscr(BYTE ConfigIdx); (Eclipse: Syntax error)

Somehow I have managed to get EZ USB Eclipse to not recognise the peculiarities of SDCC coding.  I have tried going into the code analysis menu and turning off 'symbol is not resolved''type cannot be resolved' and 'field cannot be resolved', but the first time it finds a function returning Bool it reports an error and doesnt compile

../fw.c:222: syntax error: token -> 'BOOL' ; column 4
../fw.c:252: warning 112: function 'HighSpeedCapable' implicit declaration

also, it doesnt like the nop delay macro.

This is probably an elementary error,  any ideas please?

Cheers

 

 

 

 


Viewing all articles
Browse latest Browse all 153


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>