Part Number: TMS320F28388D
Other Parts Discussed in Thread: SYSCONFIG
When I set up my clock tree for a 25MHz external oscillator and go into debug mode, the program hangs up on the following code:


Kent
Part Number: TMS320F28388D
Other Parts Discussed in Thread: SYSCONFIG
When I set up my clock tree for a 25MHz external oscillator and go into debug mode, the program hangs up on the following code:


Hi Kent,
From a HW perspective, it looks like the rise/fall times are a bit slower than expected. I would probe the X1 pin directly to make sure the signal is adequate and there is no PCB//routing problem. Ensure the trace length and load capacitance are within spec and check the other pin connections. Issue here could impact the timing.
To definitively rule out IP configuration related bugs, could you modify the input clock source to use INTOSC2. If there are still issues, then we should look at the SCI and DAC configs. If there no more issues, then we can look at the clock configurations.
Are you using the SysConfig ClockTree Tool? If not, I would highly recommend doing so as it will greatly simplify the process and remove any accidental additions to your code. Step (1) is to exclude the "device" folder in project file explorer and Step (2) is to select the necessary settings in the SysConfig ClockTree Tool (accessed via the lefthand side icon). I cannot confirm further because you will have to read the actual macros used in the clocktree.h and device.h.
Best Regards,
Aishwarya
Aishwarya,
Thanks for the suggestion. When I changed the clock tree to INTOSC2, several of my lingering issues went away including instability in the SCIA port. I have gotten SPI to work now and am working on the DAC. It looks like the hardware oscillator was the issue and it is probably an result of board layout or parasitic capacitance. I will have to explore further. I will keep this thread going until I get the DAC going and may consult with you further on that subject.
Thanks,
Kent
Kent,
Good to hear!
Best Regards,
Aishwarya