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.

[参考译文] MCU+AM243X:为 MCU-PLUS-SDK 项目使用"hardware"sysconfig 文件、统一不同的 SysConfig 文件格式

Guru**** 2540720 points
Other Parts Discussed in Thread: SYSCONFIG

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1299424/mcu-plus-sdk-am243x-use-a-hardware-sysconfig-file-for-mcu-sdk-projects-harmonize-different-sysconfig-file-formats

器件型号:MCU-PLUS-SDK
主题中讨论的其他器件:SysConfig

你(们)好!

我有一个由我们的硬件开发人员提供的 SysConfig 文件。 不过、我无法在 CCS 工程中直接集成该文件、因为这些工程的格式似乎不同。

在"hardware"-sysconfig 文件中、我看到如下内容:

const powerDomains = scripting.addModule("/ti/corePinmux/powerDomains");

powerDomains["VDDSHV1 (PRG1)"]    = "3.3V";
powerDomains["VDDSHV2 (PRG2)"]    = "3.3V";
powerDomains["VDDSHV3 (GPMC)"]    = "3.3V";
powerDomains["VDDSHV5 (MMC1)"]    = "3.3V";
powerDomains["VDDSHV0 (General)"] = "3.3V";

来说明如何和在何处使用 PIN

iGPIO2["17"].$used                        = true;
iGPIO2["18"].rx                           = false;
iGPIO2["19"].rx                           = false;
iGPIO2["20"].rx                           = false;
iGPIO2["21"].rx                           = false;
iGPIO2["22"].rx                           = false;
iGPIO2["23"].rx                           = false;
iGPIO2["24"].$assign                      = "GPMC0_AD9";
iGPIO2["24"].$used                        = true;
iGPIO2["25"].rx                           = false;
iGPIO2["26"].rx                           = false;
iGPIO2["27"].rx                           = false;
iGPIO2["28"].rx                           = false;

我的 CCS SysConfig 文件中没有此类说明。 我会有一些更"抽象"的东西,像这样:

const debug_log  = scripting.addModule("/kernel/dpl/debug_log");
const mpu_armv7  = scripting.addModule("/kernel/dpl/mpu_armv7", {}, false);
const mpu_armv71 = mpu_armv7.addInstance();
const mpu_armv72 = mpu_armv7.addInstance();
const mpu_armv73 = mpu_armv7.addInstance();
const mpu_armv74 = mpu_armv7.addInstance();
const mpu_armv75 = mpu_armv7.addInstance();
const mpu_armv76 = mpu_armv7.addInstance();

/**
 * Write custom configuration values to the imported modules.
 */
debug_log.enableUartLog        = true;
debug_log.uartLog.$name        = "CONFIG_UART_CONSOLE";
debug_log.uartLog.UART.$assign = "USART0";

也许这是一个琐碎的问题、但我目前不知道如何将定制板的"hardware"-sysconfig 文件与 CCS 项目的 SysConfig 文件格式相同。 你能给我一些提示吗?

提前感谢

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 Dominik:

    我不知道有任何直接的方法来做到这一点。 我会在内部向团队进行核实、然后

    此致、

    安库尔

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 Dominik:

    目前没有 自动方法支持这一点、您将在此处手动打开和配置应用程序 SysConfig。

    此致、

    安库尔