ChibiOS RT Test Suit Problem! Topic is solved

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

Moderators: RoccoMarco, lbednarz, tfAteba

Post Reply
User avatar
tfAteba
Posts: 551
Joined: Fri Oct 16, 2015 11:03 pm
Has thanked: 91 times
Been thanked: 50 times

ChibiOS RT Test Suit Problem!

Post by tfAteba »

Hello every body,

Until now I was using ChibiOS version 2.6.x and I decide to pass to the last version 3.0.2 :D

So the first thing I decide to to was to run the Test suit and I was surprise to see that the test doesn't complete. It stop at the step bellow:

----------------------------------------------------------------------------
--- Test Case 12.9 (Benchmark, I/O Queues throughput)
--- Score : 901404 bytes/S
--- Result: SUCCESS
----------------------------------------------------------------------------
--- Test Case 12.10 (Benchmark, virtual timers set/reset)
--- Score : 729722 timers/S
--- Result: SUCCESS
----------------------------------------------------------------------------
--- Test Case 12.11 (Benchmark, semaphores wait/signal)

After that nothing ;)

I was expected some thing like in the version 2.6.9 bellow:

----------------------------------------------------------------------------
--- Test Case 11.12 (Benchmark, mutexes lock/unlock)
--- Score : 998304 lock+unlock/S
--- Result: SUCCESS
----------------------------------------------------------------------------
--- Test Case 11.13 (Benchmark, RAM footprint)
--- System: 468 bytes
--- Thread: 72 bytes
--- Timer : 20 bytes
--- Semaph: 12 bytes
--- EventS: 4 bytes
--- EventL: 16 bytes
--- Mutex : 16 bytes
--- CondV.: 8 bytes
--- Queue : 36 bytes
--- MailB.: 40 bytes
--- Result: SUCCESS
----------------------------------------------------------------------------

Final result: SUCCESS

So, I want to understand what going on, if some one have an idea!

Another thing,

when the test start in version 2.6.9 we have the kernel version printed as 2.6.9:

*** ChibiOS/RT test suite
***
*** Kernel: 2.6.9

whereas in the version 3.0.2 the version printed is:

*** ChibiOS/RT test suite
***
*** Kernel: 3.0.1

Does it mean that the kernel version is just the same for version 3.0.1 and 3.0.2?

Thanks Theo.
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: ChibiOS RT Test Suit Problem!

Post by Giovanni »

Correct, version 3.0.2 contains kernel 3.0.1. Version numbers will change in next version because this is a bit confusing.

About the problem, enable debug options and see if something is caught.

Giovanni
User avatar
tfAteba
Posts: 551
Joined: Fri Oct 16, 2015 11:03 pm
Has thanked: 91 times
Been thanked: 50 times

Re: ChibiOS RT Test Suit Problem!

Post by tfAteba »

Hi Giovanni,

thanks for your answers.

Sorry but i didn't realy understand what you said.

I'm not realy confortable yet with debugging tool. In brief how can I track the problem?

Do I have to use openOCD and the arm-none-gnueabi-gdb to see what going on? Or is it another way to find the problem?

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: ChibiOS RT Test Suit Problem!

Post by Giovanni »

Hi,

More details about debugging under ChibiOS are available here: http://chibios.org/dokuwiki/doku.php?id ... ebug_guide

Basically you have to enable certain debug options in chconf.h.

Giovanni
User avatar
tfAteba
Posts: 551
Joined: Fri Oct 16, 2015 11:03 pm
Has thanked: 91 times
Been thanked: 50 times

Re: ChibiOS RT Test Suit Problem!

Post by tfAteba »

Hi,

I'm going to read the about ChibiOS debuging first and see about the problem.

Can you try to reproduce the problem with your board? I'm using the STM32F401RE Nucleo.

Theo.
User avatar
tfAteba
Posts: 551
Joined: Fri Oct 16, 2015 11:03 pm
Has thanked: 91 times
Been thanked: 50 times

Re: ChibiOS RT Test Suit Problem!

Post by tfAteba »

Hi,

It is very strange, after reading http://chibios.org/dokuwiki/doku.php?id ... ebug_guide

I started by enabling the debug option CH_DBG_SYSTEM_STATE_CHECK and I also changed the GCC optimization level to -o0, recompile and flash the board. After that the Test succeed. So I came back to my first configuration but I can't reproduce the bug any more. :( .

Now I don't know what happened yesterday, and if it will come back another day. But for now it is ok :D .

How can we explained that?

Theo,
Post Reply