/** * These arguments were used when this file was generated. They will be automatically applied on subsequent loads * via the GUI or CLI. Run CLI with '--help' for additional information on how to override these arguments. * @cliArgs --device "AM62Ax" --package "AMB" --part "Default" --context "c75ss0-0" --product "MCU_PLUS_SDK_AM62Ax@10.00.00" * @versions {"tool":"1.20.0+3587"} */ /** * Import the modules used in this configuration. */ const i2c = scripting.addModule("/drivers/i2c/i2c", {}, false); const i2c1 = i2c.addInstance(); const mcasp = scripting.addModule("/drivers/mcasp/mcasp", {}, false); const mcasp1 = mcasp.addInstance(); const debug_log = scripting.addModule("/kernel/dpl/debug_log"); const mmu_armv8 = scripting.addModule("/kernel/dpl/mmu_armv8", {}, false); const mmu_armv81 = mmu_armv8.addInstance(); const mmu_armv82 = mmu_armv8.addInstance(); const mmu_armv83 = mmu_armv8.addInstance(); const mmu_armv84 = mmu_armv8.addInstance(); const mmu_armv85 = mmu_armv8.addInstance(); const mmu_armv86 = mmu_armv8.addInstance(); const mmu_armv87 = mmu_armv8.addInstance(); const mmu_armv88 = mmu_armv8.addInstance(); const mmu_armv89 = mmu_armv8.addInstance(); const mmu_armv810 = mmu_armv8.addInstance(); const mmu_armv811 = mmu_armv8.addInstance(); /** * Write custom configuration values to the imported modules. */ i2c1.$name = "CONFIG_I2C0"; i2c1.I2C_child.$name = "drivers_i2c_v0_i2c_v0_template0"; mcasp1.$name = "CONFIG_MCASP0"; mcasp1.enableLoopback = false; mcasp1.txDataMask = 0xFFFFFFFF; mcasp1.txActiveSlotMask = 0x3; mcasp1.txCallbackFxn = "mcasp_txcb"; mcasp1.rxCallbackFxn = "mcasp_rxcb"; mcasp1.rxDataMask = 0xFFFFFFFF; mcasp1.rxActiveSlotMask = 0x3; mcasp1.txFsSource = 0; mcasp1.txAclkSource = 0; mcasp1.rxFsSource = 0; mcasp1.rxAclkSource = 0; mcasp1.MCASP.$assignAllowConflicts = "MCASP1"; mcasp1.mcaspSer.create(2); mcasp1.mcaspSer[0].$name = "CONFIG_MCASP_SER0"; mcasp1.mcaspSer[0].MCASP.$assignAllowConflicts = "MCASP1"; mcasp1.mcaspSer[1].$name = "CONFIG_MCASP_SER1"; mcasp1.mcaspSer[1].serNum = 2; mcasp1.mcaspSer[1].dataDir = "Receive"; mcasp1.mcaspSer[1].MCASP.$assignAllowConflicts = "MCASP1"; scripting.suppress("Resource conflict,MCASP1 is also in use by @@@.+?@@@, @@@.+?@@@", mcasp1.MCASP, "$assign"); scripting.suppress("Resource conflict,MCASP1 is also in use by @@@.+?@@@, @@@.+?@@@", mcasp1.mcaspSer[0].MCASP, "$assign"); scripting.suppress("Resource conflict,MCASP1 is also in use by @@@.+?@@@, @@@.+?@@@", mcasp1.mcaspSer[1].MCASP, "$assign"); const udma = scripting.addModule("/drivers/udma/udma", {}, false); const udma1 = udma.addInstance({}, false); udma1.$name = "CONFIG_UDMA0"; mcasp1.bcDmaDriver = udma1; const udma2 = udma.addInstance({}, false); udma2.$name = "CONFIG_UDMA1"; mcasp1.pktDmaDriver = udma2; debug_log.enableUartLog = true; debug_log.enableCssLog = false; debug_log.uartLog.$name = "CONFIG_UART0"; debug_log.uartLog.useMcuDomainPeripherals = true; mmu_armv81.size = 0x20000000; mmu_armv81.$name = "REGISTER_REGION_0"; mmu_armv82.vAddr = 0x20000000; mmu_armv82.pAddr = 0x20000000; mmu_armv82.size = 0x20000000; mmu_armv82.$name = "REGISTER_REGION_1"; mmu_armv83.vAddr = 0x40000000; mmu_armv83.pAddr = 0x40000000; mmu_armv83.size = 0x20000000; mmu_armv83.$name = "REGISTER_REGION_2"; mmu_armv84.vAddr = 0x60000000; mmu_armv84.pAddr = 0x60000000; mmu_armv84.size = 0x10000000; mmu_armv84.$name = "FSS0_DAT_REGION"; mmu_armv85.vAddr = 0x7C200000; mmu_armv85.pAddr = 0x7C200000; mmu_armv85.$name = "CLEC"; mmu_armv85.size = 0x100000; mmu_armv86.$name = "DRU"; mmu_armv86.vAddr = 0x7C400000; mmu_armv86.pAddr = 0x7C400000; mmu_armv86.size = 0x100000; mmu_armv87.vAddr = 0x80000000; mmu_armv87.pAddr = 0x80000000; mmu_armv87.size = 0x20000000; mmu_armv87.attribute = "MAIR7"; mmu_armv87.$name = "DDR_0"; mmu_armv88.vAddr = 0xA0000000; mmu_armv88.pAddr = 0xA0000000; mmu_armv88.size = 0x20000000; mmu_armv88.$name = "DDR_1"; mmu_armv88.attribute = "MAIR7"; mmu_armv89.vAddr = 0xAA000000; mmu_armv89.pAddr = 0xAA000000; mmu_armv89.size = 0x2000000; mmu_armv89.attribute = "MAIR4"; mmu_armv89.$name = "DDR_2"; mmu_armv810.$name = "MCASP"; mmu_armv810.vAddr = 0x2B10000; mmu_armv810.pAddr = 0x2B10000; mmu_armv810.size = 0x2000000; mmu_armv810.privExecute = false; mmu_armv811.$name = "CCS_DEBUG_LOG_MEM"; mmu_armv811.vAddr = 0x99C10000; mmu_armv811.pAddr = 0x99C10000; mmu_armv811.size = 0x1000; mmu_armv811.attribute = "MAIR4"; /** * Pinmux solution for unlocked pins/peripherals. This ensures that minor changes to the automatic solver in a future * version of the tool will not impact the pinmux you originally saw. These lines can be completely deleted in order to * re-solve from scratch. */ i2c1.I2C.$suggestSolution = "I2C1"; i2c1.I2C.SCL.$suggestSolution = "I2C1_SCL"; i2c1.I2C.SDA.$suggestSolution = "I2C1_SDA"; mcasp1.MCASP.AFSX.$suggestSolution = "GPMC0_WAIT0"; mcasp1.MCASP.ACLKX.$suggestSolution = "GPMC0_BE0n_CLE"; mcasp1.MCASP.AFSR.$suggestSolution = "GPMC0_CSn2"; mcasp1.MCASP.ACLKR.$suggestSolution = "GPMC0_CSn3"; mcasp1.SYSTEM.$suggestSolution = "SYSTEM0"; mcasp1.mcaspSer[0].MCASP.AXR0.$suggestSolution = "GPMC0_WEn"; mcasp1.mcaspSer[1].MCASP.AXR2.$suggestSolution = "GPMC0_ADVn_ALE"; debug_log.uartLog.MCU_UART.$suggestSolution = "MCU_USART0"; debug_log.uartLog.MCU_UART.RXD.$suggestSolution = "MCU_UART0_RXD"; debug_log.uartLog.MCU_UART.TXD.$suggestSolution = "MCU_UART0_TXD";