Flowcode 5 PIC failling to compil with 18F47J53

Moderator: Benj

Mathy
Posts: 333
Joined: Mon Oct 05, 2009 2:39 pm
Has thanked: 30 times
Been thanked: 33 times
Contact:

Flowcode 5 PIC failling to compil with 18F47J53

Postby Mathy » Tue Feb 11, 2014 10:50 am

Hello,

I have this message when trying to compil with just the init usb serial macro and Flowcode 5.5.2.1 :

Code: Select all

C:\PROGRA~2\Flowcode\v5\Tools\boostc\include\USB\pic_usb_buffer_mgt.c(60:26): error: unknown identifier 'USBEP0O'
C:\PROGRA~2\Flowcode\v5\Tools\boostc\include\USB\pic_usb_buffer_mgt.c(60:25): error: failed to set fixed address for variable 'bd0out'
C:\PROGRA~2\Flowcode\v5\Tools\boostc\include\USB\pic_usb_buffer_mgt.c(61:26): error: unknown identifier 'USBEP0I'
C:\PROGRA~2\Flowcode\v5\Tools\boostc\include\USB\pic_usb_buffer_mgt.c(61:25): error: failed to set fixed address for variable 'bd0in'
C:\PROGRA~2\Flowcode\v5\Tools\boostc\include\USB\pic_usb_buffer_mgt.c(62:26): error: unknown identifier 'USBEP1O'
C:\PROGRA~2\Flowcode\v5\Tools\boostc\include\USB\pic_usb_buffer_mgt.c(62:25): error: failed to set fixed address for variable 'bd1out'
C:\PROGRA~2\Flowcode\v5\Tools\boostc\include\USB\pic_usb_buffer_mgt.c(63:26): error: unknown identifier 'USBEP1I'
C:\PROGRA~2\Flowcode\v5\Tools\boostc\include\USB\pic_usb_buffer_mgt.c(63:25): error: failed to set fixed address for variable 'bd1in'
C:\PROGRA~2\Flowcode\v5\Tools\boostc\include\USB\pic_usb_buffer_mgt.c(64:26): error: unknown identifier 'USBEP2O'
C:\PROGRA~2\Flowcode\v5\Tools\boostc\include\USB\pic_usb_buffer_mgt.c(64:25): error: failed to set fixed address for variable 'bd2out'
C:\PROGRA~2\Flowcode\v5\Tools\boostc\include\USB\pic_usb_buffer_mgt.c(65:26): error: unknown identifier 'USBEP2I'
C:\PROGRA~2\Flowcode\v5\Tools\boostc\include\USB\pic_usb_buffer_mgt.c(65:25): error: failed to set fixed address for variable 'bd2in'
C:\PROGRA~2\Flowcode\v5\Tools\boostc\include\USB\pic_usb_buffer_mgt.c(66:26): error: unknown identifier 'USBEP3O'
C:\PROGRA~2\Flowcode\v5\Tools\boostc\include\USB\pic_usb_buffer_mgt.c(66:25): error: failed to set fixed address for variable 'bd3out'
C:\PROGRA~2\Flowcode\v5\Tools\boostc\include\USB\pic_usb_buffer_mgt.c(67:26): error: unknown identifier 'USBEP3I'
C:\PROGRA~2\Flowcode\v5\Tools\boostc\include\USB\pic_usb_buffer_mgt.c(67:25): error: failed to set fixed address for variable 'bd3in'


I have this one with the PWM init macro :


Code: Select all

C:\Program Files (x86)\Flowcode\v5\CAL\PIC\PIC_CAL_PWM.c(57): error: left operand must be l-value
C:\Program Files (x86)\Flowcode\v5\CAL\PIC\PIC_CAL_PWM.c(57:13): error: failed to generate expression
Flowcode1.c success

failure
Code retour = 1


I have this one with the rs232 component :

Code: Select all

Flowcode1.c
Starting preprocessor: C:\PROGRA~2\Flowcode\v5\Tools\boostc\pp.exe Flowcode1.c -i C:\PROGRA~2\Flowcode\v5\Tools\boostc\include -d _PIC18F47J53 -la -c2 -o Flowcode1.pp -v -d _BOOSTC -d _PIC18 -d _CHAR_INDEX

Flowcode1.c(313): error: missing right paren
Flowcode1.c(313): error: unexpected 'else'
Flowcode1.c(316): error:  failure

failure

....Code retour = 1


Is it possible to have a fix ?

Thank you for your help :)

User avatar
Benj
Matrix Staff
Posts: 14157
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4330 times
Been thanked: 4080 times
Contact:

Re: Flowcode 5 PIC failling to compil with 18F47J53

Postby Benj » Tue Feb 11, 2014 12:37 pm

Hello Mathy,

Wow that's a lot of problems. Ok I will take a look for you and see if I can get these sorted.

Mathy
Posts: 333
Joined: Mon Oct 05, 2009 2:39 pm
Has thanked: 30 times
Been thanked: 33 times
Contact:

Re: Flowcode 5 PIC failling to compil with 18F47J53

Postby Mathy » Tue Feb 11, 2014 2:24 pm

Hello Benj,

Thank you for your help :)

I don't know why but I had the problem with all MCU and the RS232 component.
After reinstall flowcode V5, I don't have this problem with all MCU anymore, 18F47J53 included.
I don't remember if I made some modification on the RS232 component but it is possible.

But I still have errors with PWM and USB on the 18F47J53.
These users thanked the author Mathy for the post:
Benj (Tue Feb 11, 2014 3:42 pm)
Rating: 5.56%
 

User avatar
Benj
Matrix Staff
Posts: 14157
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4330 times
Been thanked: 4080 times
Contact:

Re: Flowcode 5 PIC failling to compil with 18F47J53

Postby Benj » Tue Feb 11, 2014 3:43 pm

Hello,

That's great thanks for letting me know, one problem down :)

PWM issue is to do with pin remapping, is there specific pins you want to use for your PWM channels?

USB issue looks like the register mapping is not set up correctly for the device so I will look into this. Hopefully that's all the problem is and there are no major register changes.

Mathy
Posts: 333
Joined: Mon Oct 05, 2009 2:39 pm
Has thanked: 30 times
Been thanked: 33 times
Contact:

Re: Flowcode 5 PIC failling to compil with 18F47J53

Postby Mathy » Tue Feb 11, 2014 4:12 pm

Re,

Thank you for your reply,
I just begin the schematic so my layout is far far away :mrgreen:

I used the peripheral pin select feature in previous projects with 24FJ MCU in c code so if it is possible to explain me how to compile without error, I think I will be able to remap pin by myself later without asking you again and again.