Various bugs (Release 5.4.0 on R2018b/R2019a with CubeMX 5.4.0, CubeIDE toolchain)
- January 4, 2020
- 4 replies
- 1852 views
I need some ideas on solving the following bugs and shall keep updating the list as more bugs come in.
BUG#001
If you define ADC2 in CubeMX and use the ADC Read block in Simulink, the block forgets that it was on ADC2 and your settings will be lost upon reopening the .slx file. Also, the opening speed of the ADC block is worse than it was on 5.1.0.
BUG#002
The Register Access block forgets the peripheral parameter upon reopening the .slx file.
BUG#003
TIM13 PWM Generation does not get recognized by the Timer block.
BUG#004
SPI3 Full_Duplex MASTER POLLING fails to compile and gives the error "Error in default port datatype function of S-function '(proj directory)/Simulink Function1/Simulink Function/SPI'. This function does not set the datatype of output port 2".
BUG#005
The interrupt routines of an SPI block is fused with the write function. You cannot trigger another SPI write using the SPI complete interrupts as it'll create a function-call cycle that simulink doesn't like. The SPI writes, reads, and interrupt definitions should be all separately blocked.
Thanks in advance.
