Error
Posted: Fri Mar 10, 2023 1:40 am
Hello,
I keep getting this error below. I have 3 RS232, 1 modbus slave, and a circular buffer. I narrowed down the problem. It is when I switch the channels for modbus slave and one of the RS232 to channel 2 and 4 and vice versa. I get the error message. I can't figure out why. I used to do this with no issue. Any suggestions are appreciated. I have attached my code below. Thank you
Target folder: C:\Users\jborja\OneDrive - ecotecco.com\Documents\Flosecode Ecotec\Flowcode\Inspectra\flowcode
Source name: C:\Users\jborja\OneDrive - ecotecco.com\Documents\Flosecode Ecotec\Flowcode\Inspectra\flowcode\Inspectra_macro.fcfx
Title:
Description:
Device: AVR.ATMEGA.ATMEGA2560
Generated by: Flowcode v10.0.1.18
Date: Thursday, March 09, 2023 17:32:31
Users: 1
Registered to: flowcode-developer (12097602)
Licence key: 69XV2A
https://www.flowcode.co.uk
Using <E-Blocks> inbuilt settings for compiler
Launching the compiler...
C:\ProgramData\MatrixTSL\FlowcodeV10\FCD\AVR\batchfiles\avra.bat "C:\Program Files (x86)\Flowcode\Common\Compilers\avrv5\\" atmega2560 "C:\Users\jborja\OneDrive - ecotecco.com\Documents\Flosecode Ecotec\Flowcode\Inspectra\flowcode\Inspectra_macro.elf" "C:\Users\jborja\OneDrive - ecotecco.com\Documents\Flosecode Ecotec\Flowcode\Inspectra\flowcode\Inspectra_macro.c" "C:\Users\jborja\OneDrive - ecotecco.com\Documents\Flosecode Ecotec\Flowcode\Inspectra\flowcode\Inspectra_macro.lst"
C:\Users\jborja\OneDrive - ecotecco.com\Documents\Flosecode Ecotec\Flowcode\Inspectra\flowcode>REM CRC: EA277D0C7EF9B4E537B79187D0BE7A25FA6080B4B01BE48BAF713429E4B690411241251B4A05C2B5828F4452C9F7348705C640EF477B79E0C7881D2E5EEC9BD69A0D46BD3B6AACB92DE4D84759EBB5079CA9DA2D2BBCDAE2A4D1C56CD1580BF5A24465F11D9C3B2DBA3F4E37F13004EE3637760F1F0B7DA0CC623CD30E3C7D6BAB4C3FE6151D92B8EC0ADD55E96639DAC02472BDE3806EF43AE3A028BD32A5DAE68BB191DA97CB6883A66D3C41849952BB2DD264AF32733E2C3050DA273BE4EE1FA30153290F2FAFBD2259D77AD477809E9C4D76400384BA5D2E1919BC6D834D57C406BC4A49D3F1
C:\Users\jborja\OneDrive - ecotecco.com\Documents\Flosecode Ecotec\Flowcode\Inspectra\flowcode>REM REVISION: 1.0
C:\Users\jborja\OneDrive - ecotecco.com\Documents\Flosecode Ecotec\Flowcode\Inspectra\flowcode>REM GUID: EA0828B2-5C70-41A5-8C54-F359DD5CC88B
C:\Users\jborja\OneDrive - ecotecco.com\Documents\Flosecode Ecotec\Flowcode\Inspectra\flowcode>REM DATE: 08\08\2022
C:\Users\jborja\OneDrive - ecotecco.com\Documents\Flosecode Ecotec\Flowcode\Inspectra\flowcode>REM DIR: FCD\AVR\batchfiles\avra.bat
C:\Users\jborja\OneDrive - ecotecco.com\Documents\Flosecode Ecotec\Flowcode\Inspectra\flowcode>"C:\Program Files (x86)\Flowcode\Common\Compilers\avrv5\\bin\avr-gcc.exe" -mmcu=atmega2560 -Os -ffunction-sections -fdata-sections -funsigned-char -o "C:\Users\jborja\OneDrive - ecotecco.com\Documents\Flosecode Ecotec\Flowcode\Inspectra\flowcode\Inspectra_macro.elf" "C:\Users\jborja\OneDrive - ecotecco.com\Documents\Flosecode Ecotec\Flowcode\Inspectra\flowcode\Inspectra_macro.c" -lm -Wl,-gc-sections
In file included from C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\includes.c
0,
from C:\Users\jborja\OneDrive - ecotecco.com\Documents\Flosecode Ecotec\Flowcode\Inspectra\flowcode\Inspectra_macro.h:782,
from C:\Users\jborja\OneDrive - ecotecco.com\Documents\Flosecode Ecotec\Flowcode\Inspectra\flowcode\Inspectra_macro.c:20:
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\AVR\AVR_CAL_UART.c:193:0: warning: "MX_HARD_BAUD_X" redefined
#define MX_HARD_BAUD_X (((MX_CLK_SPEED / MX_UART_BAUD_X) - 8) / 16) //Was - 16 but had issues with rounding down
^
In file included from C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\includes.c
0,
from C:\Users\jborja\OneDrive - ecotecco.com\Documents\Flosecode Ecotec\Flowcode\Inspectra\flowcode\Inspectra_macro.h:782,
from C:\Users\jborja\OneDrive - ecotecco.com\Documents\Flosecode Ecotec\Flowcode\Inspectra\flowcode\Inspectra_macro.c:20:
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\AVR\AVR_CAL_UART.c:199:0: note: this is the location of the previous definition
#define MX_HARD_BAUD_X (((MX_CLK_SPEED / MX_UART_BAUD_X) - 4) / 8)
^
C:\Users\jborja\OneDrive - ecotecco.com\Documents\Flosecode Ecotec\Flowcode\Inspectra\flowcode\Inspectra_macro.c: In function 'main':
C:\Users\jborja\OneDrive - ecotecco.com\Documents\Flosecode Ecotec\Flowcode\Inspectra\flowcode\Inspectra_macro.c
45: warning: passing argument 1 of 'FCD_01211_CircularBuffer_8bit__GetString' discards 'volatile' qualifier from pointer target type [-Wdiscarded-qualifiers]
C:\Users\jborja\OneDrive - ecotecco.com\Documents\Flosecode Ecotec\Flowcode\Inspectra\flowcode\Inspectra_macro.c:206:6: note: expected 'MX_CHAR * {aka char *}' but argument is of type 'volatile MX_CHAR * {aka volatile char *}'
//Local variable definitions
^
C:\Users\jborja\OneDrive - ecotecco.com\Documents\Flosecode Ecotec\Flowcode\Inspectra\flowcode\Inspectra_macro.c
77: warning: passing argument 1 of 'FCI_GETLENGTH' discards 'volatile' qualifier from pointer target type [-Wdiscarded-qualifiers]
In file included from C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\internals.c:376:0,
from C:\Users\jborja\OneDrive - ecotecco.com\Documents\Flosecode Ecotec\Flowcode\Inspectra\flowcode\Inspectra_macro.h:45,
from C:\Users\jborja\OneDrive - ecotecco.com\Documents\Flosecode Ecotec\Flowcode\Inspectra\flowcode\Inspectra_macro.c:20:
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\AVR\AVR_CAL_String.c:132:18: note: expected 'MX_STRING {aka unsigned char *}' but argument is of type 'volatile MX_CHAR * {aka volatile char *}'
static MX_UINT16 FCI_GETLENGTH(MX_STRING sStr1, MX_UINT16 iStr1_len)
^
C:\Users\jborja\OneDrive - ecotecco.com\Documents\Flosecode Ecotec\Flowcode\Inspectra\flowcode\Inspectra_macro.c
18: warning: passing argument 1 of 'FCI_MIDSTRING' discards 'volatile' qualifier from pointer target type [-Wdiscarded-qualifiers]
MX_UART_INT_CH2_CLR;
^
In file included from C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\internals.c:376:0,
from C:\Users\jborja\OneDrive - ecotecco.com\Documents\Flosecode Ecotec\Flowcode\Inspectra\flowcode\Inspectra_macro.h:45,
from C:\Users\jborja\OneDrive - ecotecco.com\Documents\Flosecode Ecotec\Flowcode\Inspectra\flowcode\Inspectra_macro.c:20:
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\AVR\AVR_CAL_String.c:140:18: note: expected 'MX_STRING {aka unsigned char *}' but argument is of type 'volatile MX_CHAR * {aka volatile char *}'
static MX_STRING FCI_MIDSTRING(MX_STRING sSrc, MX_UINT16 iSrc_len, MX_UINT16 iStart, MX_UINT16 iCount, MX_STRING sDst, MX_UINT16 iDst_len)
^
C:\Users\jborja\OneDrive - ecotecco.com\Documents\Flosecode Ecotec\Flowcode\Inspectra\flowcode\Inspectra_macro.c
124: warning: passing argument 5 of 'FCI_MIDSTRING' discards 'volatile' qualifier from pointer target type [-Wdiscarded-qualifiers]
In file included from C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\internals.c:376:0,
from C:\Users\jborja\OneDrive - ecotecco.com\Documents\Flosecode Ecotec\Flowcode\Inspectra\flowcode\Inspectra_macro.h:45,
from C:\Users\jborja\OneDrive - ecotecco.com\Documents\Flosecode Ecotec\Flowcode\Inspectra\flowcode\Inspectra_macro.c:20:
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\AVR\AVR_CAL_String.c:140:18: note: expected 'MX_STRING {aka unsigned char *}' but argument is of type 'volatile MX_CHAR * {aka volatile char *}'
static MX_STRING FCI_MIDSTRING(MX_STRING sSrc, MX_UINT16 iSrc_len, MX_UINT16 iStart, MX_UINT16 iCount, MX_STRING sDst, MX_UINT16 iDst_len)
^
C:\Users\jborja\OneDrive - ecotecco.com\Documents\Flosecode Ecotec\Flowcode\Inspectra\flowcode\Inspectra_macro.c
19: warning: passing argument 1 of 'FCI_LEFTSTRING' discards 'volatile' qualifier from pointer target type [-Wdiscarded-qualifiers]
In file included from C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\internals.c:376:0,
from C:\Users\jborja\OneDrive - ecotecco.com\Documents\Flosecode Ecotec\Flowcode\Inspectra\flowcode\Inspectra_macro.h:45,
from C:\Users\jborja\OneDrive - ecotecco.com\Documents\Flosecode Ecotec\Flowcode\Inspectra\flowcode\Inspectra_macro.c:20:
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\AVR\AVR_CAL_String.c:170:18: note: expected 'MX_STRING {aka unsigned char *}' but argument is of type 'volatile MX_CHAR * {aka volatile char *}'
static MX_STRING FCI_LEFTSTRING(MX_STRING sSrc, MX_UINT16 iSrc_len, MX_UINT16 iCount, MX_STRING sDst, MX_UINT16 iDst_len)
^
C:\Users\jborja\OneDrive - ecotecco.com\Documents\Flosecode Ecotec\Flowcode\Inspectra\flowcode\Inspectra_macro.c
64: warning: passing argument 4 of 'FCI_LEFTSTRING' discards 'volatile' qualifier from pointer target type [-Wdiscarded-qualifiers]
In file included from C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\internals.c:376:0,
from C:\Users\jborja\OneDrive - ecotecco.com\Documents\Flosecode Ecotec\Flowcode\Inspectra\flowcode\Inspectra_macro.h:45,
from C:\Users\jborja\OneDrive - ecotecco.com\Documents\Flosecode Ecotec\Flowcode\Inspectra\flowcode\Inspectra_macro.c:20:
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\AVR\AVR_CAL_String.c:170:18: note: expected 'MX_STRING {aka unsigned char *}' but argument is of type 'volatile MX_CHAR * {aka volatile char *}'
static MX_STRING FCI_LEFTSTRING(MX_STRING sSrc, MX_UINT16 iSrc_len, MX_UINT16 iCount, MX_STRING sDst, MX_UINT16 iDst_len)
^
C:\Users\jborja\OneDrive - ecotecco.com\Documents\Flosecode Ecotec\Flowcode\Inspectra\flowcode\Inspectra_macro.c
51: warning: passing argument 1 of 'FCI_STRING_TO_INT' discards 'volatile' qualifier from pointer target type [-Wdiscarded-qualifiers]
In file included from C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\internals.c:376:0,
from C:\Users\jborja\OneDrive - ecotecco.com\Documents\Flosecode Ecotec\Flowcode\Inspectra\flowcode\Inspectra_macro.h:45,
from C:\Users\jborja\OneDrive - ecotecco.com\Documents\Flosecode Ecotec\Flowcode\Inspectra\flowcode\Inspectra_macro.c:20:
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\AVR\AVR_CAL_String.c:676:18: note: expected 'MX_STRING {aka unsigned char *}' but argument is of type 'volatile MX_CHAR * {aka volatile char *}'
static MX_SINT32 FCI_STRING_TO_INT(MX_STRING String, MX_UINT16 MSZ_String)
^
In file included from C:\Users\jborja\OneDrive - ecotecco.com\Documents\Flosecode Ecotec\Flowcode\Inspectra\flowcode\Inspectra_macro.h:35:0,
from C:\Users\jborja\OneDrive - ecotecco.com\Documents\Flosecode Ecotec\Flowcode\Inspectra\flowcode\Inspectra_macro.c:20:
C:\Users\jborja\OneDrive - ecotecco.com\Documents\Flosecode Ecotec\Flowcode\Inspectra\flowcode\Inspectra_macro.c: At top level:
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\AVR\AVR_CAL_UART.c:492:37: error: redefinition of '__vector_36'
#define MX_UART_INT_CH2_FUNC ISR(USART1_RX_vect) {
^
C:\Users\jborja\OneDrive - ecotecco.com\Documents\Flosecode Ecotec\Flowcode\Inspectra\flowcode\Inspectra_macro.c
2: note: in expansion of macro 'MX_UART_INT_CH2_FUNC'
C:\Users\jborja\OneDrive - ecotecco.com\Documents\Flosecode Ecotec\Flowcode\Inspectra\flowcode\Inspectra_macro.c
6: note: previous definition of '__vector_36' was here
Error returned from [avr-gcc.exe]
C:\ProgramData\MatrixTSL\FlowcodeV10\FCD\AVR\batchfiles\avra.bat reported error code 0x1
Autoclose turned off
FINISHED
I keep getting this error below. I have 3 RS232, 1 modbus slave, and a circular buffer. I narrowed down the problem. It is when I switch the channels for modbus slave and one of the RS232 to channel 2 and 4 and vice versa. I get the error message. I can't figure out why. I used to do this with no issue. Any suggestions are appreciated. I have attached my code below. Thank you
Target folder: C:\Users\jborja\OneDrive - ecotecco.com\Documents\Flosecode Ecotec\Flowcode\Inspectra\flowcode
Source name: C:\Users\jborja\OneDrive - ecotecco.com\Documents\Flosecode Ecotec\Flowcode\Inspectra\flowcode\Inspectra_macro.fcfx
Title:
Description:
Device: AVR.ATMEGA.ATMEGA2560
Generated by: Flowcode v10.0.1.18
Date: Thursday, March 09, 2023 17:32:31
Users: 1
Registered to: flowcode-developer (12097602)
Licence key: 69XV2A
https://www.flowcode.co.uk
Using <E-Blocks> inbuilt settings for compiler
Launching the compiler...
C:\ProgramData\MatrixTSL\FlowcodeV10\FCD\AVR\batchfiles\avra.bat "C:\Program Files (x86)\Flowcode\Common\Compilers\avrv5\\" atmega2560 "C:\Users\jborja\OneDrive - ecotecco.com\Documents\Flosecode Ecotec\Flowcode\Inspectra\flowcode\Inspectra_macro.elf" "C:\Users\jborja\OneDrive - ecotecco.com\Documents\Flosecode Ecotec\Flowcode\Inspectra\flowcode\Inspectra_macro.c" "C:\Users\jborja\OneDrive - ecotecco.com\Documents\Flosecode Ecotec\Flowcode\Inspectra\flowcode\Inspectra_macro.lst"
C:\Users\jborja\OneDrive - ecotecco.com\Documents\Flosecode Ecotec\Flowcode\Inspectra\flowcode>REM CRC: EA277D0C7EF9B4E537B79187D0BE7A25FA6080B4B01BE48BAF713429E4B690411241251B4A05C2B5828F4452C9F7348705C640EF477B79E0C7881D2E5EEC9BD69A0D46BD3B6AACB92DE4D84759EBB5079CA9DA2D2BBCDAE2A4D1C56CD1580BF5A24465F11D9C3B2DBA3F4E37F13004EE3637760F1F0B7DA0CC623CD30E3C7D6BAB4C3FE6151D92B8EC0ADD55E96639DAC02472BDE3806EF43AE3A028BD32A5DAE68BB191DA97CB6883A66D3C41849952BB2DD264AF32733E2C3050DA273BE4EE1FA30153290F2FAFBD2259D77AD477809E9C4D76400384BA5D2E1919BC6D834D57C406BC4A49D3F1
C:\Users\jborja\OneDrive - ecotecco.com\Documents\Flosecode Ecotec\Flowcode\Inspectra\flowcode>REM REVISION: 1.0
C:\Users\jborja\OneDrive - ecotecco.com\Documents\Flosecode Ecotec\Flowcode\Inspectra\flowcode>REM GUID: EA0828B2-5C70-41A5-8C54-F359DD5CC88B
C:\Users\jborja\OneDrive - ecotecco.com\Documents\Flosecode Ecotec\Flowcode\Inspectra\flowcode>REM DATE: 08\08\2022
C:\Users\jborja\OneDrive - ecotecco.com\Documents\Flosecode Ecotec\Flowcode\Inspectra\flowcode>REM DIR: FCD\AVR\batchfiles\avra.bat
C:\Users\jborja\OneDrive - ecotecco.com\Documents\Flosecode Ecotec\Flowcode\Inspectra\flowcode>"C:\Program Files (x86)\Flowcode\Common\Compilers\avrv5\\bin\avr-gcc.exe" -mmcu=atmega2560 -Os -ffunction-sections -fdata-sections -funsigned-char -o "C:\Users\jborja\OneDrive - ecotecco.com\Documents\Flosecode Ecotec\Flowcode\Inspectra\flowcode\Inspectra_macro.elf" "C:\Users\jborja\OneDrive - ecotecco.com\Documents\Flosecode Ecotec\Flowcode\Inspectra\flowcode\Inspectra_macro.c" -lm -Wl,-gc-sections
In file included from C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\includes.c
from C:\Users\jborja\OneDrive - ecotecco.com\Documents\Flosecode Ecotec\Flowcode\Inspectra\flowcode\Inspectra_macro.h:782,
from C:\Users\jborja\OneDrive - ecotecco.com\Documents\Flosecode Ecotec\Flowcode\Inspectra\flowcode\Inspectra_macro.c:20:
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\AVR\AVR_CAL_UART.c:193:0: warning: "MX_HARD_BAUD_X" redefined
#define MX_HARD_BAUD_X (((MX_CLK_SPEED / MX_UART_BAUD_X) - 8) / 16) //Was - 16 but had issues with rounding down
^
In file included from C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\includes.c
from C:\Users\jborja\OneDrive - ecotecco.com\Documents\Flosecode Ecotec\Flowcode\Inspectra\flowcode\Inspectra_macro.h:782,
from C:\Users\jborja\OneDrive - ecotecco.com\Documents\Flosecode Ecotec\Flowcode\Inspectra\flowcode\Inspectra_macro.c:20:
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\AVR\AVR_CAL_UART.c:199:0: note: this is the location of the previous definition
#define MX_HARD_BAUD_X (((MX_CLK_SPEED / MX_UART_BAUD_X) - 4) / 8)
^
C:\Users\jborja\OneDrive - ecotecco.com\Documents\Flosecode Ecotec\Flowcode\Inspectra\flowcode\Inspectra_macro.c: In function 'main':
C:\Users\jborja\OneDrive - ecotecco.com\Documents\Flosecode Ecotec\Flowcode\Inspectra\flowcode\Inspectra_macro.c
C:\Users\jborja\OneDrive - ecotecco.com\Documents\Flosecode Ecotec\Flowcode\Inspectra\flowcode\Inspectra_macro.c:206:6: note: expected 'MX_CHAR * {aka char *}' but argument is of type 'volatile MX_CHAR * {aka volatile char *}'
//Local variable definitions
^
C:\Users\jborja\OneDrive - ecotecco.com\Documents\Flosecode Ecotec\Flowcode\Inspectra\flowcode\Inspectra_macro.c
In file included from C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\internals.c:376:0,
from C:\Users\jborja\OneDrive - ecotecco.com\Documents\Flosecode Ecotec\Flowcode\Inspectra\flowcode\Inspectra_macro.h:45,
from C:\Users\jborja\OneDrive - ecotecco.com\Documents\Flosecode Ecotec\Flowcode\Inspectra\flowcode\Inspectra_macro.c:20:
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\AVR\AVR_CAL_String.c:132:18: note: expected 'MX_STRING {aka unsigned char *}' but argument is of type 'volatile MX_CHAR * {aka volatile char *}'
static MX_UINT16 FCI_GETLENGTH(MX_STRING sStr1, MX_UINT16 iStr1_len)
^
C:\Users\jborja\OneDrive - ecotecco.com\Documents\Flosecode Ecotec\Flowcode\Inspectra\flowcode\Inspectra_macro.c
MX_UART_INT_CH2_CLR;
^
In file included from C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\internals.c:376:0,
from C:\Users\jborja\OneDrive - ecotecco.com\Documents\Flosecode Ecotec\Flowcode\Inspectra\flowcode\Inspectra_macro.h:45,
from C:\Users\jborja\OneDrive - ecotecco.com\Documents\Flosecode Ecotec\Flowcode\Inspectra\flowcode\Inspectra_macro.c:20:
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\AVR\AVR_CAL_String.c:140:18: note: expected 'MX_STRING {aka unsigned char *}' but argument is of type 'volatile MX_CHAR * {aka volatile char *}'
static MX_STRING FCI_MIDSTRING(MX_STRING sSrc, MX_UINT16 iSrc_len, MX_UINT16 iStart, MX_UINT16 iCount, MX_STRING sDst, MX_UINT16 iDst_len)
^
C:\Users\jborja\OneDrive - ecotecco.com\Documents\Flosecode Ecotec\Flowcode\Inspectra\flowcode\Inspectra_macro.c
In file included from C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\internals.c:376:0,
from C:\Users\jborja\OneDrive - ecotecco.com\Documents\Flosecode Ecotec\Flowcode\Inspectra\flowcode\Inspectra_macro.h:45,
from C:\Users\jborja\OneDrive - ecotecco.com\Documents\Flosecode Ecotec\Flowcode\Inspectra\flowcode\Inspectra_macro.c:20:
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\AVR\AVR_CAL_String.c:140:18: note: expected 'MX_STRING {aka unsigned char *}' but argument is of type 'volatile MX_CHAR * {aka volatile char *}'
static MX_STRING FCI_MIDSTRING(MX_STRING sSrc, MX_UINT16 iSrc_len, MX_UINT16 iStart, MX_UINT16 iCount, MX_STRING sDst, MX_UINT16 iDst_len)
^
C:\Users\jborja\OneDrive - ecotecco.com\Documents\Flosecode Ecotec\Flowcode\Inspectra\flowcode\Inspectra_macro.c
In file included from C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\internals.c:376:0,
from C:\Users\jborja\OneDrive - ecotecco.com\Documents\Flosecode Ecotec\Flowcode\Inspectra\flowcode\Inspectra_macro.h:45,
from C:\Users\jborja\OneDrive - ecotecco.com\Documents\Flosecode Ecotec\Flowcode\Inspectra\flowcode\Inspectra_macro.c:20:
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\AVR\AVR_CAL_String.c:170:18: note: expected 'MX_STRING {aka unsigned char *}' but argument is of type 'volatile MX_CHAR * {aka volatile char *}'
static MX_STRING FCI_LEFTSTRING(MX_STRING sSrc, MX_UINT16 iSrc_len, MX_UINT16 iCount, MX_STRING sDst, MX_UINT16 iDst_len)
^
C:\Users\jborja\OneDrive - ecotecco.com\Documents\Flosecode Ecotec\Flowcode\Inspectra\flowcode\Inspectra_macro.c
In file included from C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\internals.c:376:0,
from C:\Users\jborja\OneDrive - ecotecco.com\Documents\Flosecode Ecotec\Flowcode\Inspectra\flowcode\Inspectra_macro.h:45,
from C:\Users\jborja\OneDrive - ecotecco.com\Documents\Flosecode Ecotec\Flowcode\Inspectra\flowcode\Inspectra_macro.c:20:
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\AVR\AVR_CAL_String.c:170:18: note: expected 'MX_STRING {aka unsigned char *}' but argument is of type 'volatile MX_CHAR * {aka volatile char *}'
static MX_STRING FCI_LEFTSTRING(MX_STRING sSrc, MX_UINT16 iSrc_len, MX_UINT16 iCount, MX_STRING sDst, MX_UINT16 iDst_len)
^
C:\Users\jborja\OneDrive - ecotecco.com\Documents\Flosecode Ecotec\Flowcode\Inspectra\flowcode\Inspectra_macro.c
In file included from C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\internals.c:376:0,
from C:\Users\jborja\OneDrive - ecotecco.com\Documents\Flosecode Ecotec\Flowcode\Inspectra\flowcode\Inspectra_macro.h:45,
from C:\Users\jborja\OneDrive - ecotecco.com\Documents\Flosecode Ecotec\Flowcode\Inspectra\flowcode\Inspectra_macro.c:20:
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\AVR\AVR_CAL_String.c:676:18: note: expected 'MX_STRING {aka unsigned char *}' but argument is of type 'volatile MX_CHAR * {aka volatile char *}'
static MX_SINT32 FCI_STRING_TO_INT(MX_STRING String, MX_UINT16 MSZ_String)
^
In file included from C:\Users\jborja\OneDrive - ecotecco.com\Documents\Flosecode Ecotec\Flowcode\Inspectra\flowcode\Inspectra_macro.h:35:0,
from C:\Users\jborja\OneDrive - ecotecco.com\Documents\Flosecode Ecotec\Flowcode\Inspectra\flowcode\Inspectra_macro.c:20:
C:\Users\jborja\OneDrive - ecotecco.com\Documents\Flosecode Ecotec\Flowcode\Inspectra\flowcode\Inspectra_macro.c: At top level:
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\AVR\AVR_CAL_UART.c:492:37: error: redefinition of '__vector_36'
#define MX_UART_INT_CH2_FUNC ISR(USART1_RX_vect) {
^
C:\Users\jborja\OneDrive - ecotecco.com\Documents\Flosecode Ecotec\Flowcode\Inspectra\flowcode\Inspectra_macro.c
C:\Users\jborja\OneDrive - ecotecco.com\Documents\Flosecode Ecotec\Flowcode\Inspectra\flowcode\Inspectra_macro.c
Error returned from [avr-gcc.exe]
C:\ProgramData\MatrixTSL\FlowcodeV10\FCD\AVR\batchfiles\avra.bat reported error code 0x1
Autoclose turned off
FINISHED