Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Compile warning in bugfix on STM32F1 board #19613

Closed
XDA-Bam opened this issue Oct 4, 2020 · 4 comments
Closed

[BUG] Compile warning in bugfix on STM32F1 board #19613

XDA-Bam opened this issue Oct 4, 2020 · 4 comments

Comments

@XDA-Bam
Copy link
Contributor

XDA-Bam commented Oct 4, 2020

Bug Description

Compiling bugfix 604d10d on a BTT Mini SKR E3 v1.2 gives a couple of warnings:

C:\Users\Username\.platformio\packages\framework-arduinoststm32-maple\STM32F1\libraries\STM32ADC\src\utility\util_adc.c:10:30: warning: 'adc_result' initialized and declared 'extern'
 extern volatile unsigned int adc_result = 0;

C:\Users\Username\.platformio\packages\framework-arduinoststm32-maple\STM32F1\libraries\FreeRTOS701\utility\port.c: In function 'xPortStartScheduler':
C:\Users\Username\.platformio\packages\framework-arduinoststm32-maple\STM32F1\libraries\FreeRTOS701\utility\port.c:178:2: warning: implicit declaration of function 'systick_attach_callback' [-Wimplicit-function-declaration]
  systick_attach_callback(&xPortSysTickHandler);

At top level:
Compiling .pio\build\STM32F103RC_btt\libfb4\FreeRTOS701\utility\tasks.c.o
Compiling .pio\build\STM32F103RC_btt\libfb4\FreeRTOS701\utility\timers.c.o
C:\Users\Username\.platformio\packages\framework-arduinoststm32-maple\STM32F1\libraries\FreeRTOS701\utility\port.c:285:6: warning: 'prvSetupTimerInterrupt' defined but not used [-Wunused-function]
 void prvSetupTimerInterrupt( void )

My Configurations

Config.zip

Steps to Reproduce

  1. Pull bugfix-2.0.x @ 604d10d
  2. Apply configs
  3. Build in VSCode using Marlin Auto Build

Expected behavior: Clean compile

Actual behavior: Compile finishes, but multiple warnings occur

Additional Information

The systick warning might be related to #19565

@ellensp
Copy link
Contributor

ellensp commented Oct 4, 2020

Take a look at the paths
Eg platformio\packages\framework-arduinoststm32-maple\STM32F1\libraries\STM32ADC\src\utility\util_adc.c
Ie this is not part of marlin. this is part of framework-arduinoststm32-maple .

@ellensp ellensp closed this as completed Oct 4, 2020
@XDA-Bam
Copy link
Contributor Author

XDA-Bam commented Oct 4, 2020

Sorry for the extra work 🙈 #legallyblind

@bspark2
Copy link

bspark2 commented Oct 8, 2020

HI There, I have had the exact error while compiling as mentioned above by XDA-Bam. I am very much a novice... Just wondering what the fix was.. Thanks in advance

@github-actions
Copy link

github-actions bot commented Dec 7, 2020

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked and limited conversation to collaborators Dec 7, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants