Dear all,
I am trying to generate code for an stm32f4xx custom board using matlab 2022b, the two support packages (cortex-M and stm32 processors) using the cubemx approach (I have a custom board with stm32f407vg and do not want to use the discovery board support) and the keil compiler.
I configured the board in IOC file and set MDK-ARM as toolchain.
If I try to generate code directly from cubemx it works: it generates a set of directories, source files and the .uvprojx keil project. I can load it into keil uvision and build it successfully. Actually linking fails since there is no main function, that is supposed to be "provided by matlab", but at this stage matlab files ahve not been generated already.
When I try to generate the code from simulink it stops with this error:
"Unrecognized method, property, or field 'EXTRA_SOURCE_RELATIVE_PATH' for class 'stm32cube.mdkarm'."
and have no clue where to look into.
I must add that I can succesfully compile my simulink scheme if I select GNU as toolchain (but unfortunately cannot use keil uvision at that point), thus the scheme, at the moment a simple oscillator with a couple of led flashing - derived from stm32_gettingstarted should be fine.
Can someone give a hint on where to look into the code generation process ?
Thank'you,
Lorenzo