Part Number: MSP432P401R
Hello All,
How I can have a software reset in MSP432 using TI drivers in RTOS application.
Although, I have looked into SysCtl_rebootDevice(). So, What header files do I need to include for this?
Regards,
Keshav Aggarwal
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.
Part Number: MSP432P401R
Hello All,
How I can have a software reset in MSP432 using TI drivers in RTOS application.
Although, I have looked into SysCtl_rebootDevice(). So, What header files do I need to include for this?
Regards,
Keshav Aggarwal
Seong,
I'm using #include <ti/devices/msp432p4xx/driverlib/sysctl.h> for MAP_SysCtl_rebootDevice();.
After compiling it's throwing the below error.
Description Resource Path Location Type
#35 #error directive: "Failed to match a default include file" .ccsproject /..... line 76, external location: C:\ti\simplelink_msp432p4_sdk_3_40_00_05\source\ti\devices\msp432p4xx\inc\msp.h C/C++ Problem
Regards,
Keshav Aggarwal
Seong,
I'm able to build successfully with SysCtl_rebootDevice(). But unable to build with MAP prefix. Although the target application is based on TI-RTOS.
Which header is needed to be included among below-
#include <ti/devices/msp432p4xx/driverlib/rom.h>
#include <ti/devices/msp432p4xx/driverlib/rom_map.h>
Regards,
Keshav Aggarwal
Keshav,
Please see this thread: https://e2e.ti.com/support/microcontrollers/msp430/f/166/t/805591?CCS-MSP432P401R-copy-MSP431-driverlib-into-project
BR,
Seong
Seong,
I have looked out the thread that you have shared. There you suggested to include below-
#include <ti/devices/msp432p4xx/driverlib/driverlib.h>
#include <ti/devices/msp432p4xx/inc/msp.h>
1. My query is won't it conflict if I include them in my TI-Driver based Application as TI-Drivers are Built on Driverlib.
2. Can we include only required headers as including unrequired headers (in driverlib.h) will consume memory space.
Regards,
Keshav Aggarwal
Keshav,
My first response in the linked thread provides instructions on how to use driverlib in a TI-Driver based application.
BR,
Seong
Seong,
Reboot is working now. But I'm facing one issue related to this. I'm following your below suggestion.
| 1) Add the driverlib directory to Include Options. Inside Project Properties, under Build -> ARM Compiler -> Include Options, add "${COM_TI_SIMPLELINK_MSP432_SDK_INSTALL_DIR}/source/ti/devices/msp432p4xx/driverlib/" 2) Inside Project Properties, under Build -> ARM Compiler -> Predefined Symbols, add "__MSP432P401R__" 3) Also in Predefined Symbols, add "DeviceFamily_MSP432P401x" 4) Add "#include <ti/devices/msp432p4xx/driverlib/driverlib.h>" 5) Add "#include <ti/devices/msp432p4xx/inc/msp.h>" |
I'm getting warning when I'm trying to build with JSON library. It's conflicting with the driverlib. After removing driverlib headers it builds with no warnings. Please visit the below thread for details.
https://e2e.ti.com/support/microcontrollers/msp430/f/166/t/875959
Regards,
Keshav Aggarwal
Keshav,
Let's continue this discussion on your new thread. I'll be closing this one.
BR,
Seong
**Attention** This is a public forum