How to add files to an MX generated project
Hi folks,
I’m afraid my lack of experience with Eclipse and the framework has me stymied. This question actualy has two sides.
First I wanted to add a BSP file to support the LCD (on an STM32F429I-DISCO.) It was not obvious where it should go in what seems to be a pretty elaborate directory structure. When working in Java, my recollection is that new files just appeared and were compiled and linked into the executable. That didn’t seem to work here until I added it to:
It’s not obvious to me that this is the “right” place to add a library file, but it gets compiled and linked.
The second issue is HAL library files. This BSP driver uses the DMA2D library. I can see the file in
but it is not included in
I suppose I could move the HAL files to the same location where I put the BSP file but I think there must be some place where it gets added to the list of other HAL library files that are compiled and linked. Where is that?
Thanks!
Edit: I keep digging. I found the .project file that seems to include all of the source files. I added stm32f4xx_hal_dma2d.c to the list. Now it compiles - there is a .o file. It is included in objects.list file so it should be included in the executable. The related unresolved references remain unresolved.
Maybe I should be asking how to resolve:
They’re in the HAL dma2d file:
It’s called out in the linker file
I remain baffled.