had issues with loopback on the stm32f4

Peter Giguere pgiguere at brightlogic.com
Mon Jan 13 07:26:42 UTC 2014

Hi All,
It looks like I sent the two messages below to the wrong address...
In summary, I am experiencing some issues using the stm32f4 bsp: the loopback test failed, and the fstests did not 'make'. See below for details.

----- Forwarded Message -----
From: "Peter Giguere" <pgiguere at brightlogic.com>
To: rtems-users-request at rtems.org
Sent: Monday, January 13, 2014 2:17:37 AM
Subject: had issues with loopback on the stm32f4

Further greetings!

I (also - see below) experienced some issues with the loopback sample code. Namely, with the code courtesy of git clone, no output at all.


//#define CONFIGURE_EXECUTIVE_RAM_SIZE        (512*1024)
#define CONFIGURE_MAXIMUM_TASKS             10//20
I do get output, albeit 'unexpected:'
"Network" initializing!

Can't get network cluster memory.

"Network" initialized!

Try running client with no server present.

Should fail with `connection refused'.

Can't create client socket: Unknown protocol

Start server.

Try running client with server present.

Create socket.

Try running two clients.

Can't create task: request not satisfied

fatal error, exiting

I neglected to say in the email below:
 I am using the STM32F4 discovery +STF4BB base boards.
I edited the stm32f4 bsp configure.ac to disable all u(s)arts except for usart 6 (so only usart 6 is alive);

Otherwise, I followed the instructions from


for the Raspberry Pi, except that I ran the configure script to enable-rtemsbsp=stm32f4, as described immediately below...

On the other hand, the hello world and ticker samples, for instance, ran perfectly well, as did the message queue sample.

Have I configured something correctly?


----- Original Message -----
From: "Peter Giguere" <pgiguere at brightlogic.com>
To: rtems-users-request at rtems.org
Sent: Sunday, January 12, 2014 2:42:07 PM
Subject: fstests failed to 'make' for the stm32f4 bsp


You might wish to know - fstests failed to 'make' for the stm32f4 bsp:

I ran configure (from within the target folder build-stm32f4) with the following settings:

../rtems-git/configure --target=arm-rtems4.11 \
--enable-rtemsbsp=stm32f4 \
--enable-tests=yes \
--enable-networking \
--enable-cxx \
--enable-posix \

followed by make. This resulted in the following error <as appears in the make output>:

Making all in fstests
make[4]: Entering directory `/home/peter/development/rtems/stm32f4-build/arm-rtems4.11/c/stm32f4/testsuites/fstests'
make  all-recursive
make[5]: Entering directory `/home/peter/development/rtems/stm32f4-build/arm-rtems4.11/c/stm32f4/testsuites/fstests'
Making all in fsdosfsname01
make[6]: Entering directory `/home/peter/development/rtems/stm32f4-build/arm-rtems4.11/c/stm32f4/testsuites/fstests/fsdosfsname01'
arm-rtems4.11-gcc -B../../../../../stm32f4/lib/ -specs bsp_specs -qrtems -march=armv7-m -mthumb -O2 -g -Wall -Wmissing-prototypes -Wimplicit-function-declaration -Wstrict-prototypes -Wnested-externs    -march=armv7-m -mthumb   -o fsdosfsname01.exe init.o ramdisk_support.o
linkcmds.base:400 cannot move location counter backwards (from 000000002002ea80 to 0000000020020000)
collect2: error: ld returned 1 exit status
make[6]: *** [fsdosfsname01.exe] Error 1
make[6]: Leaving directory `/home/peter/development/rtems/stm32f4-build/arm-rtems4.11/c/stm32f4/testsuites/fstests/fsdosfsname01'
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory `/home/peter/development/rtems/stm32f4-build/arm-rtems4.11/c/stm32f4/testsuites/fstests'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/home/peter/development/rtems/stm32f4-build/arm-rtems4.11/c/stm32f4/testsuites/fstests'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/peter/development/rtems/stm32f4-build/arm-rtems4.11/c/stm32f4/testsuites'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/peter/development/rtems/stm32f4-build/arm-rtems4.11/c/stm32f4'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/peter/development/rtems/stm32f4-build/arm-rtems4.11/c'
make: *** [all-recursive] Error 1


More information about the users mailing list