profile
viewpoint
Ilia Motornyi elmot JetBrains Turku, Finland https://elmot.xyz Using Java since 1.0 Writing Vaadin 7.4...12 Writing CLion since 2018.3

elmot/clion-embedded-arm 161

OpenOCD + STM32CubeMX support for CLion

elmot/f3_blink 13

Sample embedded project for CLion: STM32F303+STM32CubeMX+GCC

elmot/f4-blog 9

Clion + OpenOCD + My Plugin + STM32F4-Discovery example

elmot/arduino-to-clion 5

Arduino-AVR -> Professional ARM project migration with CLion

elmot/clion-avr-c-demo 4

Demo project CLion + Arduino Mega2560 + AVR-GCC compiler

elmot/ev3javabrick 4

ROS node to control LEGO MINDSTORMS EV3

elmot/clion-iar-stm32f3-stub 2

CLion project stub with IAR toolchain

elmot/clion-iar-stm32f3-demo 1

CLion + IAR ARM Compiler example

elmot/clion-iar-stm8-demo 1

CLion example - STM8 + IAR compiler + CMake

pull request commentelmot/nrf24l01-lib

Update radio_demo.c

I can't verify it right now. Let's keep it as open until tested. I can pick this commit so some other branch here, if you wanna drop your fork of the repository

dozack

comment created time in 11 days

push eventJetBrains/clion-custom-defined-compiler-examples

Hatim-Pierre FAZILEABASSE

commit sha 5ab7e64632e1f6cbfa7e69c75cc14867f2a641ec

