STM32MAT Target & STM32CubeMX toolchain not producing buildable files
Hi everyone,
I'm trying the get the following setup working for a F767 nucleo board:
Matlab/Simulink R2019b
STM32MAT/Target v5.1.0
STM32CubeMX v5.4.0
SW4STM32
(All latest versions)
I've set up the model settings in Simulink to use the STM32.TLC, and pointed Simulink to the directory that contains Cube.
I've created the .IOC, and generated the project code, which opens nicely in SW4STM32

Building via simulink (simple model of GPIO in and GPIO out to turn LED on and off), seems to work, but leaves the folder structure below:

The project builds without error in SW4STM32, but resulting .ELF has no mention of the simulink generated code anywhere in it, and so does nothing when downloaded to the Nucleo board:

It seems to me that although the STM32-MAT/Target is creating code, Cube just ignores it when doing its thing.
Does anyone have any ideas please?