baoshi / CubeMX2Makefile

STM32CubeMX project to Makefile converter
152 stars 52 forks source link

Extraneous backslash characters #34

Closed daguro closed 7 years ago

daguro commented 7 years ago

When the Makefile is generated, there are extraneous (at least for Linux) backslash characters in the compiler arguments

-Dweak="attribute((weak))" -Dpacked="attribute((packed))"

edit: that is odd. The back slashes disappear.

\(\(packed\)\)

is how it appears in the Makefile

should be

-Dweak="attribute((weak))" -Dpacked="attribute((packed))"

kaofishy commented 7 years ago

I experienced the same issue on Fedora Linux, and actually I believe the macros have already been defined in Cube header files, at least for L0. #32 is a duplicate.

riemass commented 7 years ago

Same for me, tried on Xubuntu and Arch, with zsh and bash command interpreters.

daguro commented 7 years ago

STM32CubeMX now supports Makefiles as an output type.

Need to change one define from cortexm0+ to cortexm0plus

and add BINPATH= in your command line

On Mon, May 29, 2017 at 12:52 AM, Samir Halilčević <notifications@github.com

wrote:

Same for me, tried on Xubuntu and Arch, with zsh and bash command interpreters.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/baoshi/CubeMX2Makefile/issues/34#issuecomment-304596783, or mute the thread https://github.com/notifications/unsubscribe-auth/ADokh1c1IfcPVcTVlHa42kuPlKiSi3Yjks5r-nk6gaJpZM4NK5Tt .

--

daniel g. robinson www.bornlivelovedie.com bornlivelovedie.tumblr.com Gvoice 425.686.9738 @daguro

baoshi commented 7 years ago

Seems we don't need this utility anymore. STM32CubeMX now generates Makefile very similar to my template. Hence this issue is no longer relevant.

daguro commented 7 years ago

But I thought your template was great.

Thanks for doing that.

On Mon, May 29, 2017 at 6:22 AM, baoshi notifications@github.com wrote:

Seems we don't need this utility anymore. STM32CubeMX now generates Makefile very similar to my template. Hence this issue is no longer relevant.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/baoshi/CubeMX2Makefile/issues/34#issuecomment-304660131, or mute the thread https://github.com/notifications/unsubscribe-auth/ADokhwp6d4DREncRhe7UY5XFZk0i7irmks5r-saqgaJpZM4NK5Tt .

--

daniel g. robinson www.bornlivelovedie.com bornlivelovedie.tumblr.com Gvoice 425.686.9738 @daguro