WLAN component gives compiling error

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 5.
To post in this forum you must have a registered copy of Flowcode 5 or higher.

Moderator: Benj

Post Reply
PICFriend
Posts: 36
Joined: Sat Nov 13, 2010 6:50 pm
Location: Germany

WLAN component gives compiling error

Post by PICFriend »

Hello benj, (if you read this post - remember the ElektorLive! We talked about the Wiznet devices on my breadboards.)

I ordered the WIZNet 810mj and it works fine with the webserver component.
I also ordered the WIZNet 620wi WLAN module that has got a different pinout to the WIZNet 610, we talked about, too.

When i compile the WLAN programm (fcf - file) i get some compiling error as shown below.

Can you help me? What is going wrong there? :(
I attached the fcf. Perhaps you can show me a bidirectional example; BYTE from PIC to html and from html back to PIC.
:?:
*******************************************************************************
File name: D:\Flowcode V5 Projekte\WLAN\WebserverWLAN.c
Title:
Description:
Generated by: Flowcode v5.4.0.0
Date: Saturday, November 03, 2012 21:43:18
Licence: Professional
Registered to: Carsten Laukamp
Licence key: 7YTPQN
http://www.matrixmultimedia.com
Start des Compilers...
C:\Programme\Flowcode\v5\Tools\boostc\boostc_pic18_flowcode.exe -v -t PIC18F2550 "WebserverWLAN.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

Licensed to FlowCode User under Single user Pro License for 1 node(s)
Limitations: PIC18 max code size:Unlimited, max RAM banks:Unlimited


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


..........................................

WebserverWLAN.c success

success
Rückgabewert = 0
Start von Linker/Assembler...
C:\Programme\Flowcode\v5\Tools\boostc\boostlink_pic.exe -ld "C:\Programme\Flowcode\v5\Tools\BoostC\lib" libc.pic18.lib rand.pic18.lib float.pic18.lib "WebserverWLAN.obj" -t PIC18F2550 -d "D:\Flowcode V5 Projekte\WLAN" -p "WebserverWLAN"
BoostLink Optimizing Linker Version 7.03
http://www.sourceboost.com
Copyright(C) 2004-2011 Pavel Baranov
Copyright(C) 2004-2011 David Hobday


Error: Unresolved external function:'FC_CAL_UART_Send_1(unsigned short)'
Error: Unresolved external function:'FC_CAL_UART_Send_1(unsigned short)'
Error: Unresolved external function:'FC_CAL_UART_Send_1(unsigned short)'
Error: Unresolved external function:'FC_CAL_UART_Send_1(unsigned short)'
Error: Unresolved external function:'FC_CAL_UART_Send_1(unsigned short)'
Error: Unresolved external function:'FC_CAL_UART_Send_1(unsigned short)'
Error: Unresolved external function:'FC_CAL_UART_Send_1(unsigned short)'
Error: Unresolved external function:'FC_CAL_UART_Send_1(unsigned short)'
Error: Unresolved external function:'FC_CAL_UART_Send_1(unsigned short)'
Error: Unresolved external function:'FC_CAL_UART_Send_1(unsigned short)'
Error: Unresolved external function:'FC_CAL_UART_Send_1(unsigned short)'
Error: Unresolved external function:'FC_CAL_UART_Send_1(unsigned short)'
Error: Unresolved external function:'FC_CAL_UART_Send_1(unsigned short)'
Error: Unresolved external function:'FC_CAL_UART_Send_1(unsigned short)'
Error: Unresolved external function:'FC_CAL_UART_Send_1(unsigned short)'
Error: Unresolved external function:'FC_CAL_UART_Send_1(unsigned short)'
Error: Unresolved external function:'FC_CAL_UART_Send_1(unsigned short)'
Error: Unresolved external function:'FC_CAL_UART_Send_1(unsigned short)'
Error: Unresolved external function:'FC_CAL_UART_Send_1(unsigned short)'
Error: Unresolved external function:'FC_CAL_UART_Send_1(unsigned short)'
Error: Unresolved external function:'FC_CAL_UART_Send_1(unsigned short)'
Error: Unresolved external function:'FC_CAL_UART_Send_1(unsigned short)'
Error: Unresolved external symbol, function:FC_CAL_UART_Send_1
Error: Unresolved external function:'FC_CAL_UART_Send_1(unsigned short)'

Error: Unresolved external symbol, function:FC_CAL_UART_Send_1
Error: Unresolved external function:'FC_CAL_UART_Send_1(unsigned short)'
Error: Unresolved external symbol, function:FC_CAL_UART_Send_1
Error: Unresolved external function:'FC_CAL_UART_Send_1(unsigned short)'

Error: Unresolved external symbol, function:FC_CAL_UART_Send_1
Error: Unresolved external function:'FC_CAL_UART_Send_1(unsigned short)'

Error: Unresolved external symbol, function:FC_CAL_UART_Send_1
Error: Unresolved external function:'FC_CAL_UART_Send_1(unsigned short)'

Error: Unresolved external symbol, function:FC_CAL_UART_Send_1
Error: Unresolved external function:'FC_CAL_UART_Send_1(unsigned short)'

Error: Unresolved external symbol, function:FC_CAL_UART_Send_1


failure
Rückgabewert = -2
Flowcode konnte die ASM-Datei nicht assemblieren, da folgende Fehler auftraten:



BEENDET
Attachments
WebserverWLAN.fcf
the bad one
(16.9 KiB) Downloaded 268 times

PICFriend
Posts: 36
Joined: Sat Nov 13, 2010 6:50 pm
Location: Germany

Re: WLAN component gives compiling error

Post by PICFriend »

Hi!

Nobody got an idea?

Carsten

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times

Re: WLAN component gives compiling error

Post by LeighM »

Hi,

Your Flowcode project fcf seems to be fine, as it compiles OK on my PC.
So I would think you need to check your Flowcode 5 installation.
Do the CAL, Components etc sub-directories exist in thier expected locations in Flowcode\v5 ?
Are there any other CAL, Component etc directories on C: or D: that might have paths relative to the exe or project directories?

Regards,
Leigh

PICFriend
Posts: 36
Joined: Sat Nov 13, 2010 6:50 pm
Location: Germany

Re: WLAN component gives compiling error

Post by PICFriend »

Hallo again,

I´ve had a look into this and changed the compiler settings to default, but no change.
Why is it working at your computer?

My FC version is 5.4.0.0.
What shoul i do next?

##So I would think you need to check your Flowcode 5 installation.
uninstall and new install?

##Do the CAL, Components etc sub-directories exist in thier expected locations in Flowcode\v5 ?
yes, all in the path C:\Programme\Flowcode\v5

##Are there any other CAL, Component etc directories on C: or D: that might have paths relative to the exe or project directories?
no, there are now other files

When i remove the Wlan initialize in the .fcf program, it compiles fine. Every other thing is fine, too.



Carsten

PICFriend
Posts: 36
Joined: Sat Nov 13, 2010 6:50 pm
Location: Germany

Re: WLAN component gives compiling error

Post by PICFriend »

Hey,

I´ve read this topic

http://www.matrixmultimedia.com/mmforum ... D_1#p33850

and replaced the PIC_CAL_UART.c file. Now is compiling like this:

File name: D:\Flowcode V5 Projekte\WLAN\WebserverWLAN.c
Title:
Description:
Generated by: Flowcode v5.4.0.0
Date: Friday, November 09, 2012 14:18:32
Licence: Professional
Registered to: Carsten Laukamp
Licence key: 7YTPQN
http://www.matrixmultimedia.com
Start des Compilers...
C:\Programme\Flowcode\v5\Tools\boostc\boostc_pic18_flowcode.exe -v -t PIC18F2550 "WebserverWLAN.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

Licensed to FlowCode User under Single user Pro License for 1 node(s)
Limitations: PIC18 max code size:Unlimited, max RAM banks:Unlimited


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


........................................

WebserverWLAN.c success

success
Rückgabewert = 0
Start von Linker/Assembler...
C:\Programme\Flowcode\v5\Tools\boostc\boostlink_pic.exe -ld "C:\Programme\Flowcode\v5\Tools\BoostC\lib" libc.pic18.lib rand.pic18.lib float.pic18.lib "WebserverWLAN.obj" -t PIC18F2550 -d "D:\Flowcode V5 Projekte\WLAN" -p "WebserverWLAN"
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:
FC_CAL_Port_Out__x in: C:\Programme\Flowcode\v5\CAL\PIC\PIC_CAL_IO.c
FC_CAL_Port_Out_DDR__x in: C:\Programme\Flowcode\v5\CAL\PIC\PIC_CAL_IO.c
FC_CAL_Port_In__x in: C:\Programme\Flowcode\v5\CAL\PIC\PIC_CAL_IO.c
FC_CAL_Port_In_DDR__x in: C:\Programme\Flowcode\v5\CAL\PIC\PIC_CAL_IO.c
Wdt_Delay_S in: C:\Programme\Flowcode\v5\CAL\PIC\PIC_CAL_Delay.c
Wdt_Delay_Ms in: C:\Programme\Flowcode\v5\CAL\PIC\PIC_CAL_Delay.c
FCI_DELAYINT_US in: C:\Programme\Flowcode\v5\CAL\PIC\PIC_CAL_Delay.c
FCI_DELAYINT_MS in: C:\Programme\Flowcode\v5\CAL\PIC\PIC_CAL_Delay.c
FCI_DELAYINTWDT_MS in: C:\Programme\Flowcode\v5\CAL\PIC\PIC_CAL_Delay.c
FCI_DELAYINT_S in: C:\Programme\Flowcode\v5\CAL\PIC\PIC_CAL_Delay.c
FCI_DELAYINTWDT_S in: C:\Programme\Flowcode\v5\CAL\PIC\PIC_CAL_Delay.c
FCI_GETCHAR in: C:\Programme\Flowcode\v5\CAL\PIC\PIC_CAL_String.c
FCI_GETLENGTH in: C:\Programme\Flowcode\v5\CAL\PIC\PIC_CAL_String.c
FCI_MIDSTRING in: C:\Programme\Flowcode\v5\CAL\PIC\PIC_CAL_String.c
FCI_LEFTSTRING in: C:\Programme\Flowcode\v5\CAL\PIC\PIC_CAL_String.c
FCI_RIGHTSTRING in: C:\Programme\Flowcode\v5\CAL\PIC\PIC_CAL_String.c
FCI_TOLOWER in: C:\Programme\Flowcode\v5\CAL\PIC\PIC_CAL_String.c
FCI_TOUPPER in: C:\Programme\Flowcode\v5\CAL\PIC\PIC_CAL_String.c
FCI_COMPARE in: C:\Programme\Flowcode\v5\CAL\PIC\PIC_CAL_String.c
FCI_FLOAT_TO_STRING in: C:\Programme\Flowcode\v5\CAL\PIC\PIC_CAL_String.c
FCI_NUMBER_TO_HEX in: C:\Programme\Flowcode\v5\CAL\PIC\PIC_CAL_String.c
FCI_STRING_TO_INT in: C:\Programme\Flowcode\v5\CAL\PIC\PIC_CAL_String.c
FCI_STRING_TO_FLOAT in: C:\Programme\Flowcode\v5\CAL\PIC\PIC_CAL_String.c
FCI_STRREV in: C:\Programme\Flowcode\v5\CAL\PIC\PIC_CAL_String.c
FCI_STRMOV in: C:\Programme\Flowcode\v5\CAL\PIC\PIC_CAL_String.c
FCI_SHEAD in: C:\Programme\Flowcode\v5\CAL\PIC\PIC_CAL_String.c
FCI_SCOPY in: C:\Programme\Flowcode\v5\CAL\PIC\PIC_CAL_String.c
isinf in: C:\Programme\Flowcode\v5\CAL\PIC\PIC_CAL_Float.c
flt_round in: C:\Programme\Flowcode\v5\CAL\PIC\PIC_CAL_Float.c
flt_floor in: C:\Programme\Flowcode\v5\CAL\PIC\PIC_CAL_Float.c
flt_ceil in: C:\Programme\Flowcode\v5\CAL\PIC\PIC_CAL_Float.c
FCM_INTERRUPT_TMR0 in: D:\Flowcode V5 Projekte\WLAN\WebserverWLAN.c
FCM_INTERRUPT_RB0INT in: D:\Flowcode V5 Projekte\WLAN\WebserverWLAN.c
FCM_INTERRUPT_PORTB in: D:\Flowcode V5 Projekte\WLAN\WebserverWLAN.c
FCD_ADC0_SampleADC in: D:\Flowcode V5 Projekte\WLAN\WebserverWLAN.c
FCD_ADC0_ReadAsInt in: D:\Flowcode V5 Projekte\WLAN\WebserverWLAN.c
FCD_ADC0_ReadAsVoltage in: D:\Flowcode V5 Projekte\WLAN\WebserverWLAN.c
FCD_ADC0_ReadAsString in: D:\Flowcode V5 Projekte\WLAN\WebserverWLAN.c
FCD_ADC0_ADC_RAW_Configure_Channel in: D:\Flowcode V5 Projekte\WLAN\WebserverWLAN.c
FCD_ADC0_ADC_RAW_Sample_Channel_Byte in: D:\Flowcode V5 Projekte\WLAN\WebserverWLAN.c
FCD_ADC0_ADC_RAW_Sample_Channel_Int in: D:\Flowcode V5 Projekte\WLAN\WebserverWLAN.c
FCD_ADC0_ADC_RAW_Average_Channel_Byte in: D:\Flowcode V5 Projekte\WLAN\WebserverWLAN.c
FCD_ADC0_ADC_RAW_Average_Channel_Int in: D:\Flowcode V5 Projekte\WLAN\WebserverWLAN.c
FCD_ADC0_ADC_RAW_Disable_Channel in: D:\Flowcode V5 Projekte\WLAN\WebserverWLAN.c
SendHTMLPage1 in: D:\Flowcode V5 Projekte\WLAN\WebserverWLAN.c
FCD_WLAN0_Receive_Incoming in: D:\Flowcode V5 Projekte\WLAN\WebserverWLAN.c
FCD_WLAN0_Connect_To_SSID in: D:\Flowcode V5 Projekte\WLAN\WebserverWLAN.c
FCD_WLAN0_Check_For_Page_Requests in: D:\Flowcode V5 Projekte\WLAN\WebserverWLAN.c
FCD_WLAN0_Write_Swap_Variable in: D:\Flowcode V5 Projekte\WLAN\WebserverWLAN.c
FCD_WLAN0_Read_Swap_Variable in: D:\Flowcode V5 Projekte\WLAN\WebserverWLAN.c
FCD_WLAN0_Read_Connection_Status in: D:\Flowcode V5 Projekte\WLAN\WebserverWLAN.c
FCD_WLAN0_Disable_Command_Mode in: D:\Flowcode V5 Projekte\WLAN\WebserverWLAN.c
FC_CAL_UART_Uninit_1 in: C:\Programme\Flowcode\v5\CAL\PIC\PIC_CAL_UART.c
FC_CAL_UART_Delay_1 in: C:\Programme\Flowcode\v5\CAL\PIC\PIC_CAL_UART.c

Building CASM file
Serious Warning: Possible sw stack corruption, function 'delay_us' called by more than one asynchronous thread (main/Task, interrupt, interrupt low)
Memory Usage Report
===================
RAM available:2048 bytes, used:174 bytes (8.5%), free:1874 bytes (91.5%),
Heap size:1874 bytes, Heap max single alloc:127 bytes
ROM available:32768 bytes, used:2518 bytes (7.7%), free:30250 bytes (92.3%)
success
Rückgabewert = 0
Start des Programmers...

The WARNING
Serious Warning: Possible sw stack corruption, function 'delay_us' called by more than one asynchronous thread (main/Task, interrupt, interrupt low)
Memory Usage Report
makes me nervous.

What i have to do?

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

Re: WLAN component gives compiling error

Post by Benj »

Hello,

I think this is part of the initialize routine and there is not actually any chance of an actual clash that could cause an issue. I will investigate but I'm fairly certain this is the cause.

Post Reply