Search found 183 matches

by dflogeras
Fri Aug 01, 2014 4:09 pm
Forum: STM32 Support
Topic: Dynamic Memory in C++
Replies: 6
Views: 1908

Re: Dynamic Memory in C++

I turned all DBG features on in chconf.h. It looks like in Mutex* chMtxUnlock(void) the second chDbgAssert (line 265) is failing and I wind up in the unhandled exception handler. In fact, after the first line of the function Thread *ctp = currp; it looks like ctp is null. I tried doubling the stacks...
by dflogeras
Fri Aug 01, 2014 3:31 pm
Forum: STM32 Support
Topic: Dynamic Memory in C++
Replies: 6
Views: 1908

Re: Dynamic Memory in C++

Giovanni, Ok, I had tried this earlier from something in the forums: void* operator new (size_t size) { return chCoreAlloc(size); } void* operator new[] (size_t size) { return chCoreAlloc(size); } But it did not work. I just tried this (after disabling CH_USE_MALLOC_HEAP): void* operator new( size_t...
by dflogeras
Fri Aug 01, 2014 2:11 pm
Forum: STM32 Support
Topic: Dynamic Memory in C++
Replies: 6
Views: 1908

Dynamic Memory in C++

Hi, I've been attempting to play with C++ support in ChibiOS. I am working with a STM32F407 based discovery kit. Using ChibiOS-2.6.3's ARMCM4_STM32F407-DISCOVERY-G++ as a starting point. Let me preface this with, yes I realize that typically one only uses a subset of C++ in embedded software. I am j...
by dflogeras
Tue Jul 08, 2014 5:05 pm
Forum: STM32 Support
Topic: Problem upgrading from 2.6.3 to 2.6.5 on STM32L
Replies: 7
Views: 1749

Re: Problem upgrading from 2.6.3 to 2.6.5 on STM32L

OK, I just thought I'd mention it because it doesn't happen in the same environment with 2.6.3.

Thanks again Giovanni!

Dave
by dflogeras
Tue Jul 08, 2014 4:21 pm
Forum: STM32 Support
Topic: Problem upgrading from 2.6.3 to 2.6.5 on STM32L
Replies: 7
Views: 1749

Re: Problem upgrading from 2.6.3 to 2.6.5 on STM32L

A side question: I tried the same procedure with ChibiOS-2.6.4, and while it builds fine, when it gets to the end it attempts to run the binary, resulting in: Creating build/ch.dmp qemu: uncaught target signal 4 (Illegal instruction) - core dumped make: *** [build/ch.dmp] Illegal instruction make: *...
by dflogeras
Tue Jul 08, 2014 4:10 pm
Forum: STM32 Support
Topic: Problem upgrading from 2.6.3 to 2.6.5 on STM32L
Replies: 7
Views: 1749

Re: Problem upgrading from 2.6.3 to 2.6.5 on STM32L

Excellent, thanks for ChibiOS :)
by dflogeras
Tue Jul 08, 2014 3:14 pm
Forum: STM32 Support
Topic: Problem upgrading from 2.6.3 to 2.6.5 on STM32L
Replies: 7
Views: 1749

Re: Problem upgrading from 2.6.3 to 2.6.5 on STM32L

I diffed my chconf.h, mcuconf.h and halconf.h with those included with the 2.6.5 UART testhal program and note the following: In halconf.h, I've enabled HAL_USE_EXT, HAL_USE_I2C, HAL_USE_RTC In chconf.h, I've disabled most of the debugging related things. In mcuconf.h, the only thing that I've noted...
by dflogeras
Tue Jul 08, 2014 2:37 pm
Forum: STM32 Support
Topic: Problem upgrading from 2.6.3 to 2.6.5 on STM32L
Replies: 7
Views: 1749

Problem upgrading from 2.6.3 to 2.6.5 on STM32L

Hi, I've got a small project that I created using testhal/STM32Lxx/UART as a starting point for the build system. I modified it to use hardware specific to my project, etc.. I also added my own specific STM32L151 port.mk and .ld to specify 10k RAM for my device (again based on the existing one found...
by dflogeras
Sun Nov 10, 2013 4:26 pm
Forum: STM32 Support
Topic: Problem on STM32L1 with USART and I2C
Replies: 4
Views: 2418

Re: Problem on STM32L1 with USART and I2C

I guess to follow that up, is it not possible to share DMA channels? For instance if I needed to use 2 UARTs and 2 I2Cs.
by dflogeras
Sun Nov 10, 2013 4:23 pm
Forum: STM32 Support
Topic: Problem on STM32L1 with USART and I2C
Replies: 4
Views: 2418

Re: Problem on STM32L1 with USART and I2C

Giovanni,

Of course you are right! UART1 and I2C2 share DMA channels, as do UART2 and I2C1. In case this helps anyone else (or future me, searching the forum), reference Table 41 "Summary of DMA1 requests for each channel" in RM0038.

Thanks!

Go to advanced search