Hello,
Can anyone here help me? I always get an error message when compiling, but I don't know exactly what this means and where the error lies...
Thank you very much
Chris
Target folder: C:\Users\Admin\Desktop\Flowprojekte
Source name: C:\Users\Admin\Desktop\Flowprojekte\delete.fcfx
Device: AVR.ATMEGA.ATMEGA8
Generated by: Flowcode v9.3.1.36
Date: Thursday, January 30, 2025 10:15:40
Registriert für: ChrisT66 (50562083)
Lizenzschlüssel:PU90WH
NICHT FÜR KOMMERZiELLE ANWENDUNGEN
https://www.flowcode.co.uk
Using <AVRISPmkII> inbuilt settings for compiler
C:\ProgramData\MatrixTSL\FlowcodeV9\FCD\AVR\batchfiles\avra.bat "C:\Program Files (x86)\Flowcode\Common\Compilers\avrv5\" atmega8 "C:\Users\Admin\Desktop\Flowprojekte\delete.elf" "C:\Users\Admin\Desktop\Flowprojekte\delete.c" "C:\Users\Admin\Desktop\Flowprojekte\delete.lst"
C:\Users\Admin\Desktop\Flowprojekte>REM CRC: EA277D0C7EF9B4E537B79187D0BE7A25FA6080B4B01BE48BAF713429E4B690411241251B4A05C2B5828F4452C9F7348705C640EF477B79E0C7881D2E5EEC9BD6FE0D8D4660AC0314F98C28BCA92AF856EFD1DB5B777140BC4D00059D7958998291880A09BBE74CF7BA3F4E37F13004EE3637760F1F0B7DA0CC623CD30E3C7D6BAB4C3FE6151D92B8EC0ADD55E96639DAC02472BDE3806EF43AE3A028BD32A5DAE68BB191DA97CB6883A66D3C41849952BB2DD264AF32733E2C3050DA273BE4EEFF12703F3DAF67B119A5A5B069403B38249A6C4D8A1304B09A437E7E2D43FD26DF891DB3086C82D6
C:\Users\Admin\Desktop\Flowprojekte>REM REVISION: 1.0
C:\Users\Admin\Desktop\Flowprojekte>REM GUID: EA0828B2-5C70-41A5-8C54-F359DD5CC88B
C:\Users\Admin\Desktop\Flowprojekte>REM DATE: 29\03\2021
C:\Users\Admin\Desktop\Flowprojekte>REM DIR: FCD\AVR\batchfiles\avra.bat
C:\Users\Admin\Desktop\Flowprojekte>"C:\Program Files (x86)\Flowcode\Common\Compilers\avrv5\bin\avr-gcc.exe" -mmcu=atmega8 -Os -ffunction-sections -fdata-sections -funsigned-char -o "C:\Users\Admin\Desktop\Flowprojekte\delete.elf" "C:\Users\Admin\Desktop\Flowprojekte\delete.c" -lm -Wl,-gc-sections
C:\Users\Admin\Desktop\Flowprojekte\delete.c: In function 'FCM_RxData':
C:\Users\Admin\Desktop\Flowprojekte\delete.c:5152:24: warning: passing argument 1 of 'FCM_Get16BitValues' discards 'volatile' qualifier from pointer target type [-Wdiscarded-qualifiers]
\*=----------------------------------------------------------------------=*/
C:\Users\Admin\Desktop\Flowprojekte\delete.c:135:6: note: expected 'MX_UINT16 * {aka short unsigned int *}' but argument is of type 'volatile MX_UINT16 * {aka volatile short unsigned int *}'
void FCM_Get16BitValues(MX_UINT16 *FCL_VALUES, MX_UINT16 FCLsz_VALUES);
C:\Users\Admin\Desktop\Flowprojekte\delete.c:5159:24: warning: passing argument 1 of 'FCM_NormaliseData' discards 'volatile' qualifier from pointer target type [-Wdiscarded-qualifiers]
// Name: Loop, Art: Schleife: Schleife .i: 5 times
C:\Users\Admin\Desktop\Flowprojekte\delete.c:136:6: note: expected 'MX_UINT16 * {aka short unsigned int *}' but argument is of type 'volatile MX_UINT16 * {aka volatile short unsigned int *}'
void FCM_NormaliseData(MX_UINT16 *FCL_DATA, MX_UINT16 FCLsz_DATA, MX_UINT16 *FCL_NORMALS, MX_UINT16 FCLsz_NORMALS);
C:\Users\Admin\Desktop\Flowprojekte\delete.c:5159:42: warning: passing argument 3 of 'FCM_NormaliseData' discards 'volatile' qualifier from pointer target type [-Wdiscarded-qualifiers]
// Name: Loop, Art: Schleife: Schleife .i: 5 times
^
C:\Users\Admin\Desktop\Flowprojekte\delete.c:136:6: note: expected 'MX_UINT16 * {aka short unsigned int *}' but argument is of type 'volatile MX_UINT16 * {aka volatile short unsigned int *}'
void FCM_NormaliseData(MX_UINT16 *FCL_DATA, MX_UINT16 FCLsz_DATA, MX_UINT16 *FCL_NORMALS, MX_UINT16 FCLsz_NORMALS);
C:\Users\Admin\Desktop\Flowprojekte\delete.c:5164:27: warning: passing argument 1 of 'FCM_GetNormalisation' discards 'volatile' qualifier from pointer target type [-Wdiscarded-qualifiers]
// .normals[.i] = .data[.i]
C:\Users\Admin\Desktop\Flowprojekte\delete.c:129:6: note: expected 'MX_UINT16 * {aka short unsigned int *}' but argument is of type 'volatile MX_UINT16 * {aka volatile short unsigned int *}'
void FCM_GetNormalisation(MX_UINT16 *FCL_DATA, MX_UINT16 FCLsz_DATA, MX_UINT16 *FCL_NORMALS, MX_UINT16 FCLsz_NORMALS);
C:\Users\Admin\Desktop\Flowprojekte\delete.c:5164:45: warning: passing argument 3 of 'FCM_GetNormalisation' discards 'volatile' qualifier from pointer target type [-Wdiscarded-qualifiers]
C:\Users\Admin\Desktop\Flowprojekte\delete.c:129:6: note: expected 'MX_UINT16 * {aka short unsigned int *}' but argument is of type 'volatile MX_UINT16 * {aka volatile short unsigned int *}'
void FCM_GetNormalisation(MX_UINT16 *FCL_DATA, MX_UINT16 FCLsz_DATA, MX_UINT16 *FCL_NORMALS, MX_UINT16 FCLsz_NORMALS);
C:\Users\Admin\Desktop\Flowprojekte\delete.c: In function 'FCM_Get16BitValues':
C:\Users\Admin\Desktop\Flowprojekte\delete.c:6216:24: warning: iteration 4u invokes undefined behavior [-Waggressive-loop-optimizations]
C:\Users\Admin\Desktop\Flowprojekte\delete.c:6209:2: note: containing loop
// Name: Entscheidung, Art: Entscheidung: z1 = 5?
C:\Users\Admin\Desktop\Flowprojekte\delete.c: In function 'FCM_NormaliseData':
C:\Users\Admin\Desktop\Flowprojekte\delete.c:6246:21: warning: iteration 4u invokes undefined behavior [-Waggressive-loop-optimizations]
C:\Users\Admin\Desktop\Flowprojekte\delete.c:6239:2: note: containing loop
c:/program files (x86)/flowcode/common/compilers/avrv5/bin/../lib/gcc/avr/5.4.0/../../../../avr/bin/ld.exe: C:\Users\Admin\Desktop\Flowprojekte\delete.elf section `.text' will not fit in region `text'
c:/program files (x86)/flowcode/common/compilers/avrv5/bin/../lib/gcc/avr/5.4.0/../../../../avr/bin/ld.exe: region `text' overflowed by 176 bytes
collect2.exe: error: ld returned 1 exit status
Error returned from [avr-gcc.exe]
C:\ProgramData\MatrixTSL\FlowcodeV9\FCD\AVR\batchfiles\avra.bat Hat den Fehlercode 0x1 gemeldet
error message
-
- Posts: 103
- http://meble-kuchenne.info.pl
- Joined: Mon Dec 07, 2020 12:47 pm
- Been thanked: 1 time
-
- Valued Contributor
- Posts: 1411
- Joined: Wed Dec 09, 2020 9:37 pm
- Has thanked: 129 times
- Been thanked: 697 times
Re: error message
Looks like there is insufficient memory on the target device..
If you post your code someone will tell you what is too big... Region text overflowed by 176 bytes
Martin
If you post your code someone will tell you what is too big... Region text overflowed by 176 bytes
Martin
Re: error message
Hi Martin, thank you. Here is the code
- Attachments
-
- error.fcfx
- (236.07 KiB) Downloaded 11 times
-
- Valued Contributor
- Posts: 1411
- Joined: Wed Dec 09, 2020 9:37 pm
- Has thanked: 129 times
- Been thanked: 697 times
Re: error message
Yes...maybe the memory of the eprom is too small?
Compiling for a different ATMega MCU - gives Text 8914...
The ATMega8 has just 8K
There are 2 options...
1) Use an MCU with more memory.
2) Refactor your code. The simplest thing to do is pull 'duplicate' code into a separate macro (there are quite a few places where you 'toggle a pin' until A=100 for example) - which would probably do the trick..
Martin