Page 1 of 1

Correct behavior of test suite?

Posted: Mon Jul 02, 2012 12:52 am
by blundar
I am playing with a STM32F4DISCOVERY board.

I can invoke the TestThread and achieve "Final result: SUCCESS" if I hold down the User Button to cause the thread to be spawned immediately on startup.

If I press the user button after the LED blink and LIS302 threads have been started, the TestThread hangs up in the middle of Test #1.

Code: Select all

4, 0, 49
4, 0, 49

*** ChibiOS/RT test suite
***
*** Kernel:       2.4.1
*** Compiled:     Jun 29 2012 - 23:54:41
*** Compiler:     GCC 4.7.1
*** Architecture: ARMv7-ME
*** Core Variant: Cortex-M4
*** Port Info:    Advanced kernel mode
*** Platform:     STM32F4 High Performance & DSP
*** Test Board:   ST STM32F4-Discovery

----------------------------------------------------------------------------
--- Test Case 1.1 (Threads, enqueuing test #1)

Is this the desired behavior? Do I have something broken in my build environment?

Re: Correct behavior of test suite?

Posted: Mon Jul 02, 2012 7:32 am
by Giovanni
It is not normal, it looks like a stack overflow somewhere. I will try it in the evening.

In the meanwhile you may try to run the test suite by keeping the button pressed after reset, this way it is not influenced by the application, it is how I do it usually.

Giovanni

Re: Correct behavior of test suite?

Posted: Mon Jul 02, 2012 6:16 pm
by Giovanni
Hi,

I tested version 2.4.1, 2.4.2temp and the version in trunk, none of them exhibit the problem so it is probably related to the compiler 4.7.1 you are using because I am testing using 4.6.3.

I'll make more tests with the new compiler.

Giovanni

Re: Correct behavior of test suite?

Posted: Mon Jul 02, 2012 6:30 pm
by Giovanni
I also tested with YAGARTO 4.7.1 but the demo worked as intended. Could you try to unzip ChibiOS again? it is possible something got changed by error. Are you using YAGARTO too?

Giovanni

Re: Correct behavior of test suite?

Posted: Mon Jul 02, 2012 6:39 pm
by blundar
I updated ChibiOS from sourceforge using 2.4.1, YAGARTO and YAGARTO tools from their website yesterday. I didn't change any options in makefile etc.

I'll try to unzip and rebuild again see if things work properly. Everything else seems to work ok. I'll keep you posted. Thanks.

Re: Correct behavior of test suite?

Posted: Mon Jul 02, 2012 6:53 pm
by Giovanni
OK, thanks.

Giovanni