Hi Everyone, I’m in the process of developing an understanding of the structure and building of BSPs. My eventual goal is to build one for the NRF8340 but for now I’m just trying to get my feet wet.
Since there already exists an Cortex-M33 BSP for the STM32U5 I thought I would start there (I also have the STM32U5-Discovery board so I can test on it). So this is what I’ve done, and questions about how things should actually work.
The only ‘board’ associated with the stm32u5 is the stm32u5-grisp-nano so I looked and found it in the specs\bsps\arm\stm32u5 directory. I copied it to a new file called stm32u5-discovery.yml and then did a manual build with waf first by creating a config.ini that said that was the BSP I wanted. I also added STM32U5_CONSOLE_ENABLE_USART1 = True as the discovery board puts
, then ./waf configure --prefix=$HOME/bin/rtems/7 which worked and finally ./waf install which built a bunch of files and installed them in $HOME/bin/rtems/7/arm-rtems7/stm32u5-discovery/lib. Seems like progress.
Then, following the documentation I created a new top level directory for my hello world application, and asked waf to configure it for using the arm/stm32u5-discovery
It also seems to have worked, and I generated hello.exe so now to attach my black magic probe (OpenOCD doesn’t know about the STM32U5-Discovery yet) and see if I can load it and debug it.