Skip to main content
Associate II
July 25, 2024
Question

STPackCreator with H5 Discovery Kit

  • July 25, 2024
  • 0 replies
  • 650 views

Hi all!

I'm creating a pack using the Pack Creator. My pack uses a BSP template. I've tried creating projects using the pack for a selection of boards. In all cases bar the H5 the pack template successfully creates the right #include for the platform BSP.

I.e. the template uses:

#include "${BoardName}_bus.h"

That creates the following:

Board

Created #include

L4 Nucleo32

 

#include "stm32l4xx_nucleo_bus.h"
H7 Nucleo144
#include "stm32h7xx_nucleo_bus.h"
H5 Discovery Kit
#include "stm32h573i_dk_bus.h"
U5 IoT Discovery Kit
#include "b_u585i_iot02a_bus.h

 

The correct #include for the H5 board should be:

"stm32h573i_discovery_conf.h"

 

Short of writing an exception within my template specifically for the H5 discovery board, is there a mistake I'm making with using `BoardName` for my template?

Second question, are there other boards for which `BoardName` wouldn't work?