Re: Simulink: Trying to run PIL example 'Temperature'
UART setting is not ok.
- Use a Circular Buffer for Tx with a priority > 2
(5 is good choice as the blockset benefits from shadow registers when available on the chip with this priority only)
- Use Rx priority > 2 as well (5 is good choice again).
Try for both Rx & Tx a 256 bytes length buffer.
Don't you have on your board an external oscillator or crystal ? It so, use it instead of the internal RC oscillator which is likely prone to variations.
If it's not Ok, you might find on the forum many test you could perform to validate the board is working fine with the generated model, check the UART with a hyperterminal etc...