Correct behavior of test suite?

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: RoccoMarco, lbednarz, tfAteba

Post Reply
blundar
Posts: 5
Joined: Tue Jan 03, 2012 3:56 am

Correct behavior of test suite?

Post 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?
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: Correct behavior of test suite?

Post 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
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: Correct behavior of test suite?

Post 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
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: Correct behavior of test suite?

Post 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
blundar
Posts: 5
Joined: Tue Jan 03, 2012 3:56 am

Re: Correct behavior of test suite?

Post 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.
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: Correct behavior of test suite?

Post by Giovanni »

OK, thanks.

Giovanni
Post Reply