This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software: Code Composer Studio
Hi, TI:
We are currently in the hardware debugging stage. And The system platform we use is FreeRTOS. But When we use the freeRTOS routines in your SDK package to burn and debug the hardware interface, the system hangs up. After investigation and positioning, it is found that our hardware is not equipped with an external crystal oscillator and needs to be configured with a built-in crystal oscillator. In your example (for launchPad), an external crystal oscillator should be configured.
But I tracked the SDK example source code and did not find the configuration of the crystal oscillator. How do you configure the configuration of the crystal oscillator in the FreeRTOS example in your SDK package?
The way I do it is using SysCtlClockFreqSet(), e.g. (taken from the enet_io example):
g_ui32SysClock = MAP_SysCtlClockFreqSet((SYSCTL_XTAL_25MHZ | SYSCTL_OSC_MAIN | SYSCTL_USE_PLL | SYSCTL_CFG_VCO_480), 120000000); // (Hold off the Forum code formatter)
You can also use it with the internal (RC) PIOSC e.g. (taken from sysctl.c):
SysCtlClockFreqSet(SYSCTL_OSC_INT | SYSCTL_USE_PLL | SYSCTL_CFG_VCO_320, 40000000);
In the FreeRTOS content, this appears to be done in startup_msp432e4.c (localProgramStart).
PIOSC isn't a crystal. In order to use the Ethernet, you need to have a 25MHz (external) crystal.
[Edit: Small dispute with the Code formatter]
**Attention** This is a public forum