Okay, I’m missing something.
- I cloned the RTEMS source in ./rtems-src
- I cloned the Source Builder into ./rsb
- I uses the source builder to build the tools into ~/.local/rtems/7
- I cannot build any of the stm32 flavors bsps.
What I can do, in rtems-src run rtems-bsps which lists a number of bsps associated with various ST dev boards. (I’ve also got blackpill’s in addition to ST nucleos and discovery boards to play with.) So one that it lists under the arm: tag, is stm32f446ze with space then stm32f4.
I have tried a number of variants. If I use the example bsps/beagleboneblack that works fine. If I try bsps/stm32f4 it fails saying it can’t find a bset file. Similarly with bsps/stm32f446ze.
So specific questions:
- Must I run
sb-set-builder from a specific directory?
- Once I have successfully run it and the tools it built are in my path, can I use those tools to build an RTEMS application for that BSP in it’s own directory?
- When I launch GDB to flash the elf file and debug, will it be able to find RTEMs source or will I have to tell gdb where to look?
If get though these three steps I think I’ll be in much better shape.
–Chuck
Thanks Chris. I decided to restart from scratch once again and try to be precise in my following of the quick start doc to see where I went wrong.
It’s currently building 7/rtems-arm (the tools build step). And that completed, now on to building the bsps… and that worked. So I think I’m off to the races. We’ll see after I try to build the Hello World example.
Where I got lost was in the various discussions of sources and paths and where to build. So the small number of words version is:
Create a directory
foo/
CD to that directory and clone into it the RTEMS Source Builder giving you
foo/rtems-source-builder
CD into that directory and clone the RTEMS source into it giving you
foor/rtems-source-builder/rtems
CD into that directory and build tools, then build a BSP. Set your prefix to somewhere else. Since I build non-system wide stuff in my ~/.local directory I put everything in ~/.local/rtems/7
Now add ~/.local/rtems/7/bin to your path. Go to the next step where you create a project directory.
That’s where I am now. I’m pretty confident I’ll be able to build HelloWorld and run it on my Nucleo board, and probably Ticker as well. We’ll see.
Real shout out to the tremendous amount of documentation you guys have put together. It’s a lot and I find skim too much and miss critical details, but now that I’ve gone through that process. I think I understand the directory structure you’re trying to achieve and where I have flexibility within that structure.
–Chuck