Skip to main content
Peter.Farkas [hun]
Associate II
March 5, 2020
Solved

Hi, I thought I'd try the monitor, so I caught my current project that I created in CubeIDE and imported the .elf file it generated, but the variables didn't appear in the list, even though I followed the wiki. Could I've something else set up in the

  • March 5, 2020
  • 2 replies
  • 1179 views

Could it only work with .out files? If so, how can I generate a .out file in CubeIDE?

This topic has been closed for replies.
Best answer by stephane.legargeant

Hello

First : STM32CubeMonitor can parse the .elf file from STM32CubeIDE. You don't need .out, .elf are also ok.

I have created a test project with STM32CubeIDE and a Nucleo-F411RE. I have used default options and the elf file shows the variable in STM32cubeMonitor.

So with CubeIDE and default config, opening the elf should be ok.

The tool is monitoring variable in memory at fixed location. May be the variable is not visible because it is local variable and not global ?

You can open the .map file to see if the variable is listed :

.data.mycounter

        0x0000000020000018    0x4 Core/Src/main.o

best regards

Stephane

2 replies

stephane.legargeant
ST Employee
March 5, 2020

Hello

First : STM32CubeMonitor can parse the .elf file from STM32CubeIDE. You don't need .out, .elf are also ok.

I have created a test project with STM32CubeIDE and a Nucleo-F411RE. I have used default options and the elf file shows the variable in STM32cubeMonitor.

So with CubeIDE and default config, opening the elf should be ok.

The tool is monitoring variable in memory at fixed location. May be the variable is not visible because it is local variable and not global ?

You can open the .map file to see if the variable is listed :

.data.mycounter

        0x0000000020000018    0x4 Core/Src/main.o

best regards

Stephane

Peter.Farkas [hun]
Associate II
March 7, 2020

Hello Stephane,

I made a new blank project, inserted my code, translated it. The generated .elf file has become much larger than in the old project (1200k vs. 147k). I don't know what the problem was, but it's working perfectly with these few variables. Thanks for the help!

0690X00000DYuzFQAT.png