Flowcode4 : an another problem with custom component
Posted: Sun Dec 30, 2012 4:27 pm
Hi,
I'm trying to build an HMI on a MikroMedia Board For PIC18FJ from Mikroelectronika.
In this board I use a TFT graphical LCD and the touch plane.
As it's something for my students, I use Flowcode to develop the final software.
Before this step, I've verified all graphical and touch plane basic functions in a project compiled with Microchip C18 (v3.40) C compiler.
I draw circles, rectangles, texts. In contact with the touch plane, I can find the X-Y coordonates and display them. All right !
I'd like that my students do the same things but more simply by using the custom component and its functions I've developped.
Now I'have to translate in Flowcode C language (special version of BoostC compiler).
This preparation needs to update the PIC_custom.c files with the correct code.
Then in a Flowcode file, I compile the code in C (In french Puce : Compiler --> Hex) Then I load the .hex file in the board with Microchip ICD2 programmer.
I don't simulate anything.
1/Project FlowcodeValidTFT : With just graphical functions (tft_* functions), there's no problem. The compilation goes right and I can program the board.
The program runs well. I'd tried to send the zipped file but it's too big !
2/Project TstTactile : when I add touch plane functions (tact_* functions) to graphical functions in PIC_Custom.c file, the compilation fails with
a lot of error messages.
The problem is in 909:8 line of TstTactile.c file. The compilator can't change the name of "tact_anX" function in "FCD_Custom0_tact_anX" as required
by Flowcode compiler.
After searching in C code, I don't understand this result !!! Has somebody an idea for the solution ? Thanks.
I put in TstTactile.zip, all files to see the problem. Copy the PIC_Custom TFT TACT.c in Flowcode Components directory and rename it in PIC_Custom.c.
I'm trying to build an HMI on a MikroMedia Board For PIC18FJ from Mikroelectronika.
In this board I use a TFT graphical LCD and the touch plane.
As it's something for my students, I use Flowcode to develop the final software.
Before this step, I've verified all graphical and touch plane basic functions in a project compiled with Microchip C18 (v3.40) C compiler.
I draw circles, rectangles, texts. In contact with the touch plane, I can find the X-Y coordonates and display them. All right !
I'd like that my students do the same things but more simply by using the custom component and its functions I've developped.
Now I'have to translate in Flowcode C language (special version of BoostC compiler).
This preparation needs to update the PIC_custom.c files with the correct code.
Then in a Flowcode file, I compile the code in C (In french Puce : Compiler --> Hex) Then I load the .hex file in the board with Microchip ICD2 programmer.
I don't simulate anything.
1/Project FlowcodeValidTFT : With just graphical functions (tft_* functions), there's no problem. The compilation goes right and I can program the board.
The program runs well. I'd tried to send the zipped file but it's too big !
2/Project TstTactile : when I add touch plane functions (tact_* functions) to graphical functions in PIC_Custom.c file, the compilation fails with
a lot of error messages.
The problem is in 909:8 line of TstTactile.c file. The compilator can't change the name of "tact_anX" function in "FCD_Custom0_tact_anX" as required
by Flowcode compiler.
After searching in C code, I don't understand this result !!! Has somebody an idea for the solution ? Thanks.
I put in TstTactile.zip, all files to see the problem. Copy the PIC_Custom TFT TACT.c in Flowcode Components directory and rename it in PIC_Custom.c.