/** * 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 "AM243x_ALV_beta" --package "ALV" --part "ALV" --context "r5fss0-0" --product "INDUSTRIAL_COMMUNICATIONS_SDK_AM243x@09.02.00" * @versions {"tool":"1.20.0+3587"} */ /** * Import the modules used in this configuration. */ const flash = scripting.addModule("/board/flash/flash", {}, false); const flash1 = flash.addInstance(); const crc = scripting.addModule("/drivers/crc/crc", {}, false); const crc1 = crc.addInstance(); const gpio = scripting.addModule("/drivers/gpio/gpio", {}, false); const gpio1 = gpio.addInstance(); const gpio2 = gpio.addInstance(); const gpio3 = gpio.addInstance(); const gpio4 = gpio.addInstance(); const gpio5 = gpio.addInstance(); const gpio6 = gpio.addInstance(); const gpio7 = gpio.addInstance(); const ipc = scripting.addModule("/drivers/ipc/ipc"); const pruicss = scripting.addModule("/drivers/pruicss/pruicss", {}, false); const pruicss1 = pruicss.addInstance(); const profinet = scripting.addModule("/industrial_comms/profinet/profinet", {}, false); const profinet1 = profinet.addInstance(); 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(); const mpu_armv77 = mpu_armv7.addInstance(); const mpu_armv78 = mpu_armv7.addInstance(); const mpu_armv79 = mpu_armv7.addInstance(); const mpu_armv710 = mpu_armv7.addInstance(); const mpu_armv711 = mpu_armv7.addInstance(); const mpu_armv712 = mpu_armv7.addInstance(); const mpu_armv713 = mpu_armv7.addInstance(); const mpu_armv714 = mpu_armv7.addInstance(); const mpu_armv715 = mpu_armv7.addInstance(); const timer = scripting.addModule("/kernel/dpl/timer", {}, false); const timer1 = timer.addInstance(); const timer2 = timer.addInstance(); /** * Write custom configuration values to the imported modules. */ flash1.$name = "CONFIG_FLASH0"; flash1.peripheralDriver.$name = "CONFIG_OSPI0"; flash1.peripheralDriver.OSPI.$assign = "OSPI0"; crc1.$name = "CONFIG_CRC0"; gpio1.$name = "ETH_100BT1_EN"; gpio1.pinDir = "OUTPUT"; gpio1.defaultValue = "1"; gpio1.GPIO_n.$assign = "PRG1_PRU1_GPO18"; gpio2.$name = "ETH_100BT1_RST_N"; gpio2.pinDir = "OUTPUT"; gpio2.GPIO_n.$assign = "PRG1_PRU1_GPO16"; gpio3.$name = "ETH_100BTX_RST_N"; gpio3.pinDir = "OUTPUT"; gpio3.GPIO_n.$assign = "PRG0_PRU0_GPO18"; gpio4.$name = "ETH_100BTX_RMII"; gpio4.pinDir = "OUTPUT"; gpio4.GPIO_n.$assign = "PRG1_PRU1_GPO19"; gpio5.$name = "ETH_100BTX_INT"; gpio5.pinDir = "OUTPUT"; gpio5.GPIO_n.$assign = "PRG0_PRU0_GPO19"; gpio6.$name = "PRG1_MDIO0_MDC"; gpio6.GPIO_n.$assign = "PRG1_MDIO0_MDC"; gpio7.$name = "PRG1_MDIO0_MDIO"; gpio7.GPIO_n.$assign = "PRG1_MDIO0_MDIO"; ipc.r5fss0_1 = "NONE"; ipc.r5fss1_1 = "NONE"; ipc.m4fss0_0 = "notify"; ipc.vringMsgSize = 512; profinet1.$name = "CONFIG_PROFINET0"; profinet1.instance = "ICSSG0"; profinet1.phyAddr0 = 1; profinet1.phyAddr1 = 2; profinet1.icss_emac[0].$name = "CONFIG_ICSS_EMAC0"; profinet1.icss_emac[0].mode = scripting.forceWrite("SWITCH"); profinet1.icss_emac[0].phyToMacInterfaceMode = scripting.forceWrite("MII"); profinet1.icss_emac[0].learningEnable = true; profinet1.icss_emac[0].rxTaskPriority = 28; profinet1.icss_emac[0].txTaskPriority = 28; profinet1.ethphy1[0].mdioManualModeLinkPolling = scripting.forceWrite("Polling"); profinet1.ethphy1[0].$name = "CONFIG_100BTX"; profinet1.ethphy1[0].customDeviceName = "DP83826E"; profinet1.ethphy1[0].name = "CUSTOM"; profinet1.ethphy2[0].mdioManualModeLinkPolling = scripting.forceWrite("Polling"); profinet1.ethphy2[0].$name = "CONFIG_TJA1101"; profinet1.ethphy2[0].customDeviceName = "tja1101"; profinet1.ethphy2[0].name = "CUSTOM"; pruicss1.$name = "CONFIG_PRU_ICSS0"; profinet1.icss = pruicss1; pruicss1.AdditionalICSSSettings[0].$name = "CONFIG_PRU_ICSS_IO0"; debug_log.enableUartLog = true; debug_log.enableCssLog = false; debug_log.enableSharedMemLog = true; debug_log.enableSharedMemLogReader = true; debug_log.uartLog.$name = "CONFIG_UART_CONSOLE"; debug_log.uartLog.UART.$assign = "USART0"; const uart_v0_template = scripting.addModule("/drivers/uart/v0/uart_v0_template", {}, false); const uart_v0_template1 = uart_v0_template.addInstance({}, false); uart_v0_template1.$name = "drivers_uart_v0_uart_v0_template0"; debug_log.uartLog.child = uart_v0_template1; mpu_armv71.$name = "CONFIG_MPU_REGION0"; mpu_armv71.allowExecute = false; mpu_armv71.attributes = "Device"; mpu_armv71.accessPermissions = "Supervisor RD+WR, User RD"; mpu_armv71.size = 31; mpu_armv72.$name = "CONFIG_MPU_REGION1"; mpu_armv72.accessPermissions = "Supervisor RD+WR, User RD"; mpu_armv72.size = 15; mpu_armv73.$name = "CONFIG_MPU_REGION2"; mpu_armv73.baseAddr = 0x41010000; mpu_armv73.size = 15; mpu_armv73.accessPermissions = "Supervisor RD+WR, User RD"; mpu_armv74.baseAddr = 0x70000000; mpu_armv74.size = 21; mpu_armv74.accessPermissions = "Supervisor RD+WR, User RD"; mpu_armv74.$name = "CONFIG_MPU_REGION3_SRAM"; mpu_armv75.baseAddr = 0x80000000; mpu_armv75.size = 31; mpu_armv75.attributes = "NonCached"; mpu_armv75.$name = "CONFIG_MPU_REGION4_DDR"; mpu_armv76.baseAddr = 0x80000000; mpu_armv76.$name = "CONFIG_MPU_REGION5_DDR_ICSS"; mpu_armv76.size = 25; mpu_armv77.attributes = "NonCached"; mpu_armv77.$name = "CONFIG_MPU_REGION6_DDR_DATA"; mpu_armv77.size = 20; mpu_armv77.baseAddr = 0x83800000; mpu_armv78.size = 20; mpu_armv78.attributes = "NonCached"; mpu_armv78.$name = "CONFIG_MPU_REGION7_DDR_BSS"; mpu_armv78.baseAddr = 0x83900000; mpu_armv79.attributes = "NonCached"; mpu_armv79.$name = "CONFIG_MPU_REGION8_DDR_PNIP"; mpu_armv79.baseAddr = 0x82000000; mpu_armv79.size = 23; mpu_armv710.$name = "CONFIG_MPU_REGION3_DDR_HEAP"; mpu_armv710.size = 23; mpu_armv710.baseAddr = 0x83000000; mpu_armv711.$name = "CONFIG_MPU_REGION3"; mpu_armv711.baseAddr = 0x70000000; mpu_armv711.size = 16; mpu_armv711.attributes = "Cached+Sharable"; mpu_armv712.$name = "CONFIG_MPU_PRU_ICSS"; mpu_armv712.baseAddr = 0x30080000; mpu_armv712.size = 19; mpu_armv712.attributes = "Device"; mpu_armv712.allowExecute = false; mpu_armv713.$name = "CONFIG_MPU_REGION12"; mpu_armv713.baseAddr = 0x88000000; mpu_armv713.size = 26; mpu_armv713.attributes = "NonCached"; mpu_armv713.allowExecute = false; mpu_armv714.$name = "CONFIG_MPU_REGION13"; mpu_armv714.baseAddr = 0x8C000000; mpu_armv714.size = 13; mpu_armv714.attributes = "NonCached"; mpu_armv714.allowExecute = false; mpu_armv715.$name = "CONFIG_MPU_REGION14"; mpu_armv715.baseAddr = 0x701D0000; mpu_armv715.size = 16; mpu_armv715.attributes = "NonCached"; mpu_armv715.allowExecute = false; timer1.$name = "CONFIG_TIMER0"; timer1.startTimer = true; timer1.timerCallback = "OSAL_FREERTOS_callbackTimer"; timer1.TIMER.$assign = "DMTIMER0"; timer2.$name = "CONFIG_TIMER1"; timer2.usecPerTick = 125; timer2.timerCallback = "PND_EDDP_IrqSendClock"; timer2.TIMER.$assign = "DMTIMER1"; /** * 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. */ flash1.peripheralDriver.OSPI.CLK.$suggestSolution = "OSPI0_CLK"; flash1.peripheralDriver.OSPI.CSn0.$suggestSolution = "OSPI0_CSn0"; flash1.peripheralDriver.OSPI.DQS.$suggestSolution = "OSPI0_DQS"; flash1.peripheralDriver.OSPI.D7.$suggestSolution = "OSPI0_D7"; flash1.peripheralDriver.OSPI.D6.$suggestSolution = "OSPI0_D6"; flash1.peripheralDriver.OSPI.D5.$suggestSolution = "OSPI0_D5"; flash1.peripheralDriver.OSPI.D4.$suggestSolution = "OSPI0_D4"; flash1.peripheralDriver.OSPI.D3.$suggestSolution = "OSPI0_D3"; flash1.peripheralDriver.OSPI.D2.$suggestSolution = "OSPI0_D2"; flash1.peripheralDriver.OSPI.D1.$suggestSolution = "OSPI0_D1"; flash1.peripheralDriver.OSPI.D0.$suggestSolution = "OSPI0_D0"; profinet1.PRU_ICSSG0_MDIO.$suggestSolution = "PRU_ICSSG0_MDIO0"; profinet1.PRU_ICSSG0_MDIO.MDC.$suggestSolution = "PRG0_MDIO0_MDC"; profinet1.PRU_ICSSG0_MDIO.MDIO.$suggestSolution = "PRG0_MDIO0_MDIO"; profinet1.PRU_ICSSG0_MII_G_RT.$suggestSolution = "PRU_ICSSG0_MII_G_RT"; profinet1.PRU_ICSSG0_MII_G_RT.MII0_RXD0.$suggestSolution = "PRG0_PRU0_GPO0"; profinet1.PRU_ICSSG0_MII_G_RT.MII0_RXD1.$suggestSolution = "PRG0_PRU0_GPO1"; profinet1.PRU_ICSSG0_MII_G_RT.MII0_RXD2.$suggestSolution = "PRG0_PRU0_GPO2"; profinet1.PRU_ICSSG0_MII_G_RT.MII0_RXD3.$suggestSolution = "PRG0_PRU0_GPO3"; profinet1.PRU_ICSSG0_MII_G_RT.MII0_RXDV.$suggestSolution = "PRG0_PRU0_GPO4"; profinet1.PRU_ICSSG0_MII_G_RT.MII0_RXER.$suggestSolution = "PRG0_PRU0_GPO5"; profinet1.PRU_ICSSG0_MII_G_RT.MII0_TXD0.$suggestSolution = "PRG0_PRU0_GPO11"; profinet1.PRU_ICSSG0_MII_G_RT.MII0_TXD1.$suggestSolution = "PRG0_PRU0_GPO12"; profinet1.PRU_ICSSG0_MII_G_RT.MII0_TXD2.$suggestSolution = "PRG0_PRU0_GPO13"; profinet1.PRU_ICSSG0_MII_G_RT.MII0_TXD3.$suggestSolution = "PRG0_PRU0_GPO14"; profinet1.PRU_ICSSG0_MII_G_RT.MII0_TXEN.$suggestSolution = "PRG0_PRU0_GPO15"; profinet1.PRU_ICSSG0_MII_G_RT.MII1_RXD0.$suggestSolution = "PRG0_PRU1_GPO0"; profinet1.PRU_ICSSG0_MII_G_RT.MII1_RXD1.$suggestSolution = "PRG0_PRU1_GPO1"; profinet1.PRU_ICSSG0_MII_G_RT.MII1_RXD2.$suggestSolution = "PRG0_PRU1_GPO2"; profinet1.PRU_ICSSG0_MII_G_RT.MII1_RXD3.$suggestSolution = "PRG0_PRU1_GPO3"; profinet1.PRU_ICSSG0_MII_G_RT.MII1_RXDV.$suggestSolution = "PRG0_PRU1_GPO4"; profinet1.PRU_ICSSG0_MII_G_RT.MII1_RXER.$suggestSolution = "PRG0_PRU1_GPO5"; profinet1.PRU_ICSSG0_MII_G_RT.MII1_TXD0.$suggestSolution = "PRG0_PRU1_GPO11"; profinet1.PRU_ICSSG0_MII_G_RT.MII1_TXD1.$suggestSolution = "PRG0_PRU1_GPO12"; profinet1.PRU_ICSSG0_MII_G_RT.MII1_TXD2.$suggestSolution = "PRG0_PRU1_GPO13"; profinet1.PRU_ICSSG0_MII_G_RT.MII1_TXD3.$suggestSolution = "PRG0_PRU1_GPO14"; profinet1.PRU_ICSSG0_MII_G_RT.MII1_TXEN.$suggestSolution = "PRG0_PRU1_GPO15"; profinet1.PRU_ICSSG0_MII_G_RT.MII_MR0_CLK.$suggestSolution = "PRG0_PRU0_GPO6"; profinet1.PRU_ICSSG0_MII_G_RT.MII_MR1_CLK.$suggestSolution = "PRG0_PRU1_GPO6"; profinet1.PRU_ICSSG0_MII_G_RT.MII_MT0_CLK.$suggestSolution = "PRG0_PRU0_GPO16"; profinet1.PRU_ICSSG0_MII_G_RT.MII_MT1_CLK.$suggestSolution = "PRG0_PRU1_GPO16"; debug_log.uartLog.UART.RXD.$suggestSolution = "UART0_RXD"; debug_log.uartLog.UART.TXD.$suggestSolution = "UART0_TXD";