Target folder: C:\Flowcode9\Projekter\Sun
Source name:   C:\Flowcode9\Projekter\Sun\NewSun.fcfx
Title:         
Description:   
Device:        ESP.ESP32.ESP32_DEVKITV1
Generated by:  Flowcode v9.3.1.36
Date:          Sunday, February 19, 2023 16:21:33
Users:         1
Registered to: jgu1 (43418841)
Licence key: HTFJ23
https://www.flowcode.co.uk
Using FCD settings for compiler
Launching the compiler...
C:\ProgramData\MatrixTSL\FlowcodeV9\FCD\ESP\Batch\esp32_build.bat  "C:\Users\jgu\Desktop\esp-idf\" "NewSun" "C:\Flowcode9\Projekter\Sun\" esp32s_sdkconfig 

C:\Flowcode9\Projekter\Sun>REM CRC: 0796FC1E6A776AF9156B257209C35258CE7C28B3EC20AEA2C632DB392A0E4BFD5B3F53B21811978F7B21FE4085045A7E774D1D3D69D8A99EE7320EAE740A5DB6EFB7F8B9768FC390BAFB420BC9D6F4D56375EE3039B8BDDEA4D1C56CD1580BF569DAEA777BB49732B199900461C78937B42DEF8219F63A24580137A2F6C8FDB7553324EFF791947E8AB6FFD612B81BAA97C798A8F1CFC189DE5D38517747C774AF2DD6F839BAECF83F7F994C7164CE77868F480396BDEF2F2C3050DA273BE4EE20CC17B921F6F114A09D373C35E2F6843075ABAEF7BDE0FCD2CED24345F1155B2F83CAC1F23BFA51 

C:\Flowcode9\Projekter\Sun>REM REVISION: 5.0 

C:\Flowcode9\Projekter\Sun>REM GUID: 955EA920-4961-4C53-BA6B-EF4AF66BB4C2 

C:\Flowcode9\Projekter\Sun>REM DATE: 05\12\2022 

C:\Flowcode9\Projekter\Sun>REM DIR: FCD\ESP\Batch\esp32_build.bat 
.
============================== Toolchain Check ==============================
Python 3.7.3
git version 2.21.0.windows.1
ESP toolchain found at "C:\Users\jgu\Desktop\esp-idf\"
=============================================================================
.
Building NewSun ...
Setting IDF_PATH: C:\Users\jgu\Desktop\esp-idf

Adding ESP-IDF tools to PATH...
    C:\.espressif\tools\xtensa-esp32-elf\esp-2020r3-8.4.0\xtensa-esp32-elf\bin
    C:\.espressif\tools\xtensa-esp32s2-elf\esp-2020r3-8.4.0\xtensa-esp32s2-elf\bin
    C:\.espressif\tools\esp32ulp-elf\2.28.51-esp-20191205\esp32ulp-elf-binutils\bin
    C:\.espressif\tools\esp32s2ulp-elf\2.28.51-esp-20191205\esp32s2ulp-elf-binutils\bin
    C:\.espressif\tools\cmake\3.13.4\bin
    C:\.espressif\tools\openocd-esp32\v0.10.0-esp32-20210401\openocd-esp32\bin
    C:\.espressif\tools\ninja\1.9.0\
    C:\.espressif\tools\idf-exe\1.0.1\
    C:\.espressif\tools\ccache\3.7\
    C:\.espressif\python_env\idf4.1_py3.7_env\Scripts
    C:\Users\jgu\Desktop\esp-idf\tools
    
Checking if Python packages are up to date...
Python requirements from C:\Users\jgu\Desktop\esp-idf\requirements.txt are satisfied.

Done! You can now compile ESP-IDF projects.
Go to the project directory and run:

  idf.py build

[1/9] cmd.exe /C "cd /D C:\Flowcode9\Projekter\Sun\NewSun\build\esp-idf\partition_table && C:\.espressif\tools\cmake\3.13.4\bin\cmake.exe -E echo "Partition table binary generated. Contents:" && C:\.espressif\tools\cmake\3.13.4\bin\cmake.exe -E echo ******************************************************************************* && C:\.espressif\python_env\idf4.1_py3.7_env\Scripts\python.exe C:/Users/jgu/Desktop/esp-idf/components/partition_table/gen_esp32part.py -q --offset 0x8000 --flash-size 2MB C:/Flowcode9/Projekter/Sun/NewSun/build/partition_table/partition-table.bin && C:\.espressif\tools\cmake\3.13.4\bin\cmake.exe -E echo *******************************************************************************"
Partition table binary generated. Contents:
*******************************************************************************
# Espressif ESP32 Partition Table
# Name, Type, SubType, Offset, Size, Flags
nvs,data,nvs,0x9000,24K,
phy_init,data,phy,0xf000,4K,
factory,app,factory,0x10000,1M,
*******************************************************************************
[2/9] Performing build step for 'bootloader'
ninja: no work to do.
[3/7] Building C object esp-idf/main/CMakeFiles/__idf_main.dir/esp-project.c.obj
In file included from ../main/esp-project.c:38:
C:/Users/jgu/Desktop/esp-idf/components/esp_event/include/esp_event_loop.h:2:2: warning: #warning "esp_event_loop.h is deprecated, please include esp_event.h instead" [-Wcpp]
 #warning "esp_event_loop.h is deprecated, please include esp_event.h instead"
  ^~~~~~~