[REGEXP] Fixed missing parentheses in match-compiler-exe regexp. ARMCC can now be detected on Linux systems as well as Windows. (#12) Signed-off-by: Hatim-Pierre FAZILEABASSE <hatim-pierre.fazileabasse@ingenico.com>

view details

push time in 16 days

PR merged JetBrains/clion-custom-defined-compiler-examples

ARMCC: Fixed missing parentheses in match-compiler-exe regexp.

Thank you for this welcome new feature.

This pull request aims to fix the regexp used in "custom-compiler-armcc.yaml" with the following effect: ARMCC can now be detected on Linux systems as well as Windows.

Best regards

+2 -2

0 comment

1 changed file

hpfaz

pr closed time in 16 days

PullRequestReviewEvent

startednavnavnav/Bloom

started time in 24 days

issue closedplatformio/platformio-core

PIO debug does not work for stm32cubemx project under Windows

  • [x] PlatformIO Core. If you’ve found a bug, please provide an information below.

Configuration

Operating system: Windows

IDE: CLion

PlatformIO Version : 5.2.3

Description of problem

pio debug does not handle breakpoints properly

Steps to Reproduce

  1. Create project for STM32F3-Discovery, stm32cube framework
  2. add a trivial main.c(see below)
  3. Connect the board normally with ST-LINK
  4. Start pio.exe debug --interface=gdb -x .pioinit --iex "set mi-async on" -e disco_f303vc
  5. when the debugger stops at temporary breakpoint, try commands: 5.1 list main.c - that shows that main.c debug info is loaded, 4 lines inside 5.2 b main.c:3 - breakpoint is not set 5.3 b src/main.c:3 - breakpoint is not set

Actual Results

Breakpoints do not work

Expected Results

Two breakpoints are set at line 3 of main.c

The content of platformio.ini:

[env:disco_f303vc]
platform = ststm32
board = disco_f303vc
framework = stm32cube

Source file to reproduce issue:

int main() {
// write your code here
 while(1);
}

closed time in a month

elmot

issue commentplatformio/platformio-core

PIO debug does not work for stm32cubemx project under Windows

It looks like the problem is in new GCC, which extensively optimizes the code Non working debugger was a strange glitch The fix for the problem is to add

debug_build_flags = -g3

to the platformio.ini file

elmot

comment created time in a month

issue commentplatformio/platformio-core

PIO debug does not work for stm32cubemx project under Windows

@valeros I don't have F1 in hands ATM, but for L4 openocd works Btw, let's chat via Telegram, noone needs long chat transcript here @ivankravets has my contact

elmot

comment created time in a month

issue commentplatformio/platformio-core

PIO debug does not work for stm32cubemx project under Windows

yeah, exactly the same

elmot

comment created time in a month

issue commentplatformio/platformio-core

PIO debug does not work for stm32cubemx project under Windows

BTW I have just got fresh windows update. Might be system command interpreter behavior has changed?

elmot

comment created time in a month

issue commentplatformio/platformio-core

PIO debug does not work for stm32cubemx project under Windows

Sorry I don't at the moment But nucleo_f103rb gives the same result.

elmot

comment created time in a month

issue commentplatformio/platformio-core

PIO debug does not work for stm32cubemx project under Windows

hi @valeros Unfortunately I can't even verify now. PIO debug under windows looks completely broken now Debug log for all my stm32/platformio projects:

Reading symbols from C:\Users\Ilia.Motornyi\CLionProjects\untitled5\.pio\build\nucleo_l432kc\firmware.elf...done.
PlatformIO Unified Debugger -> https://bit.ly/pio-debug
PlatformIO: debug_tool = stlink
PlatformIO: Initializing remote target...
xPack OpenOCD x86_64 Open On-Chip Debugger 0.11.0+dev (2021-10-16-21:19)
Licensed under GNU GPL v2
For bug reports, read
	http://openocd.org/doc/doxygen/bugs.html
hla_swd
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
Info : DEPRECATED target event trace-config; use TPIU events {pre,post}-{enable,disable}
Info : tcl server disabled
Info : telnet server disabled
Info : clock speed 500 kHz
Error: open failed


.pioinit:13: Error in sourced command file:
PS C:\Users\Ilia.Motornyi\CLionProjects\untitled5> platformio --version
PlatformIO Core, version 5.2.3

.pioinit file I found in a service folder:

echo PlatformIO Unified Debugger -> https://bit.ly/pio-debug\n
echo PlatformIO: debug_tool = stlink\n
echo PlatformIO: Initializing remote target...\n

define pio_reset_halt_target
    monitor reset halt
end

define pio_reset_run_target
    monitor reset
end

target extended-remote | "C:/Users/Ilia.Motornyi/.platformio/packages/tool-openocd/bin/openocd.exe" -s "C:/Users/Ilia.Motornyi/.platformio/packages/tool-openocd" -c "gdb_port pipe; tcl_port disabled; telnet_port disabled" -s "C:/Users/Ilia.Motornyi/.platformio/packages/tool-openocd/scripts" -f "interface/stlink.cfg" -c "transport select hla_swd" -f "target/stm32l4x.cfg"
monitor init
load
pio_reset_halt_target
tbreak main

define pio_restart_target
   pio_reset_halt_target
   tbreak main
   continue
end
echo PlatformIO: Initialization completed\n
elmot

comment created time in a month

issue openedplatformio/platformio-core

PIO debug does not work under for stm32cubemx project under Windows

  • [x] PlatformIO Core. If you’ve found a bug, please provide an information below.

Configuration

Operating system: Windows

IDE: CLion

PlatformIO Version : 5.2.3

Description of problem

pio debug does not handle breakpoints properly

Steps to Reproduce

  1. Create project for STM32F3-Discovery, stm32cube framework
  2. add a trivial main.c(see below)
  3. Connected the board normally with ST-LINK
  4. Start pio.exe debug --interface=gdb -x .pioinit --iex "set mi-async on" -e disco_f303vc
  5. when the debugger stops at temporary breakpoint, try commands: 5.1 list main.c - that shows that main.c debug info is loaded, 4 lines inside 5.2 b main.c:3 - breakpoint is not set 5.3 b src/main.c:3 - breakpoint is not set

Actual Results

Breakpoints do not work

Expected Results

Two breakpoints are set at line 3 of main.c

The content of platformio.ini:

[env:disco_f303vc]
platform = ststm32
board = disco_f303vc
framework = stm32cube

Source file to reproduce issue:

int main() {
// write your code here
 while(1);
}

created time in a month

push eventJetBrains/clion-custom-defined-compiler-examples

Ilia Motornyi

commit sha 6c1d00def7dc82fff418714ae3468494a19f6380

Fix OpenWatcom support

view details

push time in 2 months

push eventelmot/f3-si4463-test

Ilia Motornyi

commit sha 9b182a462ff17ba6adf028f2b61ffb3002817a6b

Initial commit

view details

push time in 2 months

create barnchelmot/f3-si4463-test

branch : master

created branch time in 2 months

created repositoryelmot/f3-si4463-test

created time in 2 months

push eventJetBrains/clion-custom-defined-compiler-examples

Ilia Motornyi

commit sha 33ab192863c833039a5f072175fab8575f2a6d6d

Disclaimer updated

view details

push time in 2 months

push eventelmot/clion-iar-stm32f3-stub

Ilia Motornyi

commit sha 9f8e74c0cce53ff797a79ef70e0a680df655f3de

Better toolchains support via presets

view details

push time in 2 months

PublicEvent

delete branch elmot/clion-iar-stm32f3-stub

delete branch : cpp

delete time in 2 months

delete branch elmot/clion-iar-stm32f3-stub

delete branch : c++_and_CMake_3.22

delete time in 2 months

push eventelmot/clion-iar-stm32f3-stub

Ilia Motornyi

commit sha e9258a612a0e7566d1804d89523d611b767ba38c

Small mistakes fixed

view details

push time in 2 months

push eventelmot/clion-iar-stm32f3-stub

Ilia Motornyi

commit sha 438de718732d3a33599e7ca7ee4703a8623624c1

Renew all the tools and use new features (#3) * CMake 3.22 * Fixed IAR support * CMake presets * CLion 2021.3 * CMake presets * IAR v9 for ARM * STM32CubeMX 6.3.0 * new HAL

view details

push time in 2 months

PR merged elmot/clion-iar-stm32f3-stub

Renew all the tools and use new features
  • CMake 3.22
    • Fixed IAR support
    • CMake presets
  • CLion 2021.3
    • CMake presets
  • IAR v9 for ARM
+5277 -2507

0 comment

46 changed files

elmot

pr closed time in 2 months

PR opened elmot/clion-iar-stm32f3-stub

Renew all the tools and use new features
  • CMake 3.22
    • Fixed IAR support
    • CMake presets
  • CLion 2021.3
    • CMake presets
  • IAR v9 for ARM
+5277 -2507

0 comment

46 changed files

pr created time in 2 months

push eventelmot/clion-iar-stm32f3-stub

Ilia Motornyi

commit sha 349e7e2b2d97b24b51953a6b174e50de83505193

Adjustments for CLion 2021.3

view details

push time in 2 months

create barnchelmot/clion-iar-stm32f3-stub

branch : c++_and_CMake_3.22

created branch time in 2 months

delete branch JetBrains/clion-custom-defined-compiler-examples

delete branch : tasking

delete time in 3 months

more