Search found 36 matches

by apmorton
Tue Aug 14, 2018 11:13 pm
Forum: Bug Reports
Topic: STM32F070x6 hard faults while initializing GPIOD Topic is solved
Replies: 10
Views: 1437

STM32F070x6 hard faults while initializing GPIOD Topic is solved

According to the stm32_registry.h STM32F070x6 and STM32F070xB series parts are considered identical. This is apparently not the case, although I can find no documentation from ST on the subject. Parts in the STM32F070x6 series will hard fault when accessing any registers in GPIOD. Parts in the STM32...
by apmorton
Thu May 31, 2018 8:30 pm
Forum: Small Change Requests
Topic: linker symbols for stm32 Topic is solved
Replies: 5
Views: 1197

Re: linker symbols for stm32 Topic is solved

It's worth noting that its less important to know where your code ends in flash but rather where the next block after the end of your code starts. Because you can only erase a whole block of flash at a time, you can't safely occupy the space after your program but before the start of the next flash ...
by apmorton
Mon May 28, 2018 1:22 pm
Forum: Development and Feedback
Topic: osalDbgAssert() may fail under some circumstances
Replies: 3
Views: 744

Re: osalDbgAssert() may fail under some circumstances

In fact, this assert is failing by design. The PSC value is going to be an integer itself, not a float. ChibiOS is raising an assert to inform you that the frequency you requested is not possible given the clock speed of the peripheral. The code "works" when the assert is disabled - except...
by apmorton
Sun May 27, 2018 2:48 pm
Forum: Bug Reports
Topic: Small default stacks for idle and usb_pump threads Topic is solved
Replies: 10
Views: 1836

Re: Small default stacks for idle and usb_pump threads Topic is solved

Just something I thought I would archive here in case someone ends up in this thread from search results. Everything I am about to say applies to ChibiOS 17.x and 18.x - things may be different in the future. Its worth noting that PORT_IDLE_THREAD_STACK_SIZE can be important when you are using the h...
by apmorton
Sun May 27, 2018 1:33 pm
Forum: Development and Feedback
Topic: Clang/LLVM
Replies: 22
Views: 4990

Re: Clang/LLVM

One other note that might help you - the key to using clang-tidy without completely overhauling your build system is generating a compile_commands.json file, which is a format that most clang tools can use as input - including clang-tidy. Several projects aim to bridge the gap here. I have no person...
by apmorton
Sun May 27, 2018 1:26 pm
Forum: Development and Feedback
Topic: Clang/LLVM
Replies: 22
Views: 4990

Re: Clang/LLVM

I was experimenting with using cmake at the time, so I don't have any relevant patches for the chibios build system. I can however provide parts of the CMakeLists.txt from the project, although note I have stripped out anything referencing my specific project. cmake_minimum_required (VERSION 3.9) se...
by apmorton
Sun May 27, 2018 12:32 pm
Forum: Development and Feedback
Topic: Clang/LLVM
Replies: 22
Views: 4990

Re: Clang/LLVM

clang will build chibios and pretty much most any general code that will build in modern GCC compilers. For the record, at least for ARM, clang is not generating better code than gcc-arm-none-eabi. In most cases it is reported to be on par, and in others it is worse. That being said, I think the mai...
by apmorton
Sun May 27, 2018 12:16 pm
Forum: Bug Reports
Topic: Dwarf Error: Offset with gcc 8 Topic is solved
Replies: 3
Views: 1011

Re: Dwarf Error: Offset with gcc 8 Topic is solved

this is a regression in gcc/binutils

here are the relevant bugs:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84847
https://sourceware.org/bugzilla/show_bug.cgi?id=20882

It looks like the issue was fixed in binutils 2.31
by apmorton
Sat May 26, 2018 6:20 am
Forum: ChibiOS/RT
Topic: "smart build" and comments
Replies: 3
Views: 681

Re: "smart build" and comments

Perhaps a better way to handle smart-build would be something like this in a makefile target: echo "#include <ch.h>" | $(CC) -dM -E -x c-header $(CFLAGS) $(TOPT) -I. $(IINCDIR) - -o "smartbuild.h" this will output a file called "smartbuild.h" which contains all preproce...
by apmorton
Tue May 15, 2018 10:46 pm
Forum: Development and Feedback
Topic: [INFO] Enhanced documentation
Replies: 2
Views: 681

Re: [INFO] Enhanced documentation

Having all the products in a single document is a big plus - awesome work there. One thing that I still have trouble with is documentation of data structures overriden/added to in LLD implementations. Take I2CConfig as an example. https://chibiforge.org/doc/trunk/full_rm/struct_i2_c_config.html Beca...

Go to advanced search