2023-09-27 09:16 PM - edited 2023-09-27 09:24 PM
Objective:
I want to debug using STM32MP157F-DK2 Cortex M4 + STLink + VSCode + GDB.
I am planning to perform the following steps
step1. Enable building the elf file from VSCode.
step2. Connect VSCode and GDB.
Questions:
1. I want to create a Makefile for STM32MP15x M4 and produce an elf file. How should I go about creating the Makefile? I would greatly appreciate any working examples.
2. Are there any plans to make STM32CubeIDE compatible with Makefile output for STM32MP1?
Issues:
Unable to create a Makefile for STM32MP15x M4, and thus cannot create an elf file.
What I have done so far:
1. I have successfully created an elf file using STM32CubeIDE.
2. After building my code using STM32CubeIDE,
I managed to generate GPIO_EXTI_CM4.elf.
I got this code from `meta-st-stm32mp/recipes-extended` by `devtool modify m4projects-stm32mp` of bitbake.
3. I have successfully created an elf file using Yocto,
I managed to generate PIO_EXTI.elf.
This is the shell of STM32MP157F-DK2 when built with `meta-st-openstlinux` with `st-image-core` using yocto. I confirmed that the LED works when Button1 is pressed.
4. Next, I wanted to create an elf file using a Makefile.
It seems like STM32CubeMX does not support Makefile output for the STM32MP1 series.
->【I got stuck】Creating a Makefile on my own.
What I have tried (proposed methods to create Makefile): Unfortunately, all method have failed.
Method 1: Referencing the meta-st-stm32mp/recipes-extended/m4projects-stm32mp1.bb and m4project.inc in Yocto’s meta-st-stm32mp/recipe-extended/m4project.
detail : https://github.com/kosukewatanabe-lefixea/stm32mp157f-dk2_makefile
Development Env:
Thanks