Pic 18f4550 and USB

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 4.
To post in this forum you must have a registered copy of Flowcode 4 or higher. To sign up for this forum topic please use the "Online Resources" link in the Flowcode Help Menu.

Moderator: Benj

Post Reply
Henk
Posts: 40
Joined: Sun May 20, 2007 11:03 am
Location: Nederland
Contact:

Pic 18f4550 and USB

Post by Henk »

Hi all,
I use Flowcode 4.5 and when I do I choose Flowcode open a new Pic 18F4550 and I make a short program with the block USB serial and if I want to send it to the pic I get a foutmeling . Then there is upgrade your source boost.
Then I would have to surf to www.sourceboost.com to upgrade.
Who can tell me what to do .

ps
If I want to configure the pic4550 word he does not recognize in the list with pic micro configuration ( simple_- slot2 .

Greetings Henk Middendorp.

User avatar
Benj
Matrix Staff
Posts: 14865
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Contact:

Re: Pic 18f4550 and USB

Post by Benj »

Hello Henk,

You have to configure the 18F chips using the expert mode.
if I want to send it to the pic I get a foutmeling
Not sure what you mean here. Can you explain further.

Henk
Posts: 40
Joined: Sun May 20, 2007 11:03 am
Location: Nederland
Contact:

Re: Pic 18f4550 and USB

Post by Henk »

Benj wrote:Hello Henk,

You have to configure the 18F chips using the expert mode.
if I want to send it to the pic I get a foutmeling
Not sure what you mean here. Can you explain further.
Hi Ben,
thanks for your comment.
I first try to configure it in Expert config screen .
Can I find examples somewere?

Greetings Henk Middendorp.

User avatar
Benj
Matrix Staff
Posts: 14865
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Contact:

Re: Pic 18f4550 and USB

Post by Benj »

Hello Henk,

Yes there is an example here.
http://www.matrixtsl.com/mmforums/viewt ... 181#p68103

Let me know if you have any problems.

Henk
Posts: 40
Joined: Sun May 20, 2007 11:03 am
Location: Nederland
Contact:

Re: Pic 18f4550 and USB

Post by Henk »

Hello Ben.
I use flowcode 4.5 and a pic 18F4550 and I like the USB icon in my flowchart do I get this error .
What I try nothing helps.
What should I do?
Below you see the error?

le name: D:\Weerstation via WIFI\4550 1 keer proberen.c
Generated by: Flowcode v4.5.18.74
Date: Wednesday, November 25, 2015 20:00:17
Licence: Professional
Registered to: Henk Middendorp


http://www.matrixmultimedia.com


Launching the compiler...
e:\program files (x86)\matrix multimedia\flowcode v4\boostc\boostc_pic18_flowcode.exe -v -t PIC18F4550 "4550 1 keer proberen.c"
BoostC Optimizing C Compiler Version 7.04 (for PIC18 architecture)
http://www.sourceboost.com
Copyright(C) 2004-2011 Pavel Baranov
Copyright(C) 2004-2011 David Hobday

Single user Lite License (Unregistered) for 0 node(s)
Limitations: PIC18 max code size:8192 bytes, max RAM banks:2, Non commercial use only


4550 1 keer proberen.c
Starting preprocessor: e:\PROGRA~1\MATRIX~1\FLOWCO~1\boostc\pp.exe "4550 1 keer proberen.c" -i e:\PROGRA~1\MATRIX~1\FLOWCO~1\boostc\include -d _PIC18F4550 -la -c2 -o "4550 1 keer proberen.pp" -v -d _BOOSTC -d _PIC18 -d _CHAR_INDEX


..........

4550 1 keer proberen.c success

success

Return code = 0

Launching the linker/assembler...
e:\program files (x86)\matrix multimedia\flowcode v4\boostc\boostlink_pic.exe -ld "E:\Program Files (x86)\Matrix Multimedia\Flowcode V4\BoostC\lib" libc.pic18.lib flowcode.pic18.lib rand.pic18.lib float.pic18.lib "4550 1 keer proberen.obj" -t PIC18F4550 -d "D:\Weerstation via WIFI" -p "4550 1 keer proberen"
BoostLink Optimizing Linker Version 7.03
http://www.sourceboost.com
Copyright(C) 2004-2011 Pavel Baranov
Copyright(C) 2004-2011 David Hobday


Warning unreferenced functions removed:
FCI_FLOAT_TO_STRING in: E:\Program Files (x86)\Matrix Multimedia\Flowcode V4\FCD\internals.h
FCI_NUMBER_TO_HEX in: E:\Program Files (x86)\Matrix Multimedia\Flowcode V4\FCD\internals.h
FCI_STRING_TO_INT in: E:\Program Files (x86)\Matrix Multimedia\Flowcode V4\FCD\internals.h
FCI_STRING_TO_FLOAT in: E:\Program Files (x86)\Matrix Multimedia\Flowcode V4\FCD\internals.h
Wdt_Delay_S in: E:\Program Files (x86)\Matrix Multimedia\Flowcode V4\FCD\internals.h
Wdt_Delay_Ms in: E:\Program Files (x86)\Matrix Multimedia\Flowcode V4\FCD\internals.h
isinf in: E:\Program Files (x86)\Matrix Multimedia\Flowcode V4\FCD\internals.h
usb_get_state in: e:\PROGRA~1\MATRIX~1\FLOWCO~1\boostc\include\USB\pic_usb.c
usb_cdc_putc in: e:\PROGRA~1\MATRIX~1\FLOWCO~1\boostc\include\USB\usb_cdc_class.c
usb_cdc_rx_avail in: e:\PROGRA~1\MATRIX~1\FLOWCO~1\boostc\include\USB\usb_cdc_class.c
usb_cdc_tx_empty in: e:\PROGRA~1\MATRIX~1\FLOWCO~1\boostc\include\USB\usb_cdc_class.c
usb_cdc_print_str in: e:\PROGRA~1\MATRIX~1\FLOWCO~1\boostc\include\USB\usb_cdc_class.c
usb_ep_get_rx_buffer in: e:\PROGRA~1\MATRIX~1\FLOWCO~1\boostc\include\USB\usb_cdc_class.c
FCD_USBSerial0_SendByte in: D:\Weerstation via WIFI\4550 1 keer proberen.c
FCD_USBSerial0_SendString in: D:\Weerstation via WIFI\4550 1 keer proberen.c
FCD_USBSerial0_ReadByte in: D:\Weerstation via WIFI\4550 1 keer proberen.c
FCD_USBSerial0_ReadString in: D:\Weerstation via WIFI\4550 1 keer proberen.c

License restricted by the following files:
4550 1 keer proberen.obj
Recompile the code with a less restrictive compiler license!
License exceeded by RAM: 183 bytes
License exceeded by ROM: 0 bytes

You have reached the limit of the Lite License (Unregistered)
PIC18 max code size:8192 bytes, max RAM banks:2, Non commercial use only
You can upgrade your license. Please visit: http://www.sourceboost.com


failure

Return code = -2

Assembleren mislukt vanwege de foutmelding:


FINISHED

User avatar
medelec35
Valued Contributor
Valued Contributor
Posts: 8925
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Contact:

Re: Pic 18f4550 and USB

Post by medelec35 »

Hi Henk,
BoostC is intergratated within Flowcode.
So if BoostC requirees upgrading then its Matrix TS whos has to upgrade Boost C
It looks like you have manually upgraded Boostc which has the effect of turning your V4 professional into V4 free version which only allows limited ROM space,
Your flowchart just exceeds maxing allowed ROM.
You could try selecting Flowcode 4 in control panel and select repair.
That should turn Flowcode V4 back into full professional version.

Was there a particular reason for trying to update BoostC?
Did your target device not work with boostC that was with Flowcode V4.5.18.74?
The above version of flowcode does have 18F4550
Martin

Henk
Posts: 40
Joined: Sun May 20, 2007 11:03 am
Location: Nederland
Contact:

Re: Pic 18f4550 and USB

Post by Henk »

Hello Medelec35 ,
Thank you for your response.
I have found the error my program was too big so that the error arose .

I have another question,
How can I tell if there is data traffic on the lines D + and D-. Perhaps through LEDs in the D + and D- line ?
Or is there another solution?

Henk.

Henk
Posts: 40
Joined: Sun May 20, 2007 11:03 am
Location: Nederland
Contact:

Re: Pic 18f4550 and USB

Post by Henk »

Hi All,
I configured the 18F4550 chip expert in the config screen .
If I make a simple flowchart with a LED on output rb0 and I send it to the chip then led the fire .
But once I got the USB icon in the flowchart place and I send it to the chip the led is not burning .
What is wrong?

Greetings Henk Middendorp

Post Reply