How can I debug the STM32F103 code and remove compiler optimization January 08, 2024 04:12AM |
Registered: 3 months ago Posts: 3 |
Re: How can I debug the STM32F103 code and remove compiler optimization January 08, 2024 05:24AM |
Admin Registered: 13 years ago Posts: 7,005 |
[env : STM32F103CB_malyan] extends = common_stm32 board = malyanm200_f103cb build_flags = ${common_stm32.build_flags} -O0 -DHAL_PCD_MODULE_ENABLED -DDISABLE_GENERIC_SERIALUSB -DHAL_UART_MODULE_ENABLED build_src_filter = ${common.default_src_filter} + - build_unflags = -OsBut Note: this will not build as the code exceeds the flash space of this particularly small controller (128K flash)
debug_tool = jlink build_type = debug
Re: How can I debug the STM32F103 code and remove compiler optimization January 09, 2024 07:56AM |
Registered: 3 months ago Posts: 3 |
debug_tool = jlink build_type = debug
[env: STM32F103CB_malyan] extends = common_stm32 board = malyanm200_f103cb build_flags = ${common_stm32.build_flags} -DHAL_PCD_MODULE_ENABLED -DDISABLE_GENERIC_SERIALUSB -DHAL_UART_MODULE_ENABLED build_src_filter = ${common.default_src_filter} + debug_tool = jlink build_type = debug # build_unflags = -Os
Quote
console
Executing task: C:\Users\Ali\.platformio\penv\Scripts\platformio.exe debug
Processing STM32F103CB_malyan (board: malyanm200_f103cb; platform: ststm32@~12.1; framework: arduino)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: [docs.platformio.org]
PLATFORM: ST STM32 (12.1.1) > Malyan M200 V1
HARDWARE: STM32F103CBT6 72MHz, 20KB RAM, 120KB Flash
DEBUG: Current (jlink) External (blackmagic, cmsis-dap, jlink, stlink)
PACKAGES:
- framework-arduinoststm32 @ 4.10900.200819 (1.9.0)
- framework-cmsis @ 2.50501.200527 (5.5.1)
- toolchain-gccarmnoneeabi @ 1.90201.191206 (9.2.1)
Converting Marlin.ino
LDF: Library Dependency Finder -> [bit.ly]
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 10 compatible libraries
Scanning dependencies...
Dependency Graph
|-- IWatchdog @ 1.0.0
|-- SPI @ 1.0
|-- EEPROM @ 2.0.1
|-- SoftwareSerial @ 1.0
|-- Servo @ 1.1.2
|-- Wire @ 1.0
Building in debug mode
Compiling .pio\build\STM32F103CB_malyan\src\src\inc\Warnings.cpp.o
Checking size .pio\build\STM32F103CB_malyan\firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM: [==== ] 43.9% (used 8996 bytes from 20480 bytes)
Flash: [==========] 96.9% (used 119132 bytes from 122880 bytes)
================================================================================================== [SUCCESS] Took 3.40 seconds ==================================================================================================
Environment Status Duration
------------------ -------- ------------
STM32F103CB_malyan SUCCESS 00:00:03.400
================================================================================================== 1 succeeded in 00:00:03.400 ==================================================================================================
* Terminal will be reused by tasks, press any key to close it.
Re: How can I debug the STM32F103 code and remove compiler optimization January 13, 2024 08:27AM |
Registered: 3 months ago Posts: 3 |
Re: How can I debug the STM32F103 code and remove compiler optimization January 13, 2024 09:26AM |
Admin Registered: 13 years ago Posts: 7,005 |