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.
您好!
我很长时间不使用 CCS 和 TI 的微处理器。 抱歉!
由于全球电源问题、我认为(目前)使用 TM4C123x 器件是我项目的一个很好的替代方案。 最近、我习惯使用其他公司的 IDE、例如 ST、NXP、Silabs、Microchip。。 其中包括一些实用程序、如 Pinmux 配置、可轻松配置系统时钟、GPIO 等
CCS11中的此实用程序在哪里? 似乎有一种称为 SysConfig 的方法、但我无法使用此选项创建项目(即闪烁示例)。
有人可以帮我解决这个问题吗?
此致、
Gaston
您好!
请参阅以下链接下载 SysConfig。
https://www.ti.com/tool/SYSCONFIG
如果您尚未下载 TivaWare、我建议您先下载。 TivaWare 是 一款软件开发套件、其中包含一套用于软件开发的软件库。 您可以参考许多示例作为项目的基准。
TivaWare 似乎是用于 Windows 操作系统(.exe 文件)。 是否有 Linux 发行版的替代产品?
Gaston
您好!
我希望这两个帖子能有所帮助。
http://shukra.cedt.iisc.ernet.in/edwiki/EmSys:Install_TivaWare_for_C_Series_Ubuntu
您好!
我已经下载了 TivaWare 软件包、并使用 Wine 成功安装了该软件包。 然后、我还安装了 SysConfig 并导入了闪烁示例项目。 它按预期进行编译。
但是、我仍然不知道如何使用 SysConfig 工具配置 TM4C1230D5PM 器件的引脚多路复用器。
此致、
Gaston
您好!
我在为 TM4C MCU 创建应用时很少使用此工具。 我想您可以像下面那样启动该工具、对吧? 我选择 TM4C1230D5PM 作为器件、然后点击"开始"。
假设我想在此器件上使用 SSI0模块、首先在左侧窗格中选择 SSI、然后选择 SSI0作为模块实例。 此器件上有四个 SSI 模块、因此您需要指定要使用哪一个。 在右下角、它将向您展示用于 SSI0的引脚。 在右上角、您可以单击"Save"图标以保存可包含在项目中的 pinout.c 和 pinout.h 文件。
下面是 pinout.h 和 pinout.c 示例。 如您所见、您只需调用将引脚配置为用作 SSI 功能的 PinoutSet()函数。 这只是一种让工具为您配置引脚的便捷方法。 但是、我很少发现有人使用 pinmux 工具、包括我自己。 通常、我只需自己编写代码来配置引脚。 我想我不会利用提供的工具。
//***************************************************************************** // This file was automatically generated on 11/29/2021 at 9:23:13 AM // by TI PinMux version 1.8.0+1863 // //***************************************************************************** #ifndef __DRIVERS_PINOUT_H__ #define __DRIVERS_PINOUT_H__ //***************************************************************************** // // If building with a C++ compiler, make all of the definitions in this header // have a C binding. // //***************************************************************************** #ifdef __cplusplus extern "C" { #endif //***************************************************************************** // // Prototypes. // //***************************************************************************** extern void PinoutSet(void); //***************************************************************************** // // Mark the end of the C bindings section for C++ compilers. // //***************************************************************************** #ifdef __cplusplus } #endif #endif // __DRIVERS_PINOUT_H__
// This file was automatically generated on 11/29/2021 at 9:23:09 AM // by TI PinMux version 1.8.0+1863 // //***************************************************************************** #include <stdbool.h> #include <stdint.h> #include "inc/hw_gpio.h" #include "inc/hw_memmap.h" #include "inc/hw_types.h" #include "driverlib/gpio.h" #include "driverlib/pin_map.h" #include "driverlib/rom.h" #include "driverlib/rom_map.h" #include "driverlib/sysctl.h" #include "pinout.h" //***************************************************************************** // //! \addtogroup pinout_api //! @{ // //***************************************************************************** //***************************************************************************** // //! Configures the device pins for the customer specific usage. //! //! \return None. // //***************************************************************************** void PinoutSet(void) { // // Enable Peripheral Clocks // MAP_SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOA); // // Configure the GPIO Pin Mux for PA4 // for SSI0RX // MAP_GPIOPinConfigure(GPIO_PA4_SSI0RX); MAP_GPIOPinTypeSSI(GPIO_PORTA_BASE, GPIO_PIN_4); // // Configure the GPIO Pin Mux for PA3 // for SSI0FSS // MAP_GPIOPinConfigure(GPIO_PA3_SSI0FSS); MAP_GPIOPinTypeSSI(GPIO_PORTA_BASE, GPIO_PIN_3); // // Configure the GPIO Pin Mux for PA5 // for SSI0TX // MAP_GPIOPinConfigure(GPIO_PA5_SSI0TX); MAP_GPIOPinTypeSSI(GPIO_PORTA_BASE, GPIO_PIN_5); // // Configure the GPIO Pin Mux for PA2 // for SSI0CLK // MAP_GPIOPinConfigure(GPIO_PA2_SSI0CLK); MAP_GPIOPinTypeSSI(GPIO_PORTA_BASE, GPIO_PIN_2); } //***************************************************************************** // // Close the Doxygen group. //! @} // //*****************************************************************************