Search found 69 matches

by wurstnase
Tue Nov 13, 2018 2:38 pm
Forum: STM32 Support
Topic: STM32F0 ADC Example not working?
Replies: 3
Views: 178

Re: STM32F0 ADC Example not working?

Instead of -O0 you could compile it with -Og which could be a little bit more optimized while being able to debug the code.
by wurstnase
Thu Oct 18, 2018 9:45 am
Forum: Small Change Requests
Topic: clang: cast to 'GPIO_TypeDef *' from smaller integer type 'unsigned int' Topic is solved
Replies: 9
Views: 563

Re: clang: cast to 'GPIO_TypeDef *' from smaller integer type 'unsigned int' Topic is solved

I'm using you-complete-me with the YCM-Generator plugin for vim. I modified the YCM-Generator to be able to use the target flag. https://github.com/Wurstnase/YCM-Generator/tree/develop In the makefile I add a YCMG-flag for generating the ycm xml file. Makefile: ifeq($(YCMG), 1) CFLAGS += -target arm...
by wurstnase
Thu Sep 27, 2018 9:01 pm
Forum: Bug Reports
Topic: Git not tracking Topic is solved
Replies: 29
Views: 3057

Re: Git not tracking Topic is solved

Stabil 18.2.x is also up to date. Your mirror is two commits behind.
by wurstnase
Thu Sep 20, 2018 9:53 am
Forum: ChibiOS/HAL
Topic: ChibiOS 18.2.1 and community hal
Replies: 9
Views: 728

Re: ChibiOS 18.2.1 and community hal

Yes, the community code needs some more rework.
Currently I've updated the STM32F1xx to smart build system.

My intension is to use the QEI. Probably I will find some time to make a pull request.

How big is the chance that some subsystems like QEI will find to the main SVN?
by wurstnase
Thu Sep 20, 2018 7:32 am
Forum: ChibiOS/HAL
Topic: ChibiOS 18.2.1 and community hal
Replies: 9
Views: 728

Re: ChibiOS 18.2.1 and community hal

Just had a similar issue. This is my succesfull build for the testhal/STM32/STM32F1xx/qei example with ChibiOS 18.2.x: Makefile index 04abc5f..c85c379 100644 @@ -88,6 +88,8 @@ PROJECT = ch # Imported source files and paths CHIBIOS = ../../../../../chibios182 CHIBIOS_CONTRIB = $(CHIBIOS)/../chibios_c...
by wurstnase
Tue Sep 04, 2018 3:16 pm
Forum: Small Change Requests
Topic: clang: cast to 'GPIO_TypeDef *' from smaller integer type 'unsigned int' Topic is solved
Replies: 9
Views: 563

Re: clang: cast to 'GPIO_TypeDef *' from smaller integer type 'unsigned int' Topic is solved

Well...
After some hours of searching.

Code: Select all

UINTPTR_MAX == UINT64_MAX

I don't have currently an idea how to tell clang that I have 32bit pointer.

As a sidenote: For now I replaced uint32_t with uintptr_t.
by wurstnase
Mon Sep 03, 2018 8:07 pm
Forum: Small Change Requests
Topic: clang: cast to 'GPIO_TypeDef *' from smaller integer type 'unsigned int' Topic is solved
Replies: 9
Views: 563

Re: clang: cast to 'GPIO_TypeDef *' from smaller integer type 'unsigned int' Topic is solved

Yes, Right. That's my guess also (stdint from 64bit OS). I will check it tomorrow.


Ah no. Thanks. Pointer related. Not stdint...
by wurstnase
Mon Sep 03, 2018 5:23 pm
Forum: Small Change Requests
Topic: clang: cast to 'GPIO_TypeDef *' from smaller integer type 'unsigned int' Topic is solved
Replies: 9
Views: 563

Re: clang: cast to 'GPIO_TypeDef *' from smaller integer type 'unsigned int' Topic is solved

It's simple a palSetLine where this happened.

Just have an idea. Probably clang uses the stdint from my OS instead of the arm cross compiler.

I will check it later.

Btw.: It's not a problem while compiling. Just ctags/clang showing me an error.
by wurstnase
Mon Sep 03, 2018 2:03 pm
Forum: Small Change Requests
Topic: clang: cast to 'GPIO_TypeDef *' from smaller integer type 'unsigned int' Topic is solved
Replies: 9
Views: 563

clang: cast to 'GPIO_TypeDef *' from smaller integer type 'unsigned int' Topic is solved

Hi, I've got ctags with my vim working. But now I get an error: cast to 'GPIO_TypeDef *' from smaller integer type 'unsigned int' In hall_pal_lld.h (in my case for STM32F103) I found /** * @brief Decodes a port identifier from a line identifier. */ #define PAL_PORT(line) \ ((GPIO_TypeDef *)(((uint32...

Go to advanced search