Search found 14 matches

by GHF
Fri Oct 10, 2014 10:46 pm
Forum: STM32 Support
Topic: Debugging using black magic probe
Replies: 10
Views: 10920

Re: Debugging using black magic probe

I use Black Magic and it's great, but the lack of RTOS-specific support is making me consider going back to ST-Link or an FTDI-based debugger occasionally.

The advantages of the Black Magic are that it runs the GDB stub on the dongle (so you gdb target remote to the /dev/tty.* it creates instead of ...
by GHF
Mon Jan 27, 2014 2:09 am
Forum: STM32 Support
Topic: [DONE] ICU driver initial state glitch
Replies: 2
Views: 2548

[DONE] ICU driver initial state glitch

Hi, I believe I have a bug with the STM32 ICU driver.

It seems it is possible to have a WAITING->IDLE transition, e.g. when using ICU_INPUT_ACTIVE_HIGH and a falling edge occurs right after the ICU is enabled. This in itself is acceptable behavior to me, although it is not documented.

However ...
by GHF
Sat Aug 24, 2013 12:12 am
Forum: General Support
Topic: osalDbgCheck in 2.4.5
Replies: 1
Views: 2208

osalDbgCheck in 2.4.5

I noticed that in r6155 (https://github.com/ChibiOS-Upstream/Chi ... 5f80a4ecc0), three chDbgChecks in pal.c were replaced with osalDbgChecks.

I'm not sure if this is from a newer release, but it is not defined in 2.4.x and I caught it when building with -Werror.
by GHF
Thu Oct 11, 2012 7:13 pm
Forum: General Support
Topic: Unhandled exception after turning on FPU
Replies: 10
Views: 8875

Re: Unhandled exception after turning on FPU

Will try the flash dump later; these are my compilation options:

/Users/xw/yagarto-4.6.2/bin/arm-none-eabi-gcc -c -mcpu=cortex-m4 -O2 -ggdb -fomit-frame-pointer -falign-functions=16 -mfloat-abi=softfp -mfpu=fpv4-sp-d16 -fsingle-precision-constant -ffunction-sections -fdata-sections -fno ...
by GHF
Wed Oct 10, 2012 4:32 am
Forum: General Support
Topic: Unhandled exception after turning on FPU
Replies: 10
Views: 8875

Re: Unhandled exception after turning on FPU

So I tried yagarto-4.6.2 on Mac with texane/stlink and got IRQ_STORM_FPU working. Then I loaded in my code to find ResetHandler in an infinite loop:

(gdb) break __late_init
Breakpoint 2 at 0x80075d0: file ChibiOS/os/ports/GCC/ARMCMx/crt0.c, line 221.
(gdb) jump ResetHandler
Line 262 is ...
by GHF
Wed Oct 10, 2012 3:12 am
Forum: General Support
Topic: Unhandled exception after turning on FPU
Replies: 10
Views: 8875

Re: Unhandled exception after turning on FPU

Just tried the ARM release compiler (4.6) on Windows with the Atollic gdb server and haven't been able to the reproduce the problem. Hooray!

However, I did run into exceptions with the summon-arm-toolchain on OS X, which is arm-none-eabi-gcc (Linaro GCC 4.6-2011.10) 4.6.2 20111004 (prerelease), so ...
by GHF
Tue Oct 09, 2012 8:14 pm
Forum: General Support
Topic: Unhandled exception after turning on FPU
Replies: 10
Views: 8875

Re: Unhandled exception after turning on FPU

Still have yet to try the ARM toolchain, but yagarto-4.7.1 on Windows seemed to have the same problem. Will be trying the 4.6 toolchain later.
by GHF
Thu Oct 04, 2012 6:53 pm
Forum: General Support
Topic: Unhandled exception after turning on FPU
Replies: 10
Views: 8875

Unhandled exception after turning on FPU

I tried turning on the FPU in the STM32F4DISCOVERY demo (USE_FPU = yes in Makefile, #define CORTEX_USE_FPU true in chconf.h) for the ChibiOS stable_2.4.x branch and it always ends up in unhandled_exception after main. I took a look at the CFSR and it was 0x00008200, which is BFARVALID and PRECISERR ...
by GHF
Mon Jun 18, 2012 6:21 am
Forum: Development and Feedback
Topic: ADC half complete callback bug
Replies: 3
Views: 4258

Re: ADC half complete callback bug

I was working on some triple simultaneous ADC code but was running into DMA issues. Based on this link I separated out the writing to DMA CR from setting the enable bit. Most of the other drivers already do this (except SPI).

diff --git a/os/hal/platforms/STM32F1xx/adc_lld.c b/os/hal/platforms ...
by GHF
Wed Jun 13, 2012 4:47 am
Forum: Development and Feedback
Topic: ADC half complete callback bug
Replies: 3
Views: 4258

ADC half complete callback bug

In 2.4.1 (and possibly later), it looks like the ADC conversion callback's buffer parameter is passed the wrong pointer when using a circular double buffer (circular = true, depth > 1) and the second half of the buffer is converted. The callback invocation code adds half the number of rows to the ...