Building the firmware from scratch

I’ve read the MicroEJ documentation the part about building the firmware from scratch.
My question is, can the Makefile of the CORTEX_LM3S811 microprocessor be used with the STM32 microprocessor if I make some modifications to the file?
I tried to build a project using the stm32cubemx environment on the STM32F103CB microprocessor, and I added the Makefile CORTEX_LM3S811 files and modified the paths, but it did not work.

It is known that using Makefile is the best way to build firmware. If I generate a Makefile from the stm32cubemx environment designated for the STM32 microprocessor, is it possible to include MicroEJ and build the firmware file on this file, and what is the method?

Can you help me with this?

I can start a new project on the stm32cubemx environment with a Makefile and follow the same steps in the documents and add MicroEJ project paths.

Thanks

Hello @hussam,

To integrate MICROEJ VEE with your own BSP/toolchain/build tools, I recommend you to check our tutorial:
https://docs.microej.com/en/latest/Tutorials/tutorialCreateFirmwareFromScratch.html

Especially, you need to use our invocation API from sni.h to start the MicroEJ Core Engine, and the application: Invoke MicroEJ Core Engine
… and add microejapp.o and microejruntime.a to the link in your Makefile: Build and Link the Firmware with the MicroEJ Runtime and MicroEJ Application

Best regards,
Rémy