In my folder exists several files concerning my project. the msg.txt file
I already have sent to you. Pls tell me which you need. I can not move them to you by the Attachments and Add file Buttons. What shall I do ?
Thanks Felix
Uploading problem
-
- Posts: 48
- http://meble-kuchenne.info.pl
- Joined: Wed Feb 24, 2021 1:20 pm
- Been thanked: 2 times
Re: Uploading problem
- Attachments
-
- Unbenannt.png (35.36 KiB) Viewed 3950 times
-
- Unbenannt.png (35.36 KiB) Viewed 3950 times
-
- Unbenannt.png (35.36 KiB) Viewed 3950 times
-
- Posts: 48
- Joined: Wed Feb 24, 2021 1:20 pm
- Been thanked: 2 times
Re: Uploading problem
Now I managed to open the file PWM2.c
//************************************************************************************
//**
//** Source name: C:\Users\maestro\Desktop\Flowcode Files\PWM2.fcfx
//** Title:
//** Description:
//** Device: ESP.ESP32.ESP32_WROOM_32
//**
//** Generated by: Flowcode v9.2.0.33
//** Date: Wednesday, March 16, 2022 12:49:07
//** Users: 1
//** Registered to: felixegger (38396505)
//** Licence key: JMA9BD
//**
//**
//** NOT FOR COMMERCIAL USE
//**
//** https://www.flowcode.co.uk
//**
//************************************************************************************
#define MX_ESP
#define MX_CAL_ESP
#define MX_CLK_SPEED 240000000
#define FCP_NULL Unconnected_Port
#define MX_CAL_ESP32
#include <stdio.h>
#include <string.h>
#include "freertos/FreeRTOS.h"
#include "freertos/event_groups.h"
#include "freertos/task.h"
#include "driver/gpio.h"
#include "esp_wifi.h"
#include "esp_log.h"
#include "esp_event_loop.h"
#include "nvs_flash.h"
#include "driver/adc.h"
#include "lwip/err.h"
#include "lwip/sys.h"
#include "sdkconfig.h"
/*========================================================================*\
Use :Include the type definitions
\*========================================================================*/
#include "C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\internals.c"
MX_UINT8 FCLV_LOOP1;
MX_UINT8 FCLV_LOOP2;
/*========================================================================*\
Use :panel
:Variable declarations
:Macro function declarations
\*========================================================================*/
#define FCV_FALSE (0)
#define FCV_TRUE (1)
MX_GLOBAL MX_UINT8 FCV_AB;
MX_GLOBAL MX_UINT8 FCV_AA;
MX_GLOBAL MX_UINT8 FCV_BB;
MX_UINT8 FCM_ChangePeriod(MX_UINT16 FCL_PERIOD, MX_SINT16 FCL_PRESCALER);
MX_UINT8 FCM_SetDutyCycle(MX_UINT8 FCL_DUTY);
/*========================================================================*\
Use :cal_pwm
:Variable declarations
:Macro function declarations
\*========================================================================*/
#define MX_PWM_REF1
#define MX_PWM_PRESCALE1 (1)
#define MX_PWM_PIN_1 (4)
#define MX_PWM_TYPE_1 (0)
#define MX_PWM_PORT_1 PORTB
#define MX_PWM_TRIS_1 TRISB
#define MX_PWM_CHANNEL_1 (1)
/*=----------------------------------------------------------------------=*\
Use :cal_pwm
:Supplementary defines
\*=----------------------------------------------------------------------=*/
#define MX_PWM
#define MX_PWM_FREQ_1 1068
#define MX_PWM_REMAPPABLE
#define MX_PWM_RPOR_1 PPS0
#define MX_PWM_RPOC_1 1
#define MX_PWM_TMR_1 0
void FC_CAL_PWM_ChangePeriod_1(MX_UINT16 FCL_PERIOD, MX_UINT16 FCL_PRESCALER);
void FC_CAL_PWM_Disable_1();
void FC_CAL_PWM_SetDuty8Bit_1(MX_UINT8 FCL_DUTY);
void FC_CAL_PWM_Enable_1();
void FC_CAL_PWM_ChangeFrequency_1(MX_UINT32 FCL_FREQUENCY);
void FC_CAL_PWM_SetDuty10Bit_1(MX_UINT16 FCL_DUTY);
void FC_CAL_PWM_SetDutyFloat_1(MX_FLOAT FCL_DUTY);
/*========================================================================*\
Use :PWM1
:Variable declarations
:Macro function declarations
\*========================================================================*/
MX_GLOBAL MX_UINT8 FCV_0df41_PWM1__ENABLED = (0x0);
void FCD_0df41_PWM1__ChangePeriod(MX_UINT16 FCL_PERIOD, MX_SINT16 FCL_PRESCALER);
void FCD_0df41_PWM1__Disable();
void FCD_0df41_PWM1__SetDutyCycle(MX_UINT8 FCL_DUTY);
void FCD_0df41_PWM1__Enable();
void FCD_0df41_PWM1__SetFrequency(MX_UINT32 FCL_FREQUENCY);
void FCD_0df41_PWM1__SetDutyCycle10Bit(MX_UINT16 FCL_DUTY);
/*========================================================================*\
Use :Include the chip adaption layer
\*========================================================================*/
#include "C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\includes.c"
/*========================================================================*\
Use :PWM1
:Macro implementations
\*========================================================================*/
/*=----------------------------------------------------------------------=*\
Use :Sets the overall period and prescaler of the output PWM signal.
:
:Parameters for macro ChangePeriod:
: Period : The maximum number that will represent 100% on, PIC/AVR: 0-255 16-bit PIC: 0-65535
: Prescaler : The scaler used to divide the system clock speed down to the PWM rate.
\*=----------------------------------------------------------------------=*/
void FCD_0df41_PWM1__ChangePeriod(MX_UINT16 FCL_PERIOD, MX_SINT16 FCL_PRESCALER)
{
FC_CAL_PWM_ChangePeriod_1(FCL_PERIOD, FCL_PRESCALER);
}
/*=----------------------------------------------------------------------=*\
Use :Disables a PWM channel and allows the default output / input state to be resumed
\*=----------------------------------------------------------------------=*/
void FCD_0df41_PWM1__Disable()
{
// Enabled = 0
FCV_0df41_PWM1__ENABLED = 0;
FC_CAL_PWM_Disable_1();
}
/*=----------------------------------------------------------------------=*\
Use :Sets the PWM duty cycle in terms of on/off based on the current period setting.
:E.g. if period = 255 then duty of 128 is equal to 50% on and 50% off.
:16-bit PIC users should use the 10bit duty function to access the full range.
:
:Parameters for macro SetDutyCycle:
: Duty : 8-bit PWM duty 0-255
\*=----------------------------------------------------------------------=*/
void FCD_0df41_PWM1__SetDutyCycle(MX_UINT8 FCL_DUTY)
{
#if 0 // Disabled code
if (FCV_0df41_PWM1__ENABLED)
{
// } else {
}
#endif // Disabled code
FC_CAL_PWM_SetDuty8Bit_1(FCL_DUTY);
}
/*=----------------------------------------------------------------------=*\
Use :Enables a PWM channel as an output overriding the default output pin state.
\*=----------------------------------------------------------------------=*/
void FCD_0df41_PWM1__Enable()
{
// Enabled = 1
FCV_0df41_PWM1__ENABLED = 1;
FC_CAL_PWM_ChangePeriod_1(90, 1);
FC_CAL_PWM_Enable_1();
}
/*=----------------------------------------------------------------------=*\
Use :Sets a PWM of the specifed frequency at a duty of 50%
:Ideal use is a frequency generator
:
:Parameters for macro SetFrequency:
: Frequency : Enter frequency in Hz
\*=----------------------------------------------------------------------=*/
void FCD_0df41_PWM1__SetFrequency(MX_UINT32 FCL_FREQUENCY)
{
//Local variable definitions
MX_UINT16 FCL_PERIODOVERFLOW;
MX_UINT8 FCL_PRESCALER;
MX_SINT16 FCL_DUTY10BIT;
// .Prescaler = 1
FCL_PRESCALER = 1;
while (1)
{
// .PeriodOverflow = (- .Prescaler + (ClockSpeed / (.Frequency << 2))) / .Prescaler
FCL_PERIODOVERFLOW = (-FCL_PRESCALER + (240000000 / (FCL_FREQUENCY << 2))) / FCL_PRESCALER;
if (FCL_PERIODOVERFLOW > 255)
{
// .Prescaler = .Prescaler << 2
FCL_PRESCALER = FCL_PRESCALER << 2;
// } else {
}
// .Duty10Bit = .PeriodOverflow << 1
FCL_DUTY10BIT = FCL_PERIODOVERFLOW << 1;
if (((FCL_PERIODOVERFLOW > 255) && (FCL_PRESCALER)) == 0) break;
}
FC_CAL_PWM_ChangePeriod_1(FCL_PERIODOVERFLOW, FCL_PRESCALER);
FC_CAL_PWM_SetDuty10Bit_1(FCL_DUTY10BIT);
}
/*=----------------------------------------------------------------------=*\
Use :PIC/AVR - Sets the full scale PWM duty cycle based on the current period setting.
:If period = 255 then Duty of 512 is equal to 50%.
:
:16-bit PICs have a 16-bit period range available.
:If period = 65535 then Duty of 32768 is equal to 50%.
:
:Parameters for macro SetDutyCycle10Bit:
: Duty : PWM duty PIC/AVR: 0-1023 16-bit PIC: 0-65535
\*=----------------------------------------------------------------------=*/
void FCD_0df41_PWM1__SetDutyCycle10Bit(MX_UINT16 FCL_DUTY)
{
#if 0 // Disabled code
if (FCV_0df41_PWM1__ENABLED)
{
// } else {
}
#endif // Disabled code
FC_CAL_PWM_SetDuty10Bit_1(FCL_DUTY);
}
/*========================================================================*\
Use :panel
:Macro implementations
\*========================================================================*/
/*=----------------------------------------------------------------------=*\
Use :Sets the overall period and prescaler of the output PWM signal.
:
:Parameters for macro ChangePeriod:
: Period : The maximum number that will represent 100% on, PIC/AVR: 0-255 16-bit PIC: 0-65535
: Prescaler : The scaler used to divide the system clock speed down to the PWM rate.
:
:Returns : MX_UINT8
\*=----------------------------------------------------------------------=*/
MX_UINT8 FCM_ChangePeriod(MX_UINT16 FCL_PERIOD, MX_SINT16 FCL_PRESCALER)
{
//Local variable definitions
MX_UINT8 FCR_RETVAL;
// Name: ChangePeriod, Type: Calculation:
// PWM1 :: ChangePeriod(.Period, .Prescaler)
FCD_0df41_PWM1__ChangePeriod(FCL_PERIOD, FCL_PRESCALER);
return (FCR_RETVAL);
}
/*=----------------------------------------------------------------------=*\
Use :Sets the PWM duty cycle in terms of on/off based on the current period setting.
:E.g. if period = 255 then duty of 128 is equal to 50% on and 50% off.
:16-bit PIC users should use the 10bit duty function to access the full range.
:
:Parameters for macro SetDutyCycle:
: Duty : 8-bit PWM duty 0-255
:
:Returns : MX_UINT8
\*=----------------------------------------------------------------------=*/
MX_UINT8 FCM_SetDutyCycle(MX_UINT8 FCL_DUTY)
{
//Local variable definitions
MX_UINT8 FCR_RETVAL;
// Name: SetDutyCycle, Type: Calculation:
// PWM1 :: SetDutyCycle(.Duty)
FCD_0df41_PWM1__SetDutyCycle(FCL_DUTY);
return (FCR_RETVAL);
}
/*========================================================================*\
Use :Main
\*========================================================================*/
void app_main()
{
// Initialize NVS
esp_err_t ret = nvs_flash_init();
if (ret == ESP_ERR_NVS_NO_FREE_PAGES || ret == ESP_ERR_NVS_NEW_VERSION_FOUND) {
ESP_ERROR_CHECK(nvs_flash_erase());
ret = nvs_flash_init();
}
ESP_ERROR_CHECK( ret );
ESP_ERROR_CHECK(esp_event_loop_create_default());
// Name: Calculation, Type: Calculation:
// bb = 1
FCV_BB = 1;
// Name: Loop, Type: Loop: While 1
while (1)
{
//Comment:
// je grösser aa, desto kleiner PW
// bb, keinen Einfluss auf PW PW
// ab 280, ca 25%
// ab 300, ca 50%
// ab 330, ca 80%
// PINZUORDNUNG ??????????????
// Name: Calculation, Type: Calculation:
// aa = 90
// bb = 200
// ab = 280
FCV_AA = 90;
FCV_BB = 200;
FCV_AB = 280;
// Name: Delay, Type: Delay: 250 ms
FCI_DELAYBYTE_MS(250);
// Name: Component Macro, Type: Component Macro: PWM1::Enable()
FCD_0df41_PWM1__Enable();
// Name: Component Macro, Type: Component Macro: PWM1::SetDutyCycle(ab)
FCD_0df41_PWM1__SetDutyCycle(FCV_AB);
// Name: Delay, Type: Delay: 180 ms
FCI_DELAYBYTE_MS(180);
// Name: Component Macro, Type: Component Macro: PWM1::ChangePeriod(aa, bb)
FCD_0df41_PWM1__ChangePeriod(FCV_AA, FCV_BB);
// Name: Component Macro, Type: Component Macro: PWM1::Disable()
FCD_0df41_PWM1__Disable();
}
mainendloop: goto mainendloop;
}
/*========================================================================*\
Use :Interrupt
\*========================================================================*/
Thanks Felix
//************************************************************************************
//**
//** Source name: C:\Users\maestro\Desktop\Flowcode Files\PWM2.fcfx
//** Title:
//** Description:
//** Device: ESP.ESP32.ESP32_WROOM_32
//**
//** Generated by: Flowcode v9.2.0.33
//** Date: Wednesday, March 16, 2022 12:49:07
//** Users: 1
//** Registered to: felixegger (38396505)
//** Licence key: JMA9BD
//**
//**
//** NOT FOR COMMERCIAL USE
//**
//** https://www.flowcode.co.uk
//**
//************************************************************************************
#define MX_ESP
#define MX_CAL_ESP
#define MX_CLK_SPEED 240000000
#define FCP_NULL Unconnected_Port
#define MX_CAL_ESP32
#include <stdio.h>
#include <string.h>
#include "freertos/FreeRTOS.h"
#include "freertos/event_groups.h"
#include "freertos/task.h"
#include "driver/gpio.h"
#include "esp_wifi.h"
#include "esp_log.h"
#include "esp_event_loop.h"
#include "nvs_flash.h"
#include "driver/adc.h"
#include "lwip/err.h"
#include "lwip/sys.h"
#include "sdkconfig.h"
/*========================================================================*\
Use :Include the type definitions
\*========================================================================*/
#include "C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\internals.c"
MX_UINT8 FCLV_LOOP1;
MX_UINT8 FCLV_LOOP2;
/*========================================================================*\
Use :panel
:Variable declarations
:Macro function declarations
\*========================================================================*/
#define FCV_FALSE (0)
#define FCV_TRUE (1)
MX_GLOBAL MX_UINT8 FCV_AB;
MX_GLOBAL MX_UINT8 FCV_AA;
MX_GLOBAL MX_UINT8 FCV_BB;
MX_UINT8 FCM_ChangePeriod(MX_UINT16 FCL_PERIOD, MX_SINT16 FCL_PRESCALER);
MX_UINT8 FCM_SetDutyCycle(MX_UINT8 FCL_DUTY);
/*========================================================================*\
Use :cal_pwm
:Variable declarations
:Macro function declarations
\*========================================================================*/
#define MX_PWM_REF1
#define MX_PWM_PRESCALE1 (1)
#define MX_PWM_PIN_1 (4)
#define MX_PWM_TYPE_1 (0)
#define MX_PWM_PORT_1 PORTB
#define MX_PWM_TRIS_1 TRISB
#define MX_PWM_CHANNEL_1 (1)
/*=----------------------------------------------------------------------=*\
Use :cal_pwm
:Supplementary defines
\*=----------------------------------------------------------------------=*/
#define MX_PWM
#define MX_PWM_FREQ_1 1068
#define MX_PWM_REMAPPABLE
#define MX_PWM_RPOR_1 PPS0
#define MX_PWM_RPOC_1 1
#define MX_PWM_TMR_1 0
void FC_CAL_PWM_ChangePeriod_1(MX_UINT16 FCL_PERIOD, MX_UINT16 FCL_PRESCALER);
void FC_CAL_PWM_Disable_1();
void FC_CAL_PWM_SetDuty8Bit_1(MX_UINT8 FCL_DUTY);
void FC_CAL_PWM_Enable_1();
void FC_CAL_PWM_ChangeFrequency_1(MX_UINT32 FCL_FREQUENCY);
void FC_CAL_PWM_SetDuty10Bit_1(MX_UINT16 FCL_DUTY);
void FC_CAL_PWM_SetDutyFloat_1(MX_FLOAT FCL_DUTY);
/*========================================================================*\
Use :PWM1
:Variable declarations
:Macro function declarations
\*========================================================================*/
MX_GLOBAL MX_UINT8 FCV_0df41_PWM1__ENABLED = (0x0);
void FCD_0df41_PWM1__ChangePeriod(MX_UINT16 FCL_PERIOD, MX_SINT16 FCL_PRESCALER);
void FCD_0df41_PWM1__Disable();
void FCD_0df41_PWM1__SetDutyCycle(MX_UINT8 FCL_DUTY);
void FCD_0df41_PWM1__Enable();
void FCD_0df41_PWM1__SetFrequency(MX_UINT32 FCL_FREQUENCY);
void FCD_0df41_PWM1__SetDutyCycle10Bit(MX_UINT16 FCL_DUTY);
/*========================================================================*\
Use :Include the chip adaption layer
\*========================================================================*/
#include "C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\includes.c"
/*========================================================================*\
Use :PWM1
:Macro implementations
\*========================================================================*/
/*=----------------------------------------------------------------------=*\
Use :Sets the overall period and prescaler of the output PWM signal.
:
:Parameters for macro ChangePeriod:
: Period : The maximum number that will represent 100% on, PIC/AVR: 0-255 16-bit PIC: 0-65535
: Prescaler : The scaler used to divide the system clock speed down to the PWM rate.
\*=----------------------------------------------------------------------=*/
void FCD_0df41_PWM1__ChangePeriod(MX_UINT16 FCL_PERIOD, MX_SINT16 FCL_PRESCALER)
{
FC_CAL_PWM_ChangePeriod_1(FCL_PERIOD, FCL_PRESCALER);
}
/*=----------------------------------------------------------------------=*\
Use :Disables a PWM channel and allows the default output / input state to be resumed
\*=----------------------------------------------------------------------=*/
void FCD_0df41_PWM1__Disable()
{
// Enabled = 0
FCV_0df41_PWM1__ENABLED = 0;
FC_CAL_PWM_Disable_1();
}
/*=----------------------------------------------------------------------=*\
Use :Sets the PWM duty cycle in terms of on/off based on the current period setting.
:E.g. if period = 255 then duty of 128 is equal to 50% on and 50% off.
:16-bit PIC users should use the 10bit duty function to access the full range.
:
:Parameters for macro SetDutyCycle:
: Duty : 8-bit PWM duty 0-255
\*=----------------------------------------------------------------------=*/
void FCD_0df41_PWM1__SetDutyCycle(MX_UINT8 FCL_DUTY)
{
#if 0 // Disabled code
if (FCV_0df41_PWM1__ENABLED)
{
// } else {
}
#endif // Disabled code
FC_CAL_PWM_SetDuty8Bit_1(FCL_DUTY);
}
/*=----------------------------------------------------------------------=*\
Use :Enables a PWM channel as an output overriding the default output pin state.
\*=----------------------------------------------------------------------=*/
void FCD_0df41_PWM1__Enable()
{
// Enabled = 1
FCV_0df41_PWM1__ENABLED = 1;
FC_CAL_PWM_ChangePeriod_1(90, 1);
FC_CAL_PWM_Enable_1();
}
/*=----------------------------------------------------------------------=*\
Use :Sets a PWM of the specifed frequency at a duty of 50%
:Ideal use is a frequency generator
:
:Parameters for macro SetFrequency:
: Frequency : Enter frequency in Hz
\*=----------------------------------------------------------------------=*/
void FCD_0df41_PWM1__SetFrequency(MX_UINT32 FCL_FREQUENCY)
{
//Local variable definitions
MX_UINT16 FCL_PERIODOVERFLOW;
MX_UINT8 FCL_PRESCALER;
MX_SINT16 FCL_DUTY10BIT;
// .Prescaler = 1
FCL_PRESCALER = 1;
while (1)
{
// .PeriodOverflow = (- .Prescaler + (ClockSpeed / (.Frequency << 2))) / .Prescaler
FCL_PERIODOVERFLOW = (-FCL_PRESCALER + (240000000 / (FCL_FREQUENCY << 2))) / FCL_PRESCALER;
if (FCL_PERIODOVERFLOW > 255)
{
// .Prescaler = .Prescaler << 2
FCL_PRESCALER = FCL_PRESCALER << 2;
// } else {
}
// .Duty10Bit = .PeriodOverflow << 1
FCL_DUTY10BIT = FCL_PERIODOVERFLOW << 1;
if (((FCL_PERIODOVERFLOW > 255) && (FCL_PRESCALER)) == 0) break;
}
FC_CAL_PWM_ChangePeriod_1(FCL_PERIODOVERFLOW, FCL_PRESCALER);
FC_CAL_PWM_SetDuty10Bit_1(FCL_DUTY10BIT);
}
/*=----------------------------------------------------------------------=*\
Use :PIC/AVR - Sets the full scale PWM duty cycle based on the current period setting.
:If period = 255 then Duty of 512 is equal to 50%.
:
:16-bit PICs have a 16-bit period range available.
:If period = 65535 then Duty of 32768 is equal to 50%.
:
:Parameters for macro SetDutyCycle10Bit:
: Duty : PWM duty PIC/AVR: 0-1023 16-bit PIC: 0-65535
\*=----------------------------------------------------------------------=*/
void FCD_0df41_PWM1__SetDutyCycle10Bit(MX_UINT16 FCL_DUTY)
{
#if 0 // Disabled code
if (FCV_0df41_PWM1__ENABLED)
{
// } else {
}
#endif // Disabled code
FC_CAL_PWM_SetDuty10Bit_1(FCL_DUTY);
}
/*========================================================================*\
Use :panel
:Macro implementations
\*========================================================================*/
/*=----------------------------------------------------------------------=*\
Use :Sets the overall period and prescaler of the output PWM signal.
:
:Parameters for macro ChangePeriod:
: Period : The maximum number that will represent 100% on, PIC/AVR: 0-255 16-bit PIC: 0-65535
: Prescaler : The scaler used to divide the system clock speed down to the PWM rate.
:
:Returns : MX_UINT8
\*=----------------------------------------------------------------------=*/
MX_UINT8 FCM_ChangePeriod(MX_UINT16 FCL_PERIOD, MX_SINT16 FCL_PRESCALER)
{
//Local variable definitions
MX_UINT8 FCR_RETVAL;
// Name: ChangePeriod, Type: Calculation:
// PWM1 :: ChangePeriod(.Period, .Prescaler)
FCD_0df41_PWM1__ChangePeriod(FCL_PERIOD, FCL_PRESCALER);
return (FCR_RETVAL);
}
/*=----------------------------------------------------------------------=*\
Use :Sets the PWM duty cycle in terms of on/off based on the current period setting.
:E.g. if period = 255 then duty of 128 is equal to 50% on and 50% off.
:16-bit PIC users should use the 10bit duty function to access the full range.
:
:Parameters for macro SetDutyCycle:
: Duty : 8-bit PWM duty 0-255
:
:Returns : MX_UINT8
\*=----------------------------------------------------------------------=*/
MX_UINT8 FCM_SetDutyCycle(MX_UINT8 FCL_DUTY)
{
//Local variable definitions
MX_UINT8 FCR_RETVAL;
// Name: SetDutyCycle, Type: Calculation:
// PWM1 :: SetDutyCycle(.Duty)
FCD_0df41_PWM1__SetDutyCycle(FCL_DUTY);
return (FCR_RETVAL);
}
/*========================================================================*\
Use :Main
\*========================================================================*/
void app_main()
{
// Initialize NVS
esp_err_t ret = nvs_flash_init();
if (ret == ESP_ERR_NVS_NO_FREE_PAGES || ret == ESP_ERR_NVS_NEW_VERSION_FOUND) {
ESP_ERROR_CHECK(nvs_flash_erase());
ret = nvs_flash_init();
}
ESP_ERROR_CHECK( ret );
ESP_ERROR_CHECK(esp_event_loop_create_default());
// Name: Calculation, Type: Calculation:
// bb = 1
FCV_BB = 1;
// Name: Loop, Type: Loop: While 1
while (1)
{
//Comment:
// je grösser aa, desto kleiner PW
// bb, keinen Einfluss auf PW PW
// ab 280, ca 25%
// ab 300, ca 50%
// ab 330, ca 80%
// PINZUORDNUNG ??????????????
// Name: Calculation, Type: Calculation:
// aa = 90
// bb = 200
// ab = 280
FCV_AA = 90;
FCV_BB = 200;
FCV_AB = 280;
// Name: Delay, Type: Delay: 250 ms
FCI_DELAYBYTE_MS(250);
// Name: Component Macro, Type: Component Macro: PWM1::Enable()
FCD_0df41_PWM1__Enable();
// Name: Component Macro, Type: Component Macro: PWM1::SetDutyCycle(ab)
FCD_0df41_PWM1__SetDutyCycle(FCV_AB);
// Name: Delay, Type: Delay: 180 ms
FCI_DELAYBYTE_MS(180);
// Name: Component Macro, Type: Component Macro: PWM1::ChangePeriod(aa, bb)
FCD_0df41_PWM1__ChangePeriod(FCV_AA, FCV_BB);
// Name: Component Macro, Type: Component Macro: PWM1::Disable()
FCD_0df41_PWM1__Disable();
}
mainendloop: goto mainendloop;
}
/*========================================================================*\
Use :Interrupt
\*========================================================================*/
Thanks Felix
-
- Posts: 48
- Joined: Wed Feb 24, 2021 1:20 pm
- Been thanked: 2 times
Re: Uploading problem
And here comes the file
PWM2.fcfx.001
<root>
<document scada='0' schema='102' license='1,38396505,JMA9BD' title='' description='' fcversion='590336' target='ESP.ESP32.ESP32_WROOM_32' >
<config data='' clkspd='240000000' simspd='3' usewdt='0' constif='0' commport='4' Use3V3='0' />
<plugins >
<dll_models enabled='1' />
</plugins>
<supplement use='0' head='' body='' />
<debug />
<traces />
<ghost >
<FK2 >
<data name='FK2D0' port='4294967295' pin='4294967295' />
<data name='FK2D1' port='4294967295' pin='4294967295' />
<data name='FK2D2' port='4294967295' pin='4294967295' />
<data name='FK2D3' port='4294967295' pin='4294967295' />
<data name='FK2D4' port='4294967295' pin='4294967295' />
<data name='FK2D5' port='4294967295' pin='4294967295' />
<data name='FK2D6' port='4294967295' pin='4294967295' />
<data name='FK2D7' port='4294967295' pin='4294967295' />
<data name='FK2D8' port='4294967295' pin='4294967295' />
<data name='FK2D9' port='4294967295' pin='4294967295' />
<data name='FK2D10' port='4294967295' pin='4294967295' />
<data name='FK2D11' port='4294967295' pin='4294967295' />
<data name='FK2D12' port='4294967295' pin='4294967295' />
<data name='FK2D13' port='4294967295' pin='4294967295' />
<data name='FK2D14' port='4294967295' pin='4294967295' />
<data name='FK2D15' port='4294967295' pin='4294967295' />
<data name='FK2A0' port='4294967295' pin='4294967295' />
<data name='FK2A1' port='4294967295' pin='4294967295' />
<data name='FK2A2' port='4294967295' pin='4294967295' />
<data name='FK2A3' port='4294967295' pin='4294967295' />
<data name='FK2A4' port='4294967295' pin='4294967295' />
<data name='FK2A5' port='4294967295' pin='4294967295' />
</FK2>
<ICD >
<data name='AnalogPrescaleValue' value='19' />
<data name='DigitalSampleRate' value='100000' />
<data name='BreakpointCount' value='8' />
<data name='CallStackDepthCount' value='8' />
<data name='ClockPort' value='1' />
<data name='ClockPin' value='6' />
<data name='DataPort' value='1' />
<data name='DataPin' value='7' />
<data name='UseDefaultPins' value='1' />
<data name='WrapEnabled' value='1' />
<data name='CommsDelayOverridden' value='0' />
<data name='CommsDelay' value='1' />
<data name='CalculatedCommsDelay' value='1' />
<data name='AnalogEB2PrescaleValue' value='2' />
<data name='DigitalEB2SampleRate' value='100000' />
</ICD>
<pins >
<digital A='0' B='0' C='0' D='0' E='0' F='0' G='0' H='0' I='0' J='0' K='0' L='0' M='0' N='0' O='0' P='0' Q='0' R='0' S='0' T='0' U='0' V='0' W='0' X='0' Y='0' Z='0' />
<analog A='0' B='0' C='0' D='0' E='0' F='0' G='0' H='0' I='0' J='0' K='0' L='0' M='0' N='0' O='0' P='0' Q='0' R='0' S='0' T='0' U='0' V='0' W='0' X='0' Y='0' Z='0' />
</pins>
</ghost>
<components >
<settings autoimg='0' center='1' unitscale='0' fixedscale='0' fixedx='1' fixedy='1' fixedz='1' headcode='0' />
<definition guid='b45e6950-e771-4412-a2bf-74eedc883eb5' vstate='40' vmin='0' vmaj='1' srcleaf='' visiblename='' description='' category='' category2='' category3='' bIs2dOnly='0' catenable='1' author='' manuname='' manucode='' sysinfo='0' keywords='' dynamic='1' scadaCompatible='0' embeddedCompatible='1' iconpath='' />
<gdiopts FullContainer='1' FullTransparency='1' ShowGdi='1' ShowOpengl='1' />
<component class_type='root' codename='panel' x='0' y='0' z='0' xsz='1' ysz='1' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='0' poslock='0' comp2dType='0' >
<resources />
<properties />
<values />
<events />
<apis >
<api name='ChangePeriod' alt='ChangePeriod' type='0' proto='1' />
<api name='SetDutyCycle' alt='SetDutyCycle' type='0' proto='1' />
</apis>
<variables >
<variable public='0' >
<def class_type='variable' name='false' type='b1' description='' isconst='1' isHidden='0' isinit='1' usrinit='0' setinit='0' />
</variable>
<variable public='0' >
<def class_type='variable' name='ab' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
</variable>
<variable public='0' >
<def class_type='variable' name='aa' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
</variable>
<variable public='0' >
<def class_type='variable' name='bb' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
</variable>
<variable public='0' >
<def class_type='variable' name='true' type='b1' description='' isconst='1' isHidden='0' isinit='1' usrinit='1' setinit='1' />
</variable>
</variables>
<macros >
<macro >
<flowline name='ChangePeriod' description='Sets the overall period and prescaler of the output PWM signal.' statediag='0' >
<return name='Return' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
<param name='Period' type='u16' description='The maximum number that will represent 100% on, PIC/AVR: 0-255 16-bit PIC: 0-65535' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
<param name='Prescaler' type='s16' description='The scaler used to divide the system clock speed down to the PWM rate.' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
<command class_type='calculation' title='ChangePeriod' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
<exp exp='PWM1 :: ChangePeriod(.Period, .Prescaler)' />
</command>
</flowline>
</macro>
<macro >
<flowline name='SetDutyCycle' description='Sets the PWM duty cycle in terms of on/off based on the current period setting.
E.g. if period = 255 then duty of 128 is equal to 50% on and 50% off.
16-bit PIC users should use the 10bit duty function to access the full range.' statediag='0' >
<return name='Return' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
<param name='Duty' type='u8' description='8-bit PWM duty 0-255' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
<command class_type='calculation' title='SetDutyCycle' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
<exp exp='PWM1 :: SetDutyCycle(.Duty)' />
</command>
</flowline>
</macro>
<macro >
<flowline name='Main' description='' statediag='0' >
<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
<command class_type='calculation' title='Calculation' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
<exp exp='bb = 1' />
</command>
<command class_type='loop' title='Loop' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' type='0' exp='1' >
<flowline >
<command class_type='comment' title='' comment=' je grösser aa, desto kleiner PW
bb, keinen Einfluss auf PW PW
ab 280, ca 25%
ab 300, ca 50%
ab 330, ca 80%
PINZUORDNUNG ??????????????
' textarea='12,0,12,0' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
<command class_type='calculation' title='Calculation' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
<exp exp='aa = 90' />
<exp exp='bb = 200' />
<exp exp='ab = 280' />
<exp exp='' />
</command>
<command class_type='delay' title='Delay' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='250' type='1' />
<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM1' macro='Enable' />
<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM1' macro='SetDutyCycle' >
<argument exp='ab' />
</command>
<command class_type='delay' title='Delay' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='180' type='1' />
<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM1' macro='ChangePeriod' >
<argument exp='aa' />
<argument exp='bb' />
</command>
<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM1' macro='Disable' />
</flowline>
</command>
</flowline>
</macro>
</macros>
<component class_type='ref' guid='444fb704-814c-4707-a15c-759ba088505c' vmin='1' vmaj='2' codename='PWM1' x='0' y='0' z='0' xsz='1' ysz='1' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='1' comp2dType='0' >
<resources />
<properties />
<values >
<value target='channel' data='001' />
<value target='altpin' data='0' />
<value target='pwm_pin' data='$PORTB.4' />
<value target='RemapPin' data='000' />
<value target='timer' data='000' />
<value target='period' data='90' />
<value target='prescale' data='000' />
<value target='period_calc' data='936.228577' />
<value target='frequency_calc2' data='1068.115234' />
<value target='frequency_calc' data='1.068115' />
<value target='pwm_prescale' data='1' />
<value target='ReqFreq' data='100.000000' />
<value target='OldReqFreq' data='100.000000' />
<value target='CalcFreq' data='100.004570' />
<value target='CalcPeriod' data='10936' />
<value target='CalcScaler' data='64' />
<value target='Apply' data='0' />
<value target='ClockSpeed' data='240000000' />
<value target='SimRep' data='001' />
<value target='Family' data='ESP' />
</values>
<events />
<apis />
<variables />
<macros />
</component>
</component>
</components>
<scadaresourcelookup />
<keymap />
<panel2d shadows='0' lighting='2' brightness='0' >
<background rgb='7292207' img='' style='0' />
<camera xe='-7.52965' ye='5.39049' ze='126.714' xt='-7.52965' yt='5.39049' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
<viewport dx='573' dy='701' zoom='547.161' fix_topleft='0' />
<page x='1000' y='1000' show='0' rgb='0' />
</panel2d>
<panel3d shadows='0' lighting='2' brightness='0' perspective='1' >
<background rgb='8409120' img='' style='0' />
<table rgb='7360576' img='' style='0' size='0' />
<camera xe='0' ye='0' ze='781.66' xt='0' yt='0' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
<camerakey0 xe='0' ye='0' ze='300' xt='0' yt='0' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
<camerakey1 xe='-3.67394e-14' ye='0' ze='-300' xt='0' yt='0' zt='0' xquat='0' yquat='1' zquat='0' wquat='6.12323e-17' />
<camerakey2 xe='0' ye='-300' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-0.707107' yquat='0' zquat='0' wquat='0.707107' />
<camerakey3 xe='-3.67394e-14' ye='300' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-4.32978e-17' yquat='0.707107' zquat='0.707107' wquat='4.32978e-17' />
<camerakey4 xe='-300' ye='-6.66134e-14' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-0.5' yquat='0.5' zquat='0.5' wquat='0.5' />
<camerakey5 xe='300' ye='-6.66134e-14' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-0.5' yquat='-0.5' zquat='-0.5' wquat='0.5' />
<camerakey6 xe='-173.205' ye='-173.205' ze='173.205' xt='0' yt='0' zt='0' xquat='-0.424708' yquat='0.17592' zquat='0.339851' wquat='0.820473' />
</panel3d>
<layout >
<view type='0' name='Main' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAiAAAAewcAALIDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
</layout>
</document>
</root>
PWM2.fcfx.001
<root>
<document scada='0' schema='102' license='1,38396505,JMA9BD' title='' description='' fcversion='590336' target='ESP.ESP32.ESP32_WROOM_32' >
<config data='' clkspd='240000000' simspd='3' usewdt='0' constif='0' commport='4' Use3V3='0' />
<plugins >
<dll_models enabled='1' />
</plugins>
<supplement use='0' head='' body='' />
<debug />
<traces />
<ghost >
<FK2 >
<data name='FK2D0' port='4294967295' pin='4294967295' />
<data name='FK2D1' port='4294967295' pin='4294967295' />
<data name='FK2D2' port='4294967295' pin='4294967295' />
<data name='FK2D3' port='4294967295' pin='4294967295' />
<data name='FK2D4' port='4294967295' pin='4294967295' />
<data name='FK2D5' port='4294967295' pin='4294967295' />
<data name='FK2D6' port='4294967295' pin='4294967295' />
<data name='FK2D7' port='4294967295' pin='4294967295' />
<data name='FK2D8' port='4294967295' pin='4294967295' />
<data name='FK2D9' port='4294967295' pin='4294967295' />
<data name='FK2D10' port='4294967295' pin='4294967295' />
<data name='FK2D11' port='4294967295' pin='4294967295' />
<data name='FK2D12' port='4294967295' pin='4294967295' />
<data name='FK2D13' port='4294967295' pin='4294967295' />
<data name='FK2D14' port='4294967295' pin='4294967295' />
<data name='FK2D15' port='4294967295' pin='4294967295' />
<data name='FK2A0' port='4294967295' pin='4294967295' />
<data name='FK2A1' port='4294967295' pin='4294967295' />
<data name='FK2A2' port='4294967295' pin='4294967295' />
<data name='FK2A3' port='4294967295' pin='4294967295' />
<data name='FK2A4' port='4294967295' pin='4294967295' />
<data name='FK2A5' port='4294967295' pin='4294967295' />
</FK2>
<ICD >
<data name='AnalogPrescaleValue' value='19' />
<data name='DigitalSampleRate' value='100000' />
<data name='BreakpointCount' value='8' />
<data name='CallStackDepthCount' value='8' />
<data name='ClockPort' value='1' />
<data name='ClockPin' value='6' />
<data name='DataPort' value='1' />
<data name='DataPin' value='7' />
<data name='UseDefaultPins' value='1' />
<data name='WrapEnabled' value='1' />
<data name='CommsDelayOverridden' value='0' />
<data name='CommsDelay' value='1' />
<data name='CalculatedCommsDelay' value='1' />
<data name='AnalogEB2PrescaleValue' value='2' />
<data name='DigitalEB2SampleRate' value='100000' />
</ICD>
<pins >
<digital A='0' B='0' C='0' D='0' E='0' F='0' G='0' H='0' I='0' J='0' K='0' L='0' M='0' N='0' O='0' P='0' Q='0' R='0' S='0' T='0' U='0' V='0' W='0' X='0' Y='0' Z='0' />
<analog A='0' B='0' C='0' D='0' E='0' F='0' G='0' H='0' I='0' J='0' K='0' L='0' M='0' N='0' O='0' P='0' Q='0' R='0' S='0' T='0' U='0' V='0' W='0' X='0' Y='0' Z='0' />
</pins>
</ghost>
<components >
<settings autoimg='0' center='1' unitscale='0' fixedscale='0' fixedx='1' fixedy='1' fixedz='1' headcode='0' />
<definition guid='b45e6950-e771-4412-a2bf-74eedc883eb5' vstate='40' vmin='0' vmaj='1' srcleaf='' visiblename='' description='' category='' category2='' category3='' bIs2dOnly='0' catenable='1' author='' manuname='' manucode='' sysinfo='0' keywords='' dynamic='1' scadaCompatible='0' embeddedCompatible='1' iconpath='' />
<gdiopts FullContainer='1' FullTransparency='1' ShowGdi='1' ShowOpengl='1' />
<component class_type='root' codename='panel' x='0' y='0' z='0' xsz='1' ysz='1' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='0' poslock='0' comp2dType='0' >
<resources />
<properties />
<values />
<events />
<apis >
<api name='ChangePeriod' alt='ChangePeriod' type='0' proto='1' />
<api name='SetDutyCycle' alt='SetDutyCycle' type='0' proto='1' />
</apis>
<variables >
<variable public='0' >
<def class_type='variable' name='false' type='b1' description='' isconst='1' isHidden='0' isinit='1' usrinit='0' setinit='0' />
</variable>
<variable public='0' >
<def class_type='variable' name='ab' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
</variable>
<variable public='0' >
<def class_type='variable' name='aa' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
</variable>
<variable public='0' >
<def class_type='variable' name='bb' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
</variable>
<variable public='0' >
<def class_type='variable' name='true' type='b1' description='' isconst='1' isHidden='0' isinit='1' usrinit='1' setinit='1' />
</variable>
</variables>
<macros >
<macro >
<flowline name='ChangePeriod' description='Sets the overall period and prescaler of the output PWM signal.' statediag='0' >
<return name='Return' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
<param name='Period' type='u16' description='The maximum number that will represent 100% on, PIC/AVR: 0-255 16-bit PIC: 0-65535' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
<param name='Prescaler' type='s16' description='The scaler used to divide the system clock speed down to the PWM rate.' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
<command class_type='calculation' title='ChangePeriod' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
<exp exp='PWM1 :: ChangePeriod(.Period, .Prescaler)' />
</command>
</flowline>
</macro>
<macro >
<flowline name='SetDutyCycle' description='Sets the PWM duty cycle in terms of on/off based on the current period setting.
E.g. if period = 255 then duty of 128 is equal to 50% on and 50% off.
16-bit PIC users should use the 10bit duty function to access the full range.' statediag='0' >
<return name='Return' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
<param name='Duty' type='u8' description='8-bit PWM duty 0-255' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
<command class_type='calculation' title='SetDutyCycle' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
<exp exp='PWM1 :: SetDutyCycle(.Duty)' />
</command>
</flowline>
</macro>
<macro >
<flowline name='Main' description='' statediag='0' >
<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
<command class_type='calculation' title='Calculation' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
<exp exp='bb = 1' />
</command>
<command class_type='loop' title='Loop' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' type='0' exp='1' >
<flowline >
<command class_type='comment' title='' comment=' je grösser aa, desto kleiner PW
bb, keinen Einfluss auf PW PW
ab 280, ca 25%
ab 300, ca 50%
ab 330, ca 80%
PINZUORDNUNG ??????????????
' textarea='12,0,12,0' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
<command class_type='calculation' title='Calculation' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
<exp exp='aa = 90' />
<exp exp='bb = 200' />
<exp exp='ab = 280' />
<exp exp='' />
</command>
<command class_type='delay' title='Delay' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='250' type='1' />
<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM1' macro='Enable' />
<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM1' macro='SetDutyCycle' >
<argument exp='ab' />
</command>
<command class_type='delay' title='Delay' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='180' type='1' />
<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM1' macro='ChangePeriod' >
<argument exp='aa' />
<argument exp='bb' />
</command>
<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM1' macro='Disable' />
</flowline>
</command>
</flowline>
</macro>
</macros>
<component class_type='ref' guid='444fb704-814c-4707-a15c-759ba088505c' vmin='1' vmaj='2' codename='PWM1' x='0' y='0' z='0' xsz='1' ysz='1' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='1' comp2dType='0' >
<resources />
<properties />
<values >
<value target='channel' data='001' />
<value target='altpin' data='0' />
<value target='pwm_pin' data='$PORTB.4' />
<value target='RemapPin' data='000' />
<value target='timer' data='000' />
<value target='period' data='90' />
<value target='prescale' data='000' />
<value target='period_calc' data='936.228577' />
<value target='frequency_calc2' data='1068.115234' />
<value target='frequency_calc' data='1.068115' />
<value target='pwm_prescale' data='1' />
<value target='ReqFreq' data='100.000000' />
<value target='OldReqFreq' data='100.000000' />
<value target='CalcFreq' data='100.004570' />
<value target='CalcPeriod' data='10936' />
<value target='CalcScaler' data='64' />
<value target='Apply' data='0' />
<value target='ClockSpeed' data='240000000' />
<value target='SimRep' data='001' />
<value target='Family' data='ESP' />
</values>
<events />
<apis />
<variables />
<macros />
</component>
</component>
</components>
<scadaresourcelookup />
<keymap />
<panel2d shadows='0' lighting='2' brightness='0' >
<background rgb='7292207' img='' style='0' />
<camera xe='-7.52965' ye='5.39049' ze='126.714' xt='-7.52965' yt='5.39049' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
<viewport dx='573' dy='701' zoom='547.161' fix_topleft='0' />
<page x='1000' y='1000' show='0' rgb='0' />
</panel2d>
<panel3d shadows='0' lighting='2' brightness='0' perspective='1' >
<background rgb='8409120' img='' style='0' />
<table rgb='7360576' img='' style='0' size='0' />
<camera xe='0' ye='0' ze='781.66' xt='0' yt='0' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
<camerakey0 xe='0' ye='0' ze='300' xt='0' yt='0' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
<camerakey1 xe='-3.67394e-14' ye='0' ze='-300' xt='0' yt='0' zt='0' xquat='0' yquat='1' zquat='0' wquat='6.12323e-17' />
<camerakey2 xe='0' ye='-300' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-0.707107' yquat='0' zquat='0' wquat='0.707107' />
<camerakey3 xe='-3.67394e-14' ye='300' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-4.32978e-17' yquat='0.707107' zquat='0.707107' wquat='4.32978e-17' />
<camerakey4 xe='-300' ye='-6.66134e-14' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-0.5' yquat='0.5' zquat='0.5' wquat='0.5' />
<camerakey5 xe='300' ye='-6.66134e-14' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-0.5' yquat='-0.5' zquat='-0.5' wquat='0.5' />
<camerakey6 xe='-173.205' ye='-173.205' ze='173.205' xt='0' yt='0' zt='0' xquat='-0.424708' yquat='0.17592' zquat='0.339851' wquat='0.820473' />
</panel3d>
<layout >
<view type='0' name='Main' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAiAAAAewcAALIDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
</layout>
</document>
</root>
-
- Posts: 48
- Joined: Wed Feb 24, 2021 1:20 pm
- Been thanked: 2 times
Re: Uploading problem
Sorry, just now I set the return variables as you said, but it's still not uploading. What shall I do ?
Thanks
Felix
Thanks
Felix
- Attachments
-
- b2.png (84.53 KiB) Viewed 3942 times
-
- b1.png (91.48 KiB) Viewed 3942 times
-
- Posts: 48
- Joined: Wed Feb 24, 2021 1:20 pm
- Been thanked: 2 times
Re: Uploading problem
Sorry, just now I set the return variables as you said, but it's still not uploading. What shall I do ?
Thanks
Felix
Thanks
Felix
- Attachments
-
- b2.png (84.53 KiB) Viewed 3942 times
-
- b1.png (91.48 KiB) Viewed 3942 times
-
- Posts: 48
- Joined: Wed Feb 24, 2021 1:20 pm
- Been thanked: 2 times
Re: Uploading problem
Here is my latest msg.txt file :
Target folder: C:\Users\maestro\Desktop\Flowcode Files
Source name: C:\Users\maestro\Desktop\Flowcode Files\PWM2.fcfx
Title:
Description:
Device: ESP.ESP32.ESP32_WROOM_32
Generated by: Flowcode v9.2.0.33
Date: Monday, March 21, 2022 16:06:58
Users: 1
Registered to: felixegger (38396505)
Licence key: JMA9BD
NOT FOR COMMERCIAL USE
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\maestro\Desktop\esp-idf\" "PWM2" "C:\Users\maestro\Desktop\Flowcode Files\" esp32s_sdkconfig
C:\Users\maestro\Desktop\Flowcode Files>REM CRC: 0796FC1E6A776AF9156B257209C35258CE7C28B3EC20AEA2C632DB392A0E4BFD5B3F53B21811978F7B21FE4085045A7E774D1D3D69D8A99EE7320EAE740A5DB6FE0D8D4660AC0314F98C28BCA92AF856EFD1DB5B777140BC4D00059D795899827D9F76D89626FBC8B199900461C78937B42DEF8219F63A24580137A2F6C8FDB7553324EFF791947E8AB6FFD612B81BAA97C798A8F1CFC189DE5D38517747C774AF2DD6F839BAECF83F7F994C7164CE77868F480396BDEF2F2C3050DA273BE4EE6FE0BB589D1229A5E37B217FF86DBD72A01B8FBC49BE02BFA3608A0B0CE69F969622A912E6E6A2FB
C:\Users\maestro\Desktop\Flowcode Files>REM REVISION: 4.0
C:\Users\maestro\Desktop\Flowcode Files>REM GUID: 955EA920-4961-4C53-BA6B-EF4AF66BB4C2
C:\Users\maestro\Desktop\Flowcode Files>REM DATE: 29\03\2021
C:\Users\maestro\Desktop\Flowcode Files>REM DIR: FCD\ESP\Batch\esp32_build.bat
Building PWM2 ...
Setting IDF_PATH: C:\Users\maestro\Desktop\esp-idf
Adding ESP-IDF tools to PATH...
C:\Users\maestro\.espressif\tools\xtensa-esp32-elf\esp-2020r3-8.4.0\xtensa-esp32-elf\bin
C:\Users\maestro\.espressif\tools\xtensa-esp32s2-elf\esp-2020r3-8.4.0\xtensa-esp32s2-elf\bin
C:\Users\maestro\.espressif\tools\esp32ulp-elf\2.28.51-esp-20191205\esp32ulp-elf-binutils\bin
C:\Users\maestro\.espressif\tools\esp32s2ulp-elf\2.28.51-esp-20191205\esp32s2ulp-elf-binutils\bin
C:\Users\maestro\.espressif\tools\cmake\3.16.4\bin
C:\Users\maestro\.espressif\tools\openocd-esp32\v0.10.0-esp32-20200709\openocd-esp32\bin
C:\Users\maestro\.espressif\tools\ninja\1.10.0\
C:\Users\maestro\.espressif\tools\idf-exe\1.0.1\
C:\Users\maestro\.espressif\tools\ccache\3.7\
C:\Users\maestro\.espressif\tools\dfu-util\0.9\dfu-util-0.9-win64
C:\Users\maestro\.espressif\python_env\idf4.2_py3.7_env\Scripts
C:\Users\maestro\Desktop\esp-idf\tools
Checking if Python packages are up to date...
Python requirements from C:\Users\maestro\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] Performing build step for 'bootloader'
ninja: no work to do.
[2/7] Building C object esp-idf/main/CMakeFiles/__idf_main.dir/esp-project.c.obj
FAILED: esp-idf/main/CMakeFiles/__idf_main.dir/esp-project.c.obj
ccache C:\Users\maestro\.espressif\tools\xtensa-esp32-elf\esp-2020r3-8.4.0\xtensa-esp32-elf\bin\xtensa-esp32-elf-gcc.exe -DHAVE_CONFIG_H -DMBEDTLS_CONFIG_FILE=\"mbedtls/esp_config.h\" -DUNITY_INCLUDE_CONFIG_H -DWITH_POSIX -Iconfig -IC:/Users/maestro/Desktop/esp-idf/components/newlib/platform_include -IC:/Users/maestro/Desktop/esp-idf/components/freertos/include -IC:/Users/maestro/Desktop/esp-idf/components/freertos/xtensa/include -IC:/Users/maestro/Desktop/esp-idf/components/heap/include -IC:/Users/maestro/Desktop/esp-idf/components/log/include -IC:/Users/maestro/Desktop/esp-idf/components/lwip/include/apps -IC:/Users/maestro/Desktop/esp-idf/components/lwip/include/apps/sntp -IC:/Users/maestro/Desktop/esp-idf/components/lwip/lwip/src/include -IC:/Users/maestro/Desktop/esp-idf/components/lwip/port/esp32/include -IC:/Users/maestro/Desktop/esp-idf/components/lwip/port/esp32/include/arch -IC:/Users/maestro/Desktop/esp-idf/components/lwip/port/esp32/tcp_isn -IC:/Users/maestro/Desktop/esp-idf/components/soc/src/esp32/. -IC:/Users/maestro/Desktop/esp-idf/components/soc/src/esp32/include -IC:/Users/maestro/Desktop/esp-idf/components/soc/include -IC:/Users/maestro/Desktop/esp-idf/components/esp_rom/include -IC:/Users/maestro/Desktop/esp-idf/components/esp_common/include -IC:/Users/maestro/Desktop/esp-idf/components/esp_system/include -IC:/Users/maestro/Desktop/esp-idf/components/xtensa/include -IC:/Users/maestro/Desktop/esp-idf/components/xtensa/esp32/include -IC:/Users/maestro/Desktop/esp-idf/components/esp32/include -IC:/Users/maestro/Desktop/esp-idf/components/driver/include -IC:/Users/maestro/Desktop/esp-idf/components/driver/esp32/include -IC:/Users/maestro/Desktop/esp-idf/components/esp_ringbuf/include -IC:/Users/maestro/Desktop/esp-idf/components/efuse/include -IC:/Users/maestro/Desktop/esp-idf/components/efuse/esp32/include -IC:/Users/maestro/Desktop/esp-idf/components/espcoredump/include -IC:/Users/maestro/Desktop/esp-idf/components/esp_timer/include -IC:/Users/maestro/Desktop/esp-idf/components/esp_ipc/include -IC:/Users/maestro/Desktop/esp-idf/components/soc/soc/esp32/include -IC:/Users/maestro/Desktop/esp-idf/components/soc/soc/esp32/../include -IC:/Users/maestro/Desktop/esp-idf/components/soc/soc/esp32/private_include -IC:/Users/maestro/Desktop/esp-idf/components/vfs/include -IC:/Users/maestro/Desktop/esp-idf/components/esp_wifi/include -IC:/Users/maestro/Desktop/esp-idf/components/esp_wifi/esp32/include -IC:/Users/maestro/Desktop/esp-idf/components/esp_event/include -IC:/Users/maestro/Desktop/esp-idf/components/esp_netif/include -IC:/Users/maestro/Desktop/esp-idf/components/esp_eth/include -IC:/Users/maestro/Desktop/esp-idf/components/tcpip_adapter/include -IC:/Users/maestro/Desktop/esp-idf/components/app_trace/include -IC:/Users/maestro/Desktop/esp-idf/components/mbedtls/port/include -IC:/Users/maestro/Desktop/esp-idf/components/mbedtls/mbedtls/include -IC:/Users/maestro/Desktop/esp-idf/components/mbedtls/esp_crt_bundle/include -IC:/Users/maestro/Desktop/esp-idf/components/bootloader_support/include -IC:/Users/maestro/Desktop/esp-idf/components/app_update/include -IC:/Users/maestro/Desktop/esp-idf/components/spi_flash/include -IC:/Users/maestro/Desktop/esp-idf/components/wpa_supplicant/include -IC:/Users/maestro/Desktop/esp-idf/components/wpa_supplicant/port/include -IC:/Users/maestro/Desktop/esp-idf/components/wpa_supplicant/include/esp_supplicant -IC:/Users/maestro/Desktop/esp-idf/components/nvs_flash/include -IC:/Users/maestro/Desktop/esp-idf/components/pthread/include -IC:/Users/maestro/Desktop/esp-idf/components/perfmon/include -IC:/Users/maestro/Desktop/esp-idf/components/asio/asio/asio/include -IC:/Users/maestro/Desktop/esp-idf/components/asio/port/include -IC:/Users/maestro/Desktop/esp-idf/components/bt/include -IC:/Users/maestro/Desktop/esp-idf/components/bt/common/osi/include -IC:/Users/maestro/Desktop/esp-idf/components/bt/host/bluedroid/api/include/api -IC:/Users/maestro/Desktop/esp-idf/components/cbor/port/include -IC:/Users/maestro/Desktop/esp-idf/components/coap/port/include -IC:/Users/maestro/Desktop/esp-idf/components/coap/port/include/coap -IC:/Users/maestro/Desktop/esp-idf/components/coap/libcoap/include -IC:/Users/maestro/Desktop/esp-idf/components/coap/libcoap/include/coap2 -IC:/Users/maestro/Desktop/esp-idf/components/console -IC:/Users/maestro/Desktop/esp-idf/components/nghttp/port/include -IC:/Users/maestro/Desktop/esp-idf/components/nghttp/nghttp2/lib/includes -IC:/Users/maestro/Desktop/esp-idf/components/esp-tls -IC:/Users/maestro/Desktop/esp-idf/components/esp_adc_cal/include -IC:/Users/maestro/Desktop/esp-idf/components/esp_gdbstub/include -IC:/Users/maestro/Desktop/esp-idf/components/esp_hid/include -IC:/Users/maestro/Desktop/esp-idf/components/tcp_transport/include -IC:/Users/maestro/Desktop/esp-idf/components/esp_http_client/include -IC:/Users/maestro/Desktop/esp-idf/components/esp_http_server/include -IC:/Users/maestro/Desktop/esp-idf/components/esp_https_ota/include -IC:/Users/maestro/Desktop/esp-idf/components/protobuf-c/protobuf-c -IC:/Users/maestro/Desktop/esp-idf/components/protoco
mm/include/common -IC:/Users/maestro/Desktop/esp-idf/components/protocomm/include/security -IC:/Users/maestro/Desktop/esp-idf/components/protocomm/include/transports -IC:/Users/maestro/Desktop/esp-idf/components/mdns/include -IC:/Users/maestro/Desktop/esp-idf/components/esp_local_ctrl/include -IC:/Users/maestro/Desktop/esp-idf/components/sdmmc/include -IC:/Users/maestro/Desktop/esp-idf/components/esp_serial_slave_link/include -IC:/Users/maestro/Desktop/esp-idf/components/esp_websocket_client/include -IC:/Users/maestro/Desktop/esp-idf/components/expat/expat/expat/lib -IC:/Users/maestro/Desktop/esp-idf/components/expat/port/include -IC:/Users/maestro/Desktop/esp-idf/components/wear_levelling/include -IC:/Users/maestro/Desktop/esp-idf/components/fatfs/diskio -IC:/Users/maestro/Desktop/esp-idf/components/fatfs/vfs -IC:/Users/maestro/Desktop/esp-idf/components/fatfs/src -IC:/Users/maestro/Desktop/esp-idf/components/freemodbus/common/include -IC:/Users/maestro/Desktop/esp-idf/components/idf_test/include -IC:/Users/maestro/Desktop/esp-idf/components/idf_test/include/esp32 -IC:/Users/maestro/Desktop/esp-idf/components/jsmn/include -IC:/Users/maestro/Desktop/esp-idf/components/json/cJSON -IC:/Users/maestro/Desktop/esp-idf/components/libsodium/libsodium/src/libsodium/include -IC:/Users/maestro/Desktop/esp-idf/components/libsodium/port_include -IC:/Users/maestro/Desktop/esp-idf/components/mqtt/esp-mqtt/include -IC:/Users/maestro/Desktop/esp-idf/components/openssl/include -IC:/Users/maestro/Desktop/esp-idf/components/spiffs/include -IC:/Users/maestro/Desktop/esp-idf/components/ulp/include -IC:/Users/maestro/Desktop/esp-idf/components/unity/include -IC:/Users/maestro/Desktop/esp-idf/components/unity/unity/src -IC:/Users/maestro/Desktop/esp-idf/components/wifi_provisioning/include -mlongcalls -Wno-frame-address -ffunction-sections -fdata-sections -fstrict-volatile-bitfields -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-but-set-variable -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -ggdb -Og -std=gnu99 -Wno-old-style-declaration -D_GNU_SOURCE -DIDF_VER=\"v4.2.1-dirty\" -DESP_PLATFORM -MD -MT esp-idf/main/CMakeFiles/__idf_main.dir/esp-project.c.obj -MF esp-idf\main\CMakeFiles\__idf_main.dir\esp-project.c.obj.d -o esp-idf/main/CMakeFiles/__idf_main.dir/esp-project.c.obj -c ../main/esp-project.c
In file included from ../main/esp-project.c:40:
C:/Users/maestro/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:50:
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)
^~~~~
../main/esp-project.c: In function 'app_main':
../main/esp-project.c:371:12: warning: unsigned conversion from 'int' to 'MX_UINT8' {aka 'volatile unsigned char'} changes value from '280' to '24' [-Woverflow]
FCI_DELAYBYTE_MS(180);
^~~
In file included from C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\internals.c:568,
from ../main/esp-project.c:50:
At top level:
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\ESP\ESP_CAL_String.c:876:13: warning: 'FCI_SCOPY' defined but not used [-Wunused-function]
static void FCI_SCOPY(MX_STRING sSrc, MX_UINT16 iSrc_len, MX_STRING sDst, MX_UINT16 iDst_len)
^~~~~~~~~
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\ESP\ESP_CAL_String.c:815:13: warning: 'FCI_SHEAD' defined but not used [-Wunused-function]
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)
^~~~~~~~~
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:531:18: warning: 'FCI_FLOAT_TO_STRING' defined but not used [-Wunused-function]
static MX_STRING FCI_FLOAT_TO_STRING(MX_FLOAT Number, MX_UINT8 Precision, 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:297:10: warning: 'FCI_TOSTRU16' defined but not used [-Wunused-function]
MX_UINT8 FCI_TOSTRU16(MX_UINT16 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:50:
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:121:18: warning: 'FCI_GETLENGTH' defined but not used [-Wunused-function]
static MX_UINT16 FCI_GETLENGTH(MX_STRING sStr1, MX_UINT16 iStr1_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)
^~~~~~~~~~~
../main/esp-project.c: In function 'FCM_ChangePeriod':
../main/esp-project.c:302:9: error: 'FCR_RETVAL' is used uninitialized in this function [-Werror=uninitialized]
:16-bit PIC users should use the 10bit duty function to access the full range.
^
../main/esp-project.c: In function 'FCM_SetDutyCycle':
../main/esp-project.c:328:9: error: 'FCR_RETVAL' is used uninitialized in this function [-Werror=uninitialized]
void app_main()
^
cc1.exe: some warnings being treated as errors
ninja: build stopped: subcommand failed.
Executing action: all (aliases: build)
Running ninja in directory c:\users\maestro\desktop\flowcode_files\pwm2\build
Executing "ninja all"...
ninja failed with exit code 1
Build Failed
.
C:\ProgramData\MatrixTSL\FlowcodeV9\FCD\ESP\Batch\esp32_build.bat reported error code 0x1
Autoclose turned off
FINISHED
Target folder: C:\Users\maestro\Desktop\Flowcode Files
Source name: C:\Users\maestro\Desktop\Flowcode Files\PWM2.fcfx
Title:
Description:
Device: ESP.ESP32.ESP32_WROOM_32
Generated by: Flowcode v9.2.0.33
Date: Monday, March 21, 2022 16:06:58
Users: 1
Registered to: felixegger (38396505)
Licence key: JMA9BD
NOT FOR COMMERCIAL USE
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\maestro\Desktop\esp-idf\" "PWM2" "C:\Users\maestro\Desktop\Flowcode Files\" esp32s_sdkconfig
C:\Users\maestro\Desktop\Flowcode Files>REM CRC: 0796FC1E6A776AF9156B257209C35258CE7C28B3EC20AEA2C632DB392A0E4BFD5B3F53B21811978F7B21FE4085045A7E774D1D3D69D8A99EE7320EAE740A5DB6FE0D8D4660AC0314F98C28BCA92AF856EFD1DB5B777140BC4D00059D795899827D9F76D89626FBC8B199900461C78937B42DEF8219F63A24580137A2F6C8FDB7553324EFF791947E8AB6FFD612B81BAA97C798A8F1CFC189DE5D38517747C774AF2DD6F839BAECF83F7F994C7164CE77868F480396BDEF2F2C3050DA273BE4EE6FE0BB589D1229A5E37B217FF86DBD72A01B8FBC49BE02BFA3608A0B0CE69F969622A912E6E6A2FB
C:\Users\maestro\Desktop\Flowcode Files>REM REVISION: 4.0
C:\Users\maestro\Desktop\Flowcode Files>REM GUID: 955EA920-4961-4C53-BA6B-EF4AF66BB4C2
C:\Users\maestro\Desktop\Flowcode Files>REM DATE: 29\03\2021
C:\Users\maestro\Desktop\Flowcode Files>REM DIR: FCD\ESP\Batch\esp32_build.bat
Building PWM2 ...
Setting IDF_PATH: C:\Users\maestro\Desktop\esp-idf
Adding ESP-IDF tools to PATH...
C:\Users\maestro\.espressif\tools\xtensa-esp32-elf\esp-2020r3-8.4.0\xtensa-esp32-elf\bin
C:\Users\maestro\.espressif\tools\xtensa-esp32s2-elf\esp-2020r3-8.4.0\xtensa-esp32s2-elf\bin
C:\Users\maestro\.espressif\tools\esp32ulp-elf\2.28.51-esp-20191205\esp32ulp-elf-binutils\bin
C:\Users\maestro\.espressif\tools\esp32s2ulp-elf\2.28.51-esp-20191205\esp32s2ulp-elf-binutils\bin
C:\Users\maestro\.espressif\tools\cmake\3.16.4\bin
C:\Users\maestro\.espressif\tools\openocd-esp32\v0.10.0-esp32-20200709\openocd-esp32\bin
C:\Users\maestro\.espressif\tools\ninja\1.10.0\
C:\Users\maestro\.espressif\tools\idf-exe\1.0.1\
C:\Users\maestro\.espressif\tools\ccache\3.7\
C:\Users\maestro\.espressif\tools\dfu-util\0.9\dfu-util-0.9-win64
C:\Users\maestro\.espressif\python_env\idf4.2_py3.7_env\Scripts
C:\Users\maestro\Desktop\esp-idf\tools
Checking if Python packages are up to date...
Python requirements from C:\Users\maestro\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] Performing build step for 'bootloader'
ninja: no work to do.
[2/7] Building C object esp-idf/main/CMakeFiles/__idf_main.dir/esp-project.c.obj
FAILED: esp-idf/main/CMakeFiles/__idf_main.dir/esp-project.c.obj
ccache C:\Users\maestro\.espressif\tools\xtensa-esp32-elf\esp-2020r3-8.4.0\xtensa-esp32-elf\bin\xtensa-esp32-elf-gcc.exe -DHAVE_CONFIG_H -DMBEDTLS_CONFIG_FILE=\"mbedtls/esp_config.h\" -DUNITY_INCLUDE_CONFIG_H -DWITH_POSIX -Iconfig -IC:/Users/maestro/Desktop/esp-idf/components/newlib/platform_include -IC:/Users/maestro/Desktop/esp-idf/components/freertos/include -IC:/Users/maestro/Desktop/esp-idf/components/freertos/xtensa/include -IC:/Users/maestro/Desktop/esp-idf/components/heap/include -IC:/Users/maestro/Desktop/esp-idf/components/log/include -IC:/Users/maestro/Desktop/esp-idf/components/lwip/include/apps -IC:/Users/maestro/Desktop/esp-idf/components/lwip/include/apps/sntp -IC:/Users/maestro/Desktop/esp-idf/components/lwip/lwip/src/include -IC:/Users/maestro/Desktop/esp-idf/components/lwip/port/esp32/include -IC:/Users/maestro/Desktop/esp-idf/components/lwip/port/esp32/include/arch -IC:/Users/maestro/Desktop/esp-idf/components/lwip/port/esp32/tcp_isn -IC:/Users/maestro/Desktop/esp-idf/components/soc/src/esp32/. -IC:/Users/maestro/Desktop/esp-idf/components/soc/src/esp32/include -IC:/Users/maestro/Desktop/esp-idf/components/soc/include -IC:/Users/maestro/Desktop/esp-idf/components/esp_rom/include -IC:/Users/maestro/Desktop/esp-idf/components/esp_common/include -IC:/Users/maestro/Desktop/esp-idf/components/esp_system/include -IC:/Users/maestro/Desktop/esp-idf/components/xtensa/include -IC:/Users/maestro/Desktop/esp-idf/components/xtensa/esp32/include -IC:/Users/maestro/Desktop/esp-idf/components/esp32/include -IC:/Users/maestro/Desktop/esp-idf/components/driver/include -IC:/Users/maestro/Desktop/esp-idf/components/driver/esp32/include -IC:/Users/maestro/Desktop/esp-idf/components/esp_ringbuf/include -IC:/Users/maestro/Desktop/esp-idf/components/efuse/include -IC:/Users/maestro/Desktop/esp-idf/components/efuse/esp32/include -IC:/Users/maestro/Desktop/esp-idf/components/espcoredump/include -IC:/Users/maestro/Desktop/esp-idf/components/esp_timer/include -IC:/Users/maestro/Desktop/esp-idf/components/esp_ipc/include -IC:/Users/maestro/Desktop/esp-idf/components/soc/soc/esp32/include -IC:/Users/maestro/Desktop/esp-idf/components/soc/soc/esp32/../include -IC:/Users/maestro/Desktop/esp-idf/components/soc/soc/esp32/private_include -IC:/Users/maestro/Desktop/esp-idf/components/vfs/include -IC:/Users/maestro/Desktop/esp-idf/components/esp_wifi/include -IC:/Users/maestro/Desktop/esp-idf/components/esp_wifi/esp32/include -IC:/Users/maestro/Desktop/esp-idf/components/esp_event/include -IC:/Users/maestro/Desktop/esp-idf/components/esp_netif/include -IC:/Users/maestro/Desktop/esp-idf/components/esp_eth/include -IC:/Users/maestro/Desktop/esp-idf/components/tcpip_adapter/include -IC:/Users/maestro/Desktop/esp-idf/components/app_trace/include -IC:/Users/maestro/Desktop/esp-idf/components/mbedtls/port/include -IC:/Users/maestro/Desktop/esp-idf/components/mbedtls/mbedtls/include -IC:/Users/maestro/Desktop/esp-idf/components/mbedtls/esp_crt_bundle/include -IC:/Users/maestro/Desktop/esp-idf/components/bootloader_support/include -IC:/Users/maestro/Desktop/esp-idf/components/app_update/include -IC:/Users/maestro/Desktop/esp-idf/components/spi_flash/include -IC:/Users/maestro/Desktop/esp-idf/components/wpa_supplicant/include -IC:/Users/maestro/Desktop/esp-idf/components/wpa_supplicant/port/include -IC:/Users/maestro/Desktop/esp-idf/components/wpa_supplicant/include/esp_supplicant -IC:/Users/maestro/Desktop/esp-idf/components/nvs_flash/include -IC:/Users/maestro/Desktop/esp-idf/components/pthread/include -IC:/Users/maestro/Desktop/esp-idf/components/perfmon/include -IC:/Users/maestro/Desktop/esp-idf/components/asio/asio/asio/include -IC:/Users/maestro/Desktop/esp-idf/components/asio/port/include -IC:/Users/maestro/Desktop/esp-idf/components/bt/include -IC:/Users/maestro/Desktop/esp-idf/components/bt/common/osi/include -IC:/Users/maestro/Desktop/esp-idf/components/bt/host/bluedroid/api/include/api -IC:/Users/maestro/Desktop/esp-idf/components/cbor/port/include -IC:/Users/maestro/Desktop/esp-idf/components/coap/port/include -IC:/Users/maestro/Desktop/esp-idf/components/coap/port/include/coap -IC:/Users/maestro/Desktop/esp-idf/components/coap/libcoap/include -IC:/Users/maestro/Desktop/esp-idf/components/coap/libcoap/include/coap2 -IC:/Users/maestro/Desktop/esp-idf/components/console -IC:/Users/maestro/Desktop/esp-idf/components/nghttp/port/include -IC:/Users/maestro/Desktop/esp-idf/components/nghttp/nghttp2/lib/includes -IC:/Users/maestro/Desktop/esp-idf/components/esp-tls -IC:/Users/maestro/Desktop/esp-idf/components/esp_adc_cal/include -IC:/Users/maestro/Desktop/esp-idf/components/esp_gdbstub/include -IC:/Users/maestro/Desktop/esp-idf/components/esp_hid/include -IC:/Users/maestro/Desktop/esp-idf/components/tcp_transport/include -IC:/Users/maestro/Desktop/esp-idf/components/esp_http_client/include -IC:/Users/maestro/Desktop/esp-idf/components/esp_http_server/include -IC:/Users/maestro/Desktop/esp-idf/components/esp_https_ota/include -IC:/Users/maestro/Desktop/esp-idf/components/protobuf-c/protobuf-c -IC:/Users/maestro/Desktop/esp-idf/components/protoco
mm/include/common -IC:/Users/maestro/Desktop/esp-idf/components/protocomm/include/security -IC:/Users/maestro/Desktop/esp-idf/components/protocomm/include/transports -IC:/Users/maestro/Desktop/esp-idf/components/mdns/include -IC:/Users/maestro/Desktop/esp-idf/components/esp_local_ctrl/include -IC:/Users/maestro/Desktop/esp-idf/components/sdmmc/include -IC:/Users/maestro/Desktop/esp-idf/components/esp_serial_slave_link/include -IC:/Users/maestro/Desktop/esp-idf/components/esp_websocket_client/include -IC:/Users/maestro/Desktop/esp-idf/components/expat/expat/expat/lib -IC:/Users/maestro/Desktop/esp-idf/components/expat/port/include -IC:/Users/maestro/Desktop/esp-idf/components/wear_levelling/include -IC:/Users/maestro/Desktop/esp-idf/components/fatfs/diskio -IC:/Users/maestro/Desktop/esp-idf/components/fatfs/vfs -IC:/Users/maestro/Desktop/esp-idf/components/fatfs/src -IC:/Users/maestro/Desktop/esp-idf/components/freemodbus/common/include -IC:/Users/maestro/Desktop/esp-idf/components/idf_test/include -IC:/Users/maestro/Desktop/esp-idf/components/idf_test/include/esp32 -IC:/Users/maestro/Desktop/esp-idf/components/jsmn/include -IC:/Users/maestro/Desktop/esp-idf/components/json/cJSON -IC:/Users/maestro/Desktop/esp-idf/components/libsodium/libsodium/src/libsodium/include -IC:/Users/maestro/Desktop/esp-idf/components/libsodium/port_include -IC:/Users/maestro/Desktop/esp-idf/components/mqtt/esp-mqtt/include -IC:/Users/maestro/Desktop/esp-idf/components/openssl/include -IC:/Users/maestro/Desktop/esp-idf/components/spiffs/include -IC:/Users/maestro/Desktop/esp-idf/components/ulp/include -IC:/Users/maestro/Desktop/esp-idf/components/unity/include -IC:/Users/maestro/Desktop/esp-idf/components/unity/unity/src -IC:/Users/maestro/Desktop/esp-idf/components/wifi_provisioning/include -mlongcalls -Wno-frame-address -ffunction-sections -fdata-sections -fstrict-volatile-bitfields -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-but-set-variable -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -ggdb -Og -std=gnu99 -Wno-old-style-declaration -D_GNU_SOURCE -DIDF_VER=\"v4.2.1-dirty\" -DESP_PLATFORM -MD -MT esp-idf/main/CMakeFiles/__idf_main.dir/esp-project.c.obj -MF esp-idf\main\CMakeFiles\__idf_main.dir\esp-project.c.obj.d -o esp-idf/main/CMakeFiles/__idf_main.dir/esp-project.c.obj -c ../main/esp-project.c
In file included from ../main/esp-project.c:40:
C:/Users/maestro/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:50:
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)
^~~~~
../main/esp-project.c: In function 'app_main':
../main/esp-project.c:371:12: warning: unsigned conversion from 'int' to 'MX_UINT8' {aka 'volatile unsigned char'} changes value from '280' to '24' [-Woverflow]
FCI_DELAYBYTE_MS(180);
^~~
In file included from C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\internals.c:568,
from ../main/esp-project.c:50:
At top level:
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\ESP\ESP_CAL_String.c:876:13: warning: 'FCI_SCOPY' defined but not used [-Wunused-function]
static void FCI_SCOPY(MX_STRING sSrc, MX_UINT16 iSrc_len, MX_STRING sDst, MX_UINT16 iDst_len)
^~~~~~~~~
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\ESP\ESP_CAL_String.c:815:13: warning: 'FCI_SHEAD' defined but not used [-Wunused-function]
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)
^~~~~~~~~
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:531:18: warning: 'FCI_FLOAT_TO_STRING' defined but not used [-Wunused-function]
static MX_STRING FCI_FLOAT_TO_STRING(MX_FLOAT Number, MX_UINT8 Precision, 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:297:10: warning: 'FCI_TOSTRU16' defined but not used [-Wunused-function]
MX_UINT8 FCI_TOSTRU16(MX_UINT16 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:50:
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:121:18: warning: 'FCI_GETLENGTH' defined but not used [-Wunused-function]
static MX_UINT16 FCI_GETLENGTH(MX_STRING sStr1, MX_UINT16 iStr1_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)
^~~~~~~~~~~
../main/esp-project.c: In function 'FCM_ChangePeriod':
../main/esp-project.c:302:9: error: 'FCR_RETVAL' is used uninitialized in this function [-Werror=uninitialized]
:16-bit PIC users should use the 10bit duty function to access the full range.
^
../main/esp-project.c: In function 'FCM_SetDutyCycle':
../main/esp-project.c:328:9: error: 'FCR_RETVAL' is used uninitialized in this function [-Werror=uninitialized]
void app_main()
^
cc1.exe: some warnings being treated as errors
ninja: build stopped: subcommand failed.
Executing action: all (aliases: build)
Running ninja in directory c:\users\maestro\desktop\flowcode_files\pwm2\build
Executing "ninja all"...
ninja failed with exit code 1
Build Failed
.
C:\ProgramData\MatrixTSL\FlowcodeV9\FCD\ESP\Batch\esp32_build.bat reported error code 0x1
Autoclose turned off
FINISHED
-
- Valued Contributor
- Posts: 447
- Joined: Mon Dec 07, 2020 1:00 pm
- Has thanked: 81 times
- Been thanked: 243 times
Re: Uploading problem
In your project PWM2.fcfx
in the main macro, you never call ChangePeriod or SetDutyCycle macros
so you might as well delete them
that will remove the build error
Otherwise, edit or create the ChangePeriod or SetDutyCycle macros without a return value
ps. please learn to use the Attachments -> Add file
in the main macro, you never call ChangePeriod or SetDutyCycle macros
so you might as well delete them
that will remove the build error
Otherwise, edit or create the ChangePeriod or SetDutyCycle macros without a return value
ps. please learn to use the Attachments -> Add file
