I have ChibiOS 16 working fine in Embitz without makefile, LED blinks.
Now I am trying to figure out how to add uGFX and its a mess. I tried without a makefile and that was a loss of many hours. Now I am trying with the makefile and I have seemed to make progress but now ChibiOS compiling with Makefile and I am getting errors.
Code: Select all
ChibiOS_16\os\hal\ports\STM32\LLD\DMAv2\stm32_dma.c||In function 'dmaStreamAllocate':|
ChibiOS_16\os\hal\ports\STM32\LLD\DMAv2\stm32_dma.c|473|error: 'STM32_DMA_CR_RESET_VALUE' undeclared (first use in this function)|
ChibiOS_16\os\hal\ports\STM32\LLD\DMAv2\stm32_dma.c|473|note: each undeclared identifier is reported only once for each function it appears in|
ChibiOS_16\os\hal\ports\STM32\LLD\DMAv2\stm32_dma.c|474|error: 'STM32_DMA_FCR_RESET_VALUE' undeclared (first use in this function)|
||=== Build finished: 2 errors, 0 warnings (0 minutes, 13 seconds) ===|
The header in the DMAv2 folder has those defines. But from my chasing files I see other headers that do not have that define. Is there a bug?
The header in os/hal/ports/STM32/STM32F4xx has the other STM32_DMA_CR defines but not RESET. So I am not sure if that is the problem. I am lost and burnt so much time I am not sure what to do.
When I originally got this working without uGFX I think it was using DMAv1 driver. But now that the makefile too over I can't control what is include just by adding it to the IDE folder tree. Should I go back to doing this without the Makefile? I couldn't figure out how to add uGFX and ChibiOS witout the makefile. I like this IDE and trying to do it for a larger project instead of a Eclipsed based IDE.
Thanks for any help. I hope to get this working today so I can sleep
Let me know if I need to post the makefile or others. The makefile is from the template from uGFX.