u-blox / ubxlib

Portable C libraries which provide APIs to build applications with u-blox products and services. Delivered as add-on to existing microcontroller and RTOS SDKs.
Apache License 2.0
287 stars 82 forks source link

Build for STM32 CUBE #252

Closed danzadok closed 1 week ago

danzadok commented 3 weeks ago

I have found this repo https://github.com/u-blox/ubxlib_evk_applications, that is a good starting point for Windows and Linux using ubxlib. But I have difficulty to build the ubxlib code for STM32 using the CUBE IDE. There is a makefile named stm32f4.mk that should be used for building for such a mcu, but I failed to import it into the IDE. Do you have instructions how to build for STM32?

Thanks

RobMeades commented 3 weeks ago

There is a makefile named stm32f4.mk that should be used for building for such a mcu, but I failed to import it into the IDE. Do you have instructions how to build for STM32?

We provide instructions for how to compile our runner build for ST here:

https://github.com/u-blox/ubxlib/tree/master/port/platform/stm32cube/mcu/stm32f4

For the ST Eclipse-based IDE, you need a Makefile (stm32f4.mk is included into a Makefile); you can import the runner Makefile as a "makefile project", then build and run it in Eclipse

Of course, as indicated in #250, ultimately you don't want to build our runner application, you want to build your own application, but this should show you how things are put together.

philwareublox commented 3 weeks ago

Hi @danzadok ,

This is our Windows or Linux application example for UBXLIB. This is not set up to be simply configured for STM or any other embedded systems. This is only for Windows or Linux.

If you have found a STM.mk file, I should remove this :)

The content of the Common and Tasks folder, as well as the cellular tracker app folder should work on any system, but the main.c is built for the OS, Windows or Linux.

regards, Phil.

RobMeades commented 1 week ago

@danzadok: is it OK to close this now?

danzadok commented 1 week ago

Yes , Thanks

On Tue, Jun 25, 2024 at 5:49 PM Rob Meades @.***> wrote:

@danzadok https://github.com/danzadok: is it OK to close this now?

— Reply to this email directly, view it on GitHub https://github.com/u-blox/ubxlib/issues/252#issuecomment-2189168709, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGC4W374UYRVPWXOMJEYJCDZJF7ODAVCNFSM6AAAAABJIW3EMSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBZGE3DQNZQHE . You are receiving this because you were mentioned.Message ID: @.***>

-- :) Danny Zadok