Other Parts Discussed in Thread: SYSBIOS, MSP430F5659
In my app.cfg file I did the following modifications:
- Under TI-RTOS-->Products-->SYSBIOS-->'BIOS - Basic Runtime Options', I've set the CPU clock freq. to 8192000 (8.192 MHz)
- Under Boot --> 'Boot/Startup Options', I've un-checked 'Configure Clocks'
(the later is because I wish to prevent _c_int00_noargs() from calling the default Boot_configureDCO(), as I do my own DCO configuration in my startup code).
Unfortunately this had an unexpected side-effect, where some drivers (such as the UART driver), does not use the correct frequency.
I've traced the problem to a constant in app_pe430X.c: 'ti_sysbios_family_msp430_ClockFreqs_SMCLK__C' which is incorrectly set to 0xF4240 (1 MHz), instead of 0x7D000 (8.192 MHz). When I re-check 'Configure Clocks', its value is as expected.
Please advise.
Version info:
- TI-RTOS: 2_20_00_06
- Compiler: TI v16.6.0.0.STS
- Device: MSP430F5659