STM32-MAT Script Fixes:
- Comment line 256:
fprintf('\n### Code Format : %s\n',buildOpts.codeFormat);
buildOpts.codeFormat
doesnt exist, the execution of this line throws an error and halt the code generation. I'm using Matlab 2019a, Windows 10 1803 x64, Stm32CubeMX 4.25 and STM32MatTarget_4.4.2_setup.exe - Search for "extModeIocUsartUpdate" and add "ioc_info = ioc_parse(ioc_path);" in the next line.
Note: this is a potential bug, the script creates a new ioc file if it cant find an existing one, but it doesnt read the new ioc file after creation. - Comment below (around line 164):
cset.set_param ('ExtMode','on');
cset.set_param ('ExtModeTransport',0);
cset.set_param('ExtModeMexFile','ext_serial_win32_comm');