Search found 15 matches

by feanor
Sun Dec 23, 2012 8:18 pm
Forum: Development and Feedback
Topic: Query RTOS System States possible?
Replies: 6
Views: 5813

Re: Query RTOS System States possible?

Hi,
why is it worse using an overloaded new-operator which acts on a ChibiOS memory pool with chPoolAllocI() than using chPoolAllocI() directly in an interrupt-context?
by feanor
Sun Dec 23, 2012 4:58 pm
Forum: Development and Feedback
Topic: Query RTOS System States possible?
Replies: 6
Views: 5813

Re: Query RTOS System States possible?

Hi Giovanni,
thanks for the hints.
Unfortenately, if i would use this variables for checking the states, my code would only be able to run with debugging enabled, am i right?

Another problem is, that new() and delete() do not support any parameters, so it is not possible to provide the necessary ...
by feanor
Sun Dec 23, 2012 3:34 pm
Forum: Development and Feedback
Topic: Query RTOS System States possible?
Replies: 6
Views: 5813

Query RTOS System States possible?

Hello,
I'm curious if it is possible to query the rtos' state, espacially the states "S-Locked" "I-Locked" and "Serving Regular Interrupt" are of interest.
Background of the question is, that I'm implementing a memory-pool based memoryhandling by overloading the operators new() and delete() in C ...
by feanor
Sat Dec 08, 2012 9:12 am
Forum: Development and Feedback
Topic: [FUN] Enigmatic screenshots (released)
Replies: 51
Views: 37738

Re: [FUN] Enigmatic screenshots

Are there any updates concerning this project?
by feanor
Thu Nov 01, 2012 1:03 pm
Forum: General Support
Topic: [STM32F407 Discovery] demo adaption to C++ fails
Replies: 10
Views: 9571

Re: [STM32F407 Discovery] demo adaption to C++ fails

Hi,

The threads stacks in the demo are automatic variables of the main() function so they are allocated in the process stack.

Ah, ok, i thought so already. The formulation "When the C++ wrapper is used the stacks of the various threads are allocated within the stack of the main() thread" sounded ...
by feanor
Thu Nov 01, 2012 11:24 am
Forum: General Support
Topic: [STM32F407 Discovery] demo adaption to C++ fails
Replies: 10
Views: 9571

Re: [STM32F407 Discovery] demo adaption to C++ fails

Hi,

When the C++ wrapper is used the stacks of the various threads are allocated within the stack of the main() thread, increasing the threads stack sizes actually make them overflow the main() function stack.

Try to increase the size of __process_stack_size__ in the linker script, it must be ...
by feanor
Wed Oct 10, 2012 7:10 pm
Forum: Development and Feedback
Topic: ChibiOS OpenOCD support
Replies: 179
Views: 134602

Re: ChibiOS OpenOCD support

Hi mabl With Option "USE_FPU = no" the threaded debugging works. Thanks for your help. Apparently I was a bit hasty with this statement. I get all the threads running in ChibiOS, but it is not possible for me to debug them correctly. Hitting a breakpoint does not open the corresponding thread but it ...
by feanor
Tue Oct 09, 2012 5:24 pm
Forum: Development and Feedback
Topic: ChibiOS OpenOCD support
Replies: 179
Views: 134602

Re: ChibiOS OpenOCD support

With Option "USE_FPU = no" the threaded debugging works. Thanks for your help.
by feanor
Tue Oct 09, 2012 10:11 am
Forum: Development and Feedback
Topic: ChibiOS OpenOCD support
Replies: 179
Views: 134602

Re: ChibiOS OpenOCD support

I do not intentially use FPU. The only switch i see is DDEFS += -DCORTEX_USE_FPU=TRUE in Makefile. This evening i will try a build with DDEFS += -DCORTEX_USE_FPU=FALSE.
by feanor
Mon Oct 08, 2012 10:28 pm
Forum: Development and Feedback
Topic: ChibiOS OpenOCD support
Replies: 179
Views: 134602

Re: ChibiOS OpenOCD support

Hi mabl,
I'm seeing this error also with the official release of openocd.exe. This error seems to be related with stack trace inside an exception handler ( Link ) What are the gdb-startup commands you use?

EDIT:
Removing "jump ResetHandler" in "Run Commands" helped a bit. Now I can see the threads ...