vdudouyt / stm8flash

program your stm8 devices with SWIM/stlinkv(1,2)
GNU General Public License v2.0
401 stars 182 forks source link

Eclipse IDE support #163

Closed rtek1000 closed 1 year ago

rtek1000 commented 1 year ago

Hi, I'm using Eclipse to compile STM8 through a compile.sh script that executes the Makefile.

One thing I would like to be able to see when compiling is memory usage (Flash/RAM).

I'm controlling the size of the code through the information that stm8flash returns when programming.

Would it be possible to adapt some plugin for Eclipse to recognize stm8flash in a similar way to what STM32CubeIDE does to recognize ST-Link?

Ref.: SDCC support

W1209-firmware-modified-timer_bkp1.zip

schneidersoft commented 1 year ago

I'm not sure I understand what you want stm8flash to do. You want it to automatically detect which model of MCU you have connected?

lalo-uy commented 1 year ago

I belive you have to look at the output of the linker. May be add some command to the Makefile to list the segments and total memory usage.

spth commented 1 year ago

When using an IDE, it might make more sense to use GDB/OpenOCD instead of stm8flash. stm8flash can only do basic stuff, such as read and write the flash and other memories. GDB/OpenOCD can do on-target debugging.

rtek1000 commented 1 year ago

When using an IDE, it might make more sense to use GDB/OpenOCD instead of stm8flash. stm8flash can only do basic stuff, such as read and write the flash and other memories. GDB/OpenOCD can do on-target debugging.

I found these instructions, in case anyone wants to see it, it looks like a good alternative, I'll try it:

https://github.com/hbendalibraham/stm8_started

rtek1000 commented 1 year ago

I'm not sure I understand what you want stm8flash to do. You want it to automatically detect which model of MCU you have connected?

Now I see there is another option, I was searching the internet before I came to read the answers, and found the instructions already posted above. I was wondering about the debug options that the STM32CubeIDE has.

rtek1000 commented 1 year ago

Thanks all