First time program in STM32F411E-Disco
Hi,
IMO, because you don’t have examples for you board STM32Cube v1.7.0 or v1.8.0, the easy way is to generate the project from STM32CubeMX and then import into System Workbench. This should work, I do this for 4 or 5 different boards and I did not have any problems. Just follow the procedure you mention and generated project should build without problems.
If you can toggle some LEDs on the board then you can add code from existing examples from HAL library over the generared code.
I check CubeMX and you can select you board - see attached pictures. The clock is already configured and also the GPIO. Just generate this code then import into SW, then build, select the elf and try to download.
Turn ON a LED in main, check how this is done in STM32F4-Discovery - is the same code.
Pay attention to instructions related OpenOCD configuration: “Setting up your project for debug”. This is a sensitive part. The board has an ST-LINK/V2 hardware debugger same as F4 Discovery (don’t choose something with V2.1). If don’t find the OpenOCD configuration for you board for this part I think is safe to use the configuration for F4 Discovery.