In file included from C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\ESP\ESP_CAL_String.c:110,
                 from C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\internals.c:568,
                 from ../main/esp-project.c:48:
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\ESP\ESP_CAL_Float.c:91:6: warning: conflicting types for built-in function '__builtin_isinf_sign' [-Wbuiltin-declaration-mismatch]
 char isinf(float f)
      ^~~~~
In file included from C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\includes.c:89,
                 from ../main/esp-project.c:945:
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\ESP\ESP_CAL_ADC.c:55:3: warning: #warning "ADC channels 32 and greater require the use of ADC peripheral 2 which is not available when WIFI or BT is enabled" [-Wcpp]
  #warning "ADC channels 32 and greater require the use of ADC peripheral 2 which is not available when WIFI or BT is enabled"
   ^~~~~~~
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\ESP\ESP_CAL_ADC.c: In function 'FC_CAL_ADC_Enable_1':
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\ESP\ESP_CAL_ADC.c:95:3: warning: 'adc_power_on' is deprecated [-Wdeprecated-declarations]
   MX_ADC_EN();         //Power up ADC module
   ^~~~~~~~~
In file included from ../main/esp-project.c:40:
C:/Users/jgu/Desktop/esp-idf/components/driver/include/driver/adc.h:192:6: note: declared here
 void adc_power_on(void) __attribute__((deprecated));
      ^~~~~~~~~~~~
In file included from C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\includes.c:89,
                 from ../main/esp-project.c:945:
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\ESP\ESP_CAL_ADC.c: In function 'FC_CAL_ADC_Sample_1':
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\ESP\ESP_CAL_ADC.c:126:49: warning: passing argument 3 of 'adc2_get_raw' from incompatible pointer type [-Wincompatible-pointer-types]
    adc2_get_raw(MX_ADC_CHA_X, ADC_WIDTH_BIT_12, &Sample);
                                                 ^~~~~~~
In file included from ../main/esp-project.c:40:
C:/Users/jgu/Desktop/esp-idf/components/driver/include/driver/adc.h:362:81: note: expected 'int *' but argument is of type 'MX_SINT16 *' {aka 'short int *'}
 esp_err_t adc2_get_raw(adc2_channel_t channel, adc_bits_width_t width_bit, int *raw_out);
                                                                            ~~~~~^~~~~~~
In file included from C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\includes.c:89,
                 from ../main/esp-project.c:945:
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\ESP\ESP_CAL_ADC.c: In function 'FC_CAL_ADC_Disable_1':
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\ESP\ESP_CAL_ADC.c:140:3: warning: 'adc_power_off' is deprecated [-Wdeprecated-declarations]
   MX_ADC_DIS();         //Power down ADC module
   ^~~~~~~~~~
In file included from ../main/esp-project.c:40:
C:/Users/jgu/Desktop/esp-idf/components/driver/include/driver/adc.h:201:6: note: declared here
 void adc_power_off(void) __attribute__((deprecated));
      ^~~~~~~~~~~~~
In file included from C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\includes.c:393,
                 from ../main/esp-project.c:945:
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\ESP\ESP_CAL_EEPROM.c: In function 'FC_CAL_EE_Read':
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\ESP\ESP_CAL_EEPROM.c:83:24: warning: passing argument 2 of 'FCI_TOSTRU16' from incompatible pointer type [-Wincompatible-pointer-types]
  FCI_TOSTRU16(Address, EEaddrStr, 8);
                        ^~~~~~~~~
In file included from C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\internals.c:568,
                 from ../main/esp-project.c:48:
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\ESP\ESP_CAL_String.c:297:50: note: expected 'MX_STRING' {aka 'char *'} but argument is of type 'char **'
 MX_UINT8 FCI_TOSTRU16(MX_UINT16 iSrc1, MX_STRING sDst, MX_UINT16 iDst_len)
                                        ~~~~~~~~~~^~~~
In file included from C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\includes.c:393,
                 from ../main/esp-project.c:945:
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\ESP\ESP_CAL_EEPROM.c:85:34: warning: passing argument 2 of 'nvs_get_u16' from incompatible pointer type [-Wincompatible-pointer-types]
     err = nvs_get_u16(my_handle, EEaddrStr, &EEdata);
                                  ^~~~~~~~~
In file included from C:/Users/jgu/Desktop/esp-idf/components/nvs_flash/include/nvs_flash.h:21,
                 from ../main/esp-project.c:39:
C:/Users/jgu/Desktop/esp-idf/components/nvs_flash/include/nvs.h:282:57: note: expected 'const char *' but argument is of type 'char **'
 esp_err_t nvs_get_u16 (nvs_handle_t handle, const char* key, uint16_t* out_value);
                                             ~~~~~~~~~~~~^~~
In file included from C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\includes.c:393,
                 from ../main/esp-project.c:945:
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\ESP\ESP_CAL_EEPROM.c: In function 'FC_CAL_EE_Write':
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\ESP\ESP_CAL_EEPROM.c:95:24: warning: passing argument 2 of 'FCI_TOSTRU16' from incompatible pointer type [-Wincompatible-pointer-types]
  FCI_TOSTRU16(Address, EEaddrStr, 8);
                        ^~~~~~~~~
In file included from C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\internals.c:568,
                 from ../main/esp-project.c:48:
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\ESP\ESP_CAL_String.c:297:50: note: expected 'MX_STRING' {aka 'char *'} but argument is of type 'char **'
 MX_UINT8 FCI_TOSTRU16(MX_UINT16 iSrc1, MX_STRING sDst, MX_UINT16 iDst_len)
                                        ~~~~~~~~~~^~~~
In file included from C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\includes.c:393,
                 from ../main/esp-project.c:945:
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\ESP\ESP_CAL_EEPROM.c:97:34: warning: passing argument 2 of 'nvs_set_u16' from incompatible pointer type [-Wincompatible-pointer-types]
     err = nvs_set_u16(my_handle, EEaddrStr, Data);
                                  ^~~~~~~~~
In file included from C:/Users/jgu/Desktop/esp-idf/components/nvs_flash/include/nvs_flash.h:21,
                 from ../main/esp-project.c:39:
C:/Users/jgu/Desktop/esp-idf/components/nvs_flash/include/nvs.h:204:57: note: expected 'const char *' but argument is of type 'char **'
 esp_err_t nvs_set_u16 (nvs_handle_t handle, const char* key, uint16_t value);
                                             ~~~~~~~~~~~~^~~
In file included from C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\includes.c:1307,
                 from ../main/esp-project.c:945:
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\ESP\ESP_CAL_SPI.c: In function 'FC_CAL_SPI_Master_Byte_2':
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\ESP\ESP_CAL_SPI.c:244:17: warning: unused variable 'i' [-Wunused-variable]
   MX_UINT8 idx, i;
                 ^
../main/esp-project.c: In function 'FCD_06651_eeprom1__ReadInt':
../main/esp-project.c:1189:11: warning: unused variable 'FCL_IDX' [-Wunused-variable]
  //Code has been optimised out by the pre-processor
           ^~~~~~~
../main/esp-project.c:1188:12: warning: unused variable 'FCL_VAL' [-Wunused-variable]
 
            ^      
../main/esp-project.c: In function 'FCD_06651_eeprom1__WriteByte':
../main/esp-project.c:1270:11: warning: unused variable 'FCL_IDX' [-Wunused-variable]
   FCL_VAL = FCD_06651_eeprom1__Read((FCL_BYTEADDRESS >> 1));
           ^~~~~~~
../main/esp-project.c: In function 'FCD_06651_eeprom1__WriteInt':
../main/esp-project.c:1317:11: warning: unused variable 'FCL_IDX' [-Wunused-variable]
 
           ^      
../main/esp-project.c:1316:12: warning: unused variable 'FCL_VAL' [-Wunused-variable]
   FCD_06651_eeprom1__Write(FCL_STARTADDRESS, FCL_VALUE);
            ^~~~~~~
../main/esp-project.c: In function 'FCD_07da1_cal_i2c1__Prv_TextConsole':
../main/esp-project.c:1765:10: warning: unused variable 'FCL_TSTR' [-Wunused-variable]
    Use :Powers up and starts the continous measurement mode.
          ^~~~~~~~
../main/esp-project.c: In function 'FCD_0f391_AmbientLight1__Initialise':
../main/esp-project.c:2002:12: warning: unused variable 'FCL_PROM' [-Wunused-variable]
 \*========================================================================*/
            ^~~~~~~~
../main/esp-project.c:2001:11: warning: unused variable 'FCL_TEMP' [-Wunused-variable]
        :Macro implementations
           ^~~~~~~~
../main/esp-project.c: In function 'FCD_01532_cal_spi__Master_Enable_CS':
../main/esp-project.c:2795:10: warning: unused variable 'FCL_STR' [-Wunused-variable]
  //Local variable definitions
          ^~~~~~~
../main/esp-project.c: In function 'FCD_01532_cal_spi__Prv_TextConsole':
../main/esp-project.c:2847:10: warning: unused variable 'FCL_TSTR' [-Wunused-variable]
    {
          ^       
../main/esp-project.c: In function 'FCD_01532_cal_spi__Master_Disable_CS':
../main/esp-project.c:2981:10: warning: unused variable 'FCL_STR' [-Wunused-variable]
 #undef FCLsz_STR
          ^~~~~~~
../main/esp-project.c: In function 'FCD_01531_cal_spi1__Master_Enable_CS':
../main/esp-project.c:3206:10: warning: unused variable 'FCL_STR' [-Wunused-variable]
 {
          ^      
../main/esp-project.c: In function 'FCD_01531_cal_spi1__Prv_TextConsole':
../main/esp-project.c:3248:10: warning: unused variable 'FCL_TSTR' [-Wunused-variable]
 
          ^       
../main/esp-project.c: In function 'FCD_01531_cal_spi1__Master_Disable_CS':
../main/esp-project.c:3382:10: warning: unused variable 'FCL_STR' [-Wunused-variable]
 {
          ^      
../main/esp-project.c: In function 'FCD_09e54_gLCD_Font4__ReadWidth':
../main/esp-project.c:3519:11: warning: unused variable 'FCL_PWIDTH' [-Wunused-variable]
 
           ^         
../main/esp-project.c:3518:12: warning: unused variable 'FCL_POSITION' [-Wunused-variable]
    FCL_CHARACTER = FCL_CHARACTER - 43;
            ^~~~~~~~~~~~
../main/esp-project.c: In function 'FCD_09e53_gLCD_Font3__ReadWidth':
../main/esp-project.c:3791:11: warning: unused variable 'FCL_PWIDTH' [-Wunused-variable]
 
           ^         
../main/esp-project.c:3790:12: warning: unused variable 'FCL_POSITION' [-Wunused-variable]
    FCL_CHARACTER = FCL_CHARACTER - 33;
            ^~~~~~~~~~~~
../main/esp-project.c: In function 'FCD_09e52_gLCD_Font2__ReadWidth':
../main/esp-project.c:4063:11: warning: unused variable 'FCL_PWIDTH' [-Wunused-variable]
 
           ^         
../main/esp-project.c:4062:12: warning: unused variable 'FCL_POSITION' [-Wunused-variable]
    FCL_CHARACTER = FCL_CHARACTER - 33;
            ^~~~~~~~~~~~
../main/esp-project.c: In function 'FCD_09e51_gLCD_Font1__ReadWidth':
../main/esp-project.c:4335:11: warning: unused variable 'FCL_PWIDTH' [-Wunused-variable]
 
           ^         
../main/esp-project.c:4334:12: warning: unused variable 'FCL_POSITION' [-Wunused-variable]
    FCL_CHARACTER = FCL_CHARACTER - 33;
            ^~~~~~~~~~~~
../main/esp-project.c: In function 'FCD_0ba71_Base_GLCD__ReadFontStat':
../main/esp-project.c:4595:12: warning: unused variable 'FCL_POSITION' [-Wunused-variable]
  //Code has been optimised out by the pre-processor
            ^~~~~~~~~~~~
../main/esp-project.c: In function 'FCD_0ba71_Base_GLCD__ReadFontByte':
../main/esp-project.c:4677:12: warning: unused variable 'FCL_POSITION' [-Wunused-variable]
  //Code has been optimised out by the pre-processor
            ^~~~~~~~~~~~
../main/esp-project.c: In function 'FCM_NEXT':
../main/esp-project.c:7069:58: warning: unsigned conversion from 'int' to 'MX_UINT8' {aka 'unsigned char'} changes value from '300' to '44' [-Woverflow]
 
                                                          ^  
../main/esp-project.c: In function 'FCM_VoltAmp':
../main/esp-project.c:7374:97: warning: passing argument 5 of 'FCI_SHEAD' discards 'volatile' qualifier from pointer target type [-Wdiscarded-qualifiers]
     // Count = 0
                                                                                                 ^             
In file included from C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\internals.c:568,
                 from ../main/esp-project.c:48:
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\ESP\ESP_CAL_String.c:815:109: note: expected 'MX_STRING' {aka 'char *'} but argument is of type 'volatile MX_CHAR *' {aka 'volatile char *'}
 static void FCI_SHEAD(MX_STRING sSrc1, MX_UINT16 iSrc1_len, MX_STRING sSrc2, MX_UINT16 iSrc2_len, MX_STRING sDst, MX_UINT16 iDst_len)
                                                                                                   ~~~~~~~~~~^~~~
../main/esp-project.c:7375:41: warning: passing argument 3 of 'FCI_FLOAT_TO_STRING' discards 'volatile' qualifier from pointer target type [-Wdiscarded-qualifiers]
     FCV_COUNT = 0;
                                         ^             
In file included from C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\internals.c:568,
                 from ../main/esp-project.c:48:
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\ESP\ESP_CAL_String.c:531:85: note: expected 'MX_STRING' {aka 'char *'} but argument is of type 'volatile MX_CHAR *' {aka 'volatile char *'}
 static MX_STRING FCI_FLOAT_TO_STRING(MX_FLOAT Number, MX_UINT8 Precision, MX_STRING String, MX_UINT16 MSZ_String)
                                                                           ~~~~~~~~~~^~~~~~
../main/esp-project.c:7385:41: warning: passing argument 3 of 'FCI_FLOAT_TO_STRING' discards 'volatile' qualifier from pointer target type [-Wdiscarded-qualifiers]
 
                                         ^            
In file included from C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\internals.c:568,
                 from ../main/esp-project.c:48:
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\ESP\ESP_CAL_String.c:531:85: note: expected 'MX_STRING' {aka 'char *'} but argument is of type 'volatile MX_CHAR *' {aka 'volatile char *'}
 static MX_STRING FCI_FLOAT_TO_STRING(MX_FLOAT Number, MX_UINT8 Precision, MX_STRING String, MX_UINT16 MSZ_String)
                                                                           ~~~~~~~~~~^~~~~~
../main/esp-project.c:7386:14: warning: passing argument 1 of 'FCI_SCOPY' discards 'volatile' qualifier from pointer target type [-Wdiscarded-qualifiers]
      // Name: Ladning ON, Type: Output: 1 -> pin13
              ^~~~~~~~~~~~~
In file included from C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\internals.c:568,
                 from ../main/esp-project.c:48:
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\ESP\ESP_CAL_String.c:876:33: note: expected 'MX_STRING' {aka 'char *'} but argument is of type 'volatile MX_CHAR *' {aka 'volatile char *'}
 static void FCI_SCOPY(MX_STRING sSrc, MX_UINT16 iSrc_len, MX_STRING sDst, MX_UINT16 iDst_len)
                       ~~~~~~~~~~^~~~
../main/esp-project.c:7386:45: warning: passing argument 3 of 'FCI_SCOPY' discards 'volatile' qualifier from pointer target type [-Wdiscarded-qualifiers]
      // Name: Ladning ON, Type: Output: 1 -> pin13
                                             ^~~~~~       
In file included from C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\internals.c:568,
                 from ../main/esp-project.c:48:
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\ESP\ESP_CAL_String.c:876:69: note: expected 'MX_STRING' {aka 'char *'} but argument is of type 'volatile MX_CHAR *' {aka 'volatile char *'}
 static void FCI_SCOPY(MX_STRING sSrc, MX_UINT16 iSrc_len, MX_STRING sDst, MX_UINT16 iDst_len)
                                                           ~~~~~~~~~~^~~~
../main/esp-project.c:7402:40: warning: passing argument 1 of 'FCD_01de1_gLCD_ILI9488_SPI1__Print' discards 'volatile' qualifier from pointer target type [-Wdiscarded-qualifiers]
    // Name: Kalibrering, Type: Decision: X > 40 && X < 90 && Y < 440 && Y > 390?
                                        ^~~~~~~~~~~~~
../main/esp-project.c:5698:50: note: expected 'MX_CHAR *' {aka 'char *'} but argument is of type 'volatile MX_CHAR *' {aka 'volatile char *'}
 
                                                  ^      
../main/esp-project.c:7414:40: warning: passing argument 1 of 'FCD_01de1_gLCD_ILI9488_SPI1__Print' discards 'volatile' qualifier from pointer target type [-Wdiscarded-qualifiers]
     FCD_01de1_gLCD_ILI9488_SPI1__Print("     ", 6, 270, 252, 0, 0);
                                        ^~~~~~~~~~~~~~
../main/esp-project.c:5698:50: note: expected 'MX_CHAR *' {aka 'char *'} but argument is of type 'volatile MX_CHAR *' {aka 'volatile char *'}
 
                                                  ^      
../main/esp-project.c:7539:96: warning: passing argument 5 of 'FCI_SHEAD' discards 'volatile' qualifier from pointer target type [-Wdiscarded-qualifiers]
  // X = 0
                                                                                                ^             
In file included from C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\internals.c:568,
                 from ../main/esp-project.c:48:
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\ESP\ESP_CAL_String.c:815:109: note: expected 'MX_STRING' {aka 'char *'} but argument is of type 'volatile MX_CHAR *' {aka 'volatile char *'}
 static void FCI_SHEAD(MX_STRING sSrc1, MX_UINT16 iSrc1_len, MX_STRING sSrc2, MX_UINT16 iSrc2_len, MX_STRING sDst, MX_UINT16 iDst_len)
                                                                                                   ~~~~~~~~~~^~~~
../main/esp-project.c:7540:40: warning: passing argument 3 of 'FCI_FLOAT_TO_STRING' discards 'volatile' qualifier from pointer target type [-Wdiscarded-qualifiers]
  FCV_Y = 0;
                                        ^             
In file included from C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\internals.c:568,
                 from ../main/esp-project.c:48:
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\ESP\ESP_CAL_String.c:531:85: note: expected 'MX_STRING' {aka 'char *'} but argument is of type 'volatile MX_CHAR *' {aka 'volatile char *'}
 static MX_STRING FCI_FLOAT_TO_STRING(MX_FLOAT Number, MX_UINT8 Precision, MX_STRING String, MX_UINT16 MSZ_String)
                                                                           ~~~~~~~~~~^~~~~~
../main/esp-project.c:7550:40: warning: passing argument 3 of 'FCI_FLOAT_TO_STRING' discards 'volatile' qualifier from pointer target type [-Wdiscarded-qualifiers]
 
                                        ^            
In file included from C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\internals.c:568,
                 from ../main/esp-project.c:48:
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\ESP\ESP_CAL_String.c:531:85: note: expected 'MX_STRING' {aka 'char *'} but argument is of type 'volatile MX_CHAR *' {aka 'volatile char *'}
 static MX_STRING FCI_FLOAT_TO_STRING(MX_FLOAT Number, MX_UINT8 Precision, MX_STRING String, MX_UINT16 MSZ_String)
                                                                           ~~~~~~~~~~^~~~~~
../main/esp-project.c:7551:13: warning: passing argument 1 of 'FCI_SCOPY' discards 'volatile' qualifier from pointer target type [-Wdiscarded-qualifiers]
 /*=----------------------------------------------------------------------=*\
             ^~~~~~~~~~~~~
In file included from C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\internals.c:568,
                 from ../main/esp-project.c:48:
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\ESP\ESP_CAL_String.c:876:33: note: expected 'MX_STRING' {aka 'char *'} but argument is of type 'volatile MX_CHAR *' {aka 'volatile char *'}
 static void FCI_SCOPY(MX_STRING sSrc, MX_UINT16 iSrc_len, MX_STRING sDst, MX_UINT16 iDst_len)
                       ~~~~~~~~~~^~~~
../main/esp-project.c:7551:44: warning: passing argument 3 of 'FCI_SCOPY' discards 'volatile' qualifier from pointer target type [-Wdiscarded-qualifiers]
 /*=----------------------------------------------------------------------=*\
                                            ^~~~~~~~~~~~~
In file included from C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\internals.c:568,
                 from ../main/esp-project.c:48:
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\ESP\ESP_CAL_String.c:876:69: note: expected 'MX_STRING' {aka 'char *'} but argument is of type 'volatile MX_CHAR *' {aka 'volatile char *'}
 static void FCI_SCOPY(MX_STRING sSrc, MX_UINT16 iSrc_len, MX_STRING sDst, MX_UINT16 iDst_len)
                                                           ~~~~~~~~~~^~~~
../main/esp-project.c: In function 'FCM_Test_Out':
../main/esp-project.c:7765:57: warning: unsigned conversion from 'int' to 'MX_UINT8' {aka 'unsigned char'} changes value from '270' to '14' [-Woverflow]
 
                                                         ^  
../main/esp-project.c:7777:57: warning: unsigned conversion from 'int' to 'MX_UINT8' {aka 'unsigned char'} changes value from '270' to '14' [-Woverflow]
 
                                                         ^  
../main/esp-project.c: In function 'FCM_Lyssensor':
../main/esp-project.c:7916:82: warning: passing argument 5 of 'FCI_SHEAD' discards 'volatile' qualifier from pointer target type [-Wdiscarded-qualifiers]
 
                                                                                  ^              
In file included from C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\internals.c:568,
                 from ../main/esp-project.c:48:
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\ESP\ESP_CAL_String.c:815:109: note: expected 'MX_STRING' {aka 'char *'} but argument is of type 'volatile MX_CHAR *' {aka 'volatile char *'}
 static void FCI_SHEAD(MX_STRING sSrc1, MX_UINT16 iSrc1_len, MX_STRING sSrc2, MX_UINT16 iSrc2_len, MX_STRING sDst, MX_UINT16 iDst_len)
                                                                                                   ~~~~~~~~~~^~~~
../main/esp-project.c:7926:40: warning: passing argument 1 of 'FCD_01de1_gLCD_ILI9488_SPI1__Print' discards 'volatile' qualifier from pointer target type [-Wdiscarded-qualifiers]
      // Name: Loop, Type: Loop: Until Y < 137 && Y > 40 && x < 80 && X > 25
                                        ^~~~~~~~~~~~~~~
../main/esp-project.c:5698:50: note: expected 'MX_CHAR *' {aka 'char *'} but argument is of type 'volatile MX_CHAR *' {aka 'volatile char *'}
 
                                                  ^      
../main/esp-project.c: In function 'FCM_FrontValg':
../main/esp-project.c:8321:78: warning: unsigned conversion from 'int' to 'MX_UINT8' {aka 'unsigned char'} changes value from '300' to '44' [-Woverflow]
  // Name: Loop, Type: Loop: Until Y < 137 && Y > 40 && x < 80 && X > 25
                                                                              ^  
../main/esp-project.c:8324:67: warning: unsigned conversion from 'int' to 'MX_UINT8' {aka 'unsigned char'} changes value from '300' to '44' [-Woverflow]
 
                                                                   ^  
In file included from C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\internals.c:568,
                 from ../main/esp-project.c:48:
At top level:
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\ESP\ESP_CAL_String.c:795:18: warning: 'FCI_STRMOV' defined but not used [-Wunused-function]
 static MX_UINT16 FCI_STRMOV(MX_STRING sSrc, MX_UINT16 iSrc_len, MX_STRING sDst, MX_UINT16 iDst_len)
                  ^~~~~~~~~~
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\ESP\ESP_CAL_String.c:771:18: warning: 'FCI_STRREV' defined but not used [-Wunused-function]
 static MX_UINT16 FCI_STRREV(MX_STRING sSrc, MX_UINT16 iSrc_len, MX_STRING sDst, MX_UINT16 iDst_len)
                  ^~~~~~~~~~
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\ESP\ESP_CAL_String.c:701:17: warning: 'FCI_STRING_TO_FLOAT' defined but not used [-Wunused-function]
 static MX_FLOAT FCI_STRING_TO_FLOAT(MX_STRING String, MX_UINT16 MSZ_String)
                 ^~~~~~~~~~~~~~~~~~~
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\ESP\ESP_CAL_String.c:598:18: warning: 'FCI_NUMBER_TO_HEX' defined but not used [-Wunused-function]
 static MX_STRING FCI_NUMBER_TO_HEX(MX_ULONG Number, MX_STRING String, MX_UINT16 MSZ_String)
                  ^~~~~~~~~~~~~~~~~
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\ESP\ESP_CAL_String.c:476:17: warning: 'FCI_COMPARE' defined but not used [-Wunused-function]
 static MX_UINT8 FCI_COMPARE(MX_STRING sSrc1, MX_UINT16 iSrc1_len, MX_STRING sSrc2, MX_UINT16 iSrc2_len, MX_UINT8 iNoCase)
                 ^~~~~~~~~~~
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\ESP\ESP_CAL_String.c:450:13: warning: 'FCI_TOUPPER' defined but not used [-Wunused-function]
 static void FCI_TOUPPER(MX_STRING sSrc, MX_UINT16 iSrc_len, MX_STRING sDst, MX_UINT16 iDst_len)
             ^~~~~~~~~~~
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\ESP\ESP_CAL_String.c:424:13: warning: 'FCI_TOLOWER' defined but not used [-Wunused-function]
 static void FCI_TOLOWER(MX_STRING sSrc, MX_UINT16 iSrc_len, MX_STRING sDst, MX_UINT16 iDst_len)
             ^~~~~~~~~~~
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\ESP\ESP_CAL_String.c:331:10: warning: 'FCI_TOSTRU32' defined but not used [-Wunused-function]
 MX_UINT8 FCI_TOSTRU32(MX_UINT32 iSrc1, MX_STRING sDst, MX_UINT16 iDst_len)
          ^~~~~~~~~~~~
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\ESP\ESP_CAL_String.c:254:10: warning: 'FCI_TOSTRS32' defined but not used [-Wunused-function]
 MX_UINT8 FCI_TOSTRS32(MX_SINT32 iSrc1, MX_STRING sDst, MX_UINT16 iDst_len)
          ^~~~~~~~~~~~
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\ESP\ESP_CAL_String.c:211:10: warning: 'FCI_TOSTRS16' defined but not used [-Wunused-function]
 MX_UINT8 FCI_TOSTRS16(MX_SINT16 iSrc1, MX_STRING sDst, MX_UINT16 iDst_len)
          ^~~~~~~~~~~~
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\ESP\ESP_CAL_String.c:182:18: warning: 'FCI_RIGHTSTRING' defined but not used [-Wunused-function]
 static MX_STRING FCI_RIGHTSTRING(MX_STRING sSrc, MX_UINT16 iSrc_len, MX_UINT16 iCount, MX_STRING sDst, MX_UINT16 iDst_len)
                  ^~~~~~~~~~~~~~~
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\ESP\ESP_CAL_String.c:159:18: warning: 'FCI_LEFTSTRING' defined but not used [-Wunused-function]
 static MX_STRING FCI_LEFTSTRING(MX_STRING sSrc, MX_UINT16 iSrc_len, MX_UINT16 iCount, MX_STRING sDst, MX_UINT16 iDst_len)
                  ^~~~~~~~~~~~~~
In file included from C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\internals.c:568,
                 from ../main/esp-project.c:48:
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\ESP\ESP_CAL_String.c:129:18: warning: 'FCI_MIDSTRING' defined but not used [-Wunused-function]
 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:\ProgramData\MatrixTSL\FlowcodeV9\CAL\ESP\ESP_CAL_String.c:113:17: warning: 'FCI_GETCHAR' defined but not used [-Wunused-function]
 static MX_UINT8 FCI_GETCHAR(MX_STRING sStr1, MX_UINT16 iStr1_len, MX_UINT16 iPos)
                 ^~~~~~~~~~~
[4/7] Linking CXX static library esp-idf\main\libmain.a
[5/7] Generating ld/esp32.project.ld
. .

[6/7] Linking CXX executable esp-project.elf
[7/7] Generating binary image from built executable
esptool.py v2.9-dev
Generated C:/Flowcode9/Projekter/Sun/NewSun/build/esp-project.bin
Executing action: all (aliases: build)
Running ninja in directory c:\flowcode9\projekter\sun\newsun\build
Executing "ninja all"...

Project build complete. To flash, run this command:
C:\.espressif\python_env\idf4.1_py3.7_env\Scripts\python.exe ..\..\..\..\Users\jgu\Desktop\esp-idf\components\esptool_py\esptool\esptool.py -p (PORT) -b 460800 --before default_reset --after hard_reset --chip esp32  write_flash --flash_mode dio --flash_size detect --flash_freq 40m 0x1000 build\bootloader\bootloader.bin 0x8000 build\partition_table\partition-table.bin 0x10000 build\esp-project.bin
or run 'idf.py -p (PORT) flash'

Build completed successfully 

Using FCD settings for linker
Launching the linker/assembler...
C:\Program Files (x86)\Flowcode v9\data\tools\DoNothing\DoNothing.exe  

Using FCD settings for programmer
Launching the programmer...
C:\ProgramData\MatrixTSL\FlowcodeV9\FCD\ESP\Batch\esp32_prog.bat  "C:\Users\jgu\Desktop\esp-idf\" "NewSun" "C:\Flowcode9\Projekter\Sun\" COM4 115200

C:\Flowcode9\Projekter\Sun>REM CRC: 0796FC1E6A776AF9156B257209C35258CE7C28B3EC20AEA2C632DB392A0E4BFD51BCA0B0BE9D29A6967C85454D48D34EF6A4CCB7873802B223E4F4A1008A3591A32B46A47AAB2D21848A68B9581D31BC91C05B2A7E3ADB3C4D00059D795899828FA8FC08CAA3178C36704C7C6C9A47105E07F5A3DAE9F727EBE89217067498807D244771FDC991670F5FFC06582E728E4759676487E14245E7CE4E83DB1D25714B4A4F3814D91BF78F4943FF2251F1F8F8986F778F588E992C3050DA273BE4EE1DBDD6E61D775CC70D0E5F8D3FCF5A48FB91B184043A20212EABD4ED9561D2123431AF726C5DC381 

C:\Flowcode9\Projekter\Sun>REM REVISION: 3.0 

C:\Flowcode9\Projekter\Sun>REM GUID: 23F1E3A0-C4DC-4746-B4FD-05C4AFBA61E9 

C:\Flowcode9\Projekter\Sun>REM DATE: 09\03\2021 

C:\Flowcode9\Projekter\Sun>REM DIR: FCD\ESP\Batch\esp32_prog.bat 
Programming NewSun ...
Setting IDF_PATH: C:\Users\jgu\Desktop\esp-idf

Adding ESP-IDF tools to PATH...
    C:\.espressif\tools\xtensa-esp32-elf\esp-2020r3-8.4.0\xtensa-esp32-elf\bin
    C:\.espressif\tools\xtensa-esp32s2-elf\esp-2020r3-8.4.0\xtensa-esp32s2-elf\bin
    C:\.espressif\tools\esp32ulp-elf\2.28.51-esp-20191205\esp32ulp-elf-binutils\bin
    C:\.espressif\tools\esp32s2ulp-elf\2.28.51-esp-20191205\esp32s2ulp-elf-binutils\bin
    C:\.espressif\tools\cmake\3.13.4\bin
    C:\.espressif\tools\openocd-esp32\v0.10.0-esp32-20210401\openocd-esp32\bin
    C:\.espressif\tools\ninja\1.9.0\
    C:\.espressif\tools\idf-exe\1.0.1\
    C:\.espressif\tools\ccache\3.7\
    C:\.espressif\python_env\idf4.1_py3.7_env\Scripts
    C:\Users\jgu\Desktop\esp-idf\tools
    
Checking if Python packages are up to date...
Python requirements from C:\Users\jgu\Desktop\esp-idf\requirements.txt are satisfied.

Done! You can now compile ESP-IDF projects.
Go to the project directory and run:

  idf.py build

[1/4] cmd.exe /C "cd /D C:\Flowcode9\Projekter\Sun\NewSun\build\esp-idf\partition_table && C:\.espressif\tools\cmake\3.13.4\bin\cmake.exe -E echo "Partition table binary generated. Contents:" && C:\.espressif\tools\cmake\3.13.4\bin\cmake.exe -E echo ******************************************************************************* && C:\.espressif\python_env\idf4.1_py3.7_env\Scripts\python.exe C:/Users/jgu/Desktop/esp-idf/components/partition_table/gen_esp32part.py -q --offset 0x8000 --flash-size 2MB C:/Flowcode9/Projekter/Sun/NewSun/build/partition_table/partition-table.bin && C:\.espressif\tools\cmake\3.13.4\bin\cmake.exe -E echo *******************************************************************************"
Partition table binary generated. Contents:
*******************************************************************************
# Espressif ESP32 Partition Table
# Name, Type, SubType, Offset, Size, Flags
nvs,data,nvs,0x9000,24K,
phy_init,data,phy,0xf000,4K,
factory,app,factory,0x10000,1M,
*******************************************************************************
[2/4] Performing build step for 'bootloader'
ninja: no work to do.
esptool.py -p COM4 -b 115200 --before default_reset --after hard_reset --chip esp32 write_flash --flash_mode dio --flash_freq 40m --flash_size 2MB 0x8000 partition_table/partition-table.bin 0x1000 bootloader/bootloader.bin 0x10000 esp-project.bin
esptool.py v2.9-dev
Serial port COM4
Connecting...
.
.
.
.


Chip is ESP32-D0WDQ6 (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: 58:bf:25:36:74:94
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Compressed 3072 bytes to 103...
Writing at 0x00008000... (100 %)
Wrote 3072 bytes (103 compressed) at 0x00008000 in 0.0 seconds (effective 1572.7 kbit/s)...
Hash of data verified.
Compressed 24048 bytes to 14906...
Writing at 0x00001000... (100 %)
Wrote 24048 bytes (14906 compressed) at 0x00001000 in 1.3 seconds (effective 144.6 kbit/s)...
Hash of data verified.
Compressed 242064 bytes to 134020...
Writing at 0x00010000... (11 %)
.

Writing at 0x00014000... (22 %)
Writing at 0x00018000... (33 %)
.

Writing at 0x0001c000... (44 %)
Writing at 0x00020000... (55 %)
.

Writing at 0x00024000... (66 %)
Writing at 0x00028000... (77 %)
Writing at 0x0002c000... (88 %)
. . .

Writing at 0x00030000... (100 %)
Wrote 242064 bytes (134020 compressed) at 0x00010000 in 11.9 seconds (effective 162.2 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...
Adding "flash"'s dependency "all" to list of commands with default set of options.
Executing action: all (aliases: build)
Running ninja in directory c:\flowcode9\projekter\sun\newsun\build
Executing "ninja all"...
Executing action: flash
Running esptool.py in directory c:\flowcode9\projekter\sun\newsun\build
Executing "C:\.espressif\python_env\idf4.1_py3.7_env\Scripts\python.exe C:\Users\jgu\Desktop\esp-idf\components/esptool_py/esptool/esptool.py -p COM4 -b 115200 --before default_reset --after hard_reset --chip esp32 write_flash @flash_project_args"...
Done


FINISHED
