Problem building BSP for TMS570 HDK

Martin Galvan martin.galvan at
Mon Jun 27 13:57:52 UTC 2016

On Mon, Jun 27, 2016 at 9:01 AM, Florian Feldbauer
<florian at> wrote:
> Now I'm trying to write a small test application to run on the MCU.

For smoke-testing it you could just use one of the RTEMS samples that
can be found in arm-rtems4.12/c/tms570ls3137_hdk/testsuites/samples,
within the install directory. I'd recommend that you tried running at
least the "hello", "ticker" and "paranoia" examples. You might see the
board being reset after each test is done, resulting in e.g. endless
"Hello World" strings being output. This is perfectly normal.

Speaking of which, IIRC for printf and friends to actually output
something you should always append a '\n' at the end of the string.
Not sure why.

If you want to compile your own programs you'll have to set
RTEMS_MAKEFILE_PATH enviroment variable as follows:

export RTEMS_MAKEFILE_PATH=/path/to/rtems/install/arm-rtems4.12/tms570ls3137_hdk/

Don't forget to add the path to your arm-rtems4.12 toolchain in PATH.
Once you're set you should use a Makefile similar to the one in
make/Templates/Makefile.leaf. We used a stripped-down version of it; I
can send it to you if the template doesn't work.

Finally, there's some documentation at that you might
find useful.

> Later our goal is to run EPICS [1] on the MCU. But for this we need to
> downgrade to
> RTEMS 4.10

I wouldn't advise you to go back too much. The 4.10 tag was made about
5 years ago. The 4.11 branch on the other hand has a somewhat stable
version where only bug-fixes are pushed. If you absolutely need to go
back, I'd check exactly at which point did EPICS stop working and use
the commit before that.

Do you have any clue on why EPICS doesn't work with newer RTEMS versions?

More information about the users mailing list