Other Parts Discussed in Thread: SYSCONFIG
Hi Ti Team
i want to do the software reset when the communication error occurs in CAN communication, which DL function should I use to reset the MCU?
MSPM0G4507
regards
Prajesh karmalkar
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.
Hi Ti Team
i want to do the software reset when the communication error occurs in CAN communication, which DL function should I use to reset the MCU?
MSPM0G4507
regards
Prajesh karmalkar
For software reset, you can use this function DL_SYSCTL_resetDevice(); Here is all the reset levels, for highest reset level, you can choose POR reset. It will reset CPU, peripheral, and RAM.
i am using the same function DL_SYSCTL_resetDevice(DL_SYSCTL_RESET_POR);
int main(void)
{
/* Power on GPIO, initialize pins as digital outputs */
SYSCFG_DL_init();
/* Default: LED1 and LED3 ON, LED2 OFF */
DL_GPIO_setPins(GPIO_LEDS_PORT, GPIO_LEDS_USER_LED_1_PIN );
while (1) {
delay_cycles(DELAY);
delay_cycles(DELAY);
delay_cycles(DELAY);
delay_cycles(DELAY);
DL_SYSCTL_resetDevice(DL_SYSCTL_RESET_POR);
}
}
as you can see in the above code, the LED is initially getting set, but after reset, the LED is Not getting set again. Do we need to do any sysconfig changes
Here is my code, it works properly.
7536.gpio_toggle_output_LP_MSPM0G3507_nortos_ticlang.zip
You don't need to do further sysconfig changes. Can you try to make the device work under free run mode and double check.