Skip to content

stm32F401 compilation error #446

@kalyan-m25

Description

@kalyan-m25

C:\Users\Den\Documents\Arduino\libraries\Adafruit_NeoPixel\Adafruit_NeoPixel.cpp: In member function 'void Adafruit_NeoPixel::show()':
C:\Users\Den\Documents\Arduino\libraries\Adafruit_NeoPixel\Adafruit_NeoPixel.cpp:957:3: error: 'Pio' was not declared in this scope
957 | Pio *port;
| ^~~
C:\Users\Den\Documents\Arduino\libraries\Adafruit_NeoPixel\Adafruit_NeoPixel.cpp:957:19: error: 'port' was not declared in this scope
957 | Pio *port;
| ^~~~
C:\Users\Den\Documents\Arduino\libraries\Adafruit_NeoPixel\Adafruit_NeoPixel.cpp:958:12: error: 'WoReg' does not name a type
958 | volatile WoReg *portSet, *portClear, *timeValue, *timeReset;
| ^~~~~
C:\Users\Den\Documents\Arduino\libraries\Adafruit_NeoPixel\Adafruit_NeoPixel.cpp:961:3: error: 'pmc_set_writeprotect' was not declared in this scope
961 | pmc_set_writeprotect(false);
| ^~~~~~~~~~~~~~~~~~~~
C:\Users\Den\Documents\Arduino\libraries\Adafruit_NeoPixel\Adafruit_NeoPixel.cpp:962:35: error: 'TC3_IRQn' was not declared in this scope; did you mean 'TIM3_IRQn'?
962 | pmc_enable_periph_clk((uint32_t)TC3_IRQn);
| ^~~~~~~~
| TIM3_IRQn
C:\Users\Den\Documents\Arduino\libraries\Adafruit_NeoPixel\Adafruit_NeoPixel.cpp:962:3: error: 'pmc_enable_periph_clk' was not declared in this scope
962 | pmc_enable_periph_clk((uint32_t)TC3_IRQn);
| ^~~~~~~~~~~~~~~~~~~~~
C:\Users\Den\Documents\Arduino\libraries\Adafruit_NeoPixel\Adafruit_NeoPixel.cpp:963:16: error: 'TC1' was not declared in this scope
963 | TC_Configure(TC1, 0,
| ^~~
C:\Users\Den\Documents\Arduino\libraries\Adafruit_NeoPixel\Adafruit_NeoPixel.cpp:964:5: error: 'TC_CMR_WAVE' was not declared in this scope
964 | TC_CMR_WAVE | TC_CMR_WAVSEL_UP | TC_CMR_TCCLKS_TIMER_CLOCK1);
| ^~~~~~~~~~~
C:\Users\Den\Documents\Arduino\libraries\Adafruit_NeoPixel\Adafruit_NeoPixel.cpp:964:19: error: 'TC_CMR_WAVSEL_UP' was not declared in this scope
964 | TC_CMR_WAVE | TC_CMR_WAVSEL_UP | TC_CMR_TCCLKS_TIMER_CLOCK1);
| ^~~~~~~~~~~~~~~~
C:\Users\Den\Documents\Arduino\libraries\Adafruit_NeoPixel\Adafruit_NeoPixel.cpp:964:38: error: 'TC_CMR_TCCLKS_TIMER_CLOCK1' was not declared in this scope
964 | TC_CMR_WAVE | TC_CMR_WAVSEL_UP | TC_CMR_TCCLKS_TIMER_CLOCK1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\Den\Documents\Arduino\libraries\Adafruit_NeoPixel\Adafruit_NeoPixel.cpp:963:3: error: 'TC_Configure' was not declared in this scope
963 | TC_Configure(TC1, 0,
| ^~~~~~~~~~~~
C:\Users\Den\Documents\Arduino\libraries\Adafruit_NeoPixel\Adafruit_NeoPixel.cpp:965:3: error: 'TC_Start' was not declared in this scope; did you mean 'USBD_Start'?
965 | TC_Start(TC1, 0);
| ^~~~~~~~
| USBD_Start
C:\Users\Den\Documents\Arduino\libraries\Adafruit_NeoPixel\Adafruit_NeoPixel.cpp:967:15: error: 'g_APinDescription' was not declared in this scope
967 | pinMask = g_APinDescription[pin].ulPin; // Don't 'optimize' these into
| ^~~~~~~~~~~~~~~~~
C:\Users\Den\Documents\Arduino\libraries\Adafruit_NeoPixel\Adafruit_NeoPixel.cpp:969:3: error: 'portSet' was not declared in this scope
969 | portSet = &(port->PIO_SODR); // burn a few cycles after
| ^~~~~~~
C:\Users\Den\Documents\Arduino\libraries\Adafruit_NeoPixel\Adafruit_NeoPixel.cpp:970:3: error: 'portClear' was not declared in this scope; did you mean 'bitClear'?
970 | portClear = &(port->PIO_CODR); // starting timer to minimize
| ^~~~~~~~~
| bitClear
C:\Users\Den\Documents\Arduino\libraries\Adafruit_NeoPixel\Adafruit_NeoPixel.cpp:971:3: error: 'timeValue' was not declared in this scope; did you mean 'timeval'?
971 | timeValue = &(TC1->TC_CHANNEL[0].TC_CV); // the initial 'while'.
| ^~~~~~~~~
| timeval
C:\Users\Den\Documents\Arduino\libraries\Adafruit_NeoPixel\Adafruit_NeoPixel.cpp:972:3: error: 'timeReset' was not declared in this scope; did you mean 'timerisset'?
972 | timeReset = &(TC1->TC_CHANNEL[0].TC_CCR);
| ^~~~~~~~~
| timerisset
C:\Users\Den\Documents\Arduino\libraries\Adafruit_NeoPixel\Adafruit_NeoPixel.cpp:947:22: error: 'VARIANT_MCK' was not declared in this scope
947 | #define SCALE VARIANT_MCK / 2UL / 1000000UL
| ^~~~~~~~~~~
C:\Users\Den\Documents\Arduino\libraries\Adafruit_NeoPixel\Adafruit_NeoPixel.cpp:949:36: note: in expansion of macro 'SCALE'
949 | #define TIME_800_0 ((int)(0.40 * SCALE + 0.5) - (5 * INST))
| ^~~~~
C:\Users\Den\Documents\Arduino\libraries\Adafruit_NeoPixel\Adafruit_NeoPixel.cpp:981:14: note: in expansion of macro 'TIME_800_0'
981 | time0 = TIME_800_0;
| ^~~~~~~~~~
C:\Users\Den\Documents\Arduino\libraries\Adafruit_NeoPixel\Adafruit_NeoPixel.cpp:947:22: error: 'VARIANT_MCK' was not declared in this scope
947 | #define SCALE VARIANT_MCK / 2UL / 1000000UL
| ^~~~~~~~~~~
C:\Users\Den\Documents\Arduino\libraries\Adafruit_NeoPixel\Adafruit_NeoPixel.cpp:952:36: note: in expansion of macro 'SCALE'
952 | #define TIME_400_0 ((int)(0.50 * SCALE + 0.5) - (5 * INST))
| ^~~~~
C:\Users\Den\Documents\Arduino\libraries\Adafruit_NeoPixel\Adafruit_NeoPixel.cpp:986:14: note: in expansion of macro 'TIME_400_0'
986 | time0 = TIME_400_0;
| ^~~~~~~~~~
C:\Users\Den\Documents\Arduino\libraries\Adafruit_NeoPixel\Adafruit_NeoPixel.cpp:996:18: error: 'TC_CCR_CLKEN' was not declared in this scope
996 | *timeReset = TC_CCR_CLKEN | TC_CCR_SWTRG;
| ^~~~~~~~~~~~
C:\Users\Den\Documents\Arduino\libraries\Adafruit_NeoPixel\Adafruit_NeoPixel.cpp:996:33: error: 'TC_CCR_SWTRG' was not declared in this scope
996 | *timeReset = TC_CCR_CLKEN | TC_CCR_SWTRG;
| ^~~~~~~~~~~~
C:\Users\Den\Documents\Arduino\libraries\Adafruit_NeoPixel\Adafruit_NeoPixel.cpp:1006:3: error: 'TC_Stop' was not declared in this scope
1006 | TC_Stop(TC1, 0);

how to fix it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions