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

BTT S42B V2 Firmware Compiler errors #14

Open
rob-mcinerney opened this issue Jan 21, 2022 · 0 comments
Open

BTT S42B V2 Firmware Compiler errors #14

rob-mcinerney opened this issue Jan 21, 2022 · 0 comments

Comments

@rob-mcinerney
Copy link

Not a very good programmer!!!
When I compile the files from this repository get a firmware.bin file but is doesn't work correctly. It runs very slow on the motor.
Here is the VSCode Terminal output.


Executing task: C:\Users\Rob.platformio\penv\Scripts\platformio.exe run <

Warning! env_default configuration option in section [platformio] is deprecated and will be removed in the next release! Please use default_envs instead
Processing BIGTREE_S42B_V1_2 (platform: ststm32; framework: cmsis; board: genericSTM32F103CB)
-------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via -v, --verbose option
CONFIGURATION: https://docs.platformio.org/page/boards/ststm32/genericSTM32F103CB.html
PLATFORM: ST STM32 (15.1.0) > STM32F103CB (20k RAM. 128k Flash)
HARDWARE: STM32F103CBT6 72MHz, 20KB RAM, 128KB Flash
DEBUG: Current (stlink) External (blackmagic, cmsis-dap, jlink, stlink)
PACKAGES:

  • framework-cmsis 2.50501.200527 (5.5.1)
  • framework-cmsis-stm32f1 4.3.1
  • tool-ldscripts-ststm32 0.2.0
  • toolchain-gccarmnoneeabi 1.70201.0 (7.2.1)
    LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
    LDF Modes: Finder ~ chain, Compatibility ~ soft
    Found 0 compatible libraries
    Scanning dependencies...
    No dependencies
    Building in release mode
    Compiling .pioenvs\BIGTREE_S42B_V1_2\FrameworkCMSIS\gcc\startup_stm32f103xb.o
    Compiling .pioenvs\BIGTREE_S42B_V1_2\FrameworkCMSIS\system_stm32f1xx.o
    Compiling .pioenvs\BIGTREE_S42B_V1_2\src\src\core\core_cm3.o
    Compiling .pioenvs\BIGTREE_S42B_V1_2\src\src\hardware\can.o
    Compiling .pioenvs\BIGTREE_S42B_V1_2\src\src\hardware\display.o
    Compiling .pioenvs\BIGTREE_S42B_V1_2\src\src\hardware\exit.o
    Compiling .pioenvs\BIGTREE_S42B_V1_2\src\src\hardware\flash.o
    Compiling .pioenvs\BIGTREE_S42B_V1_2\src\src\hardware\gpio.o
    Compiling .pioenvs\BIGTREE_S42B_V1_2\src\src\hardware\iwdg.o
    Compiling .pioenvs\BIGTREE_S42B_V1_2\src\src\hardware\key.o
    Compiling .pioenvs\BIGTREE_S42B_V1_2\src\src\hardware\oled.o
    Compiling .pioenvs\BIGTREE_S42B_V1_2\src\src\hardware\spi1.o
    Compiling .pioenvs\BIGTREE_S42B_V1_2\src\src\hardware\time.o
    Compiling .pioenvs\BIGTREE_S42B_V1_2\src\src\hardware\tle5012.o
    Compiling .pioenvs\BIGTREE_S42B_V1_2\src\src\stm32f1_lib\src\misc.o
    Compiling .pioenvs\BIGTREE_S42B_V1_2\src\src\stm32f1_lib\src\stm32f10x_adc.o
    Compiling .pioenvs\BIGTREE_S42B_V1_2\src\src\stm32f1_lib\src\stm32f10x_bkp.o
    Compiling .pioenvs\BIGTREE_S42B_V1_2\src\src\stm32f1_lib\src\stm32f10x_can.o
    Compiling .pioenvs\BIGTREE_S42B_V1_2\src\src\stm32f1_lib\src\stm32f10x_cec.o
    Compiling .pioenvs\BIGTREE_S42B_V1_2\src\src\stm32f1_lib\src\stm32f10x_crc.o
    Compiling .pioenvs\BIGTREE_S42B_V1_2\src\src\stm32f1_lib\src\stm32f10x_dac.o
    Compiling .pioenvs\BIGTREE_S42B_V1_2\src\src\stm32f1_lib\src\stm32f10x_dbgmcu.o
    Compiling .pioenvs\BIGTREE_S42B_V1_2\src\src\stm32f1_lib\src\stm32f10x_dma.o
    Close_loop\src\hardware\tle5012.c: In function 'SetModeCheck':
    Close_loop\src\hardware\tle5012.c:354:7: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
    loop: if(CAL==0)//
    ^~
    Close_loop\src\hardware\tle5012.c:356:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
    if(1 != Second_Calibrate_flag){
    ^~

    Compiling .pioenvs\BIGTREE_S42B_V1_2\src\src\stm32f1_lib\src\stm32f10x_exti.o
    Compiling .pioenvs\BIGTREE_S42B_V1_2\src\src\stm32f1_lib\src\stm32f10x_flash.o
    Compiling .pioenvs\BIGTREE_S42B_V1_2\src\src\stm32f1_lib\src\stm32f10x_fsmc.o
    Compiling .pioenvs\BIGTREE_S42B_V1_2\src\src\stm32f1_lib\src\stm32f10x_gpio.o
    Compiling .pioenvs\BIGTREE_S42B_V1_2\src\src\stm32f1_lib\src\stm32f10x_i2c.o
    Compiling .pioenvs\BIGTREE_S42B_V1_2\src\src\stm32f1_lib\src\stm32f10x_iwdg.o
    Compiling .pioenvs\BIGTREE_S42B_V1_2\src\src\stm32f1_lib\src\stm32f10x_pwr.o
    Compiling .pioenvs\BIGTREE_S42B_V1_2\src\src\stm32f1_lib\src\stm32f10x_rcc.o
    Compiling .pioenvs\BIGTREE_S42B_V1_2\src\src\stm32f1_lib\src\stm32f10x_rtc.o
    Compiling .pioenvs\BIGTREE_S42B_V1_2\src\src\stm32f1_lib\src\stm32f10x_sdio.o
    Compiling .pioenvs\BIGTREE_S42B_V1_2\src\src\stm32f1_lib\src\stm32f10x_spi.o
    Compiling .pioenvs\BIGTREE_S42B_V1_2\src\src\stm32f1_lib\src\stm32f10x_tim.o
    Compiling .pioenvs\BIGTREE_S42B_V1_2\src\src\stm32f1_lib\src\stm32f10x_usart.o
    Compiling .pioenvs\BIGTREE_S42B_V1_2\src\src\stm32f1_lib\src\stm32f10x_wwdg.o
    Compiling .pioenvs\BIGTREE_S42B_V1_2\src\src\system\delay.o
    Compiling .pioenvs\BIGTREE_S42B_V1_2\src\src\system\sys.o
    Compiling .pioenvs\BIGTREE_S42B_V1_2\src\src\system\usart.o
    Compiling .pioenvs\BIGTREE_S42B_V1_2\src\src\user\main.o
    Compiling .pioenvs\BIGTREE_S42B_V1_2\src\src\user\stm32f10x_it.o
    Close_loop\src\system\delay.c: In function 'System_Clock_Init':
    **Close_loop\src\system\delay.c:77:5: warning: implicit declaration of function 'SystemInit'; did you mean 'SPI_Init'? [-Wimplicit-function-declaration]
    SystemInit();
    ^~~~~~~~~~
    SPI_Init
    Close_loop\src\system\usart.c:47:0: warning: ignoring #pragma import [-Wunknown-pragmas]
    #pragma import(__use_no_semihosting)

Close_loop\src\system\usart.c: In function 'USART1_IRQHandler':
Close_loop\src\system\usart.c:426:13: warning: variable '_data' set but not used [-Wunused-but-set-variable]
uint8_t _data;
^~~~~**
Linking .pioenvs\BIGTREE_S42B_V1_2\firmware.elf
Checking size .pioenvs\BIGTREE_S42B_V1_2\firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM: [== ] 15.6% (used 3200 bytes from 20480 bytes)
Flash: [=== ] 27.1% (used 35580 bytes from 131072 bytes)
Building .pioenvs\BIGTREE_S42B_V1_2\firmware.bin

I can post the coed if needed, but is cam from this repository.

Hoping it is a simple answer and I can get on with life.
Thanks,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant