Target folder: C:\Flowcode10\Projekter
Source name:   C:\Flowcode10\Projekter\NewSun.fcfx
Title:         
Description:   
Device:        ESP.ESP32.ESP32_DEVKITV1
Generated by:  Flowcode v10.0.1.18
Date:          Sunday, March 05, 2023 10:20:32
Users:         1
Registered to: jgu1 (43418841)
Licence key: UBG57W
https://www.flowcode.co.uk
Using FCD settings for compiler
Launching the compiler...
C:\ProgramData\MatrixTSL\FlowcodeV10\FCD\ESP\Batch\esp32_build.bat  "C:\Users\jgu\Desktop\esp-idf\" "NewSun" "C:\Flowcode10\Projekter\" esp32s_sdkconfig 

C:\Flowcode10\Projekter>REM CRC: 0796FC1E6A776AF9156B257209C35258CE7C28B3EC20AEA2C632DB392A0E4BFD5B3F53B21811978F7B21FE4085045A7E774D1D3D69D8A99EE7320EAE740A5DB6EFB7F8B9768FC390BAFB420BC9D6F4D56375EE3039B8BDDEA4D1C56CD1580BF569DAEA777BB49732B199900461C78937B42DEF8219F63A24580137A2F6C8FDB7553324EFF791947E8AB6FFD612B81BAA97C798A8F1CFC189DE5D38517747C774AF2DD6F839BAECF83F7F994C7164CE77868F480396BDEF2F2C3050DA273BE4EEB3E11C07C6C54039FF3C81C780D7ABB89002782687B4F007BB7835FE546B805B7544DA781CA69696 

C:\Flowcode10\Projekter>REM REVISION: 2.0 

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

C:\Flowcode10\Projekter>REM DATE: 05\12\2022 

C:\Flowcode10\Projekter>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:\Flowcode10\Projekter\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:/Flowcode10/Projekter/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 C:\Flowcode10\Projekter\NewSun.h:38,
                 from ../main/esp-project.c:20:
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\FlowcodeV10\CAL\ESP\ESP_CAL_String.c:110,
                 from C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\internals.c:568,
                 from C:\Flowcode10\Projekter\NewSun.h:48,
                 from ../main/esp-project.c:20:
C:\ProgramData\MatrixTSL\FlowcodeV10\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\FlowcodeV10\CAL\includes.c:93,
                 from C:\Flowcode10\Projekter\NewSun.h:691,
                 from ../main/esp-project.c:20:
C:\ProgramData\MatrixTSL\FlowcodeV10\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\FlowcodeV10\CAL\ESP\ESP_CAL_ADC.c: In function 'FC_CAL_ADC_Enable_1':
C:\ProgramData\MatrixTSL\FlowcodeV10\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 C:\Flowcode10\Projekter\NewSun.h:40,
                 from ../main/esp-project.c:20:
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\FlowcodeV10\CAL\includes.c:93,
                 from C:\Flowcode10\Projekter\NewSun.h:691,
                 from ../main/esp-project.c:20:
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\ESP\ESP_CAL_ADC.c: In function 'FC_CAL_ADC_Sample_1':
C:\ProgramData\MatrixTSL\FlowcodeV10\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 C:\Flowcode10\Projekter\NewSun.h:40,
                 from ../main/esp-project.c:20:
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\FlowcodeV10\CAL\includes.c:93,
                 from C:\Flowcode10\Projekter\NewSun.h:691,
                 from ../main/esp-project.c:20:
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\ESP\ESP_CAL_ADC.c: In function 'FC_CAL_ADC_Disable_1':
C:\ProgramData\MatrixTSL\FlowcodeV10\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 C:\Flowcode10\Projekter\NewSun.h:40,
                 from ../main/esp-project.c:20:
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\FlowcodeV10\CAL\includes.c:397,
                 from C:\Flowcode10\Projekter\NewSun.h:691,
                 from ../main/esp-project.c:20:
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\ESP\ESP_CAL_EEPROM.c: In function 'FC_CAL_EE_Read':
C:\ProgramData\MatrixTSL\FlowcodeV10\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\FlowcodeV10\CAL\internals.c:568,
                 from C:\Flowcode10\Projekter\NewSun.h:48,
                 from ../main/esp-project.c:20:
C:\ProgramData\MatrixTSL\FlowcodeV10\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\FlowcodeV10\CAL\includes.c:397,
                 from C:\Flowcode10\Projekter\NewSun.h:691,
                 from ../main/esp-project.c:20:
C:\ProgramData\MatrixTSL\FlowcodeV10\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 C:\Flowcode10\Projekter\NewSun.h:39,
                 from ../main/esp-project.c:20:
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\FlowcodeV10\CAL\includes.c:397,
                 from C:\Flowcode10\Projekter\NewSun.h:691,
                 from ../main/esp-project.c:20:
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\ESP\ESP_CAL_EEPROM.c: In function 'FC_CAL_EE_Write':
C:\ProgramData\MatrixTSL\FlowcodeV10\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\FlowcodeV10\CAL\internals.c:568,
                 from C:\Flowcode10\Projekter\NewSun.h:48,
                 from ../main/esp-project.c:20:
C:\ProgramData\MatrixTSL\FlowcodeV10\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\FlowcodeV10\CAL\includes.c:397,
                 from C:\Flowcode10\Projekter\NewSun.h:691,
                 from ../main/esp-project.c:20:
C:\ProgramData\MatrixTSL\FlowcodeV10\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 C:\Flowcode10\Projekter\NewSun.h:39,
                 from ../main/esp-project.c:20:
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\FlowcodeV10\CAL\includes.c:1311,
                 from C:\Flowcode10\Projekter\NewSun.h:691,
                 from ../main/esp-project.c:20:
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\ESP\ESP_CAL_SPI.c: In function 'FC_CAL_SPI_Master_Byte_2':
C:\ProgramData\MatrixTSL\FlowcodeV10\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:281:11: warning: unused variable 'FCL_IDX' [-Wunused-variable]
 
           ^      
../main/esp-project.c:280:12: warning: unused variable 'FCL_VAL' [-Wunused-variable]
  #if (0) // 16 == 8
            ^~~~~~~
../main/esp-project.c: In function 'FCD_06651_eeprom1__WriteByte':
../main/esp-project.c:364:11: warning: unused variable 'FCL_IDX' [-Wunused-variable]
 
           ^      
../main/esp-project.c: In function 'FCD_06651_eeprom1__WriteInt':
../main/esp-project.c:412:11: warning: unused variable 'FCL_IDX' [-Wunused-variable]
   FCD_06651_eeprom1__Write(FCL_STARTADDRESS, FCL_VALUE);
           ^~~~~~~
../main/esp-project.c:411:12: warning: unused variable 'FCL_VAL' [-Wunused-variable]
 
            ^      
../main/esp-project.c: In function 'FCD_07da1_cal_i2c1__Prv_TextConsole':
../main/esp-project.c:874:10: warning: unused variable 'FCL_TSTR' [-Wunused-variable]
        :Version: 5.0 (0x100028)
          ^~~~~~~~
../main/esp-project.c: In function 'FCD_0f391_AmbientLight1__Initialise':
../main/esp-project.c:1124:12: warning: unused variable 'FCL_PROM' [-Wunused-variable]
        :GUID: 7aad74d6-b24e-4dab-91eb-5d72a973f12d
            ^~~~~~~~
../main/esp-project.c:1123:11: warning: unused variable 'FCL_TEMP' [-Wunused-variable]
    Use :adc_base
           ^~~~~~  
../main/esp-project.c: In function 'FCD_01532_cal_spi__Master_Enable_CS':
../main/esp-project.c:1966:10: warning: unused variable 'FCL_STR' [-Wunused-variable]
 
          ^      
../main/esp-project.c: In function 'FCD_01532_cal_spi__Prv_TextConsole':
../main/esp-project.c:2019: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:2155:10: warning: unused variable 'FCL_STR' [-Wunused-variable]
  //Local variable definitions
          ^~~~~~~
../main/esp-project.c: In function 'FCD_01531_cal_spi1__Master_Enable_CS':
../main/esp-project.c:2393:10: warning: unused variable 'FCL_STR' [-Wunused-variable]
 void FCD_01531_cal_spi1__Prv_TextConsole(MX_CHAR *FCL_STR, MX_UINT16 FCLsz_STR, MX_UINT8 FCL_COLOUR, MX_UINT8 FCL_APPENDTIMESTAMP)
          ^~~~~~~
../main/esp-project.c: In function 'FCD_01531_cal_spi1__Prv_TextConsole':
../main/esp-project.c:2436:10: warning: unused variable 'FCL_TSTR' [-Wunused-variable]
     // MOSI = 1
          ^~~~~~  
../main/esp-project.c: In function 'FCD_01531_cal_spi1__Master_Disable_CS':
../main/esp-project.c:2572:10: warning: unused variable 'FCL_STR' [-Wunused-variable]
    Use :Gets the number of individual data entries stored in the LUT.
          ^~~~~~~
../main/esp-project.c: In function 'FCD_09e54_gLCD_Font4__ReadWidth':
../main/esp-project.c:2725:11: warning: unused variable 'FCL_PWIDTH' [-Wunused-variable]
    FCL_CHARACTER = FCL_CHARACTER - 43;
           ^~~~~~~~~~
../main/esp-project.c:2724:12: warning: unused variable 'FCL_POSITION' [-Wunused-variable]
    // .Character = .Character - FirstChar
            ^~~~~~~~~~~~
../main/esp-project.c: In function 'FCD_09e53_gLCD_Font3__ReadWidth':
../main/esp-project.c:3015:11: warning: unused variable 'FCL_PWIDTH' [-Wunused-variable]
    FCL_CHARACTER = FCL_CHARACTER - 33;
           ^~~~~~~~~~
../main/esp-project.c:3014:12: warning: unused variable 'FCL_POSITION' [-Wunused-variable]
    // .Character = .Character - FirstChar
            ^~~~~~~~~~~~
../main/esp-project.c: In function 'FCD_09e52_gLCD_Font2__ReadWidth':
../main/esp-project.c:3305:11: warning: unused variable 'FCL_PWIDTH' [-Wunused-variable]
    FCL_CHARACTER = FCL_CHARACTER - 33;
           ^~~~~~~~~~
../main/esp-project.c:3304:12: warning: unused variable 'FCL_POSITION' [-Wunused-variable]
    // .Character = .Character - FirstChar
            ^~~~~~~~~~~~
../main/esp-project.c: In function 'FCD_09e51_gLCD_Font1__ReadWidth':
../main/esp-project.c:3595:11: warning: unused variable 'FCL_PWIDTH' [-Wunused-variable]
    FCL_CHARACTER = FCL_CHARACTER - 33;
           ^~~~~~~~~~
../main/esp-project.c:3594:12: warning: unused variable 'FCL_POSITION' [-Wunused-variable]
    // .Character = .Character - FirstChar
            ^~~~~~~~~~~~
../main/esp-project.c: In function 'FCD_0ba71_Base_GLCD__ReadFontStat':
../main/esp-project.c:3863:12: warning: unused variable 'FCL_POSITION' [-Wunused-variable]
 
            ^           
../main/esp-project.c: In function 'FCD_0ba71_Base_GLCD__ReadFontByte':
../main/esp-project.c:3946:12: warning: unused variable 'FCL_POSITION' [-Wunused-variable]
 
            ^           
../main/esp-project.c: In function 'FCM_NEXT':
../main/esp-project.c:6375:58: warning: unsigned conversion from 'int' to 'MX_UINT8' {aka 'unsigned char'} changes value from '300' to '44' [-Woverflow]
  FCD_01de1_gLCD_ILI9488_SPI1__Print("Test out.", 10, 320, 130, 2, 0);
                                                          ^~~
../main/esp-project.c: In function 'FCM_VoltAmp':
../main/esp-project.c:6682: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\FlowcodeV10\CAL\internals.c:568,
                 from C:\Flowcode10\Projekter\NewSun.h:48,
                 from ../main/esp-project.c:20:
C:\ProgramData\MatrixTSL\FlowcodeV10\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:6683: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\FlowcodeV10\CAL\internals.c:568,
                 from C:\Flowcode10\Projekter\NewSun.h:48,
                 from ../main/esp-project.c:20:
C:\ProgramData\MatrixTSL\FlowcodeV10\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:6693: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\FlowcodeV10\CAL\internals.c:568,
                 from C:\Flowcode10\Projekter\NewSun.h:48,
                 from ../main/esp-project.c:20:
C:\ProgramData\MatrixTSL\FlowcodeV10\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:6694: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\FlowcodeV10\CAL\internals.c:568,
                 from C:\Flowcode10\Projekter\NewSun.h:48,
                 from ../main/esp-project.c:20:
C:\ProgramData\MatrixTSL\FlowcodeV10\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:6694: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\FlowcodeV10\CAL\internals.c:568,
                 from C:\Flowcode10\Projekter\NewSun.h:48,
                 from ../main/esp-project.c:20:
C:\ProgramData\MatrixTSL\FlowcodeV10\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:6710: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:4987:50: note: expected 'MX_CHAR *' {aka 'char *'} but argument is of type 'volatile MX_CHAR *' {aka 'volatile char *'}
   {
                                                  ^      
../main/esp-project.c:6722: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:4987:50: note: expected 'MX_CHAR *' {aka 'char *'} but argument is of type 'volatile MX_CHAR *' {aka 'volatile char *'}
   {
                                                  ^      
../main/esp-project.c:6847: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\FlowcodeV10\CAL\internals.c:568,
                 from C:\Flowcode10\Projekter\NewSun.h:48,
                 from ../main/esp-project.c:20:
C:\ProgramData\MatrixTSL\FlowcodeV10\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:6848: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\FlowcodeV10\CAL\internals.c:568,
                 from C:\Flowcode10\Projekter\NewSun.h:48,
                 from ../main/esp-project.c:20:
C:\ProgramData\MatrixTSL\FlowcodeV10\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:6858: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\FlowcodeV10\CAL\internals.c:568,
                 from C:\Flowcode10\Projekter\NewSun.h:48,
                 from ../main/esp-project.c:20:
C:\ProgramData\MatrixTSL\FlowcodeV10\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:6859:13: warning: passing argument 1 of 'FCI_SCOPY' discards 'volatile' qualifier from pointer target type [-Wdiscarded-qualifiers]
 /*=----------------------------------------------------------------------=*\
             ^~~~~~~~~~~~~
In file included from C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\internals.c:568,
                 from C:\Flowcode10\Projekter\NewSun.h:48,
                 from ../main/esp-project.c:20:
C:\ProgramData\MatrixTSL\FlowcodeV10\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:6859:44: warning: passing argument 3 of 'FCI_SCOPY' discards 'volatile' qualifier from pointer target type [-Wdiscarded-qualifiers]
 /*=----------------------------------------------------------------------=*\
                                            ^~~~~~~~~~~~~
In file included from C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\internals.c:568,
                 from C:\Flowcode10\Projekter\NewSun.h:48,
                 from ../main/esp-project.c:20:
C:\ProgramData\MatrixTSL\FlowcodeV10\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:7081:57: warning: unsigned conversion from 'int' to 'MX_UINT8' {aka 'unsigned char'} changes value from '270' to '14' [-Woverflow]
  if (FCV_TOUCH)
                                                         ^  
../main/esp-project.c:7093: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:7241:82: warning: passing argument 5 of 'FCI_SHEAD' discards 'volatile' qualifier from pointer target type [-Wdiscarded-qualifiers]
 
                                                                                  ^              
In file included from C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\internals.c:568,
                 from C:\Flowcode10\Projekter\NewSun.h:48,
                 from ../main/esp-project.c:20:
C:\ProgramData\MatrixTSL\FlowcodeV10\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:7251: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:4987: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:7649:78: warning: unsigned conversion from 'int' to 'MX_UINT8' {aka 'unsigned char'} changes value from '300' to '44' [-Woverflow]
  // Name: Component Macro, Type: Component Macro: AmbientLight1::ContinuousMeasurement(0)
                                                                              ^~~
../main/esp-project.c:7652:67: 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
                                                                   ^~~
In file included from C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\internals.c:568,
                 from C:\Flowcode10\Projekter\NewSun.h:48,
                 from ../main/esp-project.c:20:
At top level:
C:\ProgramData\MatrixTSL\FlowcodeV10\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\FlowcodeV10\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\FlowcodeV10\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\FlowcodeV10\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\FlowcodeV10\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\FlowcodeV10\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\FlowcodeV10\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\FlowcodeV10\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\FlowcodeV10\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\FlowcodeV10\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\FlowcodeV10\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\FlowcodeV10\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\FlowcodeV10\CAL\internals.c:568,
                 from C:\Flowcode10\Projekter\NewSun.h:48,
                 from ../main/esp-project.c:20:
C:\ProgramData\MatrixTSL\FlowcodeV10\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\FlowcodeV10\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:/Flowcode10/Projekter/NewSun/build/esp-project.bin
Executing action: all (aliases: build)
Running ninja in directory c:\flowcode10\projekter\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 v10\tools\DoNothing\DoNothing.exe  

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

C:\Flowcode10\Projekter>REM CRC: 0796FC1E6A776AF9156B257209C35258CE7C28B3EC20AEA2C632DB392A0E4BFD51BCA0B0BE9D29A6967C85454D48D34EF6A4CCB7873802B223E4F4A1008A35919A0D46BD3B6AACB92DE4D84759EBB5079CA9DA2D2BBCDAE2A4D1C56CD1580BF5AC545F21F8CB18E336704C7C6C9A47105E07F5A3DAE9F727EBE89217067498807D244771FDC991670F5FFC06582E728E4759676487E14245E7CE4E83DB1D25714B4A4F3814D91BF78F4943FF2251F1F8F8986F778F588E992C3050DA273BE4EE46A631E7651DFD02EFFBF5D4394E2906594D67FC2171232F19F5A1519A28222137BBA28BD2FD4C2E 

C:\Flowcode10\Projekter>REM REVISION: 1.0 

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

C:\Flowcode10\Projekter>REM DATE: 08\08\2022 

C:\Flowcode10\Projekter>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:\Flowcode10\Projekter\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:/Flowcode10/Projekter/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: 78:e3:6d:10:50:6c
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 783.6 kbit/s)...
Hash of data verified.
Compressed 24048 bytes to 14907...
Writing at 0x00001000... (100 %)
. . .

Wrote 24048 bytes (14907 compressed) at 0x00001000 in 1.3 seconds (effective 144.8 kbit/s)...
Hash of data verified.
Compressed 242992 bytes to 134550...
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 242992 bytes (134550 compressed) at 0x00010000 in 12.1 seconds (effective 160.9 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:\flowcode10\projekter\newsun\build
Executing "ninja all"...
Executing action: flash
Running esptool.py in directory c:\flowcode10\projekter\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
