rogerclarkmelbourne / Arduino_STM32

Arduino STM32. Hardware files to support STM32 boards, on Arduino IDE 1.8.x including LeafLabs Maple and other generic STM32F103 boards
Other
2.52k stars 1.26k forks source link

stm_fft slow blink PC13 on bluepill #793

Closed 78edu closed 3 years ago

78edu commented 4 years ago

Hello. I've tried stm_fft library and it doesn't work. My bluepill board PC13 led starts pulsating slowly and board is not responding. I've installed Arduino_STM32 by an archive to my Documents folder and Arduino SAM boards in Board Manager. All works fine, but not this library. Arduino uses: "C:\Users\1\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++" And no *.asm file is compiled. With .s extension it compiles as with -o nul: "...\libraries\stm_fft\cr4_fft_256_stm32.s" -o nul" I have no idea how to properly compile this files and link it. I've tried info from other issues on this topic with no result. STM32duino toolchain is different and i don't know how to use it, it fails in many places. In my case 1024 fft is failed too. (In my case version 1.9.0 with xpack-arm-none-eabi-gcc-9.2.1-1.1, i'll try with 1.6.1 arm-none-eabi-gcc 8.2.1-1.7)

What should i do to use this library?

78edu commented 4 years ago

After installing STM32duino 1.6.1 arduino uses arm-none-eabi-gcc 8.2.1-1.7, but i still have pulsating led issue. .asm files also ignored, but not .s, all remains same (maximum verbose output)

stevstrong commented 4 years ago

Please use www.stm32duino.com for such issues.

78edu commented 4 years ago

Please use www.stm32duino.com for such issues.

can you explain details? it won't compile with stm32duino with manually added library. should i use cmsis dsp instead of stm_fft? I prefer Arduino STM32 more than stm32duino, it works much faster and i need stm_fft to work.

c:/users/1/appdata/local/arduino15/packages/stm32/tools/arm-none-eabi-gcc/8.2.1-1.7/bin/../lib/gcc/arm-none-eabi/8.2.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\1\AppData\Local\Temp\arduino_build_326228\sketch\sketch_may17a.ino.cpp.o: in function `loop':

sketch_may17a.ino.cpp:(.text.loop+0x26): undefined reference to `cr4_fft_1024_stm32'

collect2.exe: error: ld returned 1 exit status

In both cases (stm32duino and arduino stm32): stmf1_fft\\cr4_fft_64_stm32.s" -o nul What's the point? Compile .s file with no -o file output?

stevstrong commented 4 years ago

I suggested to use the forum www.stm32duino.com. There you can post your problem and get response if you provide more information.

78edu commented 4 years ago

Please don't close this issue until 10.07.2020. I'll try to figure how to fix this. I think this should work proper because it's main fork library.

rogerclarkmelbourne commented 4 years ago

Why 10.07.2020

stevstrong commented 4 years ago

I suggest to change the extension ".s" to ".S" (capital S), then it should compile.

stevstrong commented 3 years ago

Closed due to inactivity.