peterhackenberg / EmBitz-guides

Some guides for EmBitz with STM32 MCUs
1 stars 2 forks source link

Linker issue with cubemx port to embitz1.11 #1

Closed ClockedLogic closed 2 years ago

ClockedLogic commented 3 years ago

Hi Peter , Thanks kindly for putting this manual up. I have been struggling with porting cubemx to embitz until I saw your manual. I have made better progress so far apart from a linking issue which I'm hoping you can help me with.

I created a simply app in CubeMX to implement a simple Hello World example using USB FS virtual com port. It works in TrueStudio. I've tried to follow your manual , I'm using an STM32F405RG on my own board, My version of Embitz seems to be slightly different in the compiler options screen. Anyhow the code compiles under Embitz but linking fails and I'm not sure why . I'm a novice at these issue. I've attached a copy of the build log and the project sources in a zip. Regards Peter. build.log MX_USB_TEST.zip

peterhackenberg commented 2 years ago

Hi, sorry for my late answer, somehow I didn't receive a notification from github. I was able to reproduce the same issue with your submitted files. You just missed to tick:

☑ INCLUDE library Start files

grafik

Tested with EmBitz 2.10, and linking fine.

I still do like EmBitz, but the workflow to port CubeMX projects to EmBitz is quite intense and error-prone. I do recommend using CubeIDE, The STM tools are becoming better and offer a very easy workflow for project setup and editing. Best regards Peter