Olimex Support Forum

ARM => ST => Topic started by: lim on October 29, 2020, 03:51:55 AM

Title: Olimex STM32-E407 code example and use of JTag ARM-USB-OCD-H
Post by: lim on October 29, 2020, 03:51:55 AM
Does anyone know where I can get or share a sample of code for Olimex STM32-E407, please?

I am a bit confused by using code generated by STM32CubeMX, where I am lost how do I compile it? and then Flash it through Tag ARM-USB-OCD-H for debugging. I think I am lost.

Any help will be appreciated.

Title: Re: Olimex STM32-E407 code example and use of JTag ARM-USB-OCD-H
Post by: LubOlimex on October 29, 2020, 08:48:51 AM
I've recently added a section for STM32CubeMX in the user's manual of ARM-USB-OCD-H. Refer to chapter "3.8 STM32CubeIDE" on pages 28 and 29 here:

https://www.olimex.com/Products/ARM/JTAG/_resources/ARM-USB-OCD_and_OCD_H_manual.pdf

Basically you need to first start OpenOCD GDB server and then make STM32CubeIDE connect to the OpenOCD GDB server.

About examples - we don't provide examples for STM32CubeMX ourselves, but there seems to be several customer-made projects available online. Make sure to google for "STM32-E407 STM32CubeMX" and check what is out there.
Title: Re: Olimex STM32-E407 code example and use of JTag ARM-USB-OCD-H
Post by: lim on October 29, 2020, 12:32:42 PM
You are absolutely right. Can you or do you know the way to set up that, please?