TMS320F2800156-Q1: [FAE] TMS320F2800156-Q: Flash_initModule and clock init sequence

Part Number: TMS320F2800156-Q1
Other Parts Discussed in Thread: C2000WARE

Tool/software:

Development envirement:

MCU: TMS320F2800156-Q1

CCS: 12.7

SDK: C2000Ware_5_02_00_00

In SDK demos,Flash_initModule and SysCtl_setClock are called in Device_init() function, Flash_initModule will be init WAITSTATES parameter whitch will improve the MCU performance.

WAITSTATES can be set from 0~0xF, this parameter is releated system clock, so i think the correct sequence of two function is SysCtl_setClock ->Flash_initModule ,because we need init system clock first, then we can set WAITSTATES, this is correct logic.but actually, in the demos, the sequence is Flash_initModule ->SysCtl_setClock ,so can you explain it?

/BR

Samuel