hello team
I'm trying to use the FAT component but it gave me many errors at the end of the compilation, I replicated your example (FAT_Data_Logger_Fast on Wiki) on arduino mega2560 excluding the display part but I see that on output it gives me the same errors
I attach files and sreenshot of the errors
thank you
Arduino mega2560 FAT component
Moderator: Benj
-
- Posts: 110
- Joined: Mon Dec 23, 2013 9:34 pm
- Has thanked: 2 times
- Been thanked: 9 times
- Contact:
Arduino mega2560 FAT component
- Attachments
-
- Annotazione 2020-08-04 105405.png (272.48 KiB) Viewed 1258 times
-
- arduino_SD.fcfx
- (20.97 KiB) Downloaded 122 times
- LeighM
- Matrix Staff
- Posts: 2178
- Joined: Tue Jan 17, 2012 10:07 am
- Has thanked: 481 times
- Been thanked: 699 times
- Contact:
Re: Arduino mega2560 FAT component
Looks like they could just be warnings.
You should see this further down the output, after the warnings...
You should see this further down the output, after the warnings...
In which case all should be wellCompilation successful!
-
- Posts: 110
- Joined: Mon Dec 23, 2013 9:34 pm
- Has thanked: 2 times
- Been thanked: 9 times
- Contact:
Re: Arduino mega2560 FAT component
Hi LeighM
yes in the end it succeeds, but the program on the hardware freezes in card initialization
C:\Users\Max\Dropbox\radar>"C:\PROGRA~2\Flowcode\Common\COMPIL~1\avr\BATCHF~1\..\bin\avr-gcc.exe" -mmcu=atmega2560 -Os -ffunction-sections -fdata-sections -funsigned-char -o "C:\Users\Max\Dropbox\radar\arduino_SD.elf" "C:\Users\Max\Dropbox\radar\arduino_SD.c" -lm -Wl,-gc-sections
In file included from C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\includes.c:1070,
from C:\Users\Max\Dropbox\radar\arduino_SD.c:483:
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/AVR\AVR_CAL_SPI.c:146:3: warning: #warning "Important user information. Please read."
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/AVR\AVR_CAL_SPI.c:147:3: warning: #warning "Hardware SPI may cause a lockup in your program if Hardware SS Pin is left as an input!";
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/AVR\AVR_CAL_SPI.c:148:3: warning: #warning "Suggest using the SS pin as the CS pin to ensure no lockup."
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/AVR\AVR_CAL_SPI.c:149:3: warning: #warning "SS pin must be set to an output or pulled high before initialising the SPI."
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/AVR\AVR_CAL_SPI.c:150:3: warning: #warning "Refer to the device datasheet for the SPI hardware SS pin.";
C:\Users\Max\Dropbox\radar\arduino_SD.c: In function 'FCD_07fa1_v5__fat160__DeleteFile':
C:\Users\Max\Dropbox\radar\arduino_SD.c warning: passing argument 1 of 'FCI_COMPARE' discards qualifiers from pointer target type
C:\Users\Max\Dropbox\radar\arduino_SD.c: In function 'FCD_07fa1_v5__fat160__ReadByteFromIndex':
C:\Users\Max\Dropbox\radar\arduino_SD.c warning: passing argument 1 of 'FCD_07fa1_v5__fat160__OpenFile' discards qualifiers from pointer target type
C:\Users\Max\Dropbox\radar\arduino_SD.c: In function 'FCD_07fa1_v5__fat160__OpenFolder':
C:\Users\Max\Dropbox\radar\arduino_SD.c warning: passing argument 1 of 'FCI_COMPARE' discards qualifiers from pointer target type
C:\Users\Max\Dropbox\radar\arduino_SD.c: In function 'FCD_07fa1_v5__fat160__OpenFile':
C:\Users\Max\Dropbox\radar\arduino_SD.c warning: passing argument 1 of 'FCI_COMPARE' discards qualifiers from pointer target type
C:\Users\Max\Dropbox\radar\arduino_SD.c warning: passing argument 3 of 'FCI_SCOPY' discards qualifiers from pointer target type
C:\Users\Max\Dropbox\radar\arduino_SD.c: In function 'FCM_Byte_2_4Char_Buffer':
C:\Users\Max\Dropbox\radar\arduino_SD.c:5538: warning: passing argument 2 of 'FCI_TOSTRING' discards qualifiers from pointer target type
C:\Users\Max\Dropbox\radar\arduino_SD.c:5552: warning: passing argument 3 of 'FCI_SHEAD' discards qualifiers from pointer target type
C:\Users\Max\Dropbox\radar\arduino_SD.c:5552: warning: passing argument 5 of 'FCI_SHEAD' discards qualifiers from pointer target type
C:\Users\Max\Dropbox\radar\arduino_SD.c:5558: warning: passing argument 3 of 'FCI_SHEAD' discards qualifiers from pointer target type
C:\Users\Max\Dropbox\radar\arduino_SD.c:5558: warning: passing argument 5 of 'FCI_SHEAD' discards qualifiers from pointer target type
C:\Users\Max\Dropbox\radar\arduino_SD.c:5568: warning: passing argument 1 of 'FCI_GETCHAR' discards qualifiers from pointer target type
C:\Users\Max\Dropbox\radar\arduino_SD.c:5569: warning: passing argument 1 of 'FCI_GETCHAR' discards qualifiers from pointer target type
C:\Users\Max\Dropbox\radar\arduino_SD.c:5570: warning: passing argument 1 of 'FCI_GETCHAR' discards qualifiers from pointer target type
C:\Users\Max\Dropbox\radar\arduino_SD.c: In function 'main':
C:\Users\Max\Dropbox\radar\arduino_SD.c:5634: warning: passing argument 3 of 'FCI_SCOPY' discards qualifiers from pointer target type
C:\Users\Max\Dropbox\radar\arduino_SD.c:5635: warning: passing argument 3 of 'FCI_SCOPY' discards qualifiers from pointer target type
C:\Users\Max\Dropbox\radar\arduino_SD.c:5655: warning: passing argument 1 of 'FCD_07fa1_v5__fat160__CreateFile' discards qualifiers from pointer target type
C:\Users\Max\Dropbox\radar\arduino_SD.c:5667: warning: passing argument 1 of 'FCD_07fa1_v5__fat160__OpenFile' discards qualifiers from pointer target type
yes in the end it succeeds, but the program on the hardware freezes in card initialization
C:\Users\Max\Dropbox\radar>"C:\PROGRA~2\Flowcode\Common\COMPIL~1\avr\BATCHF~1\..\bin\avr-gcc.exe" -mmcu=atmega2560 -Os -ffunction-sections -fdata-sections -funsigned-char -o "C:\Users\Max\Dropbox\radar\arduino_SD.elf" "C:\Users\Max\Dropbox\radar\arduino_SD.c" -lm -Wl,-gc-sections
In file included from C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\includes.c:1070,
from C:\Users\Max\Dropbox\radar\arduino_SD.c:483:
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/AVR\AVR_CAL_SPI.c:146:3: warning: #warning "Important user information. Please read."
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/AVR\AVR_CAL_SPI.c:147:3: warning: #warning "Hardware SPI may cause a lockup in your program if Hardware SS Pin is left as an input!";
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/AVR\AVR_CAL_SPI.c:148:3: warning: #warning "Suggest using the SS pin as the CS pin to ensure no lockup."
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/AVR\AVR_CAL_SPI.c:149:3: warning: #warning "SS pin must be set to an output or pulled high before initialising the SPI."
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/AVR\AVR_CAL_SPI.c:150:3: warning: #warning "Refer to the device datasheet for the SPI hardware SS pin.";
C:\Users\Max\Dropbox\radar\arduino_SD.c: In function 'FCD_07fa1_v5__fat160__DeleteFile':
C:\Users\Max\Dropbox\radar\arduino_SD.c warning: passing argument 1 of 'FCI_COMPARE' discards qualifiers from pointer target type
C:\Users\Max\Dropbox\radar\arduino_SD.c: In function 'FCD_07fa1_v5__fat160__ReadByteFromIndex':
C:\Users\Max\Dropbox\radar\arduino_SD.c warning: passing argument 1 of 'FCD_07fa1_v5__fat160__OpenFile' discards qualifiers from pointer target type
C:\Users\Max\Dropbox\radar\arduino_SD.c: In function 'FCD_07fa1_v5__fat160__OpenFolder':
C:\Users\Max\Dropbox\radar\arduino_SD.c warning: passing argument 1 of 'FCI_COMPARE' discards qualifiers from pointer target type
C:\Users\Max\Dropbox\radar\arduino_SD.c: In function 'FCD_07fa1_v5__fat160__OpenFile':
C:\Users\Max\Dropbox\radar\arduino_SD.c warning: passing argument 1 of 'FCI_COMPARE' discards qualifiers from pointer target type
C:\Users\Max\Dropbox\radar\arduino_SD.c warning: passing argument 3 of 'FCI_SCOPY' discards qualifiers from pointer target type
C:\Users\Max\Dropbox\radar\arduino_SD.c: In function 'FCM_Byte_2_4Char_Buffer':
C:\Users\Max\Dropbox\radar\arduino_SD.c:5538: warning: passing argument 2 of 'FCI_TOSTRING' discards qualifiers from pointer target type
C:\Users\Max\Dropbox\radar\arduino_SD.c:5552: warning: passing argument 3 of 'FCI_SHEAD' discards qualifiers from pointer target type
C:\Users\Max\Dropbox\radar\arduino_SD.c:5552: warning: passing argument 5 of 'FCI_SHEAD' discards qualifiers from pointer target type
C:\Users\Max\Dropbox\radar\arduino_SD.c:5558: warning: passing argument 3 of 'FCI_SHEAD' discards qualifiers from pointer target type
C:\Users\Max\Dropbox\radar\arduino_SD.c:5558: warning: passing argument 5 of 'FCI_SHEAD' discards qualifiers from pointer target type
C:\Users\Max\Dropbox\radar\arduino_SD.c:5568: warning: passing argument 1 of 'FCI_GETCHAR' discards qualifiers from pointer target type
C:\Users\Max\Dropbox\radar\arduino_SD.c:5569: warning: passing argument 1 of 'FCI_GETCHAR' discards qualifiers from pointer target type
C:\Users\Max\Dropbox\radar\arduino_SD.c:5570: warning: passing argument 1 of 'FCI_GETCHAR' discards qualifiers from pointer target type
C:\Users\Max\Dropbox\radar\arduino_SD.c: In function 'main':
C:\Users\Max\Dropbox\radar\arduino_SD.c:5634: warning: passing argument 3 of 'FCI_SCOPY' discards qualifiers from pointer target type
C:\Users\Max\Dropbox\radar\arduino_SD.c:5635: warning: passing argument 3 of 'FCI_SCOPY' discards qualifiers from pointer target type
C:\Users\Max\Dropbox\radar\arduino_SD.c:5655: warning: passing argument 1 of 'FCD_07fa1_v5__fat160__CreateFile' discards qualifiers from pointer target type
C:\Users\Max\Dropbox\radar\arduino_SD.c:5667: warning: passing argument 1 of 'FCD_07fa1_v5__fat160__OpenFile' discards qualifiers from pointer target type