Skip to main content
NPal.2
Associate III
July 13, 2021
Question

SSH Connection to STM32CUBEIDE

  • July 13, 2021
  • 3 replies
  • 1824 views

Hi,

How can I connect to STM32MPU via SSH from inside STM32CUBEIDE.??

Is there a way we can do that?

This really helps in live debug of things.

Alternatively is there a way I can live debug an application running on A7?

This topic has been closed for replies.

3 replies

LudovicR
ST Employee
July 13, 2021

Hello @NPal.2​ 

Please have a look to https://wiki.st.com/stm32mpu/wiki/STM32CubeIDE to get global view.

In order to manage connection to STM32MPU you have Target Status https://wiki.st.com/stm32mpu/wiki/How_to_use_the_Target_Status_widget_in_STM32CubeIDE

from where you can open a Linux console.

You can also open an SSH connection via the Remote System Explorer (RSE) perspective https://wiki.st.com/stm32mpu/wiki/How_to_use_the_RSE_Perspective_with_STM32CubeIDE.

Note that this support is no more recommended, and preferred one is to open connection via:

Window > Show View > Other... > Connections > Connections

From this view you should get "MPU SSH" created by Target Status, from where you can "Open Command Shell".

Hope this help, let me know.

Best Regards,

Ludovic

PatrickF
Technical Moderator
July 13, 2021

Hi,

SSH is used to download M4 FW within CubeIDE with debugging FW in 'production mode'

see https://wiki.st.com/stm32mpu/wiki/STM32CubeIDE#Production_mode

SSH is also used by CubeIDE to debug Linux user space (not available on W10 CubeIDE)

see https://wiki.st.com/stm32mpu/wiki/How_to_debug_a_user_space_application_with_STM32CubeIDE/User_space_project

Note that connection using SSH could be done using either:

  • Ethernet RJ45
  • WLAN (https://wiki.st.com/stm32mpu/wiki/How_to_setup_wifi_connection)
  • USB (Ethernet Over USB, which is enabled by default in Starter Package).

Regards,

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.NEW ! Sidekick STM32 AI agent, see here
NPal.2
NPal.2Author
Associate III
July 14, 2021

Thank you so much @PatrickF​ and @LudovicR​ , Will take a look on all strategies and get back