I have FLOWCODE 6 with a PIC24FJ128GA010 (16bit) with this problems:
Here, I will open the external code with the macro dataZWMS_CycleStorage
and I will send the variable FCV_SENSOR to the code.
Like this in C-Code show the picture:
dataZWMS_CycleStorage(FCV_SENSOR);
The compiler wrote this error:
undefined reference to `dataZWMS_CycleStorage'
Error returned from [pic30-gcc.exe]
The C-Code was generated but not the hex file.
If I compile the C-Code in MPLAB X IDE, then I have no error and the Hex-File was generated
Who can help me here or has an idea..???
So that the hex-file will generated in FLOWCODE 6
_______________________________________________________________________________________________________________
The next problems is, I have a lot of "warning" although the program works???
Like this:
Sensor_18.11.2016.c: In function 'FCD_047b1_RS232_Sensor__SendString':
Sensor_18.11.2016.c:545: warning: pointer targets in passing argument 1 of 'FCI_GETLENGTH' differ in signedness
Sensor_18.11.2016.c: In function 'FCD_08f41_adc_base__GetString':
Sensor_18.11.2016.c:969: warning: pointer targets in passing argument 3 of 'FCI_FLOAT_TO_STRING' differ in signedness
Sensor_18.11.2016.c: In function 'FCD_04071_LCD__PrintString':
Sensor_18.11.2016.c warning: pointer targets in passing argument 1 of 'FCI_GETLENGTH' differ in signedness
Sensor_18.11.2016.c: In function 'FCD_04071_LCD__PrintNumber':
Sensor_18.11.2016.c warning: pointer targets in passing argument 2 of 'FCI_TOSTRING' differ in signedness
Sensor_18.11.2016.c: In function 'FCD_04071_LCD__PrintFormattedNumber':
Sensor_18.11.2016.c warning: pointer targets in passing argument 2 of 'FCI_TOSTRU32' differ in signedness
Sensor_18.11.2016.c warning: pointer targets in passing argument 2 of 'FCI_TOSTRS32' differ in signedness
Sensor_18.11.2016.c: In function 'FCM_Sensor':
Sensor_18.11.2016.c warning: implicit declaration of function 'dataZWMS_CycleStorage'
Sensor_18.11.2016.c: In function '_U2RXInterrupt':
Sensor_18.11.2016.c warning: PSV model not specified for '_U2RXInterrupt'; assuming 'auto_psv' this may affect latency
Sensor_18.11.2016.c: In function '_T1Interrupt':
Sensor_18.11.2016.c warning: PSV model not specified for '_T1Interrupt'; assuming 'auto_psv' this may affect latency
Thank you for all Infos
Wolfgang
Problems with Macro in external Code
Moderator: Benj
-
- Posts: 21
- Joined: Wed Jun 19, 2013 8:43 am
- Has thanked: 2 times
- Been thanked: 3 times
- Contact:
- LeighM
- Matrix Staff
- Posts: 2178
- Joined: Tue Jan 17, 2012 10:07 am
- Has thanked: 481 times
- Been thanked: 699 times
- Contact:
Re: Problems with Macro in external Code
Hi
You will need include the code for this C function, either directly, or via an #include "myCcode.c" directive, into the "Supplementary Code" section of Flowcode.
See the Flowcode menu and dialog Build->Project Options->General Options tab.
The warnings can be ignored.
You will need include the code for this C function, either directly, or via an #include "myCcode.c" directive, into the "Supplementary Code" section of Flowcode.
See the Flowcode menu and dialog Build->Project Options->General Options tab.
The warnings can be ignored.
-
- Posts: 21
- Joined: Wed Jun 19, 2013 8:43 am
- Has thanked: 2 times
- Been thanked: 3 times
- Contact:
Re: Problems with Macro in external Code
I must send the variable to this code!
Here you can see the the include files:
Here you can see the the include files:
- Attachments
-
- Code.jpg (95.91 KiB) Viewed 5679 times
- LeighM
- Matrix Staff
- Posts: 2178
- Joined: Tue Jan 17, 2012 10:07 am
- Has thanked: 481 times
- Been thanked: 699 times
- Contact:
Re: Problems with Macro in external Code
You will also need to either compile and link the external code, or include the source ...
-
- Posts: 21
- Joined: Wed Jun 19, 2013 8:43 am
- Has thanked: 2 times
- Been thanked: 3 times
- Contact:
Re: Problems with Macro in external Code
Is the same...
- Attachments
-
- Zwischenablage01.jpg (45.07 KiB) Viewed 5674 times
-
- Posts: 21
- Joined: Wed Jun 19, 2013 8:43 am
- Has thanked: 2 times
- Been thanked: 3 times
- Contact:
Re: Problems with Macro in external Code
Your idea was good, at the moment without errors
like this, here is the code very difficult
like this, here is the code very difficult
- Attachments
-
- Code.jpg (48.29 KiB) Viewed 5674 times