Other Parts Discussed in Thread: HALCOGEN
Dear TI support,
just minor remark - in the TMS570LS31x TRM (spnu499.pdf) on the page 177 there is following note regarding CLNCNTL (@ 0xFFFF FFD0) register:
The application must configure the VCLK2 ratio, read back the contents of the CLKCNTL register, and then configure the VCLK ratio.
Contrary to that source code (system.c) generated by HalCoGen includes "simple" setting of clock dividers without a read back. Well, this code is working properly ;-)
/** - Setup synchronous peripheral clock dividers for VCLK1, VCLK2, VCLK3 */
systemREG1->VCLKR = 1U;
systemREG1->VCLK2R = 1U;
systemREG2->VCLK3R = 1U;
Please, may you clarify me what is beyond the note, is that obligatory and missed in this case or is just optional?
Many thanks in advance,
Best regards, Jiri