Pull request #34: am243x: rtlibs: Remove M4F examples for DCL
Merge in PINDSW/motor_control_sdk from PINDSW-6566_update_dcl to next * commit '82ae63d1516b4dbd102237a028a5850cd25b58db': am243x: rtlibs: Remove M4F examples for DCL
This commit is contained in:
commit
94d496ef85
@ -63,70 +63,6 @@
|
|||||||
]
|
]
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"resourceType": "project.ccs",
|
|
||||||
"resourceClass": [
|
|
||||||
"example"
|
|
||||||
],
|
|
||||||
"resourceSubClass": [
|
|
||||||
"example.gettingstarted"
|
|
||||||
],
|
|
||||||
"description": "A Direct Form 2 2nd order example demonstrating the digital control library (DCL). CPU is M4FSS0-0 running NORTOS.",
|
|
||||||
"name": "dcl_df22",
|
|
||||||
"location": "../../examples/dcl/dcl_df22/am243x-evm/m4fss0-0_nortos/ti-arm-clang/example.projectspec",
|
|
||||||
"devtools": [
|
|
||||||
"AM243x_GP_EVM"
|
|
||||||
],
|
|
||||||
"kernel": [
|
|
||||||
"nortos"
|
|
||||||
],
|
|
||||||
"compiler": [
|
|
||||||
"ticlang"
|
|
||||||
],
|
|
||||||
"subCategories": [
|
|
||||||
"dcl",
|
|
||||||
"dcl_df22",
|
|
||||||
"m4fss0-0_nortos"
|
|
||||||
],
|
|
||||||
"mainCategories": [
|
|
||||||
[
|
|
||||||
"Examples",
|
|
||||||
"Development Tools"
|
|
||||||
]
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"resourceType": "project.ccs",
|
|
||||||
"resourceClass": [
|
|
||||||
"example"
|
|
||||||
],
|
|
||||||
"resourceSubClass": [
|
|
||||||
"example.gettingstarted"
|
|
||||||
],
|
|
||||||
"description": "A Direct Form 2 2nd order example demonstrating the digital control library (DCL). CPU is M4FSS0-0 running FREERTOS.",
|
|
||||||
"name": "dcl_df22",
|
|
||||||
"location": "../../examples/dcl/dcl_df22/am243x-evm/m4fss0-0_freertos/ti-arm-clang/example.projectspec",
|
|
||||||
"devtools": [
|
|
||||||
"AM243x_GP_EVM"
|
|
||||||
],
|
|
||||||
"kernel": [
|
|
||||||
"freertos"
|
|
||||||
],
|
|
||||||
"compiler": [
|
|
||||||
"ticlang"
|
|
||||||
],
|
|
||||||
"subCategories": [
|
|
||||||
"dcl",
|
|
||||||
"dcl_df22",
|
|
||||||
"m4fss0-0_freertos"
|
|
||||||
],
|
|
||||||
"mainCategories": [
|
|
||||||
[
|
|
||||||
"Examples",
|
|
||||||
"Development Tools"
|
|
||||||
]
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"resourceType": "project.ccs",
|
"resourceType": "project.ccs",
|
||||||
"resourceClass": [
|
"resourceClass": [
|
||||||
@ -191,70 +127,6 @@
|
|||||||
]
|
]
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"resourceType": "project.ccs",
|
|
||||||
"resourceClass": [
|
|
||||||
"example"
|
|
||||||
],
|
|
||||||
"resourceSubClass": [
|
|
||||||
"example.gettingstarted"
|
|
||||||
],
|
|
||||||
"description": "A Direct Form 2 2nd order example demonstrating the digital control library (DCL). CPU is M4FSS0-0 running NORTOS.",
|
|
||||||
"name": "dcl_df22",
|
|
||||||
"location": "../../examples/dcl/dcl_df22/am243x-lp/m4fss0-0_nortos/ti-arm-clang/example.projectspec",
|
|
||||||
"devtools": [
|
|
||||||
"AM243x_LAUNCHPAD"
|
|
||||||
],
|
|
||||||
"kernel": [
|
|
||||||
"nortos"
|
|
||||||
],
|
|
||||||
"compiler": [
|
|
||||||
"ticlang"
|
|
||||||
],
|
|
||||||
"subCategories": [
|
|
||||||
"dcl",
|
|
||||||
"dcl_df22",
|
|
||||||
"m4fss0-0_nortos"
|
|
||||||
],
|
|
||||||
"mainCategories": [
|
|
||||||
[
|
|
||||||
"Examples",
|
|
||||||
"Development Tools"
|
|
||||||
]
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"resourceType": "project.ccs",
|
|
||||||
"resourceClass": [
|
|
||||||
"example"
|
|
||||||
],
|
|
||||||
"resourceSubClass": [
|
|
||||||
"example.gettingstarted"
|
|
||||||
],
|
|
||||||
"description": "A Direct Form 2 2nd order example demonstrating the digital control library (DCL). CPU is M4FSS0-0 running FREERTOS.",
|
|
||||||
"name": "dcl_df22",
|
|
||||||
"location": "../../examples/dcl/dcl_df22/am243x-lp/m4fss0-0_freertos/ti-arm-clang/example.projectspec",
|
|
||||||
"devtools": [
|
|
||||||
"AM243x_LAUNCHPAD"
|
|
||||||
],
|
|
||||||
"kernel": [
|
|
||||||
"freertos"
|
|
||||||
],
|
|
||||||
"compiler": [
|
|
||||||
"ticlang"
|
|
||||||
],
|
|
||||||
"subCategories": [
|
|
||||||
"dcl",
|
|
||||||
"dcl_df22",
|
|
||||||
"m4fss0-0_freertos"
|
|
||||||
],
|
|
||||||
"mainCategories": [
|
|
||||||
[
|
|
||||||
"Examples",
|
|
||||||
"Development Tools"
|
|
||||||
]
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"resourceType": "project.ccs",
|
"resourceType": "project.ccs",
|
||||||
"resourceClass": [
|
"resourceClass": [
|
||||||
@ -319,70 +191,6 @@
|
|||||||
]
|
]
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"resourceType": "project.ccs",
|
|
||||||
"resourceClass": [
|
|
||||||
"example"
|
|
||||||
],
|
|
||||||
"resourceSubClass": [
|
|
||||||
"example.gettingstarted"
|
|
||||||
],
|
|
||||||
"description": "A PI controller example demonstrating the digital control library (DCL). CPU is M4FSS0-0 running NORTOS.",
|
|
||||||
"name": "dcl_pi",
|
|
||||||
"location": "../../examples/dcl/dcl_pi/am243x-evm/m4fss0-0_nortos/ti-arm-clang/example.projectspec",
|
|
||||||
"devtools": [
|
|
||||||
"AM243x_GP_EVM"
|
|
||||||
],
|
|
||||||
"kernel": [
|
|
||||||
"nortos"
|
|
||||||
],
|
|
||||||
"compiler": [
|
|
||||||
"ticlang"
|
|
||||||
],
|
|
||||||
"subCategories": [
|
|
||||||
"dcl",
|
|
||||||
"dcl_pi",
|
|
||||||
"m4fss0-0_nortos"
|
|
||||||
],
|
|
||||||
"mainCategories": [
|
|
||||||
[
|
|
||||||
"Examples",
|
|
||||||
"Development Tools"
|
|
||||||
]
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"resourceType": "project.ccs",
|
|
||||||
"resourceClass": [
|
|
||||||
"example"
|
|
||||||
],
|
|
||||||
"resourceSubClass": [
|
|
||||||
"example.gettingstarted"
|
|
||||||
],
|
|
||||||
"description": "A PI controller example demonstrating the digital control library (DCL). CPU is M4FSS0-0 running FREERTOS.",
|
|
||||||
"name": "dcl_pi",
|
|
||||||
"location": "../../examples/dcl/dcl_pi/am243x-evm/m4fss0-0_freertos/ti-arm-clang/example.projectspec",
|
|
||||||
"devtools": [
|
|
||||||
"AM243x_GP_EVM"
|
|
||||||
],
|
|
||||||
"kernel": [
|
|
||||||
"freertos"
|
|
||||||
],
|
|
||||||
"compiler": [
|
|
||||||
"ticlang"
|
|
||||||
],
|
|
||||||
"subCategories": [
|
|
||||||
"dcl",
|
|
||||||
"dcl_pi",
|
|
||||||
"m4fss0-0_freertos"
|
|
||||||
],
|
|
||||||
"mainCategories": [
|
|
||||||
[
|
|
||||||
"Examples",
|
|
||||||
"Development Tools"
|
|
||||||
]
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"resourceType": "project.ccs",
|
"resourceType": "project.ccs",
|
||||||
"resourceClass": [
|
"resourceClass": [
|
||||||
@ -447,70 +255,6 @@
|
|||||||
]
|
]
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"resourceType": "project.ccs",
|
|
||||||
"resourceClass": [
|
|
||||||
"example"
|
|
||||||
],
|
|
||||||
"resourceSubClass": [
|
|
||||||
"example.gettingstarted"
|
|
||||||
],
|
|
||||||
"description": "A PI controller example demonstrating the digital control library (DCL). CPU is M4FSS0-0 running NORTOS.",
|
|
||||||
"name": "dcl_pi",
|
|
||||||
"location": "../../examples/dcl/dcl_pi/am243x-lp/m4fss0-0_nortos/ti-arm-clang/example.projectspec",
|
|
||||||
"devtools": [
|
|
||||||
"AM243x_LAUNCHPAD"
|
|
||||||
],
|
|
||||||
"kernel": [
|
|
||||||
"nortos"
|
|
||||||
],
|
|
||||||
"compiler": [
|
|
||||||
"ticlang"
|
|
||||||
],
|
|
||||||
"subCategories": [
|
|
||||||
"dcl",
|
|
||||||
"dcl_pi",
|
|
||||||
"m4fss0-0_nortos"
|
|
||||||
],
|
|
||||||
"mainCategories": [
|
|
||||||
[
|
|
||||||
"Examples",
|
|
||||||
"Development Tools"
|
|
||||||
]
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"resourceType": "project.ccs",
|
|
||||||
"resourceClass": [
|
|
||||||
"example"
|
|
||||||
],
|
|
||||||
"resourceSubClass": [
|
|
||||||
"example.gettingstarted"
|
|
||||||
],
|
|
||||||
"description": "A PI controller example demonstrating the digital control library (DCL). CPU is M4FSS0-0 running FREERTOS.",
|
|
||||||
"name": "dcl_pi",
|
|
||||||
"location": "../../examples/dcl/dcl_pi/am243x-lp/m4fss0-0_freertos/ti-arm-clang/example.projectspec",
|
|
||||||
"devtools": [
|
|
||||||
"AM243x_LAUNCHPAD"
|
|
||||||
],
|
|
||||||
"kernel": [
|
|
||||||
"freertos"
|
|
||||||
],
|
|
||||||
"compiler": [
|
|
||||||
"ticlang"
|
|
||||||
],
|
|
||||||
"subCategories": [
|
|
||||||
"dcl",
|
|
||||||
"dcl_pi",
|
|
||||||
"m4fss0-0_freertos"
|
|
||||||
],
|
|
||||||
"mainCategories": [
|
|
||||||
[
|
|
||||||
"Examples",
|
|
||||||
"Development Tools"
|
|
||||||
]
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"resourceType": "project.ccs",
|
"resourceType": "project.ccs",
|
||||||
"resourceClass": [
|
"resourceClass": [
|
||||||
|
|||||||
@ -41,28 +41,12 @@ based on the test input and compare the output with the expected value.
|
|||||||
|
|
||||||
# Supported Combinations {#EXAMPLES_DCL_DF22_COMBO}
|
# Supported Combinations {#EXAMPLES_DCL_DF22_COMBO}
|
||||||
|
|
||||||
\cond SOC_AM64X
|
|
||||||
|
|
||||||
Parameter | Value
|
|
||||||
---------------|-----------
|
|
||||||
CPU + OS | r5fss0-0 nortos
|
|
||||||
^ | m4fss0-0 nortos
|
|
||||||
^ | r5fss0-0 freertos
|
|
||||||
^ | m4fss0-0 freertos
|
|
||||||
Toolchain | ti-arm-clang
|
|
||||||
Board | @VAR_BOARD_NAME_LOWER, @VAR_SK_BOARD_NAME_LOWER
|
|
||||||
Example folder | examples/dcl/dcl_df22
|
|
||||||
|
|
||||||
\endcond
|
|
||||||
|
|
||||||
\cond SOC_AM243X
|
\cond SOC_AM243X
|
||||||
|
|
||||||
Parameter | Value
|
Parameter | Value
|
||||||
---------------|-----------
|
---------------|-----------
|
||||||
CPU + OS | r5fss0-0 nortos
|
CPU + OS | r5fss0-0 nortos
|
||||||
^ | m4fss0-0 nortos
|
|
||||||
^ | r5fss0-0 freertos
|
^ | r5fss0-0 freertos
|
||||||
^ | m4fss0-0 freertos
|
|
||||||
Toolchain | ti-arm-clang
|
Toolchain | ti-arm-clang
|
||||||
Boards | @VAR_BOARD_NAME_LOWER, @VAR_LP_BOARD_NAME_LOWER
|
Boards | @VAR_BOARD_NAME_LOWER, @VAR_LP_BOARD_NAME_LOWER
|
||||||
Example folder | examples/dcl/dcl_df22
|
Example folder | examples/dcl/dcl_df22
|
||||||
|
|||||||
@ -39,28 +39,13 @@ based on the test input and compare the output with the expected value.
|
|||||||
|
|
||||||
# Supported Combinations {#EXAMPLES_DCL_PI_COMBOS}
|
# Supported Combinations {#EXAMPLES_DCL_PI_COMBOS}
|
||||||
|
|
||||||
\cond SOC_AM64X
|
|
||||||
|
|
||||||
Parameter | Value
|
|
||||||
---------------|-----------
|
|
||||||
CPU + OS | r5fss0-0 nortos
|
|
||||||
^ | m4fss0-0 nortos
|
|
||||||
^ | r5fss0-0 freertos
|
|
||||||
^ | m4fss0-0 freertos
|
|
||||||
Toolchain | ti-arm-clang
|
|
||||||
Board | @VAR_BOARD_NAME_LOWER, @VAR_SK_BOARD_NAME_LOWER
|
|
||||||
Example folder | examples/dcl/dcl_pi
|
|
||||||
|
|
||||||
\endcond
|
|
||||||
|
|
||||||
\cond SOC_AM243X
|
\cond SOC_AM243X
|
||||||
|
|
||||||
Parameter | Value
|
Parameter | Value
|
||||||
---------------|-----------
|
---------------|-----------
|
||||||
CPU + OS | r5fss0-0 nortos
|
CPU + OS | r5fss0-0 nortos
|
||||||
^ | m4fss0-0 nortos
|
|
||||||
^ | r5fss0-0 freertos
|
^ | r5fss0-0 freertos
|
||||||
^ | m4fss0-0 freertos
|
|
||||||
Toolchain | ti-arm-clang
|
Toolchain | ti-arm-clang
|
||||||
Boards | @VAR_BOARD_NAME_LOWER, @VAR_LP_BOARD_NAME_LOWER
|
Boards | @VAR_BOARD_NAME_LOWER, @VAR_LP_BOARD_NAME_LOWER
|
||||||
Example folder | examples/dcl/dcl_pi
|
Example folder | examples/dcl/dcl_pi
|
||||||
|
|||||||
@ -187,12 +187,8 @@ const templates_freertos_m4f =
|
|||||||
const buildOptionCombos = [
|
const buildOptionCombos = [
|
||||||
{ device: device, cpu: "r5fss0-0", cgt: "ti-arm-clang", board: "am243x-evm", os: "nortos"},
|
{ device: device, cpu: "r5fss0-0", cgt: "ti-arm-clang", board: "am243x-evm", os: "nortos"},
|
||||||
{ device: device, cpu: "r5fss0-0", cgt: "ti-arm-clang", board: "am243x-evm", os: "freertos"},
|
{ device: device, cpu: "r5fss0-0", cgt: "ti-arm-clang", board: "am243x-evm", os: "freertos"},
|
||||||
{ device: device, cpu: "m4fss0-0", cgt: "ti-arm-clang", board: "am243x-evm", os: "nortos"},
|
|
||||||
{ device: device, cpu: "m4fss0-0", cgt: "ti-arm-clang", board: "am243x-evm", os: "freertos"},
|
|
||||||
{ device: device, cpu: "r5fss0-0", cgt: "ti-arm-clang", board: "am243x-lp", os: "nortos"},
|
{ device: device, cpu: "r5fss0-0", cgt: "ti-arm-clang", board: "am243x-lp", os: "nortos"},
|
||||||
{ device: device, cpu: "r5fss0-0", cgt: "ti-arm-clang", board: "am243x-lp", os: "freertos"},
|
{ device: device, cpu: "r5fss0-0", cgt: "ti-arm-clang", board: "am243x-lp", os: "freertos"},
|
||||||
{ device: device, cpu: "m4fss0-0", cgt: "ti-arm-clang", board: "am243x-lp", os: "nortos"},
|
|
||||||
{ device: device, cpu: "m4fss0-0", cgt: "ti-arm-clang", board: "am243x-lp", os: "freertos"},
|
|
||||||
];
|
];
|
||||||
|
|
||||||
function getComponentProperty() {
|
function getComponentProperty() {
|
||||||
|
|||||||
@ -1,57 +0,0 @@
|
|||||||
/**
|
|
||||||
* 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 "m4fss0-0" --product "MCU_PLUS_SDK@07.03.00"
|
|
||||||
* @versions {"data":"2021012919","timestamp":"2021012919","tool":"1.8.0+1785","templates":null}
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Import the modules used in this configuration.
|
|
||||||
*/
|
|
||||||
const addr_translate = scripting.addModule("/kernel/dpl/addr_translate", {}, false);
|
|
||||||
const addr_translate1 = addr_translate.addInstance();
|
|
||||||
const addr_translate2 = addr_translate.addInstance();
|
|
||||||
const addr_translate3 = addr_translate.addInstance();
|
|
||||||
const addr_translate4 = addr_translate.addInstance();
|
|
||||||
const clock = scripting.addModule("/kernel/dpl/clock");
|
|
||||||
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();
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Write custom configuration values to the imported modules.
|
|
||||||
*/
|
|
||||||
addr_translate1.$name = "CONFIG_ADDR_TRANSLATE_REGION0";
|
|
||||||
addr_translate1.localAddr = 0x80000000;
|
|
||||||
|
|
||||||
addr_translate2.$name = "CONFIG_ADDR_TRANSLATE_REGION1";
|
|
||||||
addr_translate2.systemAddr = 0x20000000;
|
|
||||||
addr_translate2.localAddr = 0xA0000000;
|
|
||||||
|
|
||||||
addr_translate3.$name = "CONFIG_ADDR_TRANSLATE_REGION2";
|
|
||||||
addr_translate3.systemAddr = 0x40000000;
|
|
||||||
addr_translate3.localAddr = 0xC0000000;
|
|
||||||
|
|
||||||
addr_translate4.$name = "CONFIG_ADDR_TRANSLATE_REGION3";
|
|
||||||
addr_translate4.systemAddr = 0x60000000;
|
|
||||||
addr_translate4.localAddr = 0x60000000;
|
|
||||||
|
|
||||||
debug_log.enableUartLog = true;
|
|
||||||
debug_log.uartLog.$name = "CONFIG_UART_CONSOLE";
|
|
||||||
debug_log.uartLog.MCU_UART.$assign = "MCU_USART0";
|
|
||||||
|
|
||||||
mpu_armv71.$name = "CONFIG_MPU_REGION0";
|
|
||||||
mpu_armv71.attributes = "Device";
|
|
||||||
mpu_armv71.allowExecute = false;
|
|
||||||
|
|
||||||
mpu_armv72.$name = "CONFIG_MPU_REGION1";
|
|
||||||
mpu_armv72.size = 18;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 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.
|
|
||||||
*/
|
|
||||||
debug_log.uartLog.MCU_UART.RXD.$suggestSolution = "MCU_UART0_RXD";
|
|
||||||
debug_log.uartLog.MCU_UART.TXD.$suggestSolution = "MCU_UART0_TXD";
|
|
||||||
@ -1,84 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright (C) 2018-2021 Texas Instruments Incorporated
|
|
||||||
*
|
|
||||||
* Redistribution and use in source and binary forms, with or without
|
|
||||||
* modification, are permitted provided that the following conditions
|
|
||||||
* are met:
|
|
||||||
*
|
|
||||||
* Redistributions of source code must retain the above copyright
|
|
||||||
* notice, this list of conditions and the following disclaimer.
|
|
||||||
*
|
|
||||||
* Redistributions in binary form must reproduce the above copyright
|
|
||||||
* notice, this list of conditions and the following disclaimer in the
|
|
||||||
* documentation and/or other materials provided with the
|
|
||||||
* distribution.
|
|
||||||
*
|
|
||||||
* Neither the name of Texas Instruments Incorporated nor the names of
|
|
||||||
* its contributors may be used to endorse or promote products derived
|
|
||||||
* from this software without specific prior written permission.
|
|
||||||
*
|
|
||||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
||||||
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
||||||
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
||||||
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
||||||
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
||||||
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
||||||
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
||||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
||||||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <kernel/dpl/DebugP.h>
|
|
||||||
#include "ti_drivers_config.h"
|
|
||||||
#include "ti_board_config.h"
|
|
||||||
#include "FreeRTOS.h"
|
|
||||||
#include "task.h"
|
|
||||||
|
|
||||||
#define MAIN_TASK_PRI (configMAX_PRIORITIES-1)
|
|
||||||
|
|
||||||
#define MAIN_TASK_SIZE (16384U/sizeof(configSTACK_DEPTH_TYPE))
|
|
||||||
StackType_t gMainTaskStack[MAIN_TASK_SIZE] __attribute__((aligned(32)));
|
|
||||||
|
|
||||||
StaticTask_t gMainTaskObj;
|
|
||||||
TaskHandle_t gMainTask;
|
|
||||||
|
|
||||||
void dcl_df22_main(void *args);
|
|
||||||
|
|
||||||
void freertos_main(void *args)
|
|
||||||
{
|
|
||||||
dcl_df22_main(NULL);
|
|
||||||
|
|
||||||
vTaskDelete(NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
int main(void)
|
|
||||||
{
|
|
||||||
/* init SOC specific modules */
|
|
||||||
System_init();
|
|
||||||
Board_init();
|
|
||||||
|
|
||||||
/* This task is created at highest priority, it should create more tasks and then delete itself */
|
|
||||||
gMainTask = xTaskCreateStatic( freertos_main, /* Pointer to the function that implements the task. */
|
|
||||||
"freertos_main", /* Text name for the task. This is to facilitate debugging only. */
|
|
||||||
MAIN_TASK_SIZE, /* Stack depth in units of StackType_t typically uint32_t on 32b CPUs */
|
|
||||||
NULL, /* We are not using the task parameter. */
|
|
||||||
MAIN_TASK_PRI, /* task priority, 0 is lowest priority, configMAX_PRIORITIES-1 is highest */
|
|
||||||
gMainTaskStack, /* pointer to stack base */
|
|
||||||
&gMainTaskObj ); /* pointer to statically allocated task object memory */
|
|
||||||
configASSERT(gMainTask != NULL);
|
|
||||||
|
|
||||||
/* Start the scheduler to start the tasks executing. */
|
|
||||||
vTaskStartScheduler();
|
|
||||||
|
|
||||||
/* The following line should never be reached because vTaskStartScheduler()
|
|
||||||
will only return if there was not enough FreeRTOS heap memory available to
|
|
||||||
create the Idle and (if configured) Timer tasks. Heap management, and
|
|
||||||
techniques for trapping heap exhaustion, are described in the book text. */
|
|
||||||
DebugP_assertNoLog(0);
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
@ -1,19 +0,0 @@
|
|||||||
/*
|
|
||||||
* This linker file is optional, it's complementary to the device/core linker file
|
|
||||||
* Here it specifies the dcl function & data mapping allocated by __attribute__((section(...)))
|
|
||||||
* and link to a specific memory region for the best performance
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Define core & platform specific variables */
|
|
||||||
#define FAST_RAM M4F_IRAM
|
|
||||||
#define REG_RAM M4F_IRAM /* M4F_DRAM also works */
|
|
||||||
|
|
||||||
SECTIONS
|
|
||||||
{
|
|
||||||
/* dcl functions mapped to on-chip fast ram */
|
|
||||||
dclfuncs : {} > FAST_RAM
|
|
||||||
|
|
||||||
/* optional -- map datas & variables to regular ram */
|
|
||||||
/* Sitara default linker should already map variables to ram */
|
|
||||||
dclDataSection : {} > REG_RAM
|
|
||||||
}
|
|
||||||
@ -1,115 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<projectSpec>
|
|
||||||
<applicability>
|
|
||||||
<when>
|
|
||||||
<context
|
|
||||||
deviceFamily="ARM"
|
|
||||||
deviceId="Cortex M.AM2434_ALV"
|
|
||||||
/>
|
|
||||||
</when>
|
|
||||||
</applicability>
|
|
||||||
|
|
||||||
<project
|
|
||||||
title="Dcl Df22"
|
|
||||||
name = "dcl_df22_am243x-evm_m4fss0-0_freertos_ti-arm-clang"
|
|
||||||
products="sysconfig;com.ti.MOTOR_CONTROL_SDK_AMXXX;"
|
|
||||||
configurations="
|
|
||||||
Debug,
|
|
||||||
Release,
|
|
||||||
"
|
|
||||||
connection="TIXDS110_Connection.xml"
|
|
||||||
toolChain="TICLANG"
|
|
||||||
cgtVersion="2.1.3"
|
|
||||||
device="Cortex M.AM2434_ALV"
|
|
||||||
deviceCore="Cortex_M4F_0"
|
|
||||||
ignoreDefaultDeviceSettings="true"
|
|
||||||
ignoreDefaultCCSSettings="true"
|
|
||||||
endianness="little"
|
|
||||||
outputFormat="ELF"
|
|
||||||
outputType="executable"
|
|
||||||
|
|
||||||
compilerBuildOptions="
|
|
||||||
-I${CG_TOOL_ROOT}/include/c
|
|
||||||
-I${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source
|
|
||||||
-I${MOTOR_CONTROL_SDK_PATH}/source
|
|
||||||
-I${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/FreeRTOS-Kernel/include
|
|
||||||
-I${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/portable/TI_ARM_CLANG/ARM_CM4F
|
|
||||||
-I${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/config/am243x/m4f
|
|
||||||
-I${MOTOR_CONTROL_SDK_PATH}/source/dcl
|
|
||||||
-mcpu=cortex-m4
|
|
||||||
-mfloat-abi=hard
|
|
||||||
-mthumb
|
|
||||||
-Wall
|
|
||||||
-Werror
|
|
||||||
-g
|
|
||||||
-Wno-gnu-variable-sized-type-not-at-end
|
|
||||||
-Wno-unused-function
|
|
||||||
-DSOC_AM243X
|
|
||||||
"
|
|
||||||
linkerBuildOptions="
|
|
||||||
-i${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/lib
|
|
||||||
-i${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/drivers/lib
|
|
||||||
-i${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/board/lib
|
|
||||||
-i${CG_TOOL_ROOT}/lib
|
|
||||||
-m=dcl_df22.${ConfigName}.map
|
|
||||||
--ram_model
|
|
||||||
--reread_libs
|
|
||||||
"
|
|
||||||
|
|
||||||
postBuildStep="$(MAKE) -C ${CCS_PROJECT_DIR} -f makefile_ccs_bootimage_gen OUTNAME=${BuildArtifactFileBaseName} PROFILE=${ConfigName} MOTOR_CONTROL_SDK_PATH=${MOTOR_CONTROL_SDK_PATH} CG_TOOL_ROOT=${CG_TOOL_ROOT} CCS_INSTALL_DIR=${CCS_INSTALL_DIR} CCS_IDE_MODE=${CCS_IDE_MODE} DEVICE=am243x"
|
|
||||||
|
|
||||||
enableSysConfigTool="true"
|
|
||||||
sysConfigBuildOptions="
|
|
||||||
--context m4fss0-0 --part ALV --package ALV
|
|
||||||
"
|
|
||||||
|
|
||||||
description="A Dcl Df22 FREERTOS project">
|
|
||||||
|
|
||||||
<configuration name="Debug"
|
|
||||||
compilerBuildOptions="
|
|
||||||
-D_DEBUG_=1
|
|
||||||
"
|
|
||||||
linkerBuildOptions="
|
|
||||||
-lfreertos.am243x.m4f.ti-arm-clang.debug.lib
|
|
||||||
-ldrivers.am243x.m4f.ti-arm-clang.debug.lib
|
|
||||||
-lboard.am243x.m4f.ti-arm-clang.debug.lib
|
|
||||||
-llibc.a
|
|
||||||
-llibsysbm.a
|
|
||||||
"
|
|
||||||
></configuration>
|
|
||||||
<configuration name="Release"
|
|
||||||
compilerBuildOptions="
|
|
||||||
-Os
|
|
||||||
"
|
|
||||||
linkerBuildOptions="
|
|
||||||
-lfreertos.am243x.m4f.ti-arm-clang.release.lib
|
|
||||||
-ldrivers.am243x.m4f.ti-arm-clang.release.lib
|
|
||||||
-lboard.am243x.m4f.ti-arm-clang.release.lib
|
|
||||||
-llibc.a
|
|
||||||
-llibsysbm.a
|
|
||||||
"
|
|
||||||
></configuration>
|
|
||||||
<pathVariable name="MOTOR_CONTROL_SDK_PATH" path="${COM_TI_MOTOR_CONTROL_SDK_AMXXX_INSTALL_DIR}" scope="project" />
|
|
||||||
<file path="../../../df22_test.c" openOnCreation="false" excludeFromBuild="false" action="copy">
|
|
||||||
</file>
|
|
||||||
<file path="../main.c" openOnCreation="false" excludeFromBuild="false" action="copy">
|
|
||||||
</file>
|
|
||||||
<file path="linker.cmd" openOnCreation="false" excludeFromBuild="false" action="copy">
|
|
||||||
</file>
|
|
||||||
<file path="dcl_linker_m4f_am243x_sitara.cmd" openOnCreation="false" excludeFromBuild="false" action="copy">
|
|
||||||
</file>
|
|
||||||
<file path="../example.syscfg" openOnCreation="false" excludeFromBuild="false" action="copy">
|
|
||||||
</file>
|
|
||||||
<file path="${MOTOR_CONTROL_SDK_PATH}/docs/api_guide_am243x/EXAMPLES_DCL_DF22.html"
|
|
||||||
openOnCreation="false" excludeFromBuild="false" targetName="README.html" action="link">
|
|
||||||
</file>
|
|
||||||
<file path="../../../df22_test.h" openOnCreation="false" excludeFromBuild="true" action="copy">
|
|
||||||
</file>
|
|
||||||
<file path="../../../data" openOnCreation="false" excludeFromBuild="true" action="copy">
|
|
||||||
</file>
|
|
||||||
<file path="syscfg_c.rov.xs" openOnCreation="false" excludeFromBuild="false" action="copy">
|
|
||||||
</file>
|
|
||||||
<file path="makefile_ccs_bootimage_gen" openOnCreation="false" excludeFromBuild="false" action="copy">
|
|
||||||
</file>
|
|
||||||
</project>
|
|
||||||
</projectSpec>
|
|
||||||
@ -1,62 +0,0 @@
|
|||||||
|
|
||||||
/* make sure below retain is there in your linker command file, it keeps the vector table in the final binary */
|
|
||||||
--retain="*(.vectors)"
|
|
||||||
/* This is the stack that is used by code running within main()
|
|
||||||
* In case of NORTOS,
|
|
||||||
* - This means all the code outside of ISR uses this stack
|
|
||||||
* In case of FreeRTOS
|
|
||||||
* - This means all the code until vTaskStartScheduler() is called in main()
|
|
||||||
* uses this stack.
|
|
||||||
* - After vTaskStartScheduler() each task created in FreeRTOS has its own stack
|
|
||||||
*/
|
|
||||||
--stack_size=16384
|
|
||||||
/* This is the heap size for malloc() API in NORTOS and FreeRTOS
|
|
||||||
* This is also the heap used by pvPortMalloc in FreeRTOS
|
|
||||||
*/
|
|
||||||
--heap_size=32768
|
|
||||||
|
|
||||||
|
|
||||||
SECTIONS
|
|
||||||
{
|
|
||||||
/* This has the M4F entry point and vector table, this MUST be at 0x0 */
|
|
||||||
.vectors:{} palign(8) > M4F_VECS
|
|
||||||
.text: {} palign(8) > M4F_IRAM /* This is where code resides */
|
|
||||||
|
|
||||||
.bss: {} palign(8) > M4F_DRAM /* This is where uninitialized globals go */
|
|
||||||
RUN_START(__BSS_START)
|
|
||||||
RUN_END(__BSS_END)
|
|
||||||
|
|
||||||
.data: {} palign(8) > M4F_DRAM /* This is where initialized globals and static go */
|
|
||||||
.rodata: {} palign(8) > M4F_DRAM /* This is where const's go */
|
|
||||||
.sysmem: {} palign(8) > M4F_IRAM /* This is where the malloc heap goes */
|
|
||||||
.stack: {} palign(8) > M4F_IRAM /* This is where the main() stack goes */
|
|
||||||
|
|
||||||
/* Sections needed for C++ projects */
|
|
||||||
.ARM.exidx: {} palign(8) > M4F_IRAM /* Needed for C++ exception handling */
|
|
||||||
.init_array: {} palign(8) > M4F_IRAM /* Contains function pointers called before main */
|
|
||||||
.fini_array: {} palign(8) > M4F_IRAM /* Contains function pointers called after main */
|
|
||||||
|
|
||||||
/* General purpose user shared memory */
|
|
||||||
.bss.user_shared_mem (NOLOAD) : {} > USER_SHM_MEM
|
|
||||||
/* this is used when Debug log's to shared memory are enabled, else this is not used */
|
|
||||||
.bss.log_shared_mem (NOLOAD) : {} > LOG_SHM_MEM
|
|
||||||
/* this is used only when IPC RPMessage is enabled, else this is not used */
|
|
||||||
.bss.ipc_vring_mem (NOLOAD) : {} > IPC_VRING_MEM
|
|
||||||
}
|
|
||||||
|
|
||||||
MEMORY
|
|
||||||
{
|
|
||||||
M4F_VECS : ORIGIN = 0x00000000 , LENGTH = 0x00000200
|
|
||||||
M4F_IRAM : ORIGIN = 0x00000200 , LENGTH = 0x0002FE00
|
|
||||||
M4F_DRAM : ORIGIN = 0x00030000 , LENGTH = 0x00010000
|
|
||||||
|
|
||||||
/* shared memories that are used by all cores */
|
|
||||||
/* On M4F,
|
|
||||||
* - By default MSMC RAM is not accessible to M4F, a RAT entry is needed to make it
|
|
||||||
* accessible on M4F
|
|
||||||
* - So make sure there is a RAT entry which has a 1:1 mapping from 0x70000000 to 0x70200000
|
|
||||||
*/
|
|
||||||
USER_SHM_MEM : ORIGIN = 0x701D0000, LENGTH = 0x180
|
|
||||||
LOG_SHM_MEM : ORIGIN = 0x701D0000 + 0x180, LENGTH = 0x00004000 - 0x180
|
|
||||||
IPC_VRING_MEM: ORIGIN = 0x701D4000, LENGTH = 0x0000C000
|
|
||||||
}
|
|
||||||
@ -1,303 +0,0 @@
|
|||||||
#
|
|
||||||
# Auto generated makefile
|
|
||||||
#
|
|
||||||
|
|
||||||
export MOTOR_CONTROL_SDK_PATH?=$(abspath ../../../../../..)
|
|
||||||
include $(MOTOR_CONTROL_SDK_PATH)/imports.mak
|
|
||||||
include $(MOTOR_CONTROL_SDK_PATH)/devconfig/devconfig.mak
|
|
||||||
|
|
||||||
CG_TOOL_ROOT=$(CGT_TI_ARM_CLANG_PATH)
|
|
||||||
|
|
||||||
CC=$(CG_TOOL_ROOT)/bin/tiarmclang
|
|
||||||
LNK=$(CG_TOOL_ROOT)/bin/tiarmclang
|
|
||||||
STRIP=$(CG_TOOL_ROOT)/bin/tiarmstrip
|
|
||||||
OBJCOPY=$(CG_TOOL_ROOT)/bin/tiarmobjcopy
|
|
||||||
ifeq ($(OS), Windows_NT)
|
|
||||||
PYTHON=python
|
|
||||||
else
|
|
||||||
PYTHON=python3
|
|
||||||
endif
|
|
||||||
|
|
||||||
PROFILE?=release
|
|
||||||
ConfigName:=$(PROFILE)
|
|
||||||
|
|
||||||
OUTNAME:=dcl_df22.$(PROFILE).out
|
|
||||||
|
|
||||||
BOOTIMAGE_PATH=$(abspath .)
|
|
||||||
BOOTIMAGE_NAME:=dcl_df22.$(PROFILE).appimage
|
|
||||||
BOOTIMAGE_NAME_XIP:=dcl_df22.$(PROFILE).appimage_xip
|
|
||||||
BOOTIMAGE_NAME_SIGNED:=dcl_df22.$(PROFILE).appimage.signed
|
|
||||||
BOOTIMAGE_RPRC_NAME:=dcl_df22.$(PROFILE).rprc
|
|
||||||
BOOTIMAGE_RPRC_NAME_XIP:=dcl_df22.$(PROFILE).rprc_xip
|
|
||||||
BOOTIMAGE_RPRC_NAME_TMP:=dcl_df22.$(PROFILE).rprc_tmp
|
|
||||||
BOOTIMAGE_NAME_HS:=dcl_df22.$(PROFILE).appimage.hs
|
|
||||||
BOOTIMAGE_NAME_HS_FS:=dcl_df22.$(PROFILE).appimage.hs_fs
|
|
||||||
TARGETS := $(BOOTIMAGE_NAME)
|
|
||||||
ifeq ($(DEVICE_TYPE), HS)
|
|
||||||
TARGETS += $(BOOTIMAGE_NAME_HS)
|
|
||||||
endif
|
|
||||||
|
|
||||||
FILES_common := \
|
|
||||||
df22_test.c \
|
|
||||||
main.c \
|
|
||||||
ti_drivers_config.c \
|
|
||||||
ti_drivers_open_close.c \
|
|
||||||
ti_board_config.c \
|
|
||||||
ti_board_open_close.c \
|
|
||||||
ti_dpl_config.c \
|
|
||||||
ti_pinmux_config.c \
|
|
||||||
ti_power_clock_config.c \
|
|
||||||
|
|
||||||
FILES_PATH_common = \
|
|
||||||
.. \
|
|
||||||
../../.. \
|
|
||||||
generated \
|
|
||||||
|
|
||||||
INCLUDES_common := \
|
|
||||||
-I${CG_TOOL_ROOT}/include/c \
|
|
||||||
-I${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source \
|
|
||||||
-I${MOTOR_CONTROL_SDK_PATH}/source \
|
|
||||||
-I${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/FreeRTOS-Kernel/include \
|
|
||||||
-I${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/portable/TI_ARM_CLANG/ARM_CM4F \
|
|
||||||
-I${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/config/am243x/m4f \
|
|
||||||
-I${MOTOR_CONTROL_SDK_PATH}/source/dcl \
|
|
||||||
-Igenerated \
|
|
||||||
|
|
||||||
DEFINES_common := \
|
|
||||||
-DSOC_AM243X \
|
|
||||||
|
|
||||||
CFLAGS_common := \
|
|
||||||
-mcpu=cortex-m4 \
|
|
||||||
-mfloat-abi=hard \
|
|
||||||
-mthumb \
|
|
||||||
-Wall \
|
|
||||||
-Werror \
|
|
||||||
-g \
|
|
||||||
-Wno-gnu-variable-sized-type-not-at-end \
|
|
||||||
-Wno-unused-function \
|
|
||||||
|
|
||||||
CFLAGS_cpp_common := \
|
|
||||||
-Wno-c99-designator \
|
|
||||||
-Wno-extern-c-compat \
|
|
||||||
-Wno-c++11-narrowing \
|
|
||||||
-Wno-reorder-init-list \
|
|
||||||
-Wno-deprecated-register \
|
|
||||||
-Wno-writable-strings \
|
|
||||||
-Wno-enum-compare \
|
|
||||||
-Wno-reserved-user-defined-literal \
|
|
||||||
-Wno-unused-const-variable \
|
|
||||||
-x c++ \
|
|
||||||
|
|
||||||
CFLAGS_debug := \
|
|
||||||
-D_DEBUG_=1 \
|
|
||||||
|
|
||||||
CFLAGS_release := \
|
|
||||||
-Os \
|
|
||||||
|
|
||||||
LNK_FILES_common = \
|
|
||||||
linker.cmd \
|
|
||||||
dcl_linker_m4f_am243x_sitara.cmd \
|
|
||||||
|
|
||||||
LIBS_PATH_common = \
|
|
||||||
-Wl,-i${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/lib \
|
|
||||||
-Wl,-i${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/drivers/lib \
|
|
||||||
-Wl,-i${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/board/lib \
|
|
||||||
-Wl,-i${CG_TOOL_ROOT}/lib \
|
|
||||||
|
|
||||||
LIBS_common = \
|
|
||||||
-lfreertos.am243x.m4f.ti-arm-clang.${ConfigName}.lib \
|
|
||||||
-ldrivers.am243x.m4f.ti-arm-clang.${ConfigName}.lib \
|
|
||||||
-lboard.am243x.m4f.ti-arm-clang.${ConfigName}.lib \
|
|
||||||
-llibc.a \
|
|
||||||
-llibsysbm.a \
|
|
||||||
|
|
||||||
LFLAGS_common = \
|
|
||||||
-Wl,--ram_model \
|
|
||||||
-Wl,--reread_libs \
|
|
||||||
|
|
||||||
|
|
||||||
LIBS_NAME = \
|
|
||||||
freertos.am243x.m4f.ti-arm-clang.${ConfigName}.lib \
|
|
||||||
drivers.am243x.m4f.ti-arm-clang.${ConfigName}.lib \
|
|
||||||
board.am243x.m4f.ti-arm-clang.${ConfigName}.lib \
|
|
||||||
libc.a \
|
|
||||||
libsysbm.a \
|
|
||||||
|
|
||||||
LIBS_PATH_NAME = \
|
|
||||||
${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/lib \
|
|
||||||
${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/drivers/lib \
|
|
||||||
${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/board/lib \
|
|
||||||
${CG_TOOL_ROOT}/lib \
|
|
||||||
|
|
||||||
FILES := $(FILES_common) $(FILES_$(PROFILE))
|
|
||||||
ASMFILES := $(ASMFILES_common) $(ASMFILES_$(PROFILE))
|
|
||||||
FILES_PATH := $(FILES_PATH_common) $(FILES_PATH_$(PROFILE))
|
|
||||||
CFLAGS := $(CFLAGS_common) $(CFLAGS_$(PROFILE))
|
|
||||||
DEFINES := $(DEFINES_common) $(DEFINES_$(PROFILE))
|
|
||||||
INCLUDES := $(INCLUDES_common) $(INCLUDE_$(PROFILE))
|
|
||||||
LIBS := $(LIBS_common) $(LIBS_$(PROFILE))
|
|
||||||
LIBS_PATH := $(LIBS_PATH_common) $(LIBS_PATH_$(PROFILE))
|
|
||||||
LFLAGS := $(LFLAGS_common) $(LFLAGS_$(PROFILE))
|
|
||||||
LNKOPTFLAGS := $(LNKOPTFLAGS_common) $(LNKOPTFLAGS_$(PROFILE))
|
|
||||||
LNK_FILES := $(LNK_FILES_common) $(LNK_FILES_$(PROFILE))
|
|
||||||
|
|
||||||
OBJDIR := obj/$(PROFILE)/
|
|
||||||
OBJS := $(FILES:%.c=%.obj)
|
|
||||||
OBJS += $(ASMFILES:%.S=%.obj)
|
|
||||||
DEPS := $(FILES:%.c=%.d)
|
|
||||||
|
|
||||||
vpath %.obj $(OBJDIR)
|
|
||||||
vpath %.c $(FILES_PATH)
|
|
||||||
vpath %.S $(FILES_PATH)
|
|
||||||
vpath %.lib $(LIBS_PATH_NAME)
|
|
||||||
vpath %.a $(LIBS_PATH_NAME)
|
|
||||||
|
|
||||||
$(OBJDIR)/%.obj %.obj: %.c
|
|
||||||
@echo Compiling: am243x:m4fss0-0:freertos:ti-arm-clang $(OUTNAME): $<
|
|
||||||
$(CC) -c $(CFLAGS) $(INCLUDES) $(DEFINES) -MMD -o $(OBJDIR)/$@ $<
|
|
||||||
|
|
||||||
$(OBJDIR)/%.obj %.obj: %.S
|
|
||||||
@echo Compiling: am243x:m4fss0-0:freertos:ti-arm-clang $(LIBNAME): $<
|
|
||||||
$(CC) -c $(CFLAGS) -o $(OBJDIR)/$@ $<
|
|
||||||
|
|
||||||
all: $(TARGETS)
|
|
||||||
|
|
||||||
SYSCFG_GEN_FILES=generated/ti_drivers_config.c generated/ti_drivers_config.h
|
|
||||||
SYSCFG_GEN_FILES+=generated/ti_drivers_open_close.c generated/ti_drivers_open_close.h
|
|
||||||
SYSCFG_GEN_FILES+=generated/ti_dpl_config.c generated/ti_dpl_config.h
|
|
||||||
SYSCFG_GEN_FILES+=generated/ti_pinmux_config.c generated/ti_power_clock_config.c
|
|
||||||
SYSCFG_GEN_FILES+=generated/ti_board_config.c generated/ti_board_config.h
|
|
||||||
SYSCFG_GEN_FILES+=generated/ti_board_open_close.c generated/ti_board_open_close.h
|
|
||||||
|
|
||||||
$(OUTNAME): syscfg $(SYSCFG_GEN_FILES) $(OBJS) $(LNK_FILES) $(LIBS_NAME)
|
|
||||||
@echo .
|
|
||||||
@echo Linking: am243x:m4fss0-0:freertos:ti-arm-clang $@ ...
|
|
||||||
$(LNK) $(LNKOPTFLAGS) $(LFLAGS) $(LIBS_PATH) -Wl,-m=$(basename $@).map -o $@ $(addprefix $(OBJDIR), $(OBJS)) $(LIBS) $(LNK_FILES)
|
|
||||||
@echo Linking: am243x:m4fss0-0:freertos:ti-arm-clang $@ Done !!!
|
|
||||||
@echo .
|
|
||||||
|
|
||||||
clean:
|
|
||||||
@echo Cleaning: am243x:m4fss0-0:freertos:ti-arm-clang $(OUTNAME) ...
|
|
||||||
$(RMDIR) $(OBJDIR)
|
|
||||||
$(RM) $(OUTNAME)
|
|
||||||
$(RM) $(BOOTIMAGE_NAME)
|
|
||||||
$(RM) $(BOOTIMAGE_NAME_XIP)
|
|
||||||
$(RM) $(BOOTIMAGE_NAME_SIGNED)
|
|
||||||
$(RM) $(BOOTIMAGE_NAME_HS)
|
|
||||||
$(RM) $(BOOTIMAGE_NAME_HS_FS)
|
|
||||||
$(RM) $(BOOTIMAGE_RPRC_NAME)
|
|
||||||
$(RM) $(BOOTIMAGE_RPRC_NAME_XIP)
|
|
||||||
$(RMDIR) generated/
|
|
||||||
|
|
||||||
scrub:
|
|
||||||
@echo Scrubing: am243x:m4fss0-0:freertos:ti-arm-clang dcl_df22 ...
|
|
||||||
$(RMDIR) obj
|
|
||||||
ifeq ($(OS),Windows_NT)
|
|
||||||
$(RM) \*.out
|
|
||||||
$(RM) \*.map
|
|
||||||
$(RM) \*.appimage*
|
|
||||||
$(RM) \*.rprc*
|
|
||||||
$(RM) \*.tiimage*
|
|
||||||
$(RM) \*.bin
|
|
||||||
else
|
|
||||||
$(RM) *.out
|
|
||||||
$(RM) *.map
|
|
||||||
$(RM) *.appimage*
|
|
||||||
$(RM) *.rprc*
|
|
||||||
$(RM) *.tiimage*
|
|
||||||
$(RM) *.bin
|
|
||||||
endif
|
|
||||||
$(RMDIR) generated
|
|
||||||
|
|
||||||
$(OBJS): | $(OBJDIR)
|
|
||||||
|
|
||||||
$(OBJDIR):
|
|
||||||
$(MKDIR) $@
|
|
||||||
|
|
||||||
|
|
||||||
.NOTPARALLEL:
|
|
||||||
|
|
||||||
.INTERMEDIATE: syscfg
|
|
||||||
$(SYSCFG_GEN_FILES): syscfg
|
|
||||||
|
|
||||||
syscfg: ../example.syscfg
|
|
||||||
@echo Generating SysConfig files ...
|
|
||||||
$(SYSCFG_NODE) $(SYSCFG_CLI_PATH)/dist/cli.js --product $(SYSCFG_SDKPRODUCT) --context m4fss0-0 --part ALV --package ALV --output generated/ ../example.syscfg
|
|
||||||
|
|
||||||
syscfg-gui:
|
|
||||||
$(SYSCFG_NWJS) $(SYSCFG_PATH) --product $(SYSCFG_SDKPRODUCT) --device AM243x_ALV_beta --context m4fss0-0 --part ALV --package ALV --output generated/ ../example.syscfg
|
|
||||||
|
|
||||||
#
|
|
||||||
# Generation of boot image which can be loaded by Secondary Boot Loader (SBL)
|
|
||||||
#
|
|
||||||
ifeq ($(OS),Windows_NT)
|
|
||||||
EXE_EXT=.exe
|
|
||||||
endif
|
|
||||||
ifeq ($(OS),Windows_NT)
|
|
||||||
BOOTIMAGE_CERT_GEN_CMD=powershell -executionpolicy unrestricted -command $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/signing/x509CertificateGen.ps1
|
|
||||||
else
|
|
||||||
BOOTIMAGE_CERT_GEN_CMD=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/signing/x509CertificateGen.sh
|
|
||||||
endif
|
|
||||||
BOOTIMAGE_TEMP_OUT_FILE=temp_stdout_$(PROFILE).txt
|
|
||||||
|
|
||||||
BOOTIMAGE_CERT_KEY=$(APP_SIGNING_KEY)
|
|
||||||
|
|
||||||
BOOTIMAGE_CORE_ID_r5fss0-0 = 4
|
|
||||||
BOOTIMAGE_CORE_ID_r5fss0-1 = 5
|
|
||||||
BOOTIMAGE_CORE_ID_r5fss1-0 = 6
|
|
||||||
BOOTIMAGE_CORE_ID_r5fss1-1 = 7
|
|
||||||
BOOTIMAGE_CORE_ID_m4fss0-0 = 14
|
|
||||||
SBL_RUN_ADDRESS=0x70000000
|
|
||||||
SBL_DEV_ID=55
|
|
||||||
|
|
||||||
MULTI_CORE_IMAGE_GEN = $(SYSCFG_NODE) $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/multicoreImageGen/multicoreImageGen.js
|
|
||||||
OUTRPRC_CMD = $(SYSCFG_NODE) $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/out2rprc/elf2rprc.js
|
|
||||||
APP_IMAGE_SIGN_CMD = $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/signing/appimage_x509_cert_gen.py
|
|
||||||
|
|
||||||
ifeq ($(OS),Windows_NT)
|
|
||||||
XIPGEN_CMD=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/xipGen/xipGen.exe
|
|
||||||
else
|
|
||||||
XIPGEN_CMD=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/xipGen/xipGen.out
|
|
||||||
endif
|
|
||||||
|
|
||||||
MULTI_CORE_IMAGE_PARAMS = \
|
|
||||||
$(BOOTIMAGE_RPRC_NAME)@$(BOOTIMAGE_CORE_ID_m4fss0-0) \
|
|
||||||
|
|
||||||
MULTI_CORE_IMAGE_PARAMS_XIP = \
|
|
||||||
$(BOOTIMAGE_RPRC_NAME_XIP)@$(BOOTIMAGE_CORE_ID_m4fss0-0) \
|
|
||||||
|
|
||||||
$(BOOTIMAGE_NAME): $(OUTNAME)
|
|
||||||
@echo Boot image: am243x:m4fss0-0:freertos:ti-arm-clang $(BOOTIMAGE_PATH)/$@ ...
|
|
||||||
ifneq ($(OS),Windows_NT)
|
|
||||||
$(CHMOD) a+x $(XIPGEN_CMD)
|
|
||||||
endif
|
|
||||||
$(OUTRPRC_CMD) $(OUTNAME) >> $(BOOTIMAGE_TEMP_OUT_FILE)
|
|
||||||
$(COPY) $(BOOTIMAGE_RPRC_NAME) $(BOOTIMAGE_RPRC_NAME_TMP)
|
|
||||||
$(RM) $(BOOTIMAGE_RPRC_NAME)
|
|
||||||
$(XIPGEN_CMD) -i $(BOOTIMAGE_RPRC_NAME_TMP) -o $(BOOTIMAGE_RPRC_NAME) -x $(BOOTIMAGE_RPRC_NAME_XIP) --flash-start-addr 0x60000000 -v > $(BOOTIMAGE_TEMP_OUT_FILE)
|
|
||||||
$(MULTI_CORE_IMAGE_GEN) --devID $(SBL_DEV_ID) --out $(BOOTIMAGE_NAME) $(MULTI_CORE_IMAGE_PARAMS) >> $(BOOTIMAGE_TEMP_OUT_FILE)
|
|
||||||
$(MULTI_CORE_IMAGE_GEN) --devID $(SBL_DEV_ID) --out $(BOOTIMAGE_NAME_XIP) $(MULTI_CORE_IMAGE_PARAMS_XIP) >> $(BOOTIMAGE_TEMP_OUT_FILE)
|
|
||||||
# Sign the appimage for HS-FS using appimage signing script
|
|
||||||
$(PYTHON) $(APP_IMAGE_SIGN_CMD) --bin $(BOOTIMAGE_NAME) --authtype 1 --key $(APP_SIGNING_KEY) --output $(BOOTIMAGE_NAME_HS_FS)
|
|
||||||
$(RM) $(BOOTIMAGE_RPRC_NAME_TMP)
|
|
||||||
$(RM) $(BOOTIMAGE_TEMP_OUT_FILE)
|
|
||||||
@echo Boot image: am243x:m4fss0-0:freertos:ti-arm-clang $(BOOTIMAGE_PATH)/$@ Done !!!
|
|
||||||
@echo .
|
|
||||||
@echo Boot image: am243x:m4fss0-0:freertos:ti-arm-clang $(BOOTIMAGE_PATH)/$(BOOTIMAGE_NAME_HS_FS) Done !!!
|
|
||||||
@echo .
|
|
||||||
|
|
||||||
$(BOOTIMAGE_NAME_HS): $(BOOTIMAGE_NAME)
|
|
||||||
ifeq ($(DEVICE_TYPE), HS)
|
|
||||||
# Sign the appimage using appimage signing script
|
|
||||||
ifeq ($(ENC_ENABLED),no)
|
|
||||||
@echo Boot image signing: Encryption is disabled.
|
|
||||||
$(PYTHON) $(APP_IMAGE_SIGN_CMD) --bin $(BOOTIMAGE_NAME) --authtype 1 --key $(APP_SIGNING_KEY) --output $(BOOTIMAGE_NAME_HS)
|
|
||||||
else
|
|
||||||
@echo Boot image signing: Encryption is enabled.
|
|
||||||
$(PYTHON) $(APP_IMAGE_SIGN_CMD) --bin $(BOOTIMAGE_NAME) --authtype 1 --key $(APP_SIGNING_KEY) --enc y --enckey $(APP_ENCRYPTION_KEY) --output $(BOOTIMAGE_NAME_HS)
|
|
||||||
$(RM) $(BOOTIMAGE_NAME)-enc
|
|
||||||
endif
|
|
||||||
@echo Boot image: am243x:m4fss0-0:freertos:ti-arm-clang $(BOOTIMAGE_PATH)/$(BOOTIMAGE_NAME_HS) Done !!!
|
|
||||||
@echo .
|
|
||||||
endif
|
|
||||||
-include $(addprefix $(OBJDIR)/, $(DEPS))
|
|
||||||
@ -1,106 +0,0 @@
|
|||||||
#
|
|
||||||
# Auto generated makefile
|
|
||||||
#
|
|
||||||
|
|
||||||
# Below variables need to be defined outside this file or via command line
|
|
||||||
# - MOTOR_CONTROL_SDK_PATH
|
|
||||||
# - PROFILE
|
|
||||||
# - CG_TOOL_ROOT
|
|
||||||
# - OUTNAME
|
|
||||||
# - CCS_INSTALL_DIR
|
|
||||||
# - CCS_IDE_MODE
|
|
||||||
|
|
||||||
CCS_PATH=$(CCS_INSTALL_DIR)
|
|
||||||
include ${MOTOR_CONTROL_SDK_PATH}/imports.mak
|
|
||||||
include ${MOTOR_CONTROL_SDK_PATH}/devconfig/devconfig.mak
|
|
||||||
|
|
||||||
STRIP=$(CG_TOOL_ROOT)/bin/tiarmstrip
|
|
||||||
OBJCOPY=$(CG_TOOL_ROOT)/bin/tiarmobjcopy
|
|
||||||
ifeq ($(OS), Windows_NT)
|
|
||||||
PYTHON=python
|
|
||||||
else
|
|
||||||
PYTHON=python3
|
|
||||||
endif
|
|
||||||
|
|
||||||
OUTFILE=$(PROFILE)/$(OUTNAME).out
|
|
||||||
BOOTIMAGE_PATH=$(abspath ${PROFILE})
|
|
||||||
BOOTIMAGE_NAME:=$(BOOTIMAGE_PATH)/$(OUTNAME).appimage
|
|
||||||
BOOTIMAGE_NAME_XIP:=$(BOOTIMAGE_PATH)/$(OUTNAME).appimage_xip
|
|
||||||
BOOTIMAGE_NAME_SIGNED:=$(BOOTIMAGE_PATH)/$(OUTNAME).appimage.signed
|
|
||||||
BOOTIMAGE_RPRC_NAME:=$(BOOTIMAGE_PATH)/$(OUTNAME).rprc
|
|
||||||
BOOTIMAGE_RPRC_NAME_XIP:=$(BOOTIMAGE_PATH)/$(OUTNAME).rprc_xip
|
|
||||||
BOOTIMAGE_RPRC_NAME_TMP:=$(BOOTIMAGE_PATH)/$(OUTNAME).rprc_tmp
|
|
||||||
|
|
||||||
#
|
|
||||||
# Generation of boot image which can be loaded by Secondary Boot Loader (SBL)
|
|
||||||
#
|
|
||||||
ifeq ($(OS),Windows_NT)
|
|
||||||
EXE_EXT=.exe
|
|
||||||
endif
|
|
||||||
ifeq ($(OS),Windows_NT)
|
|
||||||
BOOTIMAGE_CERT_GEN_CMD=powershell -executionpolicy unrestricted -command $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/signing/x509CertificateGen.ps1
|
|
||||||
else
|
|
||||||
BOOTIMAGE_CERT_GEN_CMD=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/signing/x509CertificateGen.sh
|
|
||||||
endif
|
|
||||||
BOOTIMAGE_TEMP_OUT_FILE=$(PROFILE)/temp_stdout_$(PROFILE).txt
|
|
||||||
|
|
||||||
BOOTIMAGE_CORE_ID_r5fss0-0 = 4
|
|
||||||
BOOTIMAGE_CORE_ID_r5fss0-1 = 5
|
|
||||||
BOOTIMAGE_CORE_ID_r5fss1-0 = 6
|
|
||||||
BOOTIMAGE_CORE_ID_r5fss1-1 = 7
|
|
||||||
BOOTIMAGE_CORE_ID_m4fss0-0 = 14
|
|
||||||
SBL_RUN_ADDRESS=0x70000000
|
|
||||||
SBL_DEV_ID=55
|
|
||||||
|
|
||||||
MULTI_CORE_IMAGE_GEN = $(CCS_NODE) $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/multicoreImageGen/multicoreImageGen.js
|
|
||||||
OUTRPRC_CMD = $(CCS_NODE) $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/out2rprc/elf2rprc.js
|
|
||||||
APP_IMAGE_SIGN_CMD = $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/signing/appimage_x509_cert_gen.py
|
|
||||||
|
|
||||||
ifeq ($(OS),Windows_NT)
|
|
||||||
XIPGEN_CMD=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/xipGen/xipGen.exe
|
|
||||||
else
|
|
||||||
XIPGEN_CMD=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/xipGen/xipGen.out
|
|
||||||
endif
|
|
||||||
|
|
||||||
MULTI_CORE_IMAGE_PARAMS = \
|
|
||||||
$(BOOTIMAGE_RPRC_NAME)@$(BOOTIMAGE_CORE_ID_m4fss0-0) \
|
|
||||||
|
|
||||||
MULTI_CORE_IMAGE_PARAMS_XIP = \
|
|
||||||
$(BOOTIMAGE_RPRC_NAME_XIP)@$(BOOTIMAGE_CORE_ID_m4fss0-0) \
|
|
||||||
|
|
||||||
all:
|
|
||||||
ifeq ($(CCS_IDE_MODE),cloud)
|
|
||||||
# No post build steps
|
|
||||||
else
|
|
||||||
@echo Boot image: am243x:m4fss0-0:freertos:ti-arm-clang $(BOOTIMAGE_NAME) ...
|
|
||||||
$(OUTRPRC_CMD) $(OUTFILE) >> $(BOOTIMAGE_TEMP_OUT_FILE)
|
|
||||||
$(COPY) $(OUTNAME).rprc $(BOOTIMAGE_RPRC_NAME)
|
|
||||||
$(COPY) $(BOOTIMAGE_RPRC_NAME) $(BOOTIMAGE_RPRC_NAME_TMP)
|
|
||||||
$(RM) $(BOOTIMAGE_RPRC_NAME)
|
|
||||||
$(XIPGEN_CMD) -i $(BOOTIMAGE_RPRC_NAME_TMP) -o $(BOOTIMAGE_RPRC_NAME) -x $(BOOTIMAGE_RPRC_NAME_XIP) --flash-start-addr 0x60000000 -v > $(BOOTIMAGE_TEMP_OUT_FILE)
|
|
||||||
$(MULTI_CORE_IMAGE_GEN) --devID $(SBL_DEV_ID) --out $(BOOTIMAGE_NAME) $(MULTI_CORE_IMAGE_PARAMS) >> $(BOOTIMAGE_TEMP_OUT_FILE)
|
|
||||||
$(MULTI_CORE_IMAGE_GEN) --devID $(SBL_DEV_ID) --out $(BOOTIMAGE_NAME_XIP) $(MULTI_CORE_IMAGE_PARAMS_XIP) >> $(BOOTIMAGE_TEMP_OUT_FILE)
|
|
||||||
# Sign the appimage for HS-FS using appimage signing script
|
|
||||||
$(PYTHON) $(APP_IMAGE_SIGN_CMD) --bin $(BOOTIMAGE_NAME) --authtype 1 --key $(APP_SIGNING_KEY) --output $(BOOTIMAGE_NAME).hs_fs
|
|
||||||
ifeq ($(DEVICE_TYPE),HS)
|
|
||||||
# Sign the appimage using appimage signing script
|
|
||||||
ifeq ($(ENC_ENABLED),no)
|
|
||||||
@echo Boot image signing: Encryption is disabled.
|
|
||||||
$(PYTHON) $(APP_IMAGE_SIGN_CMD) --bin $(BOOTIMAGE_NAME) --authtype 1 --key $(APP_SIGNING_KEY) --output $(BOOTIMAGE_NAME).hs
|
|
||||||
else
|
|
||||||
@echo Boot image signing: Encryption is enabled.
|
|
||||||
$(PYTHON) $(APP_IMAGE_SIGN_CMD) --bin $(BOOTIMAGE_NAME) --authtype 1 --key $(APP_SIGNING_KEY) --enc y --enckey $(APP_ENCRYPTION_KEY) --output $(BOOTIMAGE_NAME).hs
|
|
||||||
$(RM) $(BOOTIMAGE_NAME)-enc
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
$(RM) $(BOOTIMAGE_RPRC_NAME_TMP)
|
|
||||||
@echo Boot image: am243x:m4fss0-0:freertos:ti-arm-clang $(BOOTIMAGE_NAME) Done !!!
|
|
||||||
@echo .
|
|
||||||
ifeq ($(DEVICE_TYPE),HS)
|
|
||||||
@echo Boot image: am243x:m4fss0-0:freertos:ti-arm-clang $(BOOTIMAGE_NAME).hs Done !!!
|
|
||||||
@echo .
|
|
||||||
else
|
|
||||||
@echo Boot image: am243x:m4fss0-0:freertos:ti-arm-clang $(BOOTIMAGE_NAME).hs_fs Done !!!
|
|
||||||
@echo .
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
@ -1,20 +0,0 @@
|
|||||||
#
|
|
||||||
# Auto generated makefile
|
|
||||||
#
|
|
||||||
|
|
||||||
export MOTOR_CONTROL_SDK_PATH?=$(abspath ../../../../../..)
|
|
||||||
include $(MOTOR_CONTROL_SDK_PATH)/imports.mak
|
|
||||||
|
|
||||||
PROFILE?=Release
|
|
||||||
|
|
||||||
PROJECT_NAME=dcl_df22_am243x-evm_m4fss0-0_freertos_ti-arm-clang
|
|
||||||
|
|
||||||
all:
|
|
||||||
$(CCS_ECLIPSE) -noSplash -data $(MOTOR_CONTROL_SDK_PATH)/ccs_projects -application com.ti.ccstudio.apps.projectBuild -ccs.projects $(PROJECT_NAME) -ccs.configuration $(PROFILE)
|
|
||||||
|
|
||||||
clean:
|
|
||||||
$(CCS_ECLIPSE) -noSplash -data $(MOTOR_CONTROL_SDK_PATH)/ccs_projects -application com.ti.ccstudio.apps.projectBuild -ccs.projects $(PROJECT_NAME) -ccs.configuration $(PROFILE) -ccs.clean
|
|
||||||
|
|
||||||
export:
|
|
||||||
$(MKDIR) $(MOTOR_CONTROL_SDK_PATH)/ccs_projects
|
|
||||||
$(CCS_ECLIPSE) -noSplash -data $(MOTOR_CONTROL_SDK_PATH)/ccs_projects -application com.ti.ccstudio.apps.projectCreate -ccs.projectSpec example.projectspec -ccs.overwrite full
|
|
||||||
@ -1,8 +0,0 @@
|
|||||||
/*
|
|
||||||
* ======== syscfg_c.rov.xs ========
|
|
||||||
* This file contains the information needed by the Runtime Object
|
|
||||||
* View (ROV) tool.
|
|
||||||
*/
|
|
||||||
var crovFiles = [
|
|
||||||
"kernel/freertos/rov/FreeRTOS.rov.js",
|
|
||||||
];
|
|
||||||
@ -1,57 +0,0 @@
|
|||||||
/**
|
|
||||||
* 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 "m4fss0-0" --product "MCU_PLUS_SDK@07.03.00"
|
|
||||||
* @versions {"data":"2021012919","timestamp":"2021012919","tool":"1.8.0+1785","templates":null}
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Import the modules used in this configuration.
|
|
||||||
*/
|
|
||||||
const addr_translate = scripting.addModule("/kernel/dpl/addr_translate", {}, false);
|
|
||||||
const addr_translate1 = addr_translate.addInstance();
|
|
||||||
const addr_translate2 = addr_translate.addInstance();
|
|
||||||
const addr_translate3 = addr_translate.addInstance();
|
|
||||||
const addr_translate4 = addr_translate.addInstance();
|
|
||||||
const clock = scripting.addModule("/kernel/dpl/clock");
|
|
||||||
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();
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Write custom configuration values to the imported modules.
|
|
||||||
*/
|
|
||||||
addr_translate1.$name = "CONFIG_ADDR_TRANSLATE_REGION0";
|
|
||||||
addr_translate1.localAddr = 0x80000000;
|
|
||||||
|
|
||||||
addr_translate2.$name = "CONFIG_ADDR_TRANSLATE_REGION1";
|
|
||||||
addr_translate2.systemAddr = 0x20000000;
|
|
||||||
addr_translate2.localAddr = 0xA0000000;
|
|
||||||
|
|
||||||
addr_translate3.$name = "CONFIG_ADDR_TRANSLATE_REGION2";
|
|
||||||
addr_translate3.systemAddr = 0x40000000;
|
|
||||||
addr_translate3.localAddr = 0xC0000000;
|
|
||||||
|
|
||||||
addr_translate4.$name = "CONFIG_ADDR_TRANSLATE_REGION3";
|
|
||||||
addr_translate4.systemAddr = 0x60000000;
|
|
||||||
addr_translate4.localAddr = 0x60000000;
|
|
||||||
|
|
||||||
debug_log.enableUartLog = true;
|
|
||||||
debug_log.uartLog.$name = "CONFIG_UART_CONSOLE";
|
|
||||||
debug_log.uartLog.MCU_UART.$assign = "MCU_USART0";
|
|
||||||
|
|
||||||
mpu_armv71.$name = "CONFIG_MPU_REGION0";
|
|
||||||
mpu_armv71.attributes = "Device";
|
|
||||||
mpu_armv71.allowExecute = false;
|
|
||||||
|
|
||||||
mpu_armv72.$name = "CONFIG_MPU_REGION1";
|
|
||||||
mpu_armv72.size = 18;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 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.
|
|
||||||
*/
|
|
||||||
debug_log.uartLog.MCU_UART.RXD.$suggestSolution = "MCU_UART0_RXD";
|
|
||||||
debug_log.uartLog.MCU_UART.TXD.$suggestSolution = "MCU_UART0_TXD";
|
|
||||||
@ -1,50 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright (C) 2018-2021 Texas Instruments Incorporated
|
|
||||||
*
|
|
||||||
* Redistribution and use in source and binary forms, with or without
|
|
||||||
* modification, are permitted provided that the following conditions
|
|
||||||
* are met:
|
|
||||||
*
|
|
||||||
* Redistributions of source code must retain the above copyright
|
|
||||||
* notice, this list of conditions and the following disclaimer.
|
|
||||||
*
|
|
||||||
* Redistributions in binary form must reproduce the above copyright
|
|
||||||
* notice, this list of conditions and the following disclaimer in the
|
|
||||||
* documentation and/or other materials provided with the
|
|
||||||
* distribution.
|
|
||||||
*
|
|
||||||
* Neither the name of Texas Instruments Incorporated nor the names of
|
|
||||||
* its contributors may be used to endorse or promote products derived
|
|
||||||
* from this software without specific prior written permission.
|
|
||||||
*
|
|
||||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
||||||
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
||||||
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
||||||
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
||||||
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
||||||
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
||||||
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
||||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
||||||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include "ti_drivers_config.h"
|
|
||||||
#include "ti_board_config.h"
|
|
||||||
|
|
||||||
void dcl_df22_main(void *args);
|
|
||||||
|
|
||||||
int main(void)
|
|
||||||
{
|
|
||||||
System_init();
|
|
||||||
Board_init();
|
|
||||||
|
|
||||||
dcl_df22_main(NULL);
|
|
||||||
|
|
||||||
Board_deinit();
|
|
||||||
System_deinit();
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
@ -1,19 +0,0 @@
|
|||||||
/*
|
|
||||||
* This linker file is optional, it's complementary to the device/core linker file
|
|
||||||
* Here it specifies the dcl function & data mapping allocated by __attribute__((section(...)))
|
|
||||||
* and link to a specific memory region for the best performance
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Define core & platform specific variables */
|
|
||||||
#define FAST_RAM M4F_IRAM
|
|
||||||
#define REG_RAM M4F_IRAM /* M4F_DRAM also works */
|
|
||||||
|
|
||||||
SECTIONS
|
|
||||||
{
|
|
||||||
/* dcl functions mapped to on-chip fast ram */
|
|
||||||
dclfuncs : {} > FAST_RAM
|
|
||||||
|
|
||||||
/* optional -- map datas & variables to regular ram */
|
|
||||||
/* Sitara default linker should already map variables to ram */
|
|
||||||
dclDataSection : {} > REG_RAM
|
|
||||||
}
|
|
||||||
@ -1,112 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<projectSpec>
|
|
||||||
<applicability>
|
|
||||||
<when>
|
|
||||||
<context
|
|
||||||
deviceFamily="ARM"
|
|
||||||
deviceId="Cortex M.AM2434_ALV"
|
|
||||||
/>
|
|
||||||
</when>
|
|
||||||
</applicability>
|
|
||||||
|
|
||||||
<project
|
|
||||||
title="Dcl Df22"
|
|
||||||
name = "dcl_df22_am243x-evm_m4fss0-0_nortos_ti-arm-clang"
|
|
||||||
products="sysconfig;com.ti.MOTOR_CONTROL_SDK_AMXXX;"
|
|
||||||
configurations="
|
|
||||||
Debug,
|
|
||||||
Release,
|
|
||||||
"
|
|
||||||
connection="TIXDS110_Connection.xml"
|
|
||||||
toolChain="TICLANG"
|
|
||||||
cgtVersion="2.1.3"
|
|
||||||
device="Cortex M.AM2434_ALV"
|
|
||||||
deviceCore="Cortex_M4F_0"
|
|
||||||
ignoreDefaultDeviceSettings="true"
|
|
||||||
ignoreDefaultCCSSettings="true"
|
|
||||||
endianness="little"
|
|
||||||
outputFormat="ELF"
|
|
||||||
outputType="executable"
|
|
||||||
|
|
||||||
compilerBuildOptions="
|
|
||||||
-I${CG_TOOL_ROOT}/include/c
|
|
||||||
-I${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source
|
|
||||||
-I${MOTOR_CONTROL_SDK_PATH}/source
|
|
||||||
-I${MOTOR_CONTROL_SDK_PATH}/source/dcl
|
|
||||||
-mcpu=cortex-m4
|
|
||||||
-mfloat-abi=hard
|
|
||||||
-mthumb
|
|
||||||
-Wall
|
|
||||||
-Werror
|
|
||||||
-g
|
|
||||||
-Wno-gnu-variable-sized-type-not-at-end
|
|
||||||
-Wno-unused-function
|
|
||||||
-DSOC_AM243X
|
|
||||||
"
|
|
||||||
linkerBuildOptions="
|
|
||||||
-i${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/nortos/lib
|
|
||||||
-i${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/drivers/lib
|
|
||||||
-i${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/board/lib
|
|
||||||
-i${CG_TOOL_ROOT}/lib
|
|
||||||
-m=dcl_df22.${ConfigName}.map
|
|
||||||
--ram_model
|
|
||||||
--reread_libs
|
|
||||||
"
|
|
||||||
|
|
||||||
postBuildStep="$(MAKE) -C ${CCS_PROJECT_DIR} -f makefile_ccs_bootimage_gen OUTNAME=${BuildArtifactFileBaseName} PROFILE=${ConfigName} MOTOR_CONTROL_SDK_PATH=${MOTOR_CONTROL_SDK_PATH} CG_TOOL_ROOT=${CG_TOOL_ROOT} CCS_INSTALL_DIR=${CCS_INSTALL_DIR} CCS_IDE_MODE=${CCS_IDE_MODE} DEVICE=am243x"
|
|
||||||
|
|
||||||
enableSysConfigTool="true"
|
|
||||||
sysConfigBuildOptions="
|
|
||||||
--context m4fss0-0 --part ALV --package ALV
|
|
||||||
"
|
|
||||||
|
|
||||||
description="A Dcl Df22 NORTOS project">
|
|
||||||
|
|
||||||
<configuration name="Debug"
|
|
||||||
compilerBuildOptions="
|
|
||||||
-D_DEBUG_=1
|
|
||||||
"
|
|
||||||
linkerBuildOptions="
|
|
||||||
-lnortos.am243x.m4f.ti-arm-clang.debug.lib
|
|
||||||
-ldrivers.am243x.m4f.ti-arm-clang.debug.lib
|
|
||||||
-lboard.am243x.m4f.ti-arm-clang.debug.lib
|
|
||||||
-llibc.a
|
|
||||||
-llibsysbm.a
|
|
||||||
"
|
|
||||||
></configuration>
|
|
||||||
<configuration name="Release"
|
|
||||||
compilerBuildOptions="
|
|
||||||
-Os
|
|
||||||
"
|
|
||||||
linkerBuildOptions="
|
|
||||||
-lnortos.am243x.m4f.ti-arm-clang.release.lib
|
|
||||||
-ldrivers.am243x.m4f.ti-arm-clang.release.lib
|
|
||||||
-lboard.am243x.m4f.ti-arm-clang.release.lib
|
|
||||||
-llibc.a
|
|
||||||
-llibsysbm.a
|
|
||||||
"
|
|
||||||
></configuration>
|
|
||||||
<pathVariable name="MOTOR_CONTROL_SDK_PATH" path="${COM_TI_MOTOR_CONTROL_SDK_AMXXX_INSTALL_DIR}" scope="project" />
|
|
||||||
<file path="../../../df22_test.c" openOnCreation="false" excludeFromBuild="false" action="copy">
|
|
||||||
</file>
|
|
||||||
<file path="../main.c" openOnCreation="false" excludeFromBuild="false" action="copy">
|
|
||||||
</file>
|
|
||||||
<file path="linker.cmd" openOnCreation="false" excludeFromBuild="false" action="copy">
|
|
||||||
</file>
|
|
||||||
<file path="dcl_linker_m4f_am243x_sitara.cmd" openOnCreation="false" excludeFromBuild="false" action="copy">
|
|
||||||
</file>
|
|
||||||
<file path="../example.syscfg" openOnCreation="false" excludeFromBuild="false" action="copy">
|
|
||||||
</file>
|
|
||||||
<file path="${MOTOR_CONTROL_SDK_PATH}/docs/api_guide_am243x/EXAMPLES_DCL_DF22.html"
|
|
||||||
openOnCreation="false" excludeFromBuild="false" targetName="README.html" action="link">
|
|
||||||
</file>
|
|
||||||
<file path="../../../df22_test.h" openOnCreation="false" excludeFromBuild="true" action="copy">
|
|
||||||
</file>
|
|
||||||
<file path="../../../data" openOnCreation="false" excludeFromBuild="true" action="copy">
|
|
||||||
</file>
|
|
||||||
<file path="syscfg_c.rov.xs" openOnCreation="false" excludeFromBuild="false" action="copy">
|
|
||||||
</file>
|
|
||||||
<file path="makefile_ccs_bootimage_gen" openOnCreation="false" excludeFromBuild="false" action="copy">
|
|
||||||
</file>
|
|
||||||
</project>
|
|
||||||
</projectSpec>
|
|
||||||
@ -1,62 +0,0 @@
|
|||||||
|
|
||||||
/* make sure below retain is there in your linker command file, it keeps the vector table in the final binary */
|
|
||||||
--retain="*(.vectors)"
|
|
||||||
/* This is the stack that is used by code running within main()
|
|
||||||
* In case of NORTOS,
|
|
||||||
* - This means all the code outside of ISR uses this stack
|
|
||||||
* In case of FreeRTOS
|
|
||||||
* - This means all the code until vTaskStartScheduler() is called in main()
|
|
||||||
* uses this stack.
|
|
||||||
* - After vTaskStartScheduler() each task created in FreeRTOS has its own stack
|
|
||||||
*/
|
|
||||||
--stack_size=16384
|
|
||||||
/* This is the heap size for malloc() API in NORTOS and FreeRTOS
|
|
||||||
* This is also the heap used by pvPortMalloc in FreeRTOS
|
|
||||||
*/
|
|
||||||
--heap_size=32768
|
|
||||||
|
|
||||||
|
|
||||||
SECTIONS
|
|
||||||
{
|
|
||||||
/* This has the M4F entry point and vector table, this MUST be at 0x0 */
|
|
||||||
.vectors:{} palign(8) > M4F_VECS
|
|
||||||
.text: {} palign(8) > M4F_IRAM /* This is where code resides */
|
|
||||||
|
|
||||||
.bss: {} palign(8) > M4F_DRAM /* This is where uninitialized globals go */
|
|
||||||
RUN_START(__BSS_START)
|
|
||||||
RUN_END(__BSS_END)
|
|
||||||
|
|
||||||
.data: {} palign(8) > M4F_DRAM /* This is where initialized globals and static go */
|
|
||||||
.rodata: {} palign(8) > M4F_DRAM /* This is where const's go */
|
|
||||||
.sysmem: {} palign(8) > M4F_IRAM /* This is where the malloc heap goes */
|
|
||||||
.stack: {} palign(8) > M4F_IRAM /* This is where the main() stack goes */
|
|
||||||
|
|
||||||
/* Sections needed for C++ projects */
|
|
||||||
.ARM.exidx: {} palign(8) > M4F_IRAM /* Needed for C++ exception handling */
|
|
||||||
.init_array: {} palign(8) > M4F_IRAM /* Contains function pointers called before main */
|
|
||||||
.fini_array: {} palign(8) > M4F_IRAM /* Contains function pointers called after main */
|
|
||||||
|
|
||||||
/* General purpose user shared memory */
|
|
||||||
.bss.user_shared_mem (NOLOAD) : {} > USER_SHM_MEM
|
|
||||||
/* this is used when Debug log's to shared memory are enabled, else this is not used */
|
|
||||||
.bss.log_shared_mem (NOLOAD) : {} > LOG_SHM_MEM
|
|
||||||
/* this is used only when IPC RPMessage is enabled, else this is not used */
|
|
||||||
.bss.ipc_vring_mem (NOLOAD) : {} > IPC_VRING_MEM
|
|
||||||
}
|
|
||||||
|
|
||||||
MEMORY
|
|
||||||
{
|
|
||||||
M4F_VECS : ORIGIN = 0x00000000 , LENGTH = 0x00000200
|
|
||||||
M4F_IRAM : ORIGIN = 0x00000200 , LENGTH = 0x0002FE00
|
|
||||||
M4F_DRAM : ORIGIN = 0x00030000 , LENGTH = 0x00010000
|
|
||||||
|
|
||||||
/* shared memories that are used by all cores */
|
|
||||||
/* On M4F,
|
|
||||||
* - By default MSMC RAM is not accessible to M4F, a RAT entry is needed to make it
|
|
||||||
* accessible on M4F
|
|
||||||
* - So make sure there is a RAT entry which has a 1:1 mapping from 0x70000000 to 0x70200000
|
|
||||||
*/
|
|
||||||
USER_SHM_MEM : ORIGIN = 0x701D0000, LENGTH = 0x180
|
|
||||||
LOG_SHM_MEM : ORIGIN = 0x701D0000 + 0x180, LENGTH = 0x00004000 - 0x180
|
|
||||||
IPC_VRING_MEM: ORIGIN = 0x701D4000, LENGTH = 0x0000C000
|
|
||||||
}
|
|
||||||
@ -1,300 +0,0 @@
|
|||||||
#
|
|
||||||
# Auto generated makefile
|
|
||||||
#
|
|
||||||
|
|
||||||
export MOTOR_CONTROL_SDK_PATH?=$(abspath ../../../../../..)
|
|
||||||
include $(MOTOR_CONTROL_SDK_PATH)/imports.mak
|
|
||||||
include $(MOTOR_CONTROL_SDK_PATH)/devconfig/devconfig.mak
|
|
||||||
|
|
||||||
CG_TOOL_ROOT=$(CGT_TI_ARM_CLANG_PATH)
|
|
||||||
|
|
||||||
CC=$(CG_TOOL_ROOT)/bin/tiarmclang
|
|
||||||
LNK=$(CG_TOOL_ROOT)/bin/tiarmclang
|
|
||||||
STRIP=$(CG_TOOL_ROOT)/bin/tiarmstrip
|
|
||||||
OBJCOPY=$(CG_TOOL_ROOT)/bin/tiarmobjcopy
|
|
||||||
ifeq ($(OS), Windows_NT)
|
|
||||||
PYTHON=python
|
|
||||||
else
|
|
||||||
PYTHON=python3
|
|
||||||
endif
|
|
||||||
|
|
||||||
PROFILE?=release
|
|
||||||
ConfigName:=$(PROFILE)
|
|
||||||
|
|
||||||
OUTNAME:=dcl_df22.$(PROFILE).out
|
|
||||||
|
|
||||||
BOOTIMAGE_PATH=$(abspath .)
|
|
||||||
BOOTIMAGE_NAME:=dcl_df22.$(PROFILE).appimage
|
|
||||||
BOOTIMAGE_NAME_XIP:=dcl_df22.$(PROFILE).appimage_xip
|
|
||||||
BOOTIMAGE_NAME_SIGNED:=dcl_df22.$(PROFILE).appimage.signed
|
|
||||||
BOOTIMAGE_RPRC_NAME:=dcl_df22.$(PROFILE).rprc
|
|
||||||
BOOTIMAGE_RPRC_NAME_XIP:=dcl_df22.$(PROFILE).rprc_xip
|
|
||||||
BOOTIMAGE_RPRC_NAME_TMP:=dcl_df22.$(PROFILE).rprc_tmp
|
|
||||||
BOOTIMAGE_NAME_HS:=dcl_df22.$(PROFILE).appimage.hs
|
|
||||||
BOOTIMAGE_NAME_HS_FS:=dcl_df22.$(PROFILE).appimage.hs_fs
|
|
||||||
TARGETS := $(BOOTIMAGE_NAME)
|
|
||||||
ifeq ($(DEVICE_TYPE), HS)
|
|
||||||
TARGETS += $(BOOTIMAGE_NAME_HS)
|
|
||||||
endif
|
|
||||||
|
|
||||||
FILES_common := \
|
|
||||||
df22_test.c \
|
|
||||||
main.c \
|
|
||||||
ti_drivers_config.c \
|
|
||||||
ti_drivers_open_close.c \
|
|
||||||
ti_board_config.c \
|
|
||||||
ti_board_open_close.c \
|
|
||||||
ti_dpl_config.c \
|
|
||||||
ti_pinmux_config.c \
|
|
||||||
ti_power_clock_config.c \
|
|
||||||
|
|
||||||
FILES_PATH_common = \
|
|
||||||
.. \
|
|
||||||
../../.. \
|
|
||||||
generated \
|
|
||||||
|
|
||||||
INCLUDES_common := \
|
|
||||||
-I${CG_TOOL_ROOT}/include/c \
|
|
||||||
-I${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source \
|
|
||||||
-I${MOTOR_CONTROL_SDK_PATH}/source \
|
|
||||||
-I${MOTOR_CONTROL_SDK_PATH}/source/dcl \
|
|
||||||
-Igenerated \
|
|
||||||
|
|
||||||
DEFINES_common := \
|
|
||||||
-DSOC_AM243X \
|
|
||||||
|
|
||||||
CFLAGS_common := \
|
|
||||||
-mcpu=cortex-m4 \
|
|
||||||
-mfloat-abi=hard \
|
|
||||||
-mthumb \
|
|
||||||
-Wall \
|
|
||||||
-Werror \
|
|
||||||
-g \
|
|
||||||
-Wno-gnu-variable-sized-type-not-at-end \
|
|
||||||
-Wno-unused-function \
|
|
||||||
|
|
||||||
CFLAGS_cpp_common := \
|
|
||||||
-Wno-c99-designator \
|
|
||||||
-Wno-extern-c-compat \
|
|
||||||
-Wno-c++11-narrowing \
|
|
||||||
-Wno-reorder-init-list \
|
|
||||||
-Wno-deprecated-register \
|
|
||||||
-Wno-writable-strings \
|
|
||||||
-Wno-enum-compare \
|
|
||||||
-Wno-reserved-user-defined-literal \
|
|
||||||
-Wno-unused-const-variable \
|
|
||||||
-x c++ \
|
|
||||||
|
|
||||||
CFLAGS_debug := \
|
|
||||||
-D_DEBUG_=1 \
|
|
||||||
|
|
||||||
CFLAGS_release := \
|
|
||||||
-Os \
|
|
||||||
|
|
||||||
LNK_FILES_common = \
|
|
||||||
linker.cmd \
|
|
||||||
dcl_linker_m4f_am243x_sitara.cmd \
|
|
||||||
|
|
||||||
LIBS_PATH_common = \
|
|
||||||
-Wl,-i${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/nortos/lib \
|
|
||||||
-Wl,-i${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/drivers/lib \
|
|
||||||
-Wl,-i${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/board/lib \
|
|
||||||
-Wl,-i${CG_TOOL_ROOT}/lib \
|
|
||||||
|
|
||||||
LIBS_common = \
|
|
||||||
-lnortos.am243x.m4f.ti-arm-clang.${ConfigName}.lib \
|
|
||||||
-ldrivers.am243x.m4f.ti-arm-clang.${ConfigName}.lib \
|
|
||||||
-lboard.am243x.m4f.ti-arm-clang.${ConfigName}.lib \
|
|
||||||
-llibc.a \
|
|
||||||
-llibsysbm.a \
|
|
||||||
|
|
||||||
LFLAGS_common = \
|
|
||||||
-Wl,--ram_model \
|
|
||||||
-Wl,--reread_libs \
|
|
||||||
|
|
||||||
|
|
||||||
LIBS_NAME = \
|
|
||||||
nortos.am243x.m4f.ti-arm-clang.${ConfigName}.lib \
|
|
||||||
drivers.am243x.m4f.ti-arm-clang.${ConfigName}.lib \
|
|
||||||
board.am243x.m4f.ti-arm-clang.${ConfigName}.lib \
|
|
||||||
libc.a \
|
|
||||||
libsysbm.a \
|
|
||||||
|
|
||||||
LIBS_PATH_NAME = \
|
|
||||||
${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/nortos/lib \
|
|
||||||
${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/drivers/lib \
|
|
||||||
${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/board/lib \
|
|
||||||
${CG_TOOL_ROOT}/lib \
|
|
||||||
|
|
||||||
FILES := $(FILES_common) $(FILES_$(PROFILE))
|
|
||||||
ASMFILES := $(ASMFILES_common) $(ASMFILES_$(PROFILE))
|
|
||||||
FILES_PATH := $(FILES_PATH_common) $(FILES_PATH_$(PROFILE))
|
|
||||||
CFLAGS := $(CFLAGS_common) $(CFLAGS_$(PROFILE))
|
|
||||||
DEFINES := $(DEFINES_common) $(DEFINES_$(PROFILE))
|
|
||||||
INCLUDES := $(INCLUDES_common) $(INCLUDE_$(PROFILE))
|
|
||||||
LIBS := $(LIBS_common) $(LIBS_$(PROFILE))
|
|
||||||
LIBS_PATH := $(LIBS_PATH_common) $(LIBS_PATH_$(PROFILE))
|
|
||||||
LFLAGS := $(LFLAGS_common) $(LFLAGS_$(PROFILE))
|
|
||||||
LNKOPTFLAGS := $(LNKOPTFLAGS_common) $(LNKOPTFLAGS_$(PROFILE))
|
|
||||||
LNK_FILES := $(LNK_FILES_common) $(LNK_FILES_$(PROFILE))
|
|
||||||
|
|
||||||
OBJDIR := obj/$(PROFILE)/
|
|
||||||
OBJS := $(FILES:%.c=%.obj)
|
|
||||||
OBJS += $(ASMFILES:%.S=%.obj)
|
|
||||||
DEPS := $(FILES:%.c=%.d)
|
|
||||||
|
|
||||||
vpath %.obj $(OBJDIR)
|
|
||||||
vpath %.c $(FILES_PATH)
|
|
||||||
vpath %.S $(FILES_PATH)
|
|
||||||
vpath %.lib $(LIBS_PATH_NAME)
|
|
||||||
vpath %.a $(LIBS_PATH_NAME)
|
|
||||||
|
|
||||||
$(OBJDIR)/%.obj %.obj: %.c
|
|
||||||
@echo Compiling: am243x:m4fss0-0:nortos:ti-arm-clang $(OUTNAME): $<
|
|
||||||
$(CC) -c $(CFLAGS) $(INCLUDES) $(DEFINES) -MMD -o $(OBJDIR)/$@ $<
|
|
||||||
|
|
||||||
$(OBJDIR)/%.obj %.obj: %.S
|
|
||||||
@echo Compiling: am243x:m4fss0-0:nortos:ti-arm-clang $(LIBNAME): $<
|
|
||||||
$(CC) -c $(CFLAGS) -o $(OBJDIR)/$@ $<
|
|
||||||
|
|
||||||
all: $(TARGETS)
|
|
||||||
|
|
||||||
SYSCFG_GEN_FILES=generated/ti_drivers_config.c generated/ti_drivers_config.h
|
|
||||||
SYSCFG_GEN_FILES+=generated/ti_drivers_open_close.c generated/ti_drivers_open_close.h
|
|
||||||
SYSCFG_GEN_FILES+=generated/ti_dpl_config.c generated/ti_dpl_config.h
|
|
||||||
SYSCFG_GEN_FILES+=generated/ti_pinmux_config.c generated/ti_power_clock_config.c
|
|
||||||
SYSCFG_GEN_FILES+=generated/ti_board_config.c generated/ti_board_config.h
|
|
||||||
SYSCFG_GEN_FILES+=generated/ti_board_open_close.c generated/ti_board_open_close.h
|
|
||||||
|
|
||||||
$(OUTNAME): syscfg $(SYSCFG_GEN_FILES) $(OBJS) $(LNK_FILES) $(LIBS_NAME)
|
|
||||||
@echo .
|
|
||||||
@echo Linking: am243x:m4fss0-0:nortos:ti-arm-clang $@ ...
|
|
||||||
$(LNK) $(LNKOPTFLAGS) $(LFLAGS) $(LIBS_PATH) -Wl,-m=$(basename $@).map -o $@ $(addprefix $(OBJDIR), $(OBJS)) $(LIBS) $(LNK_FILES)
|
|
||||||
@echo Linking: am243x:m4fss0-0:nortos:ti-arm-clang $@ Done !!!
|
|
||||||
@echo .
|
|
||||||
|
|
||||||
clean:
|
|
||||||
@echo Cleaning: am243x:m4fss0-0:nortos:ti-arm-clang $(OUTNAME) ...
|
|
||||||
$(RMDIR) $(OBJDIR)
|
|
||||||
$(RM) $(OUTNAME)
|
|
||||||
$(RM) $(BOOTIMAGE_NAME)
|
|
||||||
$(RM) $(BOOTIMAGE_NAME_XIP)
|
|
||||||
$(RM) $(BOOTIMAGE_NAME_SIGNED)
|
|
||||||
$(RM) $(BOOTIMAGE_NAME_HS)
|
|
||||||
$(RM) $(BOOTIMAGE_NAME_HS_FS)
|
|
||||||
$(RM) $(BOOTIMAGE_RPRC_NAME)
|
|
||||||
$(RM) $(BOOTIMAGE_RPRC_NAME_XIP)
|
|
||||||
$(RMDIR) generated/
|
|
||||||
|
|
||||||
scrub:
|
|
||||||
@echo Scrubing: am243x:m4fss0-0:nortos:ti-arm-clang dcl_df22 ...
|
|
||||||
$(RMDIR) obj
|
|
||||||
ifeq ($(OS),Windows_NT)
|
|
||||||
$(RM) \*.out
|
|
||||||
$(RM) \*.map
|
|
||||||
$(RM) \*.appimage*
|
|
||||||
$(RM) \*.rprc*
|
|
||||||
$(RM) \*.tiimage*
|
|
||||||
$(RM) \*.bin
|
|
||||||
else
|
|
||||||
$(RM) *.out
|
|
||||||
$(RM) *.map
|
|
||||||
$(RM) *.appimage*
|
|
||||||
$(RM) *.rprc*
|
|
||||||
$(RM) *.tiimage*
|
|
||||||
$(RM) *.bin
|
|
||||||
endif
|
|
||||||
$(RMDIR) generated
|
|
||||||
|
|
||||||
$(OBJS): | $(OBJDIR)
|
|
||||||
|
|
||||||
$(OBJDIR):
|
|
||||||
$(MKDIR) $@
|
|
||||||
|
|
||||||
|
|
||||||
.NOTPARALLEL:
|
|
||||||
|
|
||||||
.INTERMEDIATE: syscfg
|
|
||||||
$(SYSCFG_GEN_FILES): syscfg
|
|
||||||
|
|
||||||
syscfg: ../example.syscfg
|
|
||||||
@echo Generating SysConfig files ...
|
|
||||||
$(SYSCFG_NODE) $(SYSCFG_CLI_PATH)/dist/cli.js --product $(SYSCFG_SDKPRODUCT) --context m4fss0-0 --part ALV --package ALV --output generated/ ../example.syscfg
|
|
||||||
|
|
||||||
syscfg-gui:
|
|
||||||
$(SYSCFG_NWJS) $(SYSCFG_PATH) --product $(SYSCFG_SDKPRODUCT) --device AM243x_ALV_beta --context m4fss0-0 --part ALV --package ALV --output generated/ ../example.syscfg
|
|
||||||
|
|
||||||
#
|
|
||||||
# Generation of boot image which can be loaded by Secondary Boot Loader (SBL)
|
|
||||||
#
|
|
||||||
ifeq ($(OS),Windows_NT)
|
|
||||||
EXE_EXT=.exe
|
|
||||||
endif
|
|
||||||
ifeq ($(OS),Windows_NT)
|
|
||||||
BOOTIMAGE_CERT_GEN_CMD=powershell -executionpolicy unrestricted -command $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/signing/x509CertificateGen.ps1
|
|
||||||
else
|
|
||||||
BOOTIMAGE_CERT_GEN_CMD=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/signing/x509CertificateGen.sh
|
|
||||||
endif
|
|
||||||
BOOTIMAGE_TEMP_OUT_FILE=temp_stdout_$(PROFILE).txt
|
|
||||||
|
|
||||||
BOOTIMAGE_CERT_KEY=$(APP_SIGNING_KEY)
|
|
||||||
|
|
||||||
BOOTIMAGE_CORE_ID_r5fss0-0 = 4
|
|
||||||
BOOTIMAGE_CORE_ID_r5fss0-1 = 5
|
|
||||||
BOOTIMAGE_CORE_ID_r5fss1-0 = 6
|
|
||||||
BOOTIMAGE_CORE_ID_r5fss1-1 = 7
|
|
||||||
BOOTIMAGE_CORE_ID_m4fss0-0 = 14
|
|
||||||
SBL_RUN_ADDRESS=0x70000000
|
|
||||||
SBL_DEV_ID=55
|
|
||||||
|
|
||||||
MULTI_CORE_IMAGE_GEN = $(SYSCFG_NODE) $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/multicoreImageGen/multicoreImageGen.js
|
|
||||||
OUTRPRC_CMD = $(SYSCFG_NODE) $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/out2rprc/elf2rprc.js
|
|
||||||
APP_IMAGE_SIGN_CMD = $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/signing/appimage_x509_cert_gen.py
|
|
||||||
|
|
||||||
ifeq ($(OS),Windows_NT)
|
|
||||||
XIPGEN_CMD=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/xipGen/xipGen.exe
|
|
||||||
else
|
|
||||||
XIPGEN_CMD=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/xipGen/xipGen.out
|
|
||||||
endif
|
|
||||||
|
|
||||||
MULTI_CORE_IMAGE_PARAMS = \
|
|
||||||
$(BOOTIMAGE_RPRC_NAME)@$(BOOTIMAGE_CORE_ID_m4fss0-0) \
|
|
||||||
|
|
||||||
MULTI_CORE_IMAGE_PARAMS_XIP = \
|
|
||||||
$(BOOTIMAGE_RPRC_NAME_XIP)@$(BOOTIMAGE_CORE_ID_m4fss0-0) \
|
|
||||||
|
|
||||||
$(BOOTIMAGE_NAME): $(OUTNAME)
|
|
||||||
@echo Boot image: am243x:m4fss0-0:nortos:ti-arm-clang $(BOOTIMAGE_PATH)/$@ ...
|
|
||||||
ifneq ($(OS),Windows_NT)
|
|
||||||
$(CHMOD) a+x $(XIPGEN_CMD)
|
|
||||||
endif
|
|
||||||
$(OUTRPRC_CMD) $(OUTNAME) >> $(BOOTIMAGE_TEMP_OUT_FILE)
|
|
||||||
$(COPY) $(BOOTIMAGE_RPRC_NAME) $(BOOTIMAGE_RPRC_NAME_TMP)
|
|
||||||
$(RM) $(BOOTIMAGE_RPRC_NAME)
|
|
||||||
$(XIPGEN_CMD) -i $(BOOTIMAGE_RPRC_NAME_TMP) -o $(BOOTIMAGE_RPRC_NAME) -x $(BOOTIMAGE_RPRC_NAME_XIP) --flash-start-addr 0x60000000 -v > $(BOOTIMAGE_TEMP_OUT_FILE)
|
|
||||||
$(MULTI_CORE_IMAGE_GEN) --devID $(SBL_DEV_ID) --out $(BOOTIMAGE_NAME) $(MULTI_CORE_IMAGE_PARAMS) >> $(BOOTIMAGE_TEMP_OUT_FILE)
|
|
||||||
$(MULTI_CORE_IMAGE_GEN) --devID $(SBL_DEV_ID) --out $(BOOTIMAGE_NAME_XIP) $(MULTI_CORE_IMAGE_PARAMS_XIP) >> $(BOOTIMAGE_TEMP_OUT_FILE)
|
|
||||||
# Sign the appimage for HS-FS using appimage signing script
|
|
||||||
$(PYTHON) $(APP_IMAGE_SIGN_CMD) --bin $(BOOTIMAGE_NAME) --authtype 1 --key $(APP_SIGNING_KEY) --output $(BOOTIMAGE_NAME_HS_FS)
|
|
||||||
$(RM) $(BOOTIMAGE_RPRC_NAME_TMP)
|
|
||||||
$(RM) $(BOOTIMAGE_TEMP_OUT_FILE)
|
|
||||||
@echo Boot image: am243x:m4fss0-0:nortos:ti-arm-clang $(BOOTIMAGE_PATH)/$@ Done !!!
|
|
||||||
@echo .
|
|
||||||
@echo Boot image: am243x:m4fss0-0:nortos:ti-arm-clang $(BOOTIMAGE_PATH)/$(BOOTIMAGE_NAME_HS_FS) Done !!!
|
|
||||||
@echo .
|
|
||||||
|
|
||||||
$(BOOTIMAGE_NAME_HS): $(BOOTIMAGE_NAME)
|
|
||||||
ifeq ($(DEVICE_TYPE), HS)
|
|
||||||
# Sign the appimage using appimage signing script
|
|
||||||
ifeq ($(ENC_ENABLED),no)
|
|
||||||
@echo Boot image signing: Encryption is disabled.
|
|
||||||
$(PYTHON) $(APP_IMAGE_SIGN_CMD) --bin $(BOOTIMAGE_NAME) --authtype 1 --key $(APP_SIGNING_KEY) --output $(BOOTIMAGE_NAME_HS)
|
|
||||||
else
|
|
||||||
@echo Boot image signing: Encryption is enabled.
|
|
||||||
$(PYTHON) $(APP_IMAGE_SIGN_CMD) --bin $(BOOTIMAGE_NAME) --authtype 1 --key $(APP_SIGNING_KEY) --enc y --enckey $(APP_ENCRYPTION_KEY) --output $(BOOTIMAGE_NAME_HS)
|
|
||||||
$(RM) $(BOOTIMAGE_NAME)-enc
|
|
||||||
endif
|
|
||||||
@echo Boot image: am243x:m4fss0-0:nortos:ti-arm-clang $(BOOTIMAGE_PATH)/$(BOOTIMAGE_NAME_HS) Done !!!
|
|
||||||
@echo .
|
|
||||||
endif
|
|
||||||
-include $(addprefix $(OBJDIR)/, $(DEPS))
|
|
||||||
@ -1,106 +0,0 @@
|
|||||||
#
|
|
||||||
# Auto generated makefile
|
|
||||||
#
|
|
||||||
|
|
||||||
# Below variables need to be defined outside this file or via command line
|
|
||||||
# - MOTOR_CONTROL_SDK_PATH
|
|
||||||
# - PROFILE
|
|
||||||
# - CG_TOOL_ROOT
|
|
||||||
# - OUTNAME
|
|
||||||
# - CCS_INSTALL_DIR
|
|
||||||
# - CCS_IDE_MODE
|
|
||||||
|
|
||||||
CCS_PATH=$(CCS_INSTALL_DIR)
|
|
||||||
include ${MOTOR_CONTROL_SDK_PATH}/imports.mak
|
|
||||||
include ${MOTOR_CONTROL_SDK_PATH}/devconfig/devconfig.mak
|
|
||||||
|
|
||||||
STRIP=$(CG_TOOL_ROOT)/bin/tiarmstrip
|
|
||||||
OBJCOPY=$(CG_TOOL_ROOT)/bin/tiarmobjcopy
|
|
||||||
ifeq ($(OS), Windows_NT)
|
|
||||||
PYTHON=python
|
|
||||||
else
|
|
||||||
PYTHON=python3
|
|
||||||
endif
|
|
||||||
|
|
||||||
OUTFILE=$(PROFILE)/$(OUTNAME).out
|
|
||||||
BOOTIMAGE_PATH=$(abspath ${PROFILE})
|
|
||||||
BOOTIMAGE_NAME:=$(BOOTIMAGE_PATH)/$(OUTNAME).appimage
|
|
||||||
BOOTIMAGE_NAME_XIP:=$(BOOTIMAGE_PATH)/$(OUTNAME).appimage_xip
|
|
||||||
BOOTIMAGE_NAME_SIGNED:=$(BOOTIMAGE_PATH)/$(OUTNAME).appimage.signed
|
|
||||||
BOOTIMAGE_RPRC_NAME:=$(BOOTIMAGE_PATH)/$(OUTNAME).rprc
|
|
||||||
BOOTIMAGE_RPRC_NAME_XIP:=$(BOOTIMAGE_PATH)/$(OUTNAME).rprc_xip
|
|
||||||
BOOTIMAGE_RPRC_NAME_TMP:=$(BOOTIMAGE_PATH)/$(OUTNAME).rprc_tmp
|
|
||||||
|
|
||||||
#
|
|
||||||
# Generation of boot image which can be loaded by Secondary Boot Loader (SBL)
|
|
||||||
#
|
|
||||||
ifeq ($(OS),Windows_NT)
|
|
||||||
EXE_EXT=.exe
|
|
||||||
endif
|
|
||||||
ifeq ($(OS),Windows_NT)
|
|
||||||
BOOTIMAGE_CERT_GEN_CMD=powershell -executionpolicy unrestricted -command $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/signing/x509CertificateGen.ps1
|
|
||||||
else
|
|
||||||
BOOTIMAGE_CERT_GEN_CMD=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/signing/x509CertificateGen.sh
|
|
||||||
endif
|
|
||||||
BOOTIMAGE_TEMP_OUT_FILE=$(PROFILE)/temp_stdout_$(PROFILE).txt
|
|
||||||
|
|
||||||
BOOTIMAGE_CORE_ID_r5fss0-0 = 4
|
|
||||||
BOOTIMAGE_CORE_ID_r5fss0-1 = 5
|
|
||||||
BOOTIMAGE_CORE_ID_r5fss1-0 = 6
|
|
||||||
BOOTIMAGE_CORE_ID_r5fss1-1 = 7
|
|
||||||
BOOTIMAGE_CORE_ID_m4fss0-0 = 14
|
|
||||||
SBL_RUN_ADDRESS=0x70000000
|
|
||||||
SBL_DEV_ID=55
|
|
||||||
|
|
||||||
MULTI_CORE_IMAGE_GEN = $(CCS_NODE) $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/multicoreImageGen/multicoreImageGen.js
|
|
||||||
OUTRPRC_CMD = $(CCS_NODE) $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/out2rprc/elf2rprc.js
|
|
||||||
APP_IMAGE_SIGN_CMD = $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/signing/appimage_x509_cert_gen.py
|
|
||||||
|
|
||||||
ifeq ($(OS),Windows_NT)
|
|
||||||
XIPGEN_CMD=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/xipGen/xipGen.exe
|
|
||||||
else
|
|
||||||
XIPGEN_CMD=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/xipGen/xipGen.out
|
|
||||||
endif
|
|
||||||
|
|
||||||
MULTI_CORE_IMAGE_PARAMS = \
|
|
||||||
$(BOOTIMAGE_RPRC_NAME)@$(BOOTIMAGE_CORE_ID_m4fss0-0) \
|
|
||||||
|
|
||||||
MULTI_CORE_IMAGE_PARAMS_XIP = \
|
|
||||||
$(BOOTIMAGE_RPRC_NAME_XIP)@$(BOOTIMAGE_CORE_ID_m4fss0-0) \
|
|
||||||
|
|
||||||
all:
|
|
||||||
ifeq ($(CCS_IDE_MODE),cloud)
|
|
||||||
# No post build steps
|
|
||||||
else
|
|
||||||
@echo Boot image: am243x:m4fss0-0:nortos:ti-arm-clang $(BOOTIMAGE_NAME) ...
|
|
||||||
$(OUTRPRC_CMD) $(OUTFILE) >> $(BOOTIMAGE_TEMP_OUT_FILE)
|
|
||||||
$(COPY) $(OUTNAME).rprc $(BOOTIMAGE_RPRC_NAME)
|
|
||||||
$(COPY) $(BOOTIMAGE_RPRC_NAME) $(BOOTIMAGE_RPRC_NAME_TMP)
|
|
||||||
$(RM) $(BOOTIMAGE_RPRC_NAME)
|
|
||||||
$(XIPGEN_CMD) -i $(BOOTIMAGE_RPRC_NAME_TMP) -o $(BOOTIMAGE_RPRC_NAME) -x $(BOOTIMAGE_RPRC_NAME_XIP) --flash-start-addr 0x60000000 -v > $(BOOTIMAGE_TEMP_OUT_FILE)
|
|
||||||
$(MULTI_CORE_IMAGE_GEN) --devID $(SBL_DEV_ID) --out $(BOOTIMAGE_NAME) $(MULTI_CORE_IMAGE_PARAMS) >> $(BOOTIMAGE_TEMP_OUT_FILE)
|
|
||||||
$(MULTI_CORE_IMAGE_GEN) --devID $(SBL_DEV_ID) --out $(BOOTIMAGE_NAME_XIP) $(MULTI_CORE_IMAGE_PARAMS_XIP) >> $(BOOTIMAGE_TEMP_OUT_FILE)
|
|
||||||
# Sign the appimage for HS-FS using appimage signing script
|
|
||||||
$(PYTHON) $(APP_IMAGE_SIGN_CMD) --bin $(BOOTIMAGE_NAME) --authtype 1 --key $(APP_SIGNING_KEY) --output $(BOOTIMAGE_NAME).hs_fs
|
|
||||||
ifeq ($(DEVICE_TYPE),HS)
|
|
||||||
# Sign the appimage using appimage signing script
|
|
||||||
ifeq ($(ENC_ENABLED),no)
|
|
||||||
@echo Boot image signing: Encryption is disabled.
|
|
||||||
$(PYTHON) $(APP_IMAGE_SIGN_CMD) --bin $(BOOTIMAGE_NAME) --authtype 1 --key $(APP_SIGNING_KEY) --output $(BOOTIMAGE_NAME).hs
|
|
||||||
else
|
|
||||||
@echo Boot image signing: Encryption is enabled.
|
|
||||||
$(PYTHON) $(APP_IMAGE_SIGN_CMD) --bin $(BOOTIMAGE_NAME) --authtype 1 --key $(APP_SIGNING_KEY) --enc y --enckey $(APP_ENCRYPTION_KEY) --output $(BOOTIMAGE_NAME).hs
|
|
||||||
$(RM) $(BOOTIMAGE_NAME)-enc
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
$(RM) $(BOOTIMAGE_RPRC_NAME_TMP)
|
|
||||||
@echo Boot image: am243x:m4fss0-0:nortos:ti-arm-clang $(BOOTIMAGE_NAME) Done !!!
|
|
||||||
@echo .
|
|
||||||
ifeq ($(DEVICE_TYPE),HS)
|
|
||||||
@echo Boot image: am243x:m4fss0-0:nortos:ti-arm-clang $(BOOTIMAGE_NAME).hs Done !!!
|
|
||||||
@echo .
|
|
||||||
else
|
|
||||||
@echo Boot image: am243x:m4fss0-0:nortos:ti-arm-clang $(BOOTIMAGE_NAME).hs_fs Done !!!
|
|
||||||
@echo .
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
@ -1,20 +0,0 @@
|
|||||||
#
|
|
||||||
# Auto generated makefile
|
|
||||||
#
|
|
||||||
|
|
||||||
export MOTOR_CONTROL_SDK_PATH?=$(abspath ../../../../../..)
|
|
||||||
include $(MOTOR_CONTROL_SDK_PATH)/imports.mak
|
|
||||||
|
|
||||||
PROFILE?=Release
|
|
||||||
|
|
||||||
PROJECT_NAME=dcl_df22_am243x-evm_m4fss0-0_nortos_ti-arm-clang
|
|
||||||
|
|
||||||
all:
|
|
||||||
$(CCS_ECLIPSE) -noSplash -data $(MOTOR_CONTROL_SDK_PATH)/ccs_projects -application com.ti.ccstudio.apps.projectBuild -ccs.projects $(PROJECT_NAME) -ccs.configuration $(PROFILE)
|
|
||||||
|
|
||||||
clean:
|
|
||||||
$(CCS_ECLIPSE) -noSplash -data $(MOTOR_CONTROL_SDK_PATH)/ccs_projects -application com.ti.ccstudio.apps.projectBuild -ccs.projects $(PROJECT_NAME) -ccs.configuration $(PROFILE) -ccs.clean
|
|
||||||
|
|
||||||
export:
|
|
||||||
$(MKDIR) $(MOTOR_CONTROL_SDK_PATH)/ccs_projects
|
|
||||||
$(CCS_ECLIPSE) -noSplash -data $(MOTOR_CONTROL_SDK_PATH)/ccs_projects -application com.ti.ccstudio.apps.projectCreate -ccs.projectSpec example.projectspec -ccs.overwrite full
|
|
||||||
@ -1,8 +0,0 @@
|
|||||||
/*
|
|
||||||
* ======== syscfg_c.rov.xs ========
|
|
||||||
* This file contains the information needed by the Runtime Object
|
|
||||||
* View (ROV) tool.
|
|
||||||
*/
|
|
||||||
var crovFiles = [
|
|
||||||
"kernel/freertos/rov/FreeRTOS.rov.js",
|
|
||||||
];
|
|
||||||
@ -1,45 +0,0 @@
|
|||||||
/**
|
|
||||||
* 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_ALX_beta" --package "ALX" --part "ALX" --context "m4fss0-0" --product "MCU_PLUS_SDK@07.03.01"
|
|
||||||
* @versions {"tool":"1.9.0+2015","templates":null}
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Import the modules used in this configuration.
|
|
||||||
*/
|
|
||||||
const addr_translate = scripting.addModule("/kernel/dpl/addr_translate", {}, false);
|
|
||||||
const addr_translate1 = addr_translate.addInstance();
|
|
||||||
const addr_translate2 = addr_translate.addInstance();
|
|
||||||
const addr_translate3 = addr_translate.addInstance();
|
|
||||||
const addr_translate4 = addr_translate.addInstance();
|
|
||||||
const clock = scripting.addModule("/kernel/dpl/clock");
|
|
||||||
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();
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Write custom configuration values to the imported modules.
|
|
||||||
*/
|
|
||||||
addr_translate1.$name = "CONFIG_ADDR_TRANSLATE_REGION0";
|
|
||||||
addr_translate1.localAddr = 0x80000000;
|
|
||||||
|
|
||||||
addr_translate2.$name = "CONFIG_ADDR_TRANSLATE_REGION1";
|
|
||||||
addr_translate2.systemAddr = 0x20000000;
|
|
||||||
addr_translate2.localAddr = 0xA0000000;
|
|
||||||
|
|
||||||
addr_translate3.$name = "CONFIG_ADDR_TRANSLATE_REGION2";
|
|
||||||
addr_translate3.systemAddr = 0x40000000;
|
|
||||||
addr_translate3.localAddr = 0xC0000000;
|
|
||||||
|
|
||||||
addr_translate4.$name = "CONFIG_ADDR_TRANSLATE_REGION3";
|
|
||||||
addr_translate4.systemAddr = 0x60000000;
|
|
||||||
addr_translate4.localAddr = 0x60000000;
|
|
||||||
|
|
||||||
mpu_armv71.$name = "CONFIG_MPU_REGION0";
|
|
||||||
mpu_armv71.attributes = "Device";
|
|
||||||
mpu_armv71.allowExecute = false;
|
|
||||||
|
|
||||||
mpu_armv72.$name = "CONFIG_MPU_REGION1";
|
|
||||||
mpu_armv72.size = 18;
|
|
||||||
@ -1,84 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright (C) 2018-2021 Texas Instruments Incorporated
|
|
||||||
*
|
|
||||||
* Redistribution and use in source and binary forms, with or without
|
|
||||||
* modification, are permitted provided that the following conditions
|
|
||||||
* are met:
|
|
||||||
*
|
|
||||||
* Redistributions of source code must retain the above copyright
|
|
||||||
* notice, this list of conditions and the following disclaimer.
|
|
||||||
*
|
|
||||||
* Redistributions in binary form must reproduce the above copyright
|
|
||||||
* notice, this list of conditions and the following disclaimer in the
|
|
||||||
* documentation and/or other materials provided with the
|
|
||||||
* distribution.
|
|
||||||
*
|
|
||||||
* Neither the name of Texas Instruments Incorporated nor the names of
|
|
||||||
* its contributors may be used to endorse or promote products derived
|
|
||||||
* from this software without specific prior written permission.
|
|
||||||
*
|
|
||||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
||||||
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
||||||
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
||||||
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
||||||
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
||||||
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
||||||
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
||||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
||||||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <kernel/dpl/DebugP.h>
|
|
||||||
#include "ti_drivers_config.h"
|
|
||||||
#include "ti_board_config.h"
|
|
||||||
#include "FreeRTOS.h"
|
|
||||||
#include "task.h"
|
|
||||||
|
|
||||||
#define MAIN_TASK_PRI (configMAX_PRIORITIES-1)
|
|
||||||
|
|
||||||
#define MAIN_TASK_SIZE (16384U/sizeof(configSTACK_DEPTH_TYPE))
|
|
||||||
StackType_t gMainTaskStack[MAIN_TASK_SIZE] __attribute__((aligned(32)));
|
|
||||||
|
|
||||||
StaticTask_t gMainTaskObj;
|
|
||||||
TaskHandle_t gMainTask;
|
|
||||||
|
|
||||||
void dcl_df22_main(void *args);
|
|
||||||
|
|
||||||
void freertos_main(void *args)
|
|
||||||
{
|
|
||||||
dcl_df22_main(NULL);
|
|
||||||
|
|
||||||
vTaskDelete(NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
int main(void)
|
|
||||||
{
|
|
||||||
/* init SOC specific modules */
|
|
||||||
System_init();
|
|
||||||
Board_init();
|
|
||||||
|
|
||||||
/* This task is created at highest priority, it should create more tasks and then delete itself */
|
|
||||||
gMainTask = xTaskCreateStatic( freertos_main, /* Pointer to the function that implements the task. */
|
|
||||||
"freertos_main", /* Text name for the task. This is to facilitate debugging only. */
|
|
||||||
MAIN_TASK_SIZE, /* Stack depth in units of StackType_t typically uint32_t on 32b CPUs */
|
|
||||||
NULL, /* We are not using the task parameter. */
|
|
||||||
MAIN_TASK_PRI, /* task priority, 0 is lowest priority, configMAX_PRIORITIES-1 is highest */
|
|
||||||
gMainTaskStack, /* pointer to stack base */
|
|
||||||
&gMainTaskObj ); /* pointer to statically allocated task object memory */
|
|
||||||
configASSERT(gMainTask != NULL);
|
|
||||||
|
|
||||||
/* Start the scheduler to start the tasks executing. */
|
|
||||||
vTaskStartScheduler();
|
|
||||||
|
|
||||||
/* The following line should never be reached because vTaskStartScheduler()
|
|
||||||
will only return if there was not enough FreeRTOS heap memory available to
|
|
||||||
create the Idle and (if configured) Timer tasks. Heap management, and
|
|
||||||
techniques for trapping heap exhaustion, are described in the book text. */
|
|
||||||
DebugP_assertNoLog(0);
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
@ -1,19 +0,0 @@
|
|||||||
/*
|
|
||||||
* This linker file is optional, it's complementary to the device/core linker file
|
|
||||||
* Here it specifies the dcl function & data mapping allocated by __attribute__((section(...)))
|
|
||||||
* and link to a specific memory region for the best performance
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Define core & platform specific variables */
|
|
||||||
#define FAST_RAM M4F_IRAM
|
|
||||||
#define REG_RAM M4F_IRAM /* M4F_DRAM also works */
|
|
||||||
|
|
||||||
SECTIONS
|
|
||||||
{
|
|
||||||
/* dcl functions mapped to on-chip fast ram */
|
|
||||||
dclfuncs : {} > FAST_RAM
|
|
||||||
|
|
||||||
/* optional -- map datas & variables to regular ram */
|
|
||||||
/* Sitara default linker should already map variables to ram */
|
|
||||||
dclDataSection : {} > REG_RAM
|
|
||||||
}
|
|
||||||
@ -1,115 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<projectSpec>
|
|
||||||
<applicability>
|
|
||||||
<when>
|
|
||||||
<context
|
|
||||||
deviceFamily="ARM"
|
|
||||||
deviceId="Cortex M.AM2434_ALX"
|
|
||||||
/>
|
|
||||||
</when>
|
|
||||||
</applicability>
|
|
||||||
|
|
||||||
<project
|
|
||||||
title="Dcl Df22"
|
|
||||||
name = "dcl_df22_am243x-lp_m4fss0-0_freertos_ti-arm-clang"
|
|
||||||
products="sysconfig;com.ti.MOTOR_CONTROL_SDK_AMXXX;"
|
|
||||||
configurations="
|
|
||||||
Debug,
|
|
||||||
Release,
|
|
||||||
"
|
|
||||||
connection="TIXDS110_Connection.xml"
|
|
||||||
toolChain="TICLANG"
|
|
||||||
cgtVersion="2.1.3"
|
|
||||||
device="Cortex M.AM2434_ALX"
|
|
||||||
deviceCore="Cortex_M4F_0"
|
|
||||||
ignoreDefaultDeviceSettings="true"
|
|
||||||
ignoreDefaultCCSSettings="true"
|
|
||||||
endianness="little"
|
|
||||||
outputFormat="ELF"
|
|
||||||
outputType="executable"
|
|
||||||
|
|
||||||
compilerBuildOptions="
|
|
||||||
-I${CG_TOOL_ROOT}/include/c
|
|
||||||
-I${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source
|
|
||||||
-I${MOTOR_CONTROL_SDK_PATH}/source
|
|
||||||
-I${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/FreeRTOS-Kernel/include
|
|
||||||
-I${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/portable/TI_ARM_CLANG/ARM_CM4F
|
|
||||||
-I${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/config/am243x/m4f
|
|
||||||
-I${MOTOR_CONTROL_SDK_PATH}/source/dcl
|
|
||||||
-mcpu=cortex-m4
|
|
||||||
-mfloat-abi=hard
|
|
||||||
-mthumb
|
|
||||||
-Wall
|
|
||||||
-Werror
|
|
||||||
-g
|
|
||||||
-Wno-gnu-variable-sized-type-not-at-end
|
|
||||||
-Wno-unused-function
|
|
||||||
-DSOC_AM243X
|
|
||||||
"
|
|
||||||
linkerBuildOptions="
|
|
||||||
-i${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/lib
|
|
||||||
-i${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/drivers/lib
|
|
||||||
-i${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/board/lib
|
|
||||||
-i${CG_TOOL_ROOT}/lib
|
|
||||||
-m=dcl_df22.${ConfigName}.map
|
|
||||||
--ram_model
|
|
||||||
--reread_libs
|
|
||||||
"
|
|
||||||
|
|
||||||
postBuildStep="$(MAKE) -C ${CCS_PROJECT_DIR} -f makefile_ccs_bootimage_gen OUTNAME=${BuildArtifactFileBaseName} PROFILE=${ConfigName} MOTOR_CONTROL_SDK_PATH=${MOTOR_CONTROL_SDK_PATH} CG_TOOL_ROOT=${CG_TOOL_ROOT} CCS_INSTALL_DIR=${CCS_INSTALL_DIR} CCS_IDE_MODE=${CCS_IDE_MODE} DEVICE=am243x"
|
|
||||||
|
|
||||||
enableSysConfigTool="true"
|
|
||||||
sysConfigBuildOptions="
|
|
||||||
--context m4fss0-0 --part ALX --package ALX
|
|
||||||
"
|
|
||||||
|
|
||||||
description="A Dcl Df22 FREERTOS project">
|
|
||||||
|
|
||||||
<configuration name="Debug"
|
|
||||||
compilerBuildOptions="
|
|
||||||
-D_DEBUG_=1
|
|
||||||
"
|
|
||||||
linkerBuildOptions="
|
|
||||||
-lfreertos.am243x.m4f.ti-arm-clang.debug.lib
|
|
||||||
-ldrivers.am243x.m4f.ti-arm-clang.debug.lib
|
|
||||||
-lboard.am243x.m4f.ti-arm-clang.debug.lib
|
|
||||||
-llibc.a
|
|
||||||
-llibsysbm.a
|
|
||||||
"
|
|
||||||
></configuration>
|
|
||||||
<configuration name="Release"
|
|
||||||
compilerBuildOptions="
|
|
||||||
-Os
|
|
||||||
"
|
|
||||||
linkerBuildOptions="
|
|
||||||
-lfreertos.am243x.m4f.ti-arm-clang.release.lib
|
|
||||||
-ldrivers.am243x.m4f.ti-arm-clang.release.lib
|
|
||||||
-lboard.am243x.m4f.ti-arm-clang.release.lib
|
|
||||||
-llibc.a
|
|
||||||
-llibsysbm.a
|
|
||||||
"
|
|
||||||
></configuration>
|
|
||||||
<pathVariable name="MOTOR_CONTROL_SDK_PATH" path="${COM_TI_MOTOR_CONTROL_SDK_AMXXX_INSTALL_DIR}" scope="project" />
|
|
||||||
<file path="../../../df22_test.c" openOnCreation="false" excludeFromBuild="false" action="copy">
|
|
||||||
</file>
|
|
||||||
<file path="../main.c" openOnCreation="false" excludeFromBuild="false" action="copy">
|
|
||||||
</file>
|
|
||||||
<file path="linker.cmd" openOnCreation="false" excludeFromBuild="false" action="copy">
|
|
||||||
</file>
|
|
||||||
<file path="dcl_linker_m4f_am243x_sitara.cmd" openOnCreation="false" excludeFromBuild="false" action="copy">
|
|
||||||
</file>
|
|
||||||
<file path="../example.syscfg" openOnCreation="false" excludeFromBuild="false" action="copy">
|
|
||||||
</file>
|
|
||||||
<file path="${MOTOR_CONTROL_SDK_PATH}/docs/api_guide_am243x/EXAMPLES_DCL_DF22.html"
|
|
||||||
openOnCreation="false" excludeFromBuild="false" targetName="README.html" action="link">
|
|
||||||
</file>
|
|
||||||
<file path="../../../df22_test.h" openOnCreation="false" excludeFromBuild="true" action="copy">
|
|
||||||
</file>
|
|
||||||
<file path="../../../data" openOnCreation="false" excludeFromBuild="true" action="copy">
|
|
||||||
</file>
|
|
||||||
<file path="syscfg_c.rov.xs" openOnCreation="false" excludeFromBuild="false" action="copy">
|
|
||||||
</file>
|
|
||||||
<file path="makefile_ccs_bootimage_gen" openOnCreation="false" excludeFromBuild="false" action="copy">
|
|
||||||
</file>
|
|
||||||
</project>
|
|
||||||
</projectSpec>
|
|
||||||
@ -1,62 +0,0 @@
|
|||||||
|
|
||||||
/* make sure below retain is there in your linker command file, it keeps the vector table in the final binary */
|
|
||||||
--retain="*(.vectors)"
|
|
||||||
/* This is the stack that is used by code running within main()
|
|
||||||
* In case of NORTOS,
|
|
||||||
* - This means all the code outside of ISR uses this stack
|
|
||||||
* In case of FreeRTOS
|
|
||||||
* - This means all the code until vTaskStartScheduler() is called in main()
|
|
||||||
* uses this stack.
|
|
||||||
* - After vTaskStartScheduler() each task created in FreeRTOS has its own stack
|
|
||||||
*/
|
|
||||||
--stack_size=16384
|
|
||||||
/* This is the heap size for malloc() API in NORTOS and FreeRTOS
|
|
||||||
* This is also the heap used by pvPortMalloc in FreeRTOS
|
|
||||||
*/
|
|
||||||
--heap_size=32768
|
|
||||||
|
|
||||||
|
|
||||||
SECTIONS
|
|
||||||
{
|
|
||||||
/* This has the M4F entry point and vector table, this MUST be at 0x0 */
|
|
||||||
.vectors:{} palign(8) > M4F_VECS
|
|
||||||
.text: {} palign(8) > M4F_IRAM /* This is where code resides */
|
|
||||||
|
|
||||||
.bss: {} palign(8) > M4F_DRAM /* This is where uninitialized globals go */
|
|
||||||
RUN_START(__BSS_START)
|
|
||||||
RUN_END(__BSS_END)
|
|
||||||
|
|
||||||
.data: {} palign(8) > M4F_DRAM /* This is where initialized globals and static go */
|
|
||||||
.rodata: {} palign(8) > M4F_DRAM /* This is where const's go */
|
|
||||||
.sysmem: {} palign(8) > M4F_IRAM /* This is where the malloc heap goes */
|
|
||||||
.stack: {} palign(8) > M4F_IRAM /* This is where the main() stack goes */
|
|
||||||
|
|
||||||
/* Sections needed for C++ projects */
|
|
||||||
.ARM.exidx: {} palign(8) > M4F_IRAM /* Needed for C++ exception handling */
|
|
||||||
.init_array: {} palign(8) > M4F_IRAM /* Contains function pointers called before main */
|
|
||||||
.fini_array: {} palign(8) > M4F_IRAM /* Contains function pointers called after main */
|
|
||||||
|
|
||||||
/* General purpose user shared memory */
|
|
||||||
.bss.user_shared_mem (NOLOAD) : {} > USER_SHM_MEM
|
|
||||||
/* this is used when Debug log's to shared memory are enabled, else this is not used */
|
|
||||||
.bss.log_shared_mem (NOLOAD) : {} > LOG_SHM_MEM
|
|
||||||
/* this is used only when IPC RPMessage is enabled, else this is not used */
|
|
||||||
.bss.ipc_vring_mem (NOLOAD) : {} > IPC_VRING_MEM
|
|
||||||
}
|
|
||||||
|
|
||||||
MEMORY
|
|
||||||
{
|
|
||||||
M4F_VECS : ORIGIN = 0x00000000 , LENGTH = 0x00000200
|
|
||||||
M4F_IRAM : ORIGIN = 0x00000200 , LENGTH = 0x0002FE00
|
|
||||||
M4F_DRAM : ORIGIN = 0x00030000 , LENGTH = 0x00010000
|
|
||||||
|
|
||||||
/* shared memories that are used by all cores */
|
|
||||||
/* On M4F,
|
|
||||||
* - By default MSMC RAM is not accessible to M4F, a RAT entry is needed to make it
|
|
||||||
* accessible on M4F
|
|
||||||
* - So make sure there is a RAT entry which has a 1:1 mapping from 0x70000000 to 0x70200000
|
|
||||||
*/
|
|
||||||
USER_SHM_MEM : ORIGIN = 0x701D0000, LENGTH = 0x180
|
|
||||||
LOG_SHM_MEM : ORIGIN = 0x701D0000 + 0x180, LENGTH = 0x00004000 - 0x180
|
|
||||||
IPC_VRING_MEM: ORIGIN = 0x701D4000, LENGTH = 0x0000C000
|
|
||||||
}
|
|
||||||
@ -1,303 +0,0 @@
|
|||||||
#
|
|
||||||
# Auto generated makefile
|
|
||||||
#
|
|
||||||
|
|
||||||
export MOTOR_CONTROL_SDK_PATH?=$(abspath ../../../../../..)
|
|
||||||
include $(MOTOR_CONTROL_SDK_PATH)/imports.mak
|
|
||||||
include $(MOTOR_CONTROL_SDK_PATH)/devconfig/devconfig.mak
|
|
||||||
|
|
||||||
CG_TOOL_ROOT=$(CGT_TI_ARM_CLANG_PATH)
|
|
||||||
|
|
||||||
CC=$(CG_TOOL_ROOT)/bin/tiarmclang
|
|
||||||
LNK=$(CG_TOOL_ROOT)/bin/tiarmclang
|
|
||||||
STRIP=$(CG_TOOL_ROOT)/bin/tiarmstrip
|
|
||||||
OBJCOPY=$(CG_TOOL_ROOT)/bin/tiarmobjcopy
|
|
||||||
ifeq ($(OS), Windows_NT)
|
|
||||||
PYTHON=python
|
|
||||||
else
|
|
||||||
PYTHON=python3
|
|
||||||
endif
|
|
||||||
|
|
||||||
PROFILE?=release
|
|
||||||
ConfigName:=$(PROFILE)
|
|
||||||
|
|
||||||
OUTNAME:=dcl_df22.$(PROFILE).out
|
|
||||||
|
|
||||||
BOOTIMAGE_PATH=$(abspath .)
|
|
||||||
BOOTIMAGE_NAME:=dcl_df22.$(PROFILE).appimage
|
|
||||||
BOOTIMAGE_NAME_XIP:=dcl_df22.$(PROFILE).appimage_xip
|
|
||||||
BOOTIMAGE_NAME_SIGNED:=dcl_df22.$(PROFILE).appimage.signed
|
|
||||||
BOOTIMAGE_RPRC_NAME:=dcl_df22.$(PROFILE).rprc
|
|
||||||
BOOTIMAGE_RPRC_NAME_XIP:=dcl_df22.$(PROFILE).rprc_xip
|
|
||||||
BOOTIMAGE_RPRC_NAME_TMP:=dcl_df22.$(PROFILE).rprc_tmp
|
|
||||||
BOOTIMAGE_NAME_HS:=dcl_df22.$(PROFILE).appimage.hs
|
|
||||||
BOOTIMAGE_NAME_HS_FS:=dcl_df22.$(PROFILE).appimage.hs_fs
|
|
||||||
TARGETS := $(BOOTIMAGE_NAME)
|
|
||||||
ifeq ($(DEVICE_TYPE), HS)
|
|
||||||
TARGETS += $(BOOTIMAGE_NAME_HS)
|
|
||||||
endif
|
|
||||||
|
|
||||||
FILES_common := \
|
|
||||||
df22_test.c \
|
|
||||||
main.c \
|
|
||||||
ti_drivers_config.c \
|
|
||||||
ti_drivers_open_close.c \
|
|
||||||
ti_board_config.c \
|
|
||||||
ti_board_open_close.c \
|
|
||||||
ti_dpl_config.c \
|
|
||||||
ti_pinmux_config.c \
|
|
||||||
ti_power_clock_config.c \
|
|
||||||
|
|
||||||
FILES_PATH_common = \
|
|
||||||
.. \
|
|
||||||
../../.. \
|
|
||||||
generated \
|
|
||||||
|
|
||||||
INCLUDES_common := \
|
|
||||||
-I${CG_TOOL_ROOT}/include/c \
|
|
||||||
-I${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source \
|
|
||||||
-I${MOTOR_CONTROL_SDK_PATH}/source \
|
|
||||||
-I${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/FreeRTOS-Kernel/include \
|
|
||||||
-I${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/portable/TI_ARM_CLANG/ARM_CM4F \
|
|
||||||
-I${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/config/am243x/m4f \
|
|
||||||
-I${MOTOR_CONTROL_SDK_PATH}/source/dcl \
|
|
||||||
-Igenerated \
|
|
||||||
|
|
||||||
DEFINES_common := \
|
|
||||||
-DSOC_AM243X \
|
|
||||||
|
|
||||||
CFLAGS_common := \
|
|
||||||
-mcpu=cortex-m4 \
|
|
||||||
-mfloat-abi=hard \
|
|
||||||
-mthumb \
|
|
||||||
-Wall \
|
|
||||||
-Werror \
|
|
||||||
-g \
|
|
||||||
-Wno-gnu-variable-sized-type-not-at-end \
|
|
||||||
-Wno-unused-function \
|
|
||||||
|
|
||||||
CFLAGS_cpp_common := \
|
|
||||||
-Wno-c99-designator \
|
|
||||||
-Wno-extern-c-compat \
|
|
||||||
-Wno-c++11-narrowing \
|
|
||||||
-Wno-reorder-init-list \
|
|
||||||
-Wno-deprecated-register \
|
|
||||||
-Wno-writable-strings \
|
|
||||||
-Wno-enum-compare \
|
|
||||||
-Wno-reserved-user-defined-literal \
|
|
||||||
-Wno-unused-const-variable \
|
|
||||||
-x c++ \
|
|
||||||
|
|
||||||
CFLAGS_debug := \
|
|
||||||
-D_DEBUG_=1 \
|
|
||||||
|
|
||||||
CFLAGS_release := \
|
|
||||||
-Os \
|
|
||||||
|
|
||||||
LNK_FILES_common = \
|
|
||||||
linker.cmd \
|
|
||||||
dcl_linker_m4f_am243x_sitara.cmd \
|
|
||||||
|
|
||||||
LIBS_PATH_common = \
|
|
||||||
-Wl,-i${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/lib \
|
|
||||||
-Wl,-i${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/drivers/lib \
|
|
||||||
-Wl,-i${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/board/lib \
|
|
||||||
-Wl,-i${CG_TOOL_ROOT}/lib \
|
|
||||||
|
|
||||||
LIBS_common = \
|
|
||||||
-lfreertos.am243x.m4f.ti-arm-clang.${ConfigName}.lib \
|
|
||||||
-ldrivers.am243x.m4f.ti-arm-clang.${ConfigName}.lib \
|
|
||||||
-lboard.am243x.m4f.ti-arm-clang.${ConfigName}.lib \
|
|
||||||
-llibc.a \
|
|
||||||
-llibsysbm.a \
|
|
||||||
|
|
||||||
LFLAGS_common = \
|
|
||||||
-Wl,--ram_model \
|
|
||||||
-Wl,--reread_libs \
|
|
||||||
|
|
||||||
|
|
||||||
LIBS_NAME = \
|
|
||||||
freertos.am243x.m4f.ti-arm-clang.${ConfigName}.lib \
|
|
||||||
drivers.am243x.m4f.ti-arm-clang.${ConfigName}.lib \
|
|
||||||
board.am243x.m4f.ti-arm-clang.${ConfigName}.lib \
|
|
||||||
libc.a \
|
|
||||||
libsysbm.a \
|
|
||||||
|
|
||||||
LIBS_PATH_NAME = \
|
|
||||||
${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/lib \
|
|
||||||
${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/drivers/lib \
|
|
||||||
${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/board/lib \
|
|
||||||
${CG_TOOL_ROOT}/lib \
|
|
||||||
|
|
||||||
FILES := $(FILES_common) $(FILES_$(PROFILE))
|
|
||||||
ASMFILES := $(ASMFILES_common) $(ASMFILES_$(PROFILE))
|
|
||||||
FILES_PATH := $(FILES_PATH_common) $(FILES_PATH_$(PROFILE))
|
|
||||||
CFLAGS := $(CFLAGS_common) $(CFLAGS_$(PROFILE))
|
|
||||||
DEFINES := $(DEFINES_common) $(DEFINES_$(PROFILE))
|
|
||||||
INCLUDES := $(INCLUDES_common) $(INCLUDE_$(PROFILE))
|
|
||||||
LIBS := $(LIBS_common) $(LIBS_$(PROFILE))
|
|
||||||
LIBS_PATH := $(LIBS_PATH_common) $(LIBS_PATH_$(PROFILE))
|
|
||||||
LFLAGS := $(LFLAGS_common) $(LFLAGS_$(PROFILE))
|
|
||||||
LNKOPTFLAGS := $(LNKOPTFLAGS_common) $(LNKOPTFLAGS_$(PROFILE))
|
|
||||||
LNK_FILES := $(LNK_FILES_common) $(LNK_FILES_$(PROFILE))
|
|
||||||
|
|
||||||
OBJDIR := obj/$(PROFILE)/
|
|
||||||
OBJS := $(FILES:%.c=%.obj)
|
|
||||||
OBJS += $(ASMFILES:%.S=%.obj)
|
|
||||||
DEPS := $(FILES:%.c=%.d)
|
|
||||||
|
|
||||||
vpath %.obj $(OBJDIR)
|
|
||||||
vpath %.c $(FILES_PATH)
|
|
||||||
vpath %.S $(FILES_PATH)
|
|
||||||
vpath %.lib $(LIBS_PATH_NAME)
|
|
||||||
vpath %.a $(LIBS_PATH_NAME)
|
|
||||||
|
|
||||||
$(OBJDIR)/%.obj %.obj: %.c
|
|
||||||
@echo Compiling: am243x:m4fss0-0:freertos:ti-arm-clang $(OUTNAME): $<
|
|
||||||
$(CC) -c $(CFLAGS) $(INCLUDES) $(DEFINES) -MMD -o $(OBJDIR)/$@ $<
|
|
||||||
|
|
||||||
$(OBJDIR)/%.obj %.obj: %.S
|
|
||||||
@echo Compiling: am243x:m4fss0-0:freertos:ti-arm-clang $(LIBNAME): $<
|
|
||||||
$(CC) -c $(CFLAGS) -o $(OBJDIR)/$@ $<
|
|
||||||
|
|
||||||
all: $(TARGETS)
|
|
||||||
|
|
||||||
SYSCFG_GEN_FILES=generated/ti_drivers_config.c generated/ti_drivers_config.h
|
|
||||||
SYSCFG_GEN_FILES+=generated/ti_drivers_open_close.c generated/ti_drivers_open_close.h
|
|
||||||
SYSCFG_GEN_FILES+=generated/ti_dpl_config.c generated/ti_dpl_config.h
|
|
||||||
SYSCFG_GEN_FILES+=generated/ti_pinmux_config.c generated/ti_power_clock_config.c
|
|
||||||
SYSCFG_GEN_FILES+=generated/ti_board_config.c generated/ti_board_config.h
|
|
||||||
SYSCFG_GEN_FILES+=generated/ti_board_open_close.c generated/ti_board_open_close.h
|
|
||||||
|
|
||||||
$(OUTNAME): syscfg $(SYSCFG_GEN_FILES) $(OBJS) $(LNK_FILES) $(LIBS_NAME)
|
|
||||||
@echo .
|
|
||||||
@echo Linking: am243x:m4fss0-0:freertos:ti-arm-clang $@ ...
|
|
||||||
$(LNK) $(LNKOPTFLAGS) $(LFLAGS) $(LIBS_PATH) -Wl,-m=$(basename $@).map -o $@ $(addprefix $(OBJDIR), $(OBJS)) $(LIBS) $(LNK_FILES)
|
|
||||||
@echo Linking: am243x:m4fss0-0:freertos:ti-arm-clang $@ Done !!!
|
|
||||||
@echo .
|
|
||||||
|
|
||||||
clean:
|
|
||||||
@echo Cleaning: am243x:m4fss0-0:freertos:ti-arm-clang $(OUTNAME) ...
|
|
||||||
$(RMDIR) $(OBJDIR)
|
|
||||||
$(RM) $(OUTNAME)
|
|
||||||
$(RM) $(BOOTIMAGE_NAME)
|
|
||||||
$(RM) $(BOOTIMAGE_NAME_XIP)
|
|
||||||
$(RM) $(BOOTIMAGE_NAME_SIGNED)
|
|
||||||
$(RM) $(BOOTIMAGE_NAME_HS)
|
|
||||||
$(RM) $(BOOTIMAGE_NAME_HS_FS)
|
|
||||||
$(RM) $(BOOTIMAGE_RPRC_NAME)
|
|
||||||
$(RM) $(BOOTIMAGE_RPRC_NAME_XIP)
|
|
||||||
$(RMDIR) generated/
|
|
||||||
|
|
||||||
scrub:
|
|
||||||
@echo Scrubing: am243x:m4fss0-0:freertos:ti-arm-clang dcl_df22 ...
|
|
||||||
$(RMDIR) obj
|
|
||||||
ifeq ($(OS),Windows_NT)
|
|
||||||
$(RM) \*.out
|
|
||||||
$(RM) \*.map
|
|
||||||
$(RM) \*.appimage*
|
|
||||||
$(RM) \*.rprc*
|
|
||||||
$(RM) \*.tiimage*
|
|
||||||
$(RM) \*.bin
|
|
||||||
else
|
|
||||||
$(RM) *.out
|
|
||||||
$(RM) *.map
|
|
||||||
$(RM) *.appimage*
|
|
||||||
$(RM) *.rprc*
|
|
||||||
$(RM) *.tiimage*
|
|
||||||
$(RM) *.bin
|
|
||||||
endif
|
|
||||||
$(RMDIR) generated
|
|
||||||
|
|
||||||
$(OBJS): | $(OBJDIR)
|
|
||||||
|
|
||||||
$(OBJDIR):
|
|
||||||
$(MKDIR) $@
|
|
||||||
|
|
||||||
|
|
||||||
.NOTPARALLEL:
|
|
||||||
|
|
||||||
.INTERMEDIATE: syscfg
|
|
||||||
$(SYSCFG_GEN_FILES): syscfg
|
|
||||||
|
|
||||||
syscfg: ../example.syscfg
|
|
||||||
@echo Generating SysConfig files ...
|
|
||||||
$(SYSCFG_NODE) $(SYSCFG_CLI_PATH)/dist/cli.js --product $(SYSCFG_SDKPRODUCT) --context m4fss0-0 --part ALX --package ALX --output generated/ ../example.syscfg
|
|
||||||
|
|
||||||
syscfg-gui:
|
|
||||||
$(SYSCFG_NWJS) $(SYSCFG_PATH) --product $(SYSCFG_SDKPRODUCT) --device AM243x_ALX_beta --context m4fss0-0 --part ALX --package ALX --output generated/ ../example.syscfg
|
|
||||||
|
|
||||||
#
|
|
||||||
# Generation of boot image which can be loaded by Secondary Boot Loader (SBL)
|
|
||||||
#
|
|
||||||
ifeq ($(OS),Windows_NT)
|
|
||||||
EXE_EXT=.exe
|
|
||||||
endif
|
|
||||||
ifeq ($(OS),Windows_NT)
|
|
||||||
BOOTIMAGE_CERT_GEN_CMD=powershell -executionpolicy unrestricted -command $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/signing/x509CertificateGen.ps1
|
|
||||||
else
|
|
||||||
BOOTIMAGE_CERT_GEN_CMD=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/signing/x509CertificateGen.sh
|
|
||||||
endif
|
|
||||||
BOOTIMAGE_TEMP_OUT_FILE=temp_stdout_$(PROFILE).txt
|
|
||||||
|
|
||||||
BOOTIMAGE_CERT_KEY=$(APP_SIGNING_KEY)
|
|
||||||
|
|
||||||
BOOTIMAGE_CORE_ID_r5fss0-0 = 4
|
|
||||||
BOOTIMAGE_CORE_ID_r5fss0-1 = 5
|
|
||||||
BOOTIMAGE_CORE_ID_r5fss1-0 = 6
|
|
||||||
BOOTIMAGE_CORE_ID_r5fss1-1 = 7
|
|
||||||
BOOTIMAGE_CORE_ID_m4fss0-0 = 14
|
|
||||||
SBL_RUN_ADDRESS=0x70000000
|
|
||||||
SBL_DEV_ID=55
|
|
||||||
|
|
||||||
MULTI_CORE_IMAGE_GEN = $(SYSCFG_NODE) $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/multicoreImageGen/multicoreImageGen.js
|
|
||||||
OUTRPRC_CMD = $(SYSCFG_NODE) $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/out2rprc/elf2rprc.js
|
|
||||||
APP_IMAGE_SIGN_CMD = $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/signing/appimage_x509_cert_gen.py
|
|
||||||
|
|
||||||
ifeq ($(OS),Windows_NT)
|
|
||||||
XIPGEN_CMD=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/xipGen/xipGen.exe
|
|
||||||
else
|
|
||||||
XIPGEN_CMD=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/xipGen/xipGen.out
|
|
||||||
endif
|
|
||||||
|
|
||||||
MULTI_CORE_IMAGE_PARAMS = \
|
|
||||||
$(BOOTIMAGE_RPRC_NAME)@$(BOOTIMAGE_CORE_ID_m4fss0-0) \
|
|
||||||
|
|
||||||
MULTI_CORE_IMAGE_PARAMS_XIP = \
|
|
||||||
$(BOOTIMAGE_RPRC_NAME_XIP)@$(BOOTIMAGE_CORE_ID_m4fss0-0) \
|
|
||||||
|
|
||||||
$(BOOTIMAGE_NAME): $(OUTNAME)
|
|
||||||
@echo Boot image: am243x:m4fss0-0:freertos:ti-arm-clang $(BOOTIMAGE_PATH)/$@ ...
|
|
||||||
ifneq ($(OS),Windows_NT)
|
|
||||||
$(CHMOD) a+x $(XIPGEN_CMD)
|
|
||||||
endif
|
|
||||||
$(OUTRPRC_CMD) $(OUTNAME) >> $(BOOTIMAGE_TEMP_OUT_FILE)
|
|
||||||
$(COPY) $(BOOTIMAGE_RPRC_NAME) $(BOOTIMAGE_RPRC_NAME_TMP)
|
|
||||||
$(RM) $(BOOTIMAGE_RPRC_NAME)
|
|
||||||
$(XIPGEN_CMD) -i $(BOOTIMAGE_RPRC_NAME_TMP) -o $(BOOTIMAGE_RPRC_NAME) -x $(BOOTIMAGE_RPRC_NAME_XIP) --flash-start-addr 0x60000000 -v > $(BOOTIMAGE_TEMP_OUT_FILE)
|
|
||||||
$(MULTI_CORE_IMAGE_GEN) --devID $(SBL_DEV_ID) --out $(BOOTIMAGE_NAME) $(MULTI_CORE_IMAGE_PARAMS) >> $(BOOTIMAGE_TEMP_OUT_FILE)
|
|
||||||
$(MULTI_CORE_IMAGE_GEN) --devID $(SBL_DEV_ID) --out $(BOOTIMAGE_NAME_XIP) $(MULTI_CORE_IMAGE_PARAMS_XIP) >> $(BOOTIMAGE_TEMP_OUT_FILE)
|
|
||||||
# Sign the appimage for HS-FS using appimage signing script
|
|
||||||
$(PYTHON) $(APP_IMAGE_SIGN_CMD) --bin $(BOOTIMAGE_NAME) --authtype 1 --key $(APP_SIGNING_KEY) --output $(BOOTIMAGE_NAME_HS_FS)
|
|
||||||
$(RM) $(BOOTIMAGE_RPRC_NAME_TMP)
|
|
||||||
$(RM) $(BOOTIMAGE_TEMP_OUT_FILE)
|
|
||||||
@echo Boot image: am243x:m4fss0-0:freertos:ti-arm-clang $(BOOTIMAGE_PATH)/$@ Done !!!
|
|
||||||
@echo .
|
|
||||||
@echo Boot image: am243x:m4fss0-0:freertos:ti-arm-clang $(BOOTIMAGE_PATH)/$(BOOTIMAGE_NAME_HS_FS) Done !!!
|
|
||||||
@echo .
|
|
||||||
|
|
||||||
$(BOOTIMAGE_NAME_HS): $(BOOTIMAGE_NAME)
|
|
||||||
ifeq ($(DEVICE_TYPE), HS)
|
|
||||||
# Sign the appimage using appimage signing script
|
|
||||||
ifeq ($(ENC_ENABLED),no)
|
|
||||||
@echo Boot image signing: Encryption is disabled.
|
|
||||||
$(PYTHON) $(APP_IMAGE_SIGN_CMD) --bin $(BOOTIMAGE_NAME) --authtype 1 --key $(APP_SIGNING_KEY) --output $(BOOTIMAGE_NAME_HS)
|
|
||||||
else
|
|
||||||
@echo Boot image signing: Encryption is enabled.
|
|
||||||
$(PYTHON) $(APP_IMAGE_SIGN_CMD) --bin $(BOOTIMAGE_NAME) --authtype 1 --key $(APP_SIGNING_KEY) --enc y --enckey $(APP_ENCRYPTION_KEY) --output $(BOOTIMAGE_NAME_HS)
|
|
||||||
$(RM) $(BOOTIMAGE_NAME)-enc
|
|
||||||
endif
|
|
||||||
@echo Boot image: am243x:m4fss0-0:freertos:ti-arm-clang $(BOOTIMAGE_PATH)/$(BOOTIMAGE_NAME_HS) Done !!!
|
|
||||||
@echo .
|
|
||||||
endif
|
|
||||||
-include $(addprefix $(OBJDIR)/, $(DEPS))
|
|
||||||
@ -1,106 +0,0 @@
|
|||||||
#
|
|
||||||
# Auto generated makefile
|
|
||||||
#
|
|
||||||
|
|
||||||
# Below variables need to be defined outside this file or via command line
|
|
||||||
# - MOTOR_CONTROL_SDK_PATH
|
|
||||||
# - PROFILE
|
|
||||||
# - CG_TOOL_ROOT
|
|
||||||
# - OUTNAME
|
|
||||||
# - CCS_INSTALL_DIR
|
|
||||||
# - CCS_IDE_MODE
|
|
||||||
|
|
||||||
CCS_PATH=$(CCS_INSTALL_DIR)
|
|
||||||
include ${MOTOR_CONTROL_SDK_PATH}/imports.mak
|
|
||||||
include ${MOTOR_CONTROL_SDK_PATH}/devconfig/devconfig.mak
|
|
||||||
|
|
||||||
STRIP=$(CG_TOOL_ROOT)/bin/tiarmstrip
|
|
||||||
OBJCOPY=$(CG_TOOL_ROOT)/bin/tiarmobjcopy
|
|
||||||
ifeq ($(OS), Windows_NT)
|
|
||||||
PYTHON=python
|
|
||||||
else
|
|
||||||
PYTHON=python3
|
|
||||||
endif
|
|
||||||
|
|
||||||
OUTFILE=$(PROFILE)/$(OUTNAME).out
|
|
||||||
BOOTIMAGE_PATH=$(abspath ${PROFILE})
|
|
||||||
BOOTIMAGE_NAME:=$(BOOTIMAGE_PATH)/$(OUTNAME).appimage
|
|
||||||
BOOTIMAGE_NAME_XIP:=$(BOOTIMAGE_PATH)/$(OUTNAME).appimage_xip
|
|
||||||
BOOTIMAGE_NAME_SIGNED:=$(BOOTIMAGE_PATH)/$(OUTNAME).appimage.signed
|
|
||||||
BOOTIMAGE_RPRC_NAME:=$(BOOTIMAGE_PATH)/$(OUTNAME).rprc
|
|
||||||
BOOTIMAGE_RPRC_NAME_XIP:=$(BOOTIMAGE_PATH)/$(OUTNAME).rprc_xip
|
|
||||||
BOOTIMAGE_RPRC_NAME_TMP:=$(BOOTIMAGE_PATH)/$(OUTNAME).rprc_tmp
|
|
||||||
|
|
||||||
#
|
|
||||||
# Generation of boot image which can be loaded by Secondary Boot Loader (SBL)
|
|
||||||
#
|
|
||||||
ifeq ($(OS),Windows_NT)
|
|
||||||
EXE_EXT=.exe
|
|
||||||
endif
|
|
||||||
ifeq ($(OS),Windows_NT)
|
|
||||||
BOOTIMAGE_CERT_GEN_CMD=powershell -executionpolicy unrestricted -command $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/signing/x509CertificateGen.ps1
|
|
||||||
else
|
|
||||||
BOOTIMAGE_CERT_GEN_CMD=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/signing/x509CertificateGen.sh
|
|
||||||
endif
|
|
||||||
BOOTIMAGE_TEMP_OUT_FILE=$(PROFILE)/temp_stdout_$(PROFILE).txt
|
|
||||||
|
|
||||||
BOOTIMAGE_CORE_ID_r5fss0-0 = 4
|
|
||||||
BOOTIMAGE_CORE_ID_r5fss0-1 = 5
|
|
||||||
BOOTIMAGE_CORE_ID_r5fss1-0 = 6
|
|
||||||
BOOTIMAGE_CORE_ID_r5fss1-1 = 7
|
|
||||||
BOOTIMAGE_CORE_ID_m4fss0-0 = 14
|
|
||||||
SBL_RUN_ADDRESS=0x70000000
|
|
||||||
SBL_DEV_ID=55
|
|
||||||
|
|
||||||
MULTI_CORE_IMAGE_GEN = $(CCS_NODE) $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/multicoreImageGen/multicoreImageGen.js
|
|
||||||
OUTRPRC_CMD = $(CCS_NODE) $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/out2rprc/elf2rprc.js
|
|
||||||
APP_IMAGE_SIGN_CMD = $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/signing/appimage_x509_cert_gen.py
|
|
||||||
|
|
||||||
ifeq ($(OS),Windows_NT)
|
|
||||||
XIPGEN_CMD=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/xipGen/xipGen.exe
|
|
||||||
else
|
|
||||||
XIPGEN_CMD=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/xipGen/xipGen.out
|
|
||||||
endif
|
|
||||||
|
|
||||||
MULTI_CORE_IMAGE_PARAMS = \
|
|
||||||
$(BOOTIMAGE_RPRC_NAME)@$(BOOTIMAGE_CORE_ID_m4fss0-0) \
|
|
||||||
|
|
||||||
MULTI_CORE_IMAGE_PARAMS_XIP = \
|
|
||||||
$(BOOTIMAGE_RPRC_NAME_XIP)@$(BOOTIMAGE_CORE_ID_m4fss0-0) \
|
|
||||||
|
|
||||||
all:
|
|
||||||
ifeq ($(CCS_IDE_MODE),cloud)
|
|
||||||
# No post build steps
|
|
||||||
else
|
|
||||||
@echo Boot image: am243x:m4fss0-0:freertos:ti-arm-clang $(BOOTIMAGE_NAME) ...
|
|
||||||
$(OUTRPRC_CMD) $(OUTFILE) >> $(BOOTIMAGE_TEMP_OUT_FILE)
|
|
||||||
$(COPY) $(OUTNAME).rprc $(BOOTIMAGE_RPRC_NAME)
|
|
||||||
$(COPY) $(BOOTIMAGE_RPRC_NAME) $(BOOTIMAGE_RPRC_NAME_TMP)
|
|
||||||
$(RM) $(BOOTIMAGE_RPRC_NAME)
|
|
||||||
$(XIPGEN_CMD) -i $(BOOTIMAGE_RPRC_NAME_TMP) -o $(BOOTIMAGE_RPRC_NAME) -x $(BOOTIMAGE_RPRC_NAME_XIP) --flash-start-addr 0x60000000 -v > $(BOOTIMAGE_TEMP_OUT_FILE)
|
|
||||||
$(MULTI_CORE_IMAGE_GEN) --devID $(SBL_DEV_ID) --out $(BOOTIMAGE_NAME) $(MULTI_CORE_IMAGE_PARAMS) >> $(BOOTIMAGE_TEMP_OUT_FILE)
|
|
||||||
$(MULTI_CORE_IMAGE_GEN) --devID $(SBL_DEV_ID) --out $(BOOTIMAGE_NAME_XIP) $(MULTI_CORE_IMAGE_PARAMS_XIP) >> $(BOOTIMAGE_TEMP_OUT_FILE)
|
|
||||||
# Sign the appimage for HS-FS using appimage signing script
|
|
||||||
$(PYTHON) $(APP_IMAGE_SIGN_CMD) --bin $(BOOTIMAGE_NAME) --authtype 1 --key $(APP_SIGNING_KEY) --output $(BOOTIMAGE_NAME).hs_fs
|
|
||||||
ifeq ($(DEVICE_TYPE),HS)
|
|
||||||
# Sign the appimage using appimage signing script
|
|
||||||
ifeq ($(ENC_ENABLED),no)
|
|
||||||
@echo Boot image signing: Encryption is disabled.
|
|
||||||
$(PYTHON) $(APP_IMAGE_SIGN_CMD) --bin $(BOOTIMAGE_NAME) --authtype 1 --key $(APP_SIGNING_KEY) --output $(BOOTIMAGE_NAME).hs
|
|
||||||
else
|
|
||||||
@echo Boot image signing: Encryption is enabled.
|
|
||||||
$(PYTHON) $(APP_IMAGE_SIGN_CMD) --bin $(BOOTIMAGE_NAME) --authtype 1 --key $(APP_SIGNING_KEY) --enc y --enckey $(APP_ENCRYPTION_KEY) --output $(BOOTIMAGE_NAME).hs
|
|
||||||
$(RM) $(BOOTIMAGE_NAME)-enc
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
$(RM) $(BOOTIMAGE_RPRC_NAME_TMP)
|
|
||||||
@echo Boot image: am243x:m4fss0-0:freertos:ti-arm-clang $(BOOTIMAGE_NAME) Done !!!
|
|
||||||
@echo .
|
|
||||||
ifeq ($(DEVICE_TYPE),HS)
|
|
||||||
@echo Boot image: am243x:m4fss0-0:freertos:ti-arm-clang $(BOOTIMAGE_NAME).hs Done !!!
|
|
||||||
@echo .
|
|
||||||
else
|
|
||||||
@echo Boot image: am243x:m4fss0-0:freertos:ti-arm-clang $(BOOTIMAGE_NAME).hs_fs Done !!!
|
|
||||||
@echo .
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
@ -1,20 +0,0 @@
|
|||||||
#
|
|
||||||
# Auto generated makefile
|
|
||||||
#
|
|
||||||
|
|
||||||
export MOTOR_CONTROL_SDK_PATH?=$(abspath ../../../../../..)
|
|
||||||
include $(MOTOR_CONTROL_SDK_PATH)/imports.mak
|
|
||||||
|
|
||||||
PROFILE?=Release
|
|
||||||
|
|
||||||
PROJECT_NAME=dcl_df22_am243x-lp_m4fss0-0_freertos_ti-arm-clang
|
|
||||||
|
|
||||||
all:
|
|
||||||
$(CCS_ECLIPSE) -noSplash -data $(MOTOR_CONTROL_SDK_PATH)/ccs_projects -application com.ti.ccstudio.apps.projectBuild -ccs.projects $(PROJECT_NAME) -ccs.configuration $(PROFILE)
|
|
||||||
|
|
||||||
clean:
|
|
||||||
$(CCS_ECLIPSE) -noSplash -data $(MOTOR_CONTROL_SDK_PATH)/ccs_projects -application com.ti.ccstudio.apps.projectBuild -ccs.projects $(PROJECT_NAME) -ccs.configuration $(PROFILE) -ccs.clean
|
|
||||||
|
|
||||||
export:
|
|
||||||
$(MKDIR) $(MOTOR_CONTROL_SDK_PATH)/ccs_projects
|
|
||||||
$(CCS_ECLIPSE) -noSplash -data $(MOTOR_CONTROL_SDK_PATH)/ccs_projects -application com.ti.ccstudio.apps.projectCreate -ccs.projectSpec example.projectspec -ccs.overwrite full
|
|
||||||
@ -1,8 +0,0 @@
|
|||||||
/*
|
|
||||||
* ======== syscfg_c.rov.xs ========
|
|
||||||
* This file contains the information needed by the Runtime Object
|
|
||||||
* View (ROV) tool.
|
|
||||||
*/
|
|
||||||
var crovFiles = [
|
|
||||||
"kernel/freertos/rov/FreeRTOS.rov.js",
|
|
||||||
];
|
|
||||||
@ -1,45 +0,0 @@
|
|||||||
/**
|
|
||||||
* 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_ALX_beta" --package "ALX" --part "ALX" --context "m4fss0-0" --product "MCU_PLUS_SDK@07.03.01"
|
|
||||||
* @versions {"tool":"1.9.0+2015","templates":null}
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Import the modules used in this configuration.
|
|
||||||
*/
|
|
||||||
const addr_translate = scripting.addModule("/kernel/dpl/addr_translate", {}, false);
|
|
||||||
const addr_translate1 = addr_translate.addInstance();
|
|
||||||
const addr_translate2 = addr_translate.addInstance();
|
|
||||||
const addr_translate3 = addr_translate.addInstance();
|
|
||||||
const addr_translate4 = addr_translate.addInstance();
|
|
||||||
const clock = scripting.addModule("/kernel/dpl/clock");
|
|
||||||
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();
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Write custom configuration values to the imported modules.
|
|
||||||
*/
|
|
||||||
addr_translate1.$name = "CONFIG_ADDR_TRANSLATE_REGION0";
|
|
||||||
addr_translate1.localAddr = 0x80000000;
|
|
||||||
|
|
||||||
addr_translate2.$name = "CONFIG_ADDR_TRANSLATE_REGION1";
|
|
||||||
addr_translate2.systemAddr = 0x20000000;
|
|
||||||
addr_translate2.localAddr = 0xA0000000;
|
|
||||||
|
|
||||||
addr_translate3.$name = "CONFIG_ADDR_TRANSLATE_REGION2";
|
|
||||||
addr_translate3.systemAddr = 0x40000000;
|
|
||||||
addr_translate3.localAddr = 0xC0000000;
|
|
||||||
|
|
||||||
addr_translate4.$name = "CONFIG_ADDR_TRANSLATE_REGION3";
|
|
||||||
addr_translate4.systemAddr = 0x60000000;
|
|
||||||
addr_translate4.localAddr = 0x60000000;
|
|
||||||
|
|
||||||
mpu_armv71.$name = "CONFIG_MPU_REGION0";
|
|
||||||
mpu_armv71.attributes = "Device";
|
|
||||||
mpu_armv71.allowExecute = false;
|
|
||||||
|
|
||||||
mpu_armv72.$name = "CONFIG_MPU_REGION1";
|
|
||||||
mpu_armv72.size = 18;
|
|
||||||
@ -1,50 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright (C) 2018-2021 Texas Instruments Incorporated
|
|
||||||
*
|
|
||||||
* Redistribution and use in source and binary forms, with or without
|
|
||||||
* modification, are permitted provided that the following conditions
|
|
||||||
* are met:
|
|
||||||
*
|
|
||||||
* Redistributions of source code must retain the above copyright
|
|
||||||
* notice, this list of conditions and the following disclaimer.
|
|
||||||
*
|
|
||||||
* Redistributions in binary form must reproduce the above copyright
|
|
||||||
* notice, this list of conditions and the following disclaimer in the
|
|
||||||
* documentation and/or other materials provided with the
|
|
||||||
* distribution.
|
|
||||||
*
|
|
||||||
* Neither the name of Texas Instruments Incorporated nor the names of
|
|
||||||
* its contributors may be used to endorse or promote products derived
|
|
||||||
* from this software without specific prior written permission.
|
|
||||||
*
|
|
||||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
||||||
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
||||||
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
||||||
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
||||||
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
||||||
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
||||||
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
||||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
||||||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include "ti_drivers_config.h"
|
|
||||||
#include "ti_board_config.h"
|
|
||||||
|
|
||||||
void dcl_df22_main(void *args);
|
|
||||||
|
|
||||||
int main(void)
|
|
||||||
{
|
|
||||||
System_init();
|
|
||||||
Board_init();
|
|
||||||
|
|
||||||
dcl_df22_main(NULL);
|
|
||||||
|
|
||||||
Board_deinit();
|
|
||||||
System_deinit();
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
@ -1,19 +0,0 @@
|
|||||||
/*
|
|
||||||
* This linker file is optional, it's complementary to the device/core linker file
|
|
||||||
* Here it specifies the dcl function & data mapping allocated by __attribute__((section(...)))
|
|
||||||
* and link to a specific memory region for the best performance
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Define core & platform specific variables */
|
|
||||||
#define FAST_RAM M4F_IRAM
|
|
||||||
#define REG_RAM M4F_IRAM /* M4F_DRAM also works */
|
|
||||||
|
|
||||||
SECTIONS
|
|
||||||
{
|
|
||||||
/* dcl functions mapped to on-chip fast ram */
|
|
||||||
dclfuncs : {} > FAST_RAM
|
|
||||||
|
|
||||||
/* optional -- map datas & variables to regular ram */
|
|
||||||
/* Sitara default linker should already map variables to ram */
|
|
||||||
dclDataSection : {} > REG_RAM
|
|
||||||
}
|
|
||||||
@ -1,112 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<projectSpec>
|
|
||||||
<applicability>
|
|
||||||
<when>
|
|
||||||
<context
|
|
||||||
deviceFamily="ARM"
|
|
||||||
deviceId="Cortex M.AM2434_ALX"
|
|
||||||
/>
|
|
||||||
</when>
|
|
||||||
</applicability>
|
|
||||||
|
|
||||||
<project
|
|
||||||
title="Dcl Df22"
|
|
||||||
name = "dcl_df22_am243x-lp_m4fss0-0_nortos_ti-arm-clang"
|
|
||||||
products="sysconfig;com.ti.MOTOR_CONTROL_SDK_AMXXX;"
|
|
||||||
configurations="
|
|
||||||
Debug,
|
|
||||||
Release,
|
|
||||||
"
|
|
||||||
connection="TIXDS110_Connection.xml"
|
|
||||||
toolChain="TICLANG"
|
|
||||||
cgtVersion="2.1.3"
|
|
||||||
device="Cortex M.AM2434_ALX"
|
|
||||||
deviceCore="Cortex_M4F_0"
|
|
||||||
ignoreDefaultDeviceSettings="true"
|
|
||||||
ignoreDefaultCCSSettings="true"
|
|
||||||
endianness="little"
|
|
||||||
outputFormat="ELF"
|
|
||||||
outputType="executable"
|
|
||||||
|
|
||||||
compilerBuildOptions="
|
|
||||||
-I${CG_TOOL_ROOT}/include/c
|
|
||||||
-I${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source
|
|
||||||
-I${MOTOR_CONTROL_SDK_PATH}/source
|
|
||||||
-I${MOTOR_CONTROL_SDK_PATH}/source/dcl
|
|
||||||
-mcpu=cortex-m4
|
|
||||||
-mfloat-abi=hard
|
|
||||||
-mthumb
|
|
||||||
-Wall
|
|
||||||
-Werror
|
|
||||||
-g
|
|
||||||
-Wno-gnu-variable-sized-type-not-at-end
|
|
||||||
-Wno-unused-function
|
|
||||||
-DSOC_AM243X
|
|
||||||
"
|
|
||||||
linkerBuildOptions="
|
|
||||||
-i${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/nortos/lib
|
|
||||||
-i${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/drivers/lib
|
|
||||||
-i${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/board/lib
|
|
||||||
-i${CG_TOOL_ROOT}/lib
|
|
||||||
-m=dcl_df22.${ConfigName}.map
|
|
||||||
--ram_model
|
|
||||||
--reread_libs
|
|
||||||
"
|
|
||||||
|
|
||||||
postBuildStep="$(MAKE) -C ${CCS_PROJECT_DIR} -f makefile_ccs_bootimage_gen OUTNAME=${BuildArtifactFileBaseName} PROFILE=${ConfigName} MOTOR_CONTROL_SDK_PATH=${MOTOR_CONTROL_SDK_PATH} CG_TOOL_ROOT=${CG_TOOL_ROOT} CCS_INSTALL_DIR=${CCS_INSTALL_DIR} CCS_IDE_MODE=${CCS_IDE_MODE} DEVICE=am243x"
|
|
||||||
|
|
||||||
enableSysConfigTool="true"
|
|
||||||
sysConfigBuildOptions="
|
|
||||||
--context m4fss0-0 --part ALX --package ALX
|
|
||||||
"
|
|
||||||
|
|
||||||
description="A Dcl Df22 NORTOS project">
|
|
||||||
|
|
||||||
<configuration name="Debug"
|
|
||||||
compilerBuildOptions="
|
|
||||||
-D_DEBUG_=1
|
|
||||||
"
|
|
||||||
linkerBuildOptions="
|
|
||||||
-lnortos.am243x.m4f.ti-arm-clang.debug.lib
|
|
||||||
-ldrivers.am243x.m4f.ti-arm-clang.debug.lib
|
|
||||||
-lboard.am243x.m4f.ti-arm-clang.debug.lib
|
|
||||||
-llibc.a
|
|
||||||
-llibsysbm.a
|
|
||||||
"
|
|
||||||
></configuration>
|
|
||||||
<configuration name="Release"
|
|
||||||
compilerBuildOptions="
|
|
||||||
-Os
|
|
||||||
"
|
|
||||||
linkerBuildOptions="
|
|
||||||
-lnortos.am243x.m4f.ti-arm-clang.release.lib
|
|
||||||
-ldrivers.am243x.m4f.ti-arm-clang.release.lib
|
|
||||||
-lboard.am243x.m4f.ti-arm-clang.release.lib
|
|
||||||
-llibc.a
|
|
||||||
-llibsysbm.a
|
|
||||||
"
|
|
||||||
></configuration>
|
|
||||||
<pathVariable name="MOTOR_CONTROL_SDK_PATH" path="${COM_TI_MOTOR_CONTROL_SDK_AMXXX_INSTALL_DIR}" scope="project" />
|
|
||||||
<file path="../../../df22_test.c" openOnCreation="false" excludeFromBuild="false" action="copy">
|
|
||||||
</file>
|
|
||||||
<file path="../main.c" openOnCreation="false" excludeFromBuild="false" action="copy">
|
|
||||||
</file>
|
|
||||||
<file path="linker.cmd" openOnCreation="false" excludeFromBuild="false" action="copy">
|
|
||||||
</file>
|
|
||||||
<file path="dcl_linker_m4f_am243x_sitara.cmd" openOnCreation="false" excludeFromBuild="false" action="copy">
|
|
||||||
</file>
|
|
||||||
<file path="../example.syscfg" openOnCreation="false" excludeFromBuild="false" action="copy">
|
|
||||||
</file>
|
|
||||||
<file path="${MOTOR_CONTROL_SDK_PATH}/docs/api_guide_am243x/EXAMPLES_DCL_DF22.html"
|
|
||||||
openOnCreation="false" excludeFromBuild="false" targetName="README.html" action="link">
|
|
||||||
</file>
|
|
||||||
<file path="../../../df22_test.h" openOnCreation="false" excludeFromBuild="true" action="copy">
|
|
||||||
</file>
|
|
||||||
<file path="../../../data" openOnCreation="false" excludeFromBuild="true" action="copy">
|
|
||||||
</file>
|
|
||||||
<file path="syscfg_c.rov.xs" openOnCreation="false" excludeFromBuild="false" action="copy">
|
|
||||||
</file>
|
|
||||||
<file path="makefile_ccs_bootimage_gen" openOnCreation="false" excludeFromBuild="false" action="copy">
|
|
||||||
</file>
|
|
||||||
</project>
|
|
||||||
</projectSpec>
|
|
||||||
@ -1,62 +0,0 @@
|
|||||||
|
|
||||||
/* make sure below retain is there in your linker command file, it keeps the vector table in the final binary */
|
|
||||||
--retain="*(.vectors)"
|
|
||||||
/* This is the stack that is used by code running within main()
|
|
||||||
* In case of NORTOS,
|
|
||||||
* - This means all the code outside of ISR uses this stack
|
|
||||||
* In case of FreeRTOS
|
|
||||||
* - This means all the code until vTaskStartScheduler() is called in main()
|
|
||||||
* uses this stack.
|
|
||||||
* - After vTaskStartScheduler() each task created in FreeRTOS has its own stack
|
|
||||||
*/
|
|
||||||
--stack_size=16384
|
|
||||||
/* This is the heap size for malloc() API in NORTOS and FreeRTOS
|
|
||||||
* This is also the heap used by pvPortMalloc in FreeRTOS
|
|
||||||
*/
|
|
||||||
--heap_size=32768
|
|
||||||
|
|
||||||
|
|
||||||
SECTIONS
|
|
||||||
{
|
|
||||||
/* This has the M4F entry point and vector table, this MUST be at 0x0 */
|
|
||||||
.vectors:{} palign(8) > M4F_VECS
|
|
||||||
.text: {} palign(8) > M4F_IRAM /* This is where code resides */
|
|
||||||
|
|
||||||
.bss: {} palign(8) > M4F_DRAM /* This is where uninitialized globals go */
|
|
||||||
RUN_START(__BSS_START)
|
|
||||||
RUN_END(__BSS_END)
|
|
||||||
|
|
||||||
.data: {} palign(8) > M4F_DRAM /* This is where initialized globals and static go */
|
|
||||||
.rodata: {} palign(8) > M4F_DRAM /* This is where const's go */
|
|
||||||
.sysmem: {} palign(8) > M4F_IRAM /* This is where the malloc heap goes */
|
|
||||||
.stack: {} palign(8) > M4F_IRAM /* This is where the main() stack goes */
|
|
||||||
|
|
||||||
/* Sections needed for C++ projects */
|
|
||||||
.ARM.exidx: {} palign(8) > M4F_IRAM /* Needed for C++ exception handling */
|
|
||||||
.init_array: {} palign(8) > M4F_IRAM /* Contains function pointers called before main */
|
|
||||||
.fini_array: {} palign(8) > M4F_IRAM /* Contains function pointers called after main */
|
|
||||||
|
|
||||||
/* General purpose user shared memory */
|
|
||||||
.bss.user_shared_mem (NOLOAD) : {} > USER_SHM_MEM
|
|
||||||
/* this is used when Debug log's to shared memory are enabled, else this is not used */
|
|
||||||
.bss.log_shared_mem (NOLOAD) : {} > LOG_SHM_MEM
|
|
||||||
/* this is used only when IPC RPMessage is enabled, else this is not used */
|
|
||||||
.bss.ipc_vring_mem (NOLOAD) : {} > IPC_VRING_MEM
|
|
||||||
}
|
|
||||||
|
|
||||||
MEMORY
|
|
||||||
{
|
|
||||||
M4F_VECS : ORIGIN = 0x00000000 , LENGTH = 0x00000200
|
|
||||||
M4F_IRAM : ORIGIN = 0x00000200 , LENGTH = 0x0002FE00
|
|
||||||
M4F_DRAM : ORIGIN = 0x00030000 , LENGTH = 0x00010000
|
|
||||||
|
|
||||||
/* shared memories that are used by all cores */
|
|
||||||
/* On M4F,
|
|
||||||
* - By default MSMC RAM is not accessible to M4F, a RAT entry is needed to make it
|
|
||||||
* accessible on M4F
|
|
||||||
* - So make sure there is a RAT entry which has a 1:1 mapping from 0x70000000 to 0x70200000
|
|
||||||
*/
|
|
||||||
USER_SHM_MEM : ORIGIN = 0x701D0000, LENGTH = 0x180
|
|
||||||
LOG_SHM_MEM : ORIGIN = 0x701D0000 + 0x180, LENGTH = 0x00004000 - 0x180
|
|
||||||
IPC_VRING_MEM: ORIGIN = 0x701D4000, LENGTH = 0x0000C000
|
|
||||||
}
|
|
||||||
@ -1,300 +0,0 @@
|
|||||||
#
|
|
||||||
# Auto generated makefile
|
|
||||||
#
|
|
||||||
|
|
||||||
export MOTOR_CONTROL_SDK_PATH?=$(abspath ../../../../../..)
|
|
||||||
include $(MOTOR_CONTROL_SDK_PATH)/imports.mak
|
|
||||||
include $(MOTOR_CONTROL_SDK_PATH)/devconfig/devconfig.mak
|
|
||||||
|
|
||||||
CG_TOOL_ROOT=$(CGT_TI_ARM_CLANG_PATH)
|
|
||||||
|
|
||||||
CC=$(CG_TOOL_ROOT)/bin/tiarmclang
|
|
||||||
LNK=$(CG_TOOL_ROOT)/bin/tiarmclang
|
|
||||||
STRIP=$(CG_TOOL_ROOT)/bin/tiarmstrip
|
|
||||||
OBJCOPY=$(CG_TOOL_ROOT)/bin/tiarmobjcopy
|
|
||||||
ifeq ($(OS), Windows_NT)
|
|
||||||
PYTHON=python
|
|
||||||
else
|
|
||||||
PYTHON=python3
|
|
||||||
endif
|
|
||||||
|
|
||||||
PROFILE?=release
|
|
||||||
ConfigName:=$(PROFILE)
|
|
||||||
|
|
||||||
OUTNAME:=dcl_df22.$(PROFILE).out
|
|
||||||
|
|
||||||
BOOTIMAGE_PATH=$(abspath .)
|
|
||||||
BOOTIMAGE_NAME:=dcl_df22.$(PROFILE).appimage
|
|
||||||
BOOTIMAGE_NAME_XIP:=dcl_df22.$(PROFILE).appimage_xip
|
|
||||||
BOOTIMAGE_NAME_SIGNED:=dcl_df22.$(PROFILE).appimage.signed
|
|
||||||
BOOTIMAGE_RPRC_NAME:=dcl_df22.$(PROFILE).rprc
|
|
||||||
BOOTIMAGE_RPRC_NAME_XIP:=dcl_df22.$(PROFILE).rprc_xip
|
|
||||||
BOOTIMAGE_RPRC_NAME_TMP:=dcl_df22.$(PROFILE).rprc_tmp
|
|
||||||
BOOTIMAGE_NAME_HS:=dcl_df22.$(PROFILE).appimage.hs
|
|
||||||
BOOTIMAGE_NAME_HS_FS:=dcl_df22.$(PROFILE).appimage.hs_fs
|
|
||||||
TARGETS := $(BOOTIMAGE_NAME)
|
|
||||||
ifeq ($(DEVICE_TYPE), HS)
|
|
||||||
TARGETS += $(BOOTIMAGE_NAME_HS)
|
|
||||||
endif
|
|
||||||
|
|
||||||
FILES_common := \
|
|
||||||
df22_test.c \
|
|
||||||
main.c \
|
|
||||||
ti_drivers_config.c \
|
|
||||||
ti_drivers_open_close.c \
|
|
||||||
ti_board_config.c \
|
|
||||||
ti_board_open_close.c \
|
|
||||||
ti_dpl_config.c \
|
|
||||||
ti_pinmux_config.c \
|
|
||||||
ti_power_clock_config.c \
|
|
||||||
|
|
||||||
FILES_PATH_common = \
|
|
||||||
.. \
|
|
||||||
../../.. \
|
|
||||||
generated \
|
|
||||||
|
|
||||||
INCLUDES_common := \
|
|
||||||
-I${CG_TOOL_ROOT}/include/c \
|
|
||||||
-I${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source \
|
|
||||||
-I${MOTOR_CONTROL_SDK_PATH}/source \
|
|
||||||
-I${MOTOR_CONTROL_SDK_PATH}/source/dcl \
|
|
||||||
-Igenerated \
|
|
||||||
|
|
||||||
DEFINES_common := \
|
|
||||||
-DSOC_AM243X \
|
|
||||||
|
|
||||||
CFLAGS_common := \
|
|
||||||
-mcpu=cortex-m4 \
|
|
||||||
-mfloat-abi=hard \
|
|
||||||
-mthumb \
|
|
||||||
-Wall \
|
|
||||||
-Werror \
|
|
||||||
-g \
|
|
||||||
-Wno-gnu-variable-sized-type-not-at-end \
|
|
||||||
-Wno-unused-function \
|
|
||||||
|
|
||||||
CFLAGS_cpp_common := \
|
|
||||||
-Wno-c99-designator \
|
|
||||||
-Wno-extern-c-compat \
|
|
||||||
-Wno-c++11-narrowing \
|
|
||||||
-Wno-reorder-init-list \
|
|
||||||
-Wno-deprecated-register \
|
|
||||||
-Wno-writable-strings \
|
|
||||||
-Wno-enum-compare \
|
|
||||||
-Wno-reserved-user-defined-literal \
|
|
||||||
-Wno-unused-const-variable \
|
|
||||||
-x c++ \
|
|
||||||
|
|
||||||
CFLAGS_debug := \
|
|
||||||
-D_DEBUG_=1 \
|
|
||||||
|
|
||||||
CFLAGS_release := \
|
|
||||||
-Os \
|
|
||||||
|
|
||||||
LNK_FILES_common = \
|
|
||||||
linker.cmd \
|
|
||||||
dcl_linker_m4f_am243x_sitara.cmd \
|
|
||||||
|
|
||||||
LIBS_PATH_common = \
|
|
||||||
-Wl,-i${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/nortos/lib \
|
|
||||||
-Wl,-i${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/drivers/lib \
|
|
||||||
-Wl,-i${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/board/lib \
|
|
||||||
-Wl,-i${CG_TOOL_ROOT}/lib \
|
|
||||||
|
|
||||||
LIBS_common = \
|
|
||||||
-lnortos.am243x.m4f.ti-arm-clang.${ConfigName}.lib \
|
|
||||||
-ldrivers.am243x.m4f.ti-arm-clang.${ConfigName}.lib \
|
|
||||||
-lboard.am243x.m4f.ti-arm-clang.${ConfigName}.lib \
|
|
||||||
-llibc.a \
|
|
||||||
-llibsysbm.a \
|
|
||||||
|
|
||||||
LFLAGS_common = \
|
|
||||||
-Wl,--ram_model \
|
|
||||||
-Wl,--reread_libs \
|
|
||||||
|
|
||||||
|
|
||||||
LIBS_NAME = \
|
|
||||||
nortos.am243x.m4f.ti-arm-clang.${ConfigName}.lib \
|
|
||||||
drivers.am243x.m4f.ti-arm-clang.${ConfigName}.lib \
|
|
||||||
board.am243x.m4f.ti-arm-clang.${ConfigName}.lib \
|
|
||||||
libc.a \
|
|
||||||
libsysbm.a \
|
|
||||||
|
|
||||||
LIBS_PATH_NAME = \
|
|
||||||
${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/nortos/lib \
|
|
||||||
${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/drivers/lib \
|
|
||||||
${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/board/lib \
|
|
||||||
${CG_TOOL_ROOT}/lib \
|
|
||||||
|
|
||||||
FILES := $(FILES_common) $(FILES_$(PROFILE))
|
|
||||||
ASMFILES := $(ASMFILES_common) $(ASMFILES_$(PROFILE))
|
|
||||||
FILES_PATH := $(FILES_PATH_common) $(FILES_PATH_$(PROFILE))
|
|
||||||
CFLAGS := $(CFLAGS_common) $(CFLAGS_$(PROFILE))
|
|
||||||
DEFINES := $(DEFINES_common) $(DEFINES_$(PROFILE))
|
|
||||||
INCLUDES := $(INCLUDES_common) $(INCLUDE_$(PROFILE))
|
|
||||||
LIBS := $(LIBS_common) $(LIBS_$(PROFILE))
|
|
||||||
LIBS_PATH := $(LIBS_PATH_common) $(LIBS_PATH_$(PROFILE))
|
|
||||||
LFLAGS := $(LFLAGS_common) $(LFLAGS_$(PROFILE))
|
|
||||||
LNKOPTFLAGS := $(LNKOPTFLAGS_common) $(LNKOPTFLAGS_$(PROFILE))
|
|
||||||
LNK_FILES := $(LNK_FILES_common) $(LNK_FILES_$(PROFILE))
|
|
||||||
|
|
||||||
OBJDIR := obj/$(PROFILE)/
|
|
||||||
OBJS := $(FILES:%.c=%.obj)
|
|
||||||
OBJS += $(ASMFILES:%.S=%.obj)
|
|
||||||
DEPS := $(FILES:%.c=%.d)
|
|
||||||
|
|
||||||
vpath %.obj $(OBJDIR)
|
|
||||||
vpath %.c $(FILES_PATH)
|
|
||||||
vpath %.S $(FILES_PATH)
|
|
||||||
vpath %.lib $(LIBS_PATH_NAME)
|
|
||||||
vpath %.a $(LIBS_PATH_NAME)
|
|
||||||
|
|
||||||
$(OBJDIR)/%.obj %.obj: %.c
|
|
||||||
@echo Compiling: am243x:m4fss0-0:nortos:ti-arm-clang $(OUTNAME): $<
|
|
||||||
$(CC) -c $(CFLAGS) $(INCLUDES) $(DEFINES) -MMD -o $(OBJDIR)/$@ $<
|
|
||||||
|
|
||||||
$(OBJDIR)/%.obj %.obj: %.S
|
|
||||||
@echo Compiling: am243x:m4fss0-0:nortos:ti-arm-clang $(LIBNAME): $<
|
|
||||||
$(CC) -c $(CFLAGS) -o $(OBJDIR)/$@ $<
|
|
||||||
|
|
||||||
all: $(TARGETS)
|
|
||||||
|
|
||||||
SYSCFG_GEN_FILES=generated/ti_drivers_config.c generated/ti_drivers_config.h
|
|
||||||
SYSCFG_GEN_FILES+=generated/ti_drivers_open_close.c generated/ti_drivers_open_close.h
|
|
||||||
SYSCFG_GEN_FILES+=generated/ti_dpl_config.c generated/ti_dpl_config.h
|
|
||||||
SYSCFG_GEN_FILES+=generated/ti_pinmux_config.c generated/ti_power_clock_config.c
|
|
||||||
SYSCFG_GEN_FILES+=generated/ti_board_config.c generated/ti_board_config.h
|
|
||||||
SYSCFG_GEN_FILES+=generated/ti_board_open_close.c generated/ti_board_open_close.h
|
|
||||||
|
|
||||||
$(OUTNAME): syscfg $(SYSCFG_GEN_FILES) $(OBJS) $(LNK_FILES) $(LIBS_NAME)
|
|
||||||
@echo .
|
|
||||||
@echo Linking: am243x:m4fss0-0:nortos:ti-arm-clang $@ ...
|
|
||||||
$(LNK) $(LNKOPTFLAGS) $(LFLAGS) $(LIBS_PATH) -Wl,-m=$(basename $@).map -o $@ $(addprefix $(OBJDIR), $(OBJS)) $(LIBS) $(LNK_FILES)
|
|
||||||
@echo Linking: am243x:m4fss0-0:nortos:ti-arm-clang $@ Done !!!
|
|
||||||
@echo .
|
|
||||||
|
|
||||||
clean:
|
|
||||||
@echo Cleaning: am243x:m4fss0-0:nortos:ti-arm-clang $(OUTNAME) ...
|
|
||||||
$(RMDIR) $(OBJDIR)
|
|
||||||
$(RM) $(OUTNAME)
|
|
||||||
$(RM) $(BOOTIMAGE_NAME)
|
|
||||||
$(RM) $(BOOTIMAGE_NAME_XIP)
|
|
||||||
$(RM) $(BOOTIMAGE_NAME_SIGNED)
|
|
||||||
$(RM) $(BOOTIMAGE_NAME_HS)
|
|
||||||
$(RM) $(BOOTIMAGE_NAME_HS_FS)
|
|
||||||
$(RM) $(BOOTIMAGE_RPRC_NAME)
|
|
||||||
$(RM) $(BOOTIMAGE_RPRC_NAME_XIP)
|
|
||||||
$(RMDIR) generated/
|
|
||||||
|
|
||||||
scrub:
|
|
||||||
@echo Scrubing: am243x:m4fss0-0:nortos:ti-arm-clang dcl_df22 ...
|
|
||||||
$(RMDIR) obj
|
|
||||||
ifeq ($(OS),Windows_NT)
|
|
||||||
$(RM) \*.out
|
|
||||||
$(RM) \*.map
|
|
||||||
$(RM) \*.appimage*
|
|
||||||
$(RM) \*.rprc*
|
|
||||||
$(RM) \*.tiimage*
|
|
||||||
$(RM) \*.bin
|
|
||||||
else
|
|
||||||
$(RM) *.out
|
|
||||||
$(RM) *.map
|
|
||||||
$(RM) *.appimage*
|
|
||||||
$(RM) *.rprc*
|
|
||||||
$(RM) *.tiimage*
|
|
||||||
$(RM) *.bin
|
|
||||||
endif
|
|
||||||
$(RMDIR) generated
|
|
||||||
|
|
||||||
$(OBJS): | $(OBJDIR)
|
|
||||||
|
|
||||||
$(OBJDIR):
|
|
||||||
$(MKDIR) $@
|
|
||||||
|
|
||||||
|
|
||||||
.NOTPARALLEL:
|
|
||||||
|
|
||||||
.INTERMEDIATE: syscfg
|
|
||||||
$(SYSCFG_GEN_FILES): syscfg
|
|
||||||
|
|
||||||
syscfg: ../example.syscfg
|
|
||||||
@echo Generating SysConfig files ...
|
|
||||||
$(SYSCFG_NODE) $(SYSCFG_CLI_PATH)/dist/cli.js --product $(SYSCFG_SDKPRODUCT) --context m4fss0-0 --part ALX --package ALX --output generated/ ../example.syscfg
|
|
||||||
|
|
||||||
syscfg-gui:
|
|
||||||
$(SYSCFG_NWJS) $(SYSCFG_PATH) --product $(SYSCFG_SDKPRODUCT) --device AM243x_ALX_beta --context m4fss0-0 --part ALX --package ALX --output generated/ ../example.syscfg
|
|
||||||
|
|
||||||
#
|
|
||||||
# Generation of boot image which can be loaded by Secondary Boot Loader (SBL)
|
|
||||||
#
|
|
||||||
ifeq ($(OS),Windows_NT)
|
|
||||||
EXE_EXT=.exe
|
|
||||||
endif
|
|
||||||
ifeq ($(OS),Windows_NT)
|
|
||||||
BOOTIMAGE_CERT_GEN_CMD=powershell -executionpolicy unrestricted -command $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/signing/x509CertificateGen.ps1
|
|
||||||
else
|
|
||||||
BOOTIMAGE_CERT_GEN_CMD=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/signing/x509CertificateGen.sh
|
|
||||||
endif
|
|
||||||
BOOTIMAGE_TEMP_OUT_FILE=temp_stdout_$(PROFILE).txt
|
|
||||||
|
|
||||||
BOOTIMAGE_CERT_KEY=$(APP_SIGNING_KEY)
|
|
||||||
|
|
||||||
BOOTIMAGE_CORE_ID_r5fss0-0 = 4
|
|
||||||
BOOTIMAGE_CORE_ID_r5fss0-1 = 5
|
|
||||||
BOOTIMAGE_CORE_ID_r5fss1-0 = 6
|
|
||||||
BOOTIMAGE_CORE_ID_r5fss1-1 = 7
|
|
||||||
BOOTIMAGE_CORE_ID_m4fss0-0 = 14
|
|
||||||
SBL_RUN_ADDRESS=0x70000000
|
|
||||||
SBL_DEV_ID=55
|
|
||||||
|
|
||||||
MULTI_CORE_IMAGE_GEN = $(SYSCFG_NODE) $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/multicoreImageGen/multicoreImageGen.js
|
|
||||||
OUTRPRC_CMD = $(SYSCFG_NODE) $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/out2rprc/elf2rprc.js
|
|
||||||
APP_IMAGE_SIGN_CMD = $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/signing/appimage_x509_cert_gen.py
|
|
||||||
|
|
||||||
ifeq ($(OS),Windows_NT)
|
|
||||||
XIPGEN_CMD=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/xipGen/xipGen.exe
|
|
||||||
else
|
|
||||||
XIPGEN_CMD=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/xipGen/xipGen.out
|
|
||||||
endif
|
|
||||||
|
|
||||||
MULTI_CORE_IMAGE_PARAMS = \
|
|
||||||
$(BOOTIMAGE_RPRC_NAME)@$(BOOTIMAGE_CORE_ID_m4fss0-0) \
|
|
||||||
|
|
||||||
MULTI_CORE_IMAGE_PARAMS_XIP = \
|
|
||||||
$(BOOTIMAGE_RPRC_NAME_XIP)@$(BOOTIMAGE_CORE_ID_m4fss0-0) \
|
|
||||||
|
|
||||||
$(BOOTIMAGE_NAME): $(OUTNAME)
|
|
||||||
@echo Boot image: am243x:m4fss0-0:nortos:ti-arm-clang $(BOOTIMAGE_PATH)/$@ ...
|
|
||||||
ifneq ($(OS),Windows_NT)
|
|
||||||
$(CHMOD) a+x $(XIPGEN_CMD)
|
|
||||||
endif
|
|
||||||
$(OUTRPRC_CMD) $(OUTNAME) >> $(BOOTIMAGE_TEMP_OUT_FILE)
|
|
||||||
$(COPY) $(BOOTIMAGE_RPRC_NAME) $(BOOTIMAGE_RPRC_NAME_TMP)
|
|
||||||
$(RM) $(BOOTIMAGE_RPRC_NAME)
|
|
||||||
$(XIPGEN_CMD) -i $(BOOTIMAGE_RPRC_NAME_TMP) -o $(BOOTIMAGE_RPRC_NAME) -x $(BOOTIMAGE_RPRC_NAME_XIP) --flash-start-addr 0x60000000 -v > $(BOOTIMAGE_TEMP_OUT_FILE)
|
|
||||||
$(MULTI_CORE_IMAGE_GEN) --devID $(SBL_DEV_ID) --out $(BOOTIMAGE_NAME) $(MULTI_CORE_IMAGE_PARAMS) >> $(BOOTIMAGE_TEMP_OUT_FILE)
|
|
||||||
$(MULTI_CORE_IMAGE_GEN) --devID $(SBL_DEV_ID) --out $(BOOTIMAGE_NAME_XIP) $(MULTI_CORE_IMAGE_PARAMS_XIP) >> $(BOOTIMAGE_TEMP_OUT_FILE)
|
|
||||||
# Sign the appimage for HS-FS using appimage signing script
|
|
||||||
$(PYTHON) $(APP_IMAGE_SIGN_CMD) --bin $(BOOTIMAGE_NAME) --authtype 1 --key $(APP_SIGNING_KEY) --output $(BOOTIMAGE_NAME_HS_FS)
|
|
||||||
$(RM) $(BOOTIMAGE_RPRC_NAME_TMP)
|
|
||||||
$(RM) $(BOOTIMAGE_TEMP_OUT_FILE)
|
|
||||||
@echo Boot image: am243x:m4fss0-0:nortos:ti-arm-clang $(BOOTIMAGE_PATH)/$@ Done !!!
|
|
||||||
@echo .
|
|
||||||
@echo Boot image: am243x:m4fss0-0:nortos:ti-arm-clang $(BOOTIMAGE_PATH)/$(BOOTIMAGE_NAME_HS_FS) Done !!!
|
|
||||||
@echo .
|
|
||||||
|
|
||||||
$(BOOTIMAGE_NAME_HS): $(BOOTIMAGE_NAME)
|
|
||||||
ifeq ($(DEVICE_TYPE), HS)
|
|
||||||
# Sign the appimage using appimage signing script
|
|
||||||
ifeq ($(ENC_ENABLED),no)
|
|
||||||
@echo Boot image signing: Encryption is disabled.
|
|
||||||
$(PYTHON) $(APP_IMAGE_SIGN_CMD) --bin $(BOOTIMAGE_NAME) --authtype 1 --key $(APP_SIGNING_KEY) --output $(BOOTIMAGE_NAME_HS)
|
|
||||||
else
|
|
||||||
@echo Boot image signing: Encryption is enabled.
|
|
||||||
$(PYTHON) $(APP_IMAGE_SIGN_CMD) --bin $(BOOTIMAGE_NAME) --authtype 1 --key $(APP_SIGNING_KEY) --enc y --enckey $(APP_ENCRYPTION_KEY) --output $(BOOTIMAGE_NAME_HS)
|
|
||||||
$(RM) $(BOOTIMAGE_NAME)-enc
|
|
||||||
endif
|
|
||||||
@echo Boot image: am243x:m4fss0-0:nortos:ti-arm-clang $(BOOTIMAGE_PATH)/$(BOOTIMAGE_NAME_HS) Done !!!
|
|
||||||
@echo .
|
|
||||||
endif
|
|
||||||
-include $(addprefix $(OBJDIR)/, $(DEPS))
|
|
||||||
@ -1,106 +0,0 @@
|
|||||||
#
|
|
||||||
# Auto generated makefile
|
|
||||||
#
|
|
||||||
|
|
||||||
# Below variables need to be defined outside this file or via command line
|
|
||||||
# - MOTOR_CONTROL_SDK_PATH
|
|
||||||
# - PROFILE
|
|
||||||
# - CG_TOOL_ROOT
|
|
||||||
# - OUTNAME
|
|
||||||
# - CCS_INSTALL_DIR
|
|
||||||
# - CCS_IDE_MODE
|
|
||||||
|
|
||||||
CCS_PATH=$(CCS_INSTALL_DIR)
|
|
||||||
include ${MOTOR_CONTROL_SDK_PATH}/imports.mak
|
|
||||||
include ${MOTOR_CONTROL_SDK_PATH}/devconfig/devconfig.mak
|
|
||||||
|
|
||||||
STRIP=$(CG_TOOL_ROOT)/bin/tiarmstrip
|
|
||||||
OBJCOPY=$(CG_TOOL_ROOT)/bin/tiarmobjcopy
|
|
||||||
ifeq ($(OS), Windows_NT)
|
|
||||||
PYTHON=python
|
|
||||||
else
|
|
||||||
PYTHON=python3
|
|
||||||
endif
|
|
||||||
|
|
||||||
OUTFILE=$(PROFILE)/$(OUTNAME).out
|
|
||||||
BOOTIMAGE_PATH=$(abspath ${PROFILE})
|
|
||||||
BOOTIMAGE_NAME:=$(BOOTIMAGE_PATH)/$(OUTNAME).appimage
|
|
||||||
BOOTIMAGE_NAME_XIP:=$(BOOTIMAGE_PATH)/$(OUTNAME).appimage_xip
|
|
||||||
BOOTIMAGE_NAME_SIGNED:=$(BOOTIMAGE_PATH)/$(OUTNAME).appimage.signed
|
|
||||||
BOOTIMAGE_RPRC_NAME:=$(BOOTIMAGE_PATH)/$(OUTNAME).rprc
|
|
||||||
BOOTIMAGE_RPRC_NAME_XIP:=$(BOOTIMAGE_PATH)/$(OUTNAME).rprc_xip
|
|
||||||
BOOTIMAGE_RPRC_NAME_TMP:=$(BOOTIMAGE_PATH)/$(OUTNAME).rprc_tmp
|
|
||||||
|
|
||||||
#
|
|
||||||
# Generation of boot image which can be loaded by Secondary Boot Loader (SBL)
|
|
||||||
#
|
|
||||||
ifeq ($(OS),Windows_NT)
|
|
||||||
EXE_EXT=.exe
|
|
||||||
endif
|
|
||||||
ifeq ($(OS),Windows_NT)
|
|
||||||
BOOTIMAGE_CERT_GEN_CMD=powershell -executionpolicy unrestricted -command $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/signing/x509CertificateGen.ps1
|
|
||||||
else
|
|
||||||
BOOTIMAGE_CERT_GEN_CMD=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/signing/x509CertificateGen.sh
|
|
||||||
endif
|
|
||||||
BOOTIMAGE_TEMP_OUT_FILE=$(PROFILE)/temp_stdout_$(PROFILE).txt
|
|
||||||
|
|
||||||
BOOTIMAGE_CORE_ID_r5fss0-0 = 4
|
|
||||||
BOOTIMAGE_CORE_ID_r5fss0-1 = 5
|
|
||||||
BOOTIMAGE_CORE_ID_r5fss1-0 = 6
|
|
||||||
BOOTIMAGE_CORE_ID_r5fss1-1 = 7
|
|
||||||
BOOTIMAGE_CORE_ID_m4fss0-0 = 14
|
|
||||||
SBL_RUN_ADDRESS=0x70000000
|
|
||||||
SBL_DEV_ID=55
|
|
||||||
|
|
||||||
MULTI_CORE_IMAGE_GEN = $(CCS_NODE) $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/multicoreImageGen/multicoreImageGen.js
|
|
||||||
OUTRPRC_CMD = $(CCS_NODE) $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/out2rprc/elf2rprc.js
|
|
||||||
APP_IMAGE_SIGN_CMD = $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/signing/appimage_x509_cert_gen.py
|
|
||||||
|
|
||||||
ifeq ($(OS),Windows_NT)
|
|
||||||
XIPGEN_CMD=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/xipGen/xipGen.exe
|
|
||||||
else
|
|
||||||
XIPGEN_CMD=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/xipGen/xipGen.out
|
|
||||||
endif
|
|
||||||
|
|
||||||
MULTI_CORE_IMAGE_PARAMS = \
|
|
||||||
$(BOOTIMAGE_RPRC_NAME)@$(BOOTIMAGE_CORE_ID_m4fss0-0) \
|
|
||||||
|
|
||||||
MULTI_CORE_IMAGE_PARAMS_XIP = \
|
|
||||||
$(BOOTIMAGE_RPRC_NAME_XIP)@$(BOOTIMAGE_CORE_ID_m4fss0-0) \
|
|
||||||
|
|
||||||
all:
|
|
||||||
ifeq ($(CCS_IDE_MODE),cloud)
|
|
||||||
# No post build steps
|
|
||||||
else
|
|
||||||
@echo Boot image: am243x:m4fss0-0:nortos:ti-arm-clang $(BOOTIMAGE_NAME) ...
|
|
||||||
$(OUTRPRC_CMD) $(OUTFILE) >> $(BOOTIMAGE_TEMP_OUT_FILE)
|
|
||||||
$(COPY) $(OUTNAME).rprc $(BOOTIMAGE_RPRC_NAME)
|
|
||||||
$(COPY) $(BOOTIMAGE_RPRC_NAME) $(BOOTIMAGE_RPRC_NAME_TMP)
|
|
||||||
$(RM) $(BOOTIMAGE_RPRC_NAME)
|
|
||||||
$(XIPGEN_CMD) -i $(BOOTIMAGE_RPRC_NAME_TMP) -o $(BOOTIMAGE_RPRC_NAME) -x $(BOOTIMAGE_RPRC_NAME_XIP) --flash-start-addr 0x60000000 -v > $(BOOTIMAGE_TEMP_OUT_FILE)
|
|
||||||
$(MULTI_CORE_IMAGE_GEN) --devID $(SBL_DEV_ID) --out $(BOOTIMAGE_NAME) $(MULTI_CORE_IMAGE_PARAMS) >> $(BOOTIMAGE_TEMP_OUT_FILE)
|
|
||||||
$(MULTI_CORE_IMAGE_GEN) --devID $(SBL_DEV_ID) --out $(BOOTIMAGE_NAME_XIP) $(MULTI_CORE_IMAGE_PARAMS_XIP) >> $(BOOTIMAGE_TEMP_OUT_FILE)
|
|
||||||
# Sign the appimage for HS-FS using appimage signing script
|
|
||||||
$(PYTHON) $(APP_IMAGE_SIGN_CMD) --bin $(BOOTIMAGE_NAME) --authtype 1 --key $(APP_SIGNING_KEY) --output $(BOOTIMAGE_NAME).hs_fs
|
|
||||||
ifeq ($(DEVICE_TYPE),HS)
|
|
||||||
# Sign the appimage using appimage signing script
|
|
||||||
ifeq ($(ENC_ENABLED),no)
|
|
||||||
@echo Boot image signing: Encryption is disabled.
|
|
||||||
$(PYTHON) $(APP_IMAGE_SIGN_CMD) --bin $(BOOTIMAGE_NAME) --authtype 1 --key $(APP_SIGNING_KEY) --output $(BOOTIMAGE_NAME).hs
|
|
||||||
else
|
|
||||||
@echo Boot image signing: Encryption is enabled.
|
|
||||||
$(PYTHON) $(APP_IMAGE_SIGN_CMD) --bin $(BOOTIMAGE_NAME) --authtype 1 --key $(APP_SIGNING_KEY) --enc y --enckey $(APP_ENCRYPTION_KEY) --output $(BOOTIMAGE_NAME).hs
|
|
||||||
$(RM) $(BOOTIMAGE_NAME)-enc
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
$(RM) $(BOOTIMAGE_RPRC_NAME_TMP)
|
|
||||||
@echo Boot image: am243x:m4fss0-0:nortos:ti-arm-clang $(BOOTIMAGE_NAME) Done !!!
|
|
||||||
@echo .
|
|
||||||
ifeq ($(DEVICE_TYPE),HS)
|
|
||||||
@echo Boot image: am243x:m4fss0-0:nortos:ti-arm-clang $(BOOTIMAGE_NAME).hs Done !!!
|
|
||||||
@echo .
|
|
||||||
else
|
|
||||||
@echo Boot image: am243x:m4fss0-0:nortos:ti-arm-clang $(BOOTIMAGE_NAME).hs_fs Done !!!
|
|
||||||
@echo .
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
@ -1,20 +0,0 @@
|
|||||||
#
|
|
||||||
# Auto generated makefile
|
|
||||||
#
|
|
||||||
|
|
||||||
export MOTOR_CONTROL_SDK_PATH?=$(abspath ../../../../../..)
|
|
||||||
include $(MOTOR_CONTROL_SDK_PATH)/imports.mak
|
|
||||||
|
|
||||||
PROFILE?=Release
|
|
||||||
|
|
||||||
PROJECT_NAME=dcl_df22_am243x-lp_m4fss0-0_nortos_ti-arm-clang
|
|
||||||
|
|
||||||
all:
|
|
||||||
$(CCS_ECLIPSE) -noSplash -data $(MOTOR_CONTROL_SDK_PATH)/ccs_projects -application com.ti.ccstudio.apps.projectBuild -ccs.projects $(PROJECT_NAME) -ccs.configuration $(PROFILE)
|
|
||||||
|
|
||||||
clean:
|
|
||||||
$(CCS_ECLIPSE) -noSplash -data $(MOTOR_CONTROL_SDK_PATH)/ccs_projects -application com.ti.ccstudio.apps.projectBuild -ccs.projects $(PROJECT_NAME) -ccs.configuration $(PROFILE) -ccs.clean
|
|
||||||
|
|
||||||
export:
|
|
||||||
$(MKDIR) $(MOTOR_CONTROL_SDK_PATH)/ccs_projects
|
|
||||||
$(CCS_ECLIPSE) -noSplash -data $(MOTOR_CONTROL_SDK_PATH)/ccs_projects -application com.ti.ccstudio.apps.projectCreate -ccs.projectSpec example.projectspec -ccs.overwrite full
|
|
||||||
@ -1,8 +0,0 @@
|
|||||||
/*
|
|
||||||
* ======== syscfg_c.rov.xs ========
|
|
||||||
* This file contains the information needed by the Runtime Object
|
|
||||||
* View (ROV) tool.
|
|
||||||
*/
|
|
||||||
var crovFiles = [
|
|
||||||
"kernel/freertos/rov/FreeRTOS.rov.js",
|
|
||||||
];
|
|
||||||
@ -189,12 +189,8 @@ const templates_freertos_m4f =
|
|||||||
const buildOptionCombos = [
|
const buildOptionCombos = [
|
||||||
{ device: device, cpu: "r5fss0-0", cgt: "ti-arm-clang", board: "am243x-evm", os: "nortos"},
|
{ device: device, cpu: "r5fss0-0", cgt: "ti-arm-clang", board: "am243x-evm", os: "nortos"},
|
||||||
{ device: device, cpu: "r5fss0-0", cgt: "ti-arm-clang", board: "am243x-evm", os: "freertos"},
|
{ device: device, cpu: "r5fss0-0", cgt: "ti-arm-clang", board: "am243x-evm", os: "freertos"},
|
||||||
{ device: device, cpu: "m4fss0-0", cgt: "ti-arm-clang", board: "am243x-evm", os: "nortos"},
|
|
||||||
{ device: device, cpu: "m4fss0-0", cgt: "ti-arm-clang", board: "am243x-evm", os: "freertos"},
|
|
||||||
{ device: device, cpu: "r5fss0-0", cgt: "ti-arm-clang", board: "am243x-lp", os: "nortos"},
|
{ device: device, cpu: "r5fss0-0", cgt: "ti-arm-clang", board: "am243x-lp", os: "nortos"},
|
||||||
{ device: device, cpu: "r5fss0-0", cgt: "ti-arm-clang", board: "am243x-lp", os: "freertos"},
|
{ device: device, cpu: "r5fss0-0", cgt: "ti-arm-clang", board: "am243x-lp", os: "freertos"},
|
||||||
{ device: device, cpu: "m4fss0-0", cgt: "ti-arm-clang", board: "am243x-lp", os: "nortos"},
|
|
||||||
{ device: device, cpu: "m4fss0-0", cgt: "ti-arm-clang", board: "am243x-lp", os: "freertos"},
|
|
||||||
];
|
];
|
||||||
|
|
||||||
function getComponentProperty() {
|
function getComponentProperty() {
|
||||||
|
|||||||
@ -1,57 +0,0 @@
|
|||||||
/**
|
|
||||||
* 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 "m4fss0-0" --product "MCU_PLUS_SDK@07.03.00"
|
|
||||||
* @versions {"data":"2021012919","timestamp":"2021012919","tool":"1.8.0+1785","templates":null}
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Import the modules used in this configuration.
|
|
||||||
*/
|
|
||||||
const addr_translate = scripting.addModule("/kernel/dpl/addr_translate", {}, false);
|
|
||||||
const addr_translate1 = addr_translate.addInstance();
|
|
||||||
const addr_translate2 = addr_translate.addInstance();
|
|
||||||
const addr_translate3 = addr_translate.addInstance();
|
|
||||||
const addr_translate4 = addr_translate.addInstance();
|
|
||||||
const clock = scripting.addModule("/kernel/dpl/clock");
|
|
||||||
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();
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Write custom configuration values to the imported modules.
|
|
||||||
*/
|
|
||||||
addr_translate1.$name = "CONFIG_ADDR_TRANSLATE_REGION0";
|
|
||||||
addr_translate1.localAddr = 0x80000000;
|
|
||||||
|
|
||||||
addr_translate2.$name = "CONFIG_ADDR_TRANSLATE_REGION1";
|
|
||||||
addr_translate2.systemAddr = 0x20000000;
|
|
||||||
addr_translate2.localAddr = 0xA0000000;
|
|
||||||
|
|
||||||
addr_translate3.$name = "CONFIG_ADDR_TRANSLATE_REGION2";
|
|
||||||
addr_translate3.systemAddr = 0x40000000;
|
|
||||||
addr_translate3.localAddr = 0xC0000000;
|
|
||||||
|
|
||||||
addr_translate4.$name = "CONFIG_ADDR_TRANSLATE_REGION3";
|
|
||||||
addr_translate4.systemAddr = 0x60000000;
|
|
||||||
addr_translate4.localAddr = 0x60000000;
|
|
||||||
|
|
||||||
debug_log.enableUartLog = true;
|
|
||||||
debug_log.uartLog.$name = "CONFIG_UART_CONSOLE";
|
|
||||||
debug_log.uartLog.MCU_UART.$assign = "MCU_USART0";
|
|
||||||
|
|
||||||
mpu_armv71.$name = "CONFIG_MPU_REGION0";
|
|
||||||
mpu_armv71.attributes = "Device";
|
|
||||||
mpu_armv71.allowExecute = false;
|
|
||||||
|
|
||||||
mpu_armv72.$name = "CONFIG_MPU_REGION1";
|
|
||||||
mpu_armv72.size = 18;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 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.
|
|
||||||
*/
|
|
||||||
debug_log.uartLog.MCU_UART.RXD.$suggestSolution = "MCU_UART0_RXD";
|
|
||||||
debug_log.uartLog.MCU_UART.TXD.$suggestSolution = "MCU_UART0_TXD";
|
|
||||||
@ -1,84 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright (C) 2018-2021 Texas Instruments Incorporated
|
|
||||||
*
|
|
||||||
* Redistribution and use in source and binary forms, with or without
|
|
||||||
* modification, are permitted provided that the following conditions
|
|
||||||
* are met:
|
|
||||||
*
|
|
||||||
* Redistributions of source code must retain the above copyright
|
|
||||||
* notice, this list of conditions and the following disclaimer.
|
|
||||||
*
|
|
||||||
* Redistributions in binary form must reproduce the above copyright
|
|
||||||
* notice, this list of conditions and the following disclaimer in the
|
|
||||||
* documentation and/or other materials provided with the
|
|
||||||
* distribution.
|
|
||||||
*
|
|
||||||
* Neither the name of Texas Instruments Incorporated nor the names of
|
|
||||||
* its contributors may be used to endorse or promote products derived
|
|
||||||
* from this software without specific prior written permission.
|
|
||||||
*
|
|
||||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
||||||
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
||||||
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
||||||
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
||||||
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
||||||
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
||||||
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
||||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
||||||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <kernel/dpl/DebugP.h>
|
|
||||||
#include "ti_drivers_config.h"
|
|
||||||
#include "ti_board_config.h"
|
|
||||||
#include "FreeRTOS.h"
|
|
||||||
#include "task.h"
|
|
||||||
|
|
||||||
#define MAIN_TASK_PRI (configMAX_PRIORITIES-1)
|
|
||||||
|
|
||||||
#define MAIN_TASK_SIZE (16384U/sizeof(configSTACK_DEPTH_TYPE))
|
|
||||||
StackType_t gMainTaskStack[MAIN_TASK_SIZE] __attribute__((aligned(32)));
|
|
||||||
|
|
||||||
StaticTask_t gMainTaskObj;
|
|
||||||
TaskHandle_t gMainTask;
|
|
||||||
|
|
||||||
void dcl_pi_main(void *args);
|
|
||||||
|
|
||||||
void freertos_main(void *args)
|
|
||||||
{
|
|
||||||
dcl_pi_main(NULL);
|
|
||||||
|
|
||||||
vTaskDelete(NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
int main(void)
|
|
||||||
{
|
|
||||||
/* init SOC specific modules */
|
|
||||||
System_init();
|
|
||||||
Board_init();
|
|
||||||
|
|
||||||
/* This task is created at highest priority, it should create more tasks and then delete itself */
|
|
||||||
gMainTask = xTaskCreateStatic( freertos_main, /* Pointer to the function that implements the task. */
|
|
||||||
"freertos_main", /* Text name for the task. This is to facilitate debugging only. */
|
|
||||||
MAIN_TASK_SIZE, /* Stack depth in units of StackType_t typically uint32_t on 32b CPUs */
|
|
||||||
NULL, /* We are not using the task parameter. */
|
|
||||||
MAIN_TASK_PRI, /* task priority, 0 is lowest priority, configMAX_PRIORITIES-1 is highest */
|
|
||||||
gMainTaskStack, /* pointer to stack base */
|
|
||||||
&gMainTaskObj ); /* pointer to statically allocated task object memory */
|
|
||||||
configASSERT(gMainTask != NULL);
|
|
||||||
|
|
||||||
/* Start the scheduler to start the tasks executing. */
|
|
||||||
vTaskStartScheduler();
|
|
||||||
|
|
||||||
/* The following line should never be reached because vTaskStartScheduler()
|
|
||||||
will only return if there was not enough FreeRTOS heap memory available to
|
|
||||||
create the Idle and (if configured) Timer tasks. Heap management, and
|
|
||||||
techniques for trapping heap exhaustion, are described in the book text. */
|
|
||||||
DebugP_assertNoLog(0);
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
@ -1,19 +0,0 @@
|
|||||||
/*
|
|
||||||
* This linker file is optional, it's complementary to the device/core linker file
|
|
||||||
* Here it specifies the dcl function & data mapping allocated by __attribute__((section(...)))
|
|
||||||
* and link to a specific memory region for the best performance
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Define core & platform specific variables */
|
|
||||||
#define FAST_RAM M4F_IRAM
|
|
||||||
#define REG_RAM M4F_IRAM /* M4F_DRAM also works */
|
|
||||||
|
|
||||||
SECTIONS
|
|
||||||
{
|
|
||||||
/* dcl functions mapped to on-chip fast ram */
|
|
||||||
dclfuncs : {} > FAST_RAM
|
|
||||||
|
|
||||||
/* optional -- map datas & variables to regular ram */
|
|
||||||
/* Sitara default linker should already map variables to ram */
|
|
||||||
dclDataSection : {} > REG_RAM
|
|
||||||
}
|
|
||||||
@ -1,115 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<projectSpec>
|
|
||||||
<applicability>
|
|
||||||
<when>
|
|
||||||
<context
|
|
||||||
deviceFamily="ARM"
|
|
||||||
deviceId="Cortex M.AM2434_ALV"
|
|
||||||
/>
|
|
||||||
</when>
|
|
||||||
</applicability>
|
|
||||||
|
|
||||||
<project
|
|
||||||
title="Dcl Pi"
|
|
||||||
name = "dcl_pi_am243x-evm_m4fss0-0_freertos_ti-arm-clang"
|
|
||||||
products="sysconfig;com.ti.MOTOR_CONTROL_SDK_AMXXX;"
|
|
||||||
configurations="
|
|
||||||
Debug,
|
|
||||||
Release,
|
|
||||||
"
|
|
||||||
connection="TIXDS110_Connection.xml"
|
|
||||||
toolChain="TICLANG"
|
|
||||||
cgtVersion="2.1.3"
|
|
||||||
device="Cortex M.AM2434_ALV"
|
|
||||||
deviceCore="Cortex_M4F_0"
|
|
||||||
ignoreDefaultDeviceSettings="true"
|
|
||||||
ignoreDefaultCCSSettings="true"
|
|
||||||
endianness="little"
|
|
||||||
outputFormat="ELF"
|
|
||||||
outputType="executable"
|
|
||||||
|
|
||||||
compilerBuildOptions="
|
|
||||||
-I${CG_TOOL_ROOT}/include/c
|
|
||||||
-I${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source
|
|
||||||
-I${MOTOR_CONTROL_SDK_PATH}/source
|
|
||||||
-I${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/FreeRTOS-Kernel/include
|
|
||||||
-I${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/portable/TI_ARM_CLANG/ARM_CM4F
|
|
||||||
-I${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/config/am243x/m4f
|
|
||||||
-I${MOTOR_CONTROL_SDK_PATH}/source/dcl
|
|
||||||
-mcpu=cortex-m4
|
|
||||||
-mfloat-abi=hard
|
|
||||||
-mthumb
|
|
||||||
-Wall
|
|
||||||
-Werror
|
|
||||||
-g
|
|
||||||
-Wno-gnu-variable-sized-type-not-at-end
|
|
||||||
-Wno-unused-function
|
|
||||||
-DSOC_AM243X
|
|
||||||
"
|
|
||||||
linkerBuildOptions="
|
|
||||||
-i${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/lib
|
|
||||||
-i${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/drivers/lib
|
|
||||||
-i${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/board/lib
|
|
||||||
-i${CG_TOOL_ROOT}/lib
|
|
||||||
-m=dcl_pi.${ConfigName}.map
|
|
||||||
--ram_model
|
|
||||||
--reread_libs
|
|
||||||
"
|
|
||||||
|
|
||||||
postBuildStep="$(MAKE) -C ${CCS_PROJECT_DIR} -f makefile_ccs_bootimage_gen OUTNAME=${BuildArtifactFileBaseName} PROFILE=${ConfigName} MOTOR_CONTROL_SDK_PATH=${MOTOR_CONTROL_SDK_PATH} CG_TOOL_ROOT=${CG_TOOL_ROOT} CCS_INSTALL_DIR=${CCS_INSTALL_DIR} CCS_IDE_MODE=${CCS_IDE_MODE} DEVICE=am243x"
|
|
||||||
|
|
||||||
enableSysConfigTool="true"
|
|
||||||
sysConfigBuildOptions="
|
|
||||||
--context m4fss0-0 --part ALV --package ALV
|
|
||||||
"
|
|
||||||
|
|
||||||
description="A Dcl Pi FREERTOS project">
|
|
||||||
|
|
||||||
<configuration name="Debug"
|
|
||||||
compilerBuildOptions="
|
|
||||||
-D_DEBUG_=1
|
|
||||||
"
|
|
||||||
linkerBuildOptions="
|
|
||||||
-lfreertos.am243x.m4f.ti-arm-clang.debug.lib
|
|
||||||
-ldrivers.am243x.m4f.ti-arm-clang.debug.lib
|
|
||||||
-lboard.am243x.m4f.ti-arm-clang.debug.lib
|
|
||||||
-llibc.a
|
|
||||||
-llibsysbm.a
|
|
||||||
"
|
|
||||||
></configuration>
|
|
||||||
<configuration name="Release"
|
|
||||||
compilerBuildOptions="
|
|
||||||
-Os
|
|
||||||
"
|
|
||||||
linkerBuildOptions="
|
|
||||||
-lfreertos.am243x.m4f.ti-arm-clang.release.lib
|
|
||||||
-ldrivers.am243x.m4f.ti-arm-clang.release.lib
|
|
||||||
-lboard.am243x.m4f.ti-arm-clang.release.lib
|
|
||||||
-llibc.a
|
|
||||||
-llibsysbm.a
|
|
||||||
"
|
|
||||||
></configuration>
|
|
||||||
<pathVariable name="MOTOR_CONTROL_SDK_PATH" path="${COM_TI_MOTOR_CONTROL_SDK_AMXXX_INSTALL_DIR}" scope="project" />
|
|
||||||
<file path="../../../pi_test.c" openOnCreation="false" excludeFromBuild="false" action="copy">
|
|
||||||
</file>
|
|
||||||
<file path="../main.c" openOnCreation="false" excludeFromBuild="false" action="copy">
|
|
||||||
</file>
|
|
||||||
<file path="linker.cmd" openOnCreation="false" excludeFromBuild="false" action="copy">
|
|
||||||
</file>
|
|
||||||
<file path="dcl_linker_m4f_am243x_sitara.cmd" openOnCreation="false" excludeFromBuild="false" action="copy">
|
|
||||||
</file>
|
|
||||||
<file path="../example.syscfg" openOnCreation="false" excludeFromBuild="false" action="copy">
|
|
||||||
</file>
|
|
||||||
<file path="${MOTOR_CONTROL_SDK_PATH}/docs/api_guide_am243x/EXAMPLES_DCL_PI.html"
|
|
||||||
openOnCreation="false" excludeFromBuild="false" targetName="README.html" action="link">
|
|
||||||
</file>
|
|
||||||
<file path="../../../pi_test.h" openOnCreation="false" excludeFromBuild="true" action="copy">
|
|
||||||
</file>
|
|
||||||
<file path="../../../data" openOnCreation="false" excludeFromBuild="true" action="copy">
|
|
||||||
</file>
|
|
||||||
<file path="syscfg_c.rov.xs" openOnCreation="false" excludeFromBuild="false" action="copy">
|
|
||||||
</file>
|
|
||||||
<file path="makefile_ccs_bootimage_gen" openOnCreation="false" excludeFromBuild="false" action="copy">
|
|
||||||
</file>
|
|
||||||
</project>
|
|
||||||
</projectSpec>
|
|
||||||
@ -1,62 +0,0 @@
|
|||||||
|
|
||||||
/* make sure below retain is there in your linker command file, it keeps the vector table in the final binary */
|
|
||||||
--retain="*(.vectors)"
|
|
||||||
/* This is the stack that is used by code running within main()
|
|
||||||
* In case of NORTOS,
|
|
||||||
* - This means all the code outside of ISR uses this stack
|
|
||||||
* In case of FreeRTOS
|
|
||||||
* - This means all the code until vTaskStartScheduler() is called in main()
|
|
||||||
* uses this stack.
|
|
||||||
* - After vTaskStartScheduler() each task created in FreeRTOS has its own stack
|
|
||||||
*/
|
|
||||||
--stack_size=16384
|
|
||||||
/* This is the heap size for malloc() API in NORTOS and FreeRTOS
|
|
||||||
* This is also the heap used by pvPortMalloc in FreeRTOS
|
|
||||||
*/
|
|
||||||
--heap_size=32768
|
|
||||||
|
|
||||||
|
|
||||||
SECTIONS
|
|
||||||
{
|
|
||||||
/* This has the M4F entry point and vector table, this MUST be at 0x0 */
|
|
||||||
.vectors:{} palign(8) > M4F_VECS
|
|
||||||
.text: {} palign(8) > M4F_IRAM /* This is where code resides */
|
|
||||||
|
|
||||||
.bss: {} palign(8) > M4F_DRAM /* This is where uninitialized globals go */
|
|
||||||
RUN_START(__BSS_START)
|
|
||||||
RUN_END(__BSS_END)
|
|
||||||
|
|
||||||
.data: {} palign(8) > M4F_DRAM /* This is where initialized globals and static go */
|
|
||||||
.rodata: {} palign(8) > M4F_DRAM /* This is where const's go */
|
|
||||||
.sysmem: {} palign(8) > M4F_IRAM /* This is where the malloc heap goes */
|
|
||||||
.stack: {} palign(8) > M4F_IRAM /* This is where the main() stack goes */
|
|
||||||
|
|
||||||
/* Sections needed for C++ projects */
|
|
||||||
.ARM.exidx: {} palign(8) > M4F_IRAM /* Needed for C++ exception handling */
|
|
||||||
.init_array: {} palign(8) > M4F_IRAM /* Contains function pointers called before main */
|
|
||||||
.fini_array: {} palign(8) > M4F_IRAM /* Contains function pointers called after main */
|
|
||||||
|
|
||||||
/* General purpose user shared memory */
|
|
||||||
.bss.user_shared_mem (NOLOAD) : {} > USER_SHM_MEM
|
|
||||||
/* this is used when Debug log's to shared memory are enabled, else this is not used */
|
|
||||||
.bss.log_shared_mem (NOLOAD) : {} > LOG_SHM_MEM
|
|
||||||
/* this is used only when IPC RPMessage is enabled, else this is not used */
|
|
||||||
.bss.ipc_vring_mem (NOLOAD) : {} > IPC_VRING_MEM
|
|
||||||
}
|
|
||||||
|
|
||||||
MEMORY
|
|
||||||
{
|
|
||||||
M4F_VECS : ORIGIN = 0x00000000 , LENGTH = 0x00000200
|
|
||||||
M4F_IRAM : ORIGIN = 0x00000200 , LENGTH = 0x0002FE00
|
|
||||||
M4F_DRAM : ORIGIN = 0x00030000 , LENGTH = 0x00010000
|
|
||||||
|
|
||||||
/* shared memories that are used by all cores */
|
|
||||||
/* On M4F,
|
|
||||||
* - By default MSMC RAM is not accessible to M4F, a RAT entry is needed to make it
|
|
||||||
* accessible on M4F
|
|
||||||
* - So make sure there is a RAT entry which has a 1:1 mapping from 0x70000000 to 0x70200000
|
|
||||||
*/
|
|
||||||
USER_SHM_MEM : ORIGIN = 0x701D0000, LENGTH = 0x180
|
|
||||||
LOG_SHM_MEM : ORIGIN = 0x701D0000 + 0x180, LENGTH = 0x00004000 - 0x180
|
|
||||||
IPC_VRING_MEM: ORIGIN = 0x701D4000, LENGTH = 0x0000C000
|
|
||||||
}
|
|
||||||
@ -1,303 +0,0 @@
|
|||||||
#
|
|
||||||
# Auto generated makefile
|
|
||||||
#
|
|
||||||
|
|
||||||
export MOTOR_CONTROL_SDK_PATH?=$(abspath ../../../../../..)
|
|
||||||
include $(MOTOR_CONTROL_SDK_PATH)/imports.mak
|
|
||||||
include $(MOTOR_CONTROL_SDK_PATH)/devconfig/devconfig.mak
|
|
||||||
|
|
||||||
CG_TOOL_ROOT=$(CGT_TI_ARM_CLANG_PATH)
|
|
||||||
|
|
||||||
CC=$(CG_TOOL_ROOT)/bin/tiarmclang
|
|
||||||
LNK=$(CG_TOOL_ROOT)/bin/tiarmclang
|
|
||||||
STRIP=$(CG_TOOL_ROOT)/bin/tiarmstrip
|
|
||||||
OBJCOPY=$(CG_TOOL_ROOT)/bin/tiarmobjcopy
|
|
||||||
ifeq ($(OS), Windows_NT)
|
|
||||||
PYTHON=python
|
|
||||||
else
|
|
||||||
PYTHON=python3
|
|
||||||
endif
|
|
||||||
|
|
||||||
PROFILE?=release
|
|
||||||
ConfigName:=$(PROFILE)
|
|
||||||
|
|
||||||
OUTNAME:=dcl_pi.$(PROFILE).out
|
|
||||||
|
|
||||||
BOOTIMAGE_PATH=$(abspath .)
|
|
||||||
BOOTIMAGE_NAME:=dcl_pi.$(PROFILE).appimage
|
|
||||||
BOOTIMAGE_NAME_XIP:=dcl_pi.$(PROFILE).appimage_xip
|
|
||||||
BOOTIMAGE_NAME_SIGNED:=dcl_pi.$(PROFILE).appimage.signed
|
|
||||||
BOOTIMAGE_RPRC_NAME:=dcl_pi.$(PROFILE).rprc
|
|
||||||
BOOTIMAGE_RPRC_NAME_XIP:=dcl_pi.$(PROFILE).rprc_xip
|
|
||||||
BOOTIMAGE_RPRC_NAME_TMP:=dcl_pi.$(PROFILE).rprc_tmp
|
|
||||||
BOOTIMAGE_NAME_HS:=dcl_pi.$(PROFILE).appimage.hs
|
|
||||||
BOOTIMAGE_NAME_HS_FS:=dcl_pi.$(PROFILE).appimage.hs_fs
|
|
||||||
TARGETS := $(BOOTIMAGE_NAME)
|
|
||||||
ifeq ($(DEVICE_TYPE), HS)
|
|
||||||
TARGETS += $(BOOTIMAGE_NAME_HS)
|
|
||||||
endif
|
|
||||||
|
|
||||||
FILES_common := \
|
|
||||||
pi_test.c \
|
|
||||||
main.c \
|
|
||||||
ti_drivers_config.c \
|
|
||||||
ti_drivers_open_close.c \
|
|
||||||
ti_board_config.c \
|
|
||||||
ti_board_open_close.c \
|
|
||||||
ti_dpl_config.c \
|
|
||||||
ti_pinmux_config.c \
|
|
||||||
ti_power_clock_config.c \
|
|
||||||
|
|
||||||
FILES_PATH_common = \
|
|
||||||
.. \
|
|
||||||
../../.. \
|
|
||||||
generated \
|
|
||||||
|
|
||||||
INCLUDES_common := \
|
|
||||||
-I${CG_TOOL_ROOT}/include/c \
|
|
||||||
-I${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source \
|
|
||||||
-I${MOTOR_CONTROL_SDK_PATH}/source \
|
|
||||||
-I${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/FreeRTOS-Kernel/include \
|
|
||||||
-I${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/portable/TI_ARM_CLANG/ARM_CM4F \
|
|
||||||
-I${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/config/am243x/m4f \
|
|
||||||
-I${MOTOR_CONTROL_SDK_PATH}/source/dcl \
|
|
||||||
-Igenerated \
|
|
||||||
|
|
||||||
DEFINES_common := \
|
|
||||||
-DSOC_AM243X \
|
|
||||||
|
|
||||||
CFLAGS_common := \
|
|
||||||
-mcpu=cortex-m4 \
|
|
||||||
-mfloat-abi=hard \
|
|
||||||
-mthumb \
|
|
||||||
-Wall \
|
|
||||||
-Werror \
|
|
||||||
-g \
|
|
||||||
-Wno-gnu-variable-sized-type-not-at-end \
|
|
||||||
-Wno-unused-function \
|
|
||||||
|
|
||||||
CFLAGS_cpp_common := \
|
|
||||||
-Wno-c99-designator \
|
|
||||||
-Wno-extern-c-compat \
|
|
||||||
-Wno-c++11-narrowing \
|
|
||||||
-Wno-reorder-init-list \
|
|
||||||
-Wno-deprecated-register \
|
|
||||||
-Wno-writable-strings \
|
|
||||||
-Wno-enum-compare \
|
|
||||||
-Wno-reserved-user-defined-literal \
|
|
||||||
-Wno-unused-const-variable \
|
|
||||||
-x c++ \
|
|
||||||
|
|
||||||
CFLAGS_debug := \
|
|
||||||
-D_DEBUG_=1 \
|
|
||||||
|
|
||||||
CFLAGS_release := \
|
|
||||||
-Os \
|
|
||||||
|
|
||||||
LNK_FILES_common = \
|
|
||||||
linker.cmd \
|
|
||||||
dcl_linker_m4f_am243x_sitara.cmd \
|
|
||||||
|
|
||||||
LIBS_PATH_common = \
|
|
||||||
-Wl,-i${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/lib \
|
|
||||||
-Wl,-i${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/drivers/lib \
|
|
||||||
-Wl,-i${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/board/lib \
|
|
||||||
-Wl,-i${CG_TOOL_ROOT}/lib \
|
|
||||||
|
|
||||||
LIBS_common = \
|
|
||||||
-lfreertos.am243x.m4f.ti-arm-clang.${ConfigName}.lib \
|
|
||||||
-ldrivers.am243x.m4f.ti-arm-clang.${ConfigName}.lib \
|
|
||||||
-lboard.am243x.m4f.ti-arm-clang.${ConfigName}.lib \
|
|
||||||
-llibc.a \
|
|
||||||
-llibsysbm.a \
|
|
||||||
|
|
||||||
LFLAGS_common = \
|
|
||||||
-Wl,--ram_model \
|
|
||||||
-Wl,--reread_libs \
|
|
||||||
|
|
||||||
|
|
||||||
LIBS_NAME = \
|
|
||||||
freertos.am243x.m4f.ti-arm-clang.${ConfigName}.lib \
|
|
||||||
drivers.am243x.m4f.ti-arm-clang.${ConfigName}.lib \
|
|
||||||
board.am243x.m4f.ti-arm-clang.${ConfigName}.lib \
|
|
||||||
libc.a \
|
|
||||||
libsysbm.a \
|
|
||||||
|
|
||||||
LIBS_PATH_NAME = \
|
|
||||||
${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/lib \
|
|
||||||
${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/drivers/lib \
|
|
||||||
${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/board/lib \
|
|
||||||
${CG_TOOL_ROOT}/lib \
|
|
||||||
|
|
||||||
FILES := $(FILES_common) $(FILES_$(PROFILE))
|
|
||||||
ASMFILES := $(ASMFILES_common) $(ASMFILES_$(PROFILE))
|
|
||||||
FILES_PATH := $(FILES_PATH_common) $(FILES_PATH_$(PROFILE))
|
|
||||||
CFLAGS := $(CFLAGS_common) $(CFLAGS_$(PROFILE))
|
|
||||||
DEFINES := $(DEFINES_common) $(DEFINES_$(PROFILE))
|
|
||||||
INCLUDES := $(INCLUDES_common) $(INCLUDE_$(PROFILE))
|
|
||||||
LIBS := $(LIBS_common) $(LIBS_$(PROFILE))
|
|
||||||
LIBS_PATH := $(LIBS_PATH_common) $(LIBS_PATH_$(PROFILE))
|
|
||||||
LFLAGS := $(LFLAGS_common) $(LFLAGS_$(PROFILE))
|
|
||||||
LNKOPTFLAGS := $(LNKOPTFLAGS_common) $(LNKOPTFLAGS_$(PROFILE))
|
|
||||||
LNK_FILES := $(LNK_FILES_common) $(LNK_FILES_$(PROFILE))
|
|
||||||
|
|
||||||
OBJDIR := obj/$(PROFILE)/
|
|
||||||
OBJS := $(FILES:%.c=%.obj)
|
|
||||||
OBJS += $(ASMFILES:%.S=%.obj)
|
|
||||||
DEPS := $(FILES:%.c=%.d)
|
|
||||||
|
|
||||||
vpath %.obj $(OBJDIR)
|
|
||||||
vpath %.c $(FILES_PATH)
|
|
||||||
vpath %.S $(FILES_PATH)
|
|
||||||
vpath %.lib $(LIBS_PATH_NAME)
|
|
||||||
vpath %.a $(LIBS_PATH_NAME)
|
|
||||||
|
|
||||||
$(OBJDIR)/%.obj %.obj: %.c
|
|
||||||
@echo Compiling: am243x:m4fss0-0:freertos:ti-arm-clang $(OUTNAME): $<
|
|
||||||
$(CC) -c $(CFLAGS) $(INCLUDES) $(DEFINES) -MMD -o $(OBJDIR)/$@ $<
|
|
||||||
|
|
||||||
$(OBJDIR)/%.obj %.obj: %.S
|
|
||||||
@echo Compiling: am243x:m4fss0-0:freertos:ti-arm-clang $(LIBNAME): $<
|
|
||||||
$(CC) -c $(CFLAGS) -o $(OBJDIR)/$@ $<
|
|
||||||
|
|
||||||
all: $(TARGETS)
|
|
||||||
|
|
||||||
SYSCFG_GEN_FILES=generated/ti_drivers_config.c generated/ti_drivers_config.h
|
|
||||||
SYSCFG_GEN_FILES+=generated/ti_drivers_open_close.c generated/ti_drivers_open_close.h
|
|
||||||
SYSCFG_GEN_FILES+=generated/ti_dpl_config.c generated/ti_dpl_config.h
|
|
||||||
SYSCFG_GEN_FILES+=generated/ti_pinmux_config.c generated/ti_power_clock_config.c
|
|
||||||
SYSCFG_GEN_FILES+=generated/ti_board_config.c generated/ti_board_config.h
|
|
||||||
SYSCFG_GEN_FILES+=generated/ti_board_open_close.c generated/ti_board_open_close.h
|
|
||||||
|
|
||||||
$(OUTNAME): syscfg $(SYSCFG_GEN_FILES) $(OBJS) $(LNK_FILES) $(LIBS_NAME)
|
|
||||||
@echo .
|
|
||||||
@echo Linking: am243x:m4fss0-0:freertos:ti-arm-clang $@ ...
|
|
||||||
$(LNK) $(LNKOPTFLAGS) $(LFLAGS) $(LIBS_PATH) -Wl,-m=$(basename $@).map -o $@ $(addprefix $(OBJDIR), $(OBJS)) $(LIBS) $(LNK_FILES)
|
|
||||||
@echo Linking: am243x:m4fss0-0:freertos:ti-arm-clang $@ Done !!!
|
|
||||||
@echo .
|
|
||||||
|
|
||||||
clean:
|
|
||||||
@echo Cleaning: am243x:m4fss0-0:freertos:ti-arm-clang $(OUTNAME) ...
|
|
||||||
$(RMDIR) $(OBJDIR)
|
|
||||||
$(RM) $(OUTNAME)
|
|
||||||
$(RM) $(BOOTIMAGE_NAME)
|
|
||||||
$(RM) $(BOOTIMAGE_NAME_XIP)
|
|
||||||
$(RM) $(BOOTIMAGE_NAME_SIGNED)
|
|
||||||
$(RM) $(BOOTIMAGE_NAME_HS)
|
|
||||||
$(RM) $(BOOTIMAGE_NAME_HS_FS)
|
|
||||||
$(RM) $(BOOTIMAGE_RPRC_NAME)
|
|
||||||
$(RM) $(BOOTIMAGE_RPRC_NAME_XIP)
|
|
||||||
$(RMDIR) generated/
|
|
||||||
|
|
||||||
scrub:
|
|
||||||
@echo Scrubing: am243x:m4fss0-0:freertos:ti-arm-clang dcl_pi ...
|
|
||||||
$(RMDIR) obj
|
|
||||||
ifeq ($(OS),Windows_NT)
|
|
||||||
$(RM) \*.out
|
|
||||||
$(RM) \*.map
|
|
||||||
$(RM) \*.appimage*
|
|
||||||
$(RM) \*.rprc*
|
|
||||||
$(RM) \*.tiimage*
|
|
||||||
$(RM) \*.bin
|
|
||||||
else
|
|
||||||
$(RM) *.out
|
|
||||||
$(RM) *.map
|
|
||||||
$(RM) *.appimage*
|
|
||||||
$(RM) *.rprc*
|
|
||||||
$(RM) *.tiimage*
|
|
||||||
$(RM) *.bin
|
|
||||||
endif
|
|
||||||
$(RMDIR) generated
|
|
||||||
|
|
||||||
$(OBJS): | $(OBJDIR)
|
|
||||||
|
|
||||||
$(OBJDIR):
|
|
||||||
$(MKDIR) $@
|
|
||||||
|
|
||||||
|
|
||||||
.NOTPARALLEL:
|
|
||||||
|
|
||||||
.INTERMEDIATE: syscfg
|
|
||||||
$(SYSCFG_GEN_FILES): syscfg
|
|
||||||
|
|
||||||
syscfg: ../example.syscfg
|
|
||||||
@echo Generating SysConfig files ...
|
|
||||||
$(SYSCFG_NODE) $(SYSCFG_CLI_PATH)/dist/cli.js --product $(SYSCFG_SDKPRODUCT) --context m4fss0-0 --part ALV --package ALV --output generated/ ../example.syscfg
|
|
||||||
|
|
||||||
syscfg-gui:
|
|
||||||
$(SYSCFG_NWJS) $(SYSCFG_PATH) --product $(SYSCFG_SDKPRODUCT) --device AM243x_ALV_beta --context m4fss0-0 --part ALV --package ALV --output generated/ ../example.syscfg
|
|
||||||
|
|
||||||
#
|
|
||||||
# Generation of boot image which can be loaded by Secondary Boot Loader (SBL)
|
|
||||||
#
|
|
||||||
ifeq ($(OS),Windows_NT)
|
|
||||||
EXE_EXT=.exe
|
|
||||||
endif
|
|
||||||
ifeq ($(OS),Windows_NT)
|
|
||||||
BOOTIMAGE_CERT_GEN_CMD=powershell -executionpolicy unrestricted -command $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/signing/x509CertificateGen.ps1
|
|
||||||
else
|
|
||||||
BOOTIMAGE_CERT_GEN_CMD=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/signing/x509CertificateGen.sh
|
|
||||||
endif
|
|
||||||
BOOTIMAGE_TEMP_OUT_FILE=temp_stdout_$(PROFILE).txt
|
|
||||||
|
|
||||||
BOOTIMAGE_CERT_KEY=$(APP_SIGNING_KEY)
|
|
||||||
|
|
||||||
BOOTIMAGE_CORE_ID_r5fss0-0 = 4
|
|
||||||
BOOTIMAGE_CORE_ID_r5fss0-1 = 5
|
|
||||||
BOOTIMAGE_CORE_ID_r5fss1-0 = 6
|
|
||||||
BOOTIMAGE_CORE_ID_r5fss1-1 = 7
|
|
||||||
BOOTIMAGE_CORE_ID_m4fss0-0 = 14
|
|
||||||
SBL_RUN_ADDRESS=0x70000000
|
|
||||||
SBL_DEV_ID=55
|
|
||||||
|
|
||||||
MULTI_CORE_IMAGE_GEN = $(SYSCFG_NODE) $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/multicoreImageGen/multicoreImageGen.js
|
|
||||||
OUTRPRC_CMD = $(SYSCFG_NODE) $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/out2rprc/elf2rprc.js
|
|
||||||
APP_IMAGE_SIGN_CMD = $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/signing/appimage_x509_cert_gen.py
|
|
||||||
|
|
||||||
ifeq ($(OS),Windows_NT)
|
|
||||||
XIPGEN_CMD=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/xipGen/xipGen.exe
|
|
||||||
else
|
|
||||||
XIPGEN_CMD=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/xipGen/xipGen.out
|
|
||||||
endif
|
|
||||||
|
|
||||||
MULTI_CORE_IMAGE_PARAMS = \
|
|
||||||
$(BOOTIMAGE_RPRC_NAME)@$(BOOTIMAGE_CORE_ID_m4fss0-0) \
|
|
||||||
|
|
||||||
MULTI_CORE_IMAGE_PARAMS_XIP = \
|
|
||||||
$(BOOTIMAGE_RPRC_NAME_XIP)@$(BOOTIMAGE_CORE_ID_m4fss0-0) \
|
|
||||||
|
|
||||||
$(BOOTIMAGE_NAME): $(OUTNAME)
|
|
||||||
@echo Boot image: am243x:m4fss0-0:freertos:ti-arm-clang $(BOOTIMAGE_PATH)/$@ ...
|
|
||||||
ifneq ($(OS),Windows_NT)
|
|
||||||
$(CHMOD) a+x $(XIPGEN_CMD)
|
|
||||||
endif
|
|
||||||
$(OUTRPRC_CMD) $(OUTNAME) >> $(BOOTIMAGE_TEMP_OUT_FILE)
|
|
||||||
$(COPY) $(BOOTIMAGE_RPRC_NAME) $(BOOTIMAGE_RPRC_NAME_TMP)
|
|
||||||
$(RM) $(BOOTIMAGE_RPRC_NAME)
|
|
||||||
$(XIPGEN_CMD) -i $(BOOTIMAGE_RPRC_NAME_TMP) -o $(BOOTIMAGE_RPRC_NAME) -x $(BOOTIMAGE_RPRC_NAME_XIP) --flash-start-addr 0x60000000 -v > $(BOOTIMAGE_TEMP_OUT_FILE)
|
|
||||||
$(MULTI_CORE_IMAGE_GEN) --devID $(SBL_DEV_ID) --out $(BOOTIMAGE_NAME) $(MULTI_CORE_IMAGE_PARAMS) >> $(BOOTIMAGE_TEMP_OUT_FILE)
|
|
||||||
$(MULTI_CORE_IMAGE_GEN) --devID $(SBL_DEV_ID) --out $(BOOTIMAGE_NAME_XIP) $(MULTI_CORE_IMAGE_PARAMS_XIP) >> $(BOOTIMAGE_TEMP_OUT_FILE)
|
|
||||||
# Sign the appimage for HS-FS using appimage signing script
|
|
||||||
$(PYTHON) $(APP_IMAGE_SIGN_CMD) --bin $(BOOTIMAGE_NAME) --authtype 1 --key $(APP_SIGNING_KEY) --output $(BOOTIMAGE_NAME_HS_FS)
|
|
||||||
$(RM) $(BOOTIMAGE_RPRC_NAME_TMP)
|
|
||||||
$(RM) $(BOOTIMAGE_TEMP_OUT_FILE)
|
|
||||||
@echo Boot image: am243x:m4fss0-0:freertos:ti-arm-clang $(BOOTIMAGE_PATH)/$@ Done !!!
|
|
||||||
@echo .
|
|
||||||
@echo Boot image: am243x:m4fss0-0:freertos:ti-arm-clang $(BOOTIMAGE_PATH)/$(BOOTIMAGE_NAME_HS_FS) Done !!!
|
|
||||||
@echo .
|
|
||||||
|
|
||||||
$(BOOTIMAGE_NAME_HS): $(BOOTIMAGE_NAME)
|
|
||||||
ifeq ($(DEVICE_TYPE), HS)
|
|
||||||
# Sign the appimage using appimage signing script
|
|
||||||
ifeq ($(ENC_ENABLED),no)
|
|
||||||
@echo Boot image signing: Encryption is disabled.
|
|
||||||
$(PYTHON) $(APP_IMAGE_SIGN_CMD) --bin $(BOOTIMAGE_NAME) --authtype 1 --key $(APP_SIGNING_KEY) --output $(BOOTIMAGE_NAME_HS)
|
|
||||||
else
|
|
||||||
@echo Boot image signing: Encryption is enabled.
|
|
||||||
$(PYTHON) $(APP_IMAGE_SIGN_CMD) --bin $(BOOTIMAGE_NAME) --authtype 1 --key $(APP_SIGNING_KEY) --enc y --enckey $(APP_ENCRYPTION_KEY) --output $(BOOTIMAGE_NAME_HS)
|
|
||||||
$(RM) $(BOOTIMAGE_NAME)-enc
|
|
||||||
endif
|
|
||||||
@echo Boot image: am243x:m4fss0-0:freertos:ti-arm-clang $(BOOTIMAGE_PATH)/$(BOOTIMAGE_NAME_HS) Done !!!
|
|
||||||
@echo .
|
|
||||||
endif
|
|
||||||
-include $(addprefix $(OBJDIR)/, $(DEPS))
|
|
||||||
@ -1,106 +0,0 @@
|
|||||||
#
|
|
||||||
# Auto generated makefile
|
|
||||||
#
|
|
||||||
|
|
||||||
# Below variables need to be defined outside this file or via command line
|
|
||||||
# - MOTOR_CONTROL_SDK_PATH
|
|
||||||
# - PROFILE
|
|
||||||
# - CG_TOOL_ROOT
|
|
||||||
# - OUTNAME
|
|
||||||
# - CCS_INSTALL_DIR
|
|
||||||
# - CCS_IDE_MODE
|
|
||||||
|
|
||||||
CCS_PATH=$(CCS_INSTALL_DIR)
|
|
||||||
include ${MOTOR_CONTROL_SDK_PATH}/imports.mak
|
|
||||||
include ${MOTOR_CONTROL_SDK_PATH}/devconfig/devconfig.mak
|
|
||||||
|
|
||||||
STRIP=$(CG_TOOL_ROOT)/bin/tiarmstrip
|
|
||||||
OBJCOPY=$(CG_TOOL_ROOT)/bin/tiarmobjcopy
|
|
||||||
ifeq ($(OS), Windows_NT)
|
|
||||||
PYTHON=python
|
|
||||||
else
|
|
||||||
PYTHON=python3
|
|
||||||
endif
|
|
||||||
|
|
||||||
OUTFILE=$(PROFILE)/$(OUTNAME).out
|
|
||||||
BOOTIMAGE_PATH=$(abspath ${PROFILE})
|
|
||||||
BOOTIMAGE_NAME:=$(BOOTIMAGE_PATH)/$(OUTNAME).appimage
|
|
||||||
BOOTIMAGE_NAME_XIP:=$(BOOTIMAGE_PATH)/$(OUTNAME).appimage_xip
|
|
||||||
BOOTIMAGE_NAME_SIGNED:=$(BOOTIMAGE_PATH)/$(OUTNAME).appimage.signed
|
|
||||||
BOOTIMAGE_RPRC_NAME:=$(BOOTIMAGE_PATH)/$(OUTNAME).rprc
|
|
||||||
BOOTIMAGE_RPRC_NAME_XIP:=$(BOOTIMAGE_PATH)/$(OUTNAME).rprc_xip
|
|
||||||
BOOTIMAGE_RPRC_NAME_TMP:=$(BOOTIMAGE_PATH)/$(OUTNAME).rprc_tmp
|
|
||||||
|
|
||||||
#
|
|
||||||
# Generation of boot image which can be loaded by Secondary Boot Loader (SBL)
|
|
||||||
#
|
|
||||||
ifeq ($(OS),Windows_NT)
|
|
||||||
EXE_EXT=.exe
|
|
||||||
endif
|
|
||||||
ifeq ($(OS),Windows_NT)
|
|
||||||
BOOTIMAGE_CERT_GEN_CMD=powershell -executionpolicy unrestricted -command $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/signing/x509CertificateGen.ps1
|
|
||||||
else
|
|
||||||
BOOTIMAGE_CERT_GEN_CMD=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/signing/x509CertificateGen.sh
|
|
||||||
endif
|
|
||||||
BOOTIMAGE_TEMP_OUT_FILE=$(PROFILE)/temp_stdout_$(PROFILE).txt
|
|
||||||
|
|
||||||
BOOTIMAGE_CORE_ID_r5fss0-0 = 4
|
|
||||||
BOOTIMAGE_CORE_ID_r5fss0-1 = 5
|
|
||||||
BOOTIMAGE_CORE_ID_r5fss1-0 = 6
|
|
||||||
BOOTIMAGE_CORE_ID_r5fss1-1 = 7
|
|
||||||
BOOTIMAGE_CORE_ID_m4fss0-0 = 14
|
|
||||||
SBL_RUN_ADDRESS=0x70000000
|
|
||||||
SBL_DEV_ID=55
|
|
||||||
|
|
||||||
MULTI_CORE_IMAGE_GEN = $(CCS_NODE) $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/multicoreImageGen/multicoreImageGen.js
|
|
||||||
OUTRPRC_CMD = $(CCS_NODE) $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/out2rprc/elf2rprc.js
|
|
||||||
APP_IMAGE_SIGN_CMD = $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/signing/appimage_x509_cert_gen.py
|
|
||||||
|
|
||||||
ifeq ($(OS),Windows_NT)
|
|
||||||
XIPGEN_CMD=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/xipGen/xipGen.exe
|
|
||||||
else
|
|
||||||
XIPGEN_CMD=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/xipGen/xipGen.out
|
|
||||||
endif
|
|
||||||
|
|
||||||
MULTI_CORE_IMAGE_PARAMS = \
|
|
||||||
$(BOOTIMAGE_RPRC_NAME)@$(BOOTIMAGE_CORE_ID_m4fss0-0) \
|
|
||||||
|
|
||||||
MULTI_CORE_IMAGE_PARAMS_XIP = \
|
|
||||||
$(BOOTIMAGE_RPRC_NAME_XIP)@$(BOOTIMAGE_CORE_ID_m4fss0-0) \
|
|
||||||
|
|
||||||
all:
|
|
||||||
ifeq ($(CCS_IDE_MODE),cloud)
|
|
||||||
# No post build steps
|
|
||||||
else
|
|
||||||
@echo Boot image: am243x:m4fss0-0:freertos:ti-arm-clang $(BOOTIMAGE_NAME) ...
|
|
||||||
$(OUTRPRC_CMD) $(OUTFILE) >> $(BOOTIMAGE_TEMP_OUT_FILE)
|
|
||||||
$(COPY) $(OUTNAME).rprc $(BOOTIMAGE_RPRC_NAME)
|
|
||||||
$(COPY) $(BOOTIMAGE_RPRC_NAME) $(BOOTIMAGE_RPRC_NAME_TMP)
|
|
||||||
$(RM) $(BOOTIMAGE_RPRC_NAME)
|
|
||||||
$(XIPGEN_CMD) -i $(BOOTIMAGE_RPRC_NAME_TMP) -o $(BOOTIMAGE_RPRC_NAME) -x $(BOOTIMAGE_RPRC_NAME_XIP) --flash-start-addr 0x60000000 -v > $(BOOTIMAGE_TEMP_OUT_FILE)
|
|
||||||
$(MULTI_CORE_IMAGE_GEN) --devID $(SBL_DEV_ID) --out $(BOOTIMAGE_NAME) $(MULTI_CORE_IMAGE_PARAMS) >> $(BOOTIMAGE_TEMP_OUT_FILE)
|
|
||||||
$(MULTI_CORE_IMAGE_GEN) --devID $(SBL_DEV_ID) --out $(BOOTIMAGE_NAME_XIP) $(MULTI_CORE_IMAGE_PARAMS_XIP) >> $(BOOTIMAGE_TEMP_OUT_FILE)
|
|
||||||
# Sign the appimage for HS-FS using appimage signing script
|
|
||||||
$(PYTHON) $(APP_IMAGE_SIGN_CMD) --bin $(BOOTIMAGE_NAME) --authtype 1 --key $(APP_SIGNING_KEY) --output $(BOOTIMAGE_NAME).hs_fs
|
|
||||||
ifeq ($(DEVICE_TYPE),HS)
|
|
||||||
# Sign the appimage using appimage signing script
|
|
||||||
ifeq ($(ENC_ENABLED),no)
|
|
||||||
@echo Boot image signing: Encryption is disabled.
|
|
||||||
$(PYTHON) $(APP_IMAGE_SIGN_CMD) --bin $(BOOTIMAGE_NAME) --authtype 1 --key $(APP_SIGNING_KEY) --output $(BOOTIMAGE_NAME).hs
|
|
||||||
else
|
|
||||||
@echo Boot image signing: Encryption is enabled.
|
|
||||||
$(PYTHON) $(APP_IMAGE_SIGN_CMD) --bin $(BOOTIMAGE_NAME) --authtype 1 --key $(APP_SIGNING_KEY) --enc y --enckey $(APP_ENCRYPTION_KEY) --output $(BOOTIMAGE_NAME).hs
|
|
||||||
$(RM) $(BOOTIMAGE_NAME)-enc
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
$(RM) $(BOOTIMAGE_RPRC_NAME_TMP)
|
|
||||||
@echo Boot image: am243x:m4fss0-0:freertos:ti-arm-clang $(BOOTIMAGE_NAME) Done !!!
|
|
||||||
@echo .
|
|
||||||
ifeq ($(DEVICE_TYPE),HS)
|
|
||||||
@echo Boot image: am243x:m4fss0-0:freertos:ti-arm-clang $(BOOTIMAGE_NAME).hs Done !!!
|
|
||||||
@echo .
|
|
||||||
else
|
|
||||||
@echo Boot image: am243x:m4fss0-0:freertos:ti-arm-clang $(BOOTIMAGE_NAME).hs_fs Done !!!
|
|
||||||
@echo .
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
@ -1,20 +0,0 @@
|
|||||||
#
|
|
||||||
# Auto generated makefile
|
|
||||||
#
|
|
||||||
|
|
||||||
export MOTOR_CONTROL_SDK_PATH?=$(abspath ../../../../../..)
|
|
||||||
include $(MOTOR_CONTROL_SDK_PATH)/imports.mak
|
|
||||||
|
|
||||||
PROFILE?=Release
|
|
||||||
|
|
||||||
PROJECT_NAME=dcl_pi_am243x-evm_m4fss0-0_freertos_ti-arm-clang
|
|
||||||
|
|
||||||
all:
|
|
||||||
$(CCS_ECLIPSE) -noSplash -data $(MOTOR_CONTROL_SDK_PATH)/ccs_projects -application com.ti.ccstudio.apps.projectBuild -ccs.projects $(PROJECT_NAME) -ccs.configuration $(PROFILE)
|
|
||||||
|
|
||||||
clean:
|
|
||||||
$(CCS_ECLIPSE) -noSplash -data $(MOTOR_CONTROL_SDK_PATH)/ccs_projects -application com.ti.ccstudio.apps.projectBuild -ccs.projects $(PROJECT_NAME) -ccs.configuration $(PROFILE) -ccs.clean
|
|
||||||
|
|
||||||
export:
|
|
||||||
$(MKDIR) $(MOTOR_CONTROL_SDK_PATH)/ccs_projects
|
|
||||||
$(CCS_ECLIPSE) -noSplash -data $(MOTOR_CONTROL_SDK_PATH)/ccs_projects -application com.ti.ccstudio.apps.projectCreate -ccs.projectSpec example.projectspec -ccs.overwrite full
|
|
||||||
@ -1,8 +0,0 @@
|
|||||||
/*
|
|
||||||
* ======== syscfg_c.rov.xs ========
|
|
||||||
* This file contains the information needed by the Runtime Object
|
|
||||||
* View (ROV) tool.
|
|
||||||
*/
|
|
||||||
var crovFiles = [
|
|
||||||
"kernel/freertos/rov/FreeRTOS.rov.js",
|
|
||||||
];
|
|
||||||
@ -1,57 +0,0 @@
|
|||||||
/**
|
|
||||||
* 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 "m4fss0-0" --product "MCU_PLUS_SDK@07.03.00"
|
|
||||||
* @versions {"data":"2021012919","timestamp":"2021012919","tool":"1.8.0+1785","templates":null}
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Import the modules used in this configuration.
|
|
||||||
*/
|
|
||||||
const addr_translate = scripting.addModule("/kernel/dpl/addr_translate", {}, false);
|
|
||||||
const addr_translate1 = addr_translate.addInstance();
|
|
||||||
const addr_translate2 = addr_translate.addInstance();
|
|
||||||
const addr_translate3 = addr_translate.addInstance();
|
|
||||||
const addr_translate4 = addr_translate.addInstance();
|
|
||||||
const clock = scripting.addModule("/kernel/dpl/clock");
|
|
||||||
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();
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Write custom configuration values to the imported modules.
|
|
||||||
*/
|
|
||||||
addr_translate1.$name = "CONFIG_ADDR_TRANSLATE_REGION0";
|
|
||||||
addr_translate1.localAddr = 0x80000000;
|
|
||||||
|
|
||||||
addr_translate2.$name = "CONFIG_ADDR_TRANSLATE_REGION1";
|
|
||||||
addr_translate2.systemAddr = 0x20000000;
|
|
||||||
addr_translate2.localAddr = 0xA0000000;
|
|
||||||
|
|
||||||
addr_translate3.$name = "CONFIG_ADDR_TRANSLATE_REGION2";
|
|
||||||
addr_translate3.systemAddr = 0x40000000;
|
|
||||||
addr_translate3.localAddr = 0xC0000000;
|
|
||||||
|
|
||||||
addr_translate4.$name = "CONFIG_ADDR_TRANSLATE_REGION3";
|
|
||||||
addr_translate4.systemAddr = 0x60000000;
|
|
||||||
addr_translate4.localAddr = 0x60000000;
|
|
||||||
|
|
||||||
debug_log.enableUartLog = true;
|
|
||||||
debug_log.uartLog.$name = "CONFIG_UART_CONSOLE";
|
|
||||||
debug_log.uartLog.MCU_UART.$assign = "MCU_USART0";
|
|
||||||
|
|
||||||
mpu_armv71.$name = "CONFIG_MPU_REGION0";
|
|
||||||
mpu_armv71.attributes = "Device";
|
|
||||||
mpu_armv71.allowExecute = false;
|
|
||||||
|
|
||||||
mpu_armv72.$name = "CONFIG_MPU_REGION1";
|
|
||||||
mpu_armv72.size = 18;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 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.
|
|
||||||
*/
|
|
||||||
debug_log.uartLog.MCU_UART.RXD.$suggestSolution = "MCU_UART0_RXD";
|
|
||||||
debug_log.uartLog.MCU_UART.TXD.$suggestSolution = "MCU_UART0_TXD";
|
|
||||||
@ -1,50 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright (C) 2018-2021 Texas Instruments Incorporated
|
|
||||||
*
|
|
||||||
* Redistribution and use in source and binary forms, with or without
|
|
||||||
* modification, are permitted provided that the following conditions
|
|
||||||
* are met:
|
|
||||||
*
|
|
||||||
* Redistributions of source code must retain the above copyright
|
|
||||||
* notice, this list of conditions and the following disclaimer.
|
|
||||||
*
|
|
||||||
* Redistributions in binary form must reproduce the above copyright
|
|
||||||
* notice, this list of conditions and the following disclaimer in the
|
|
||||||
* documentation and/or other materials provided with the
|
|
||||||
* distribution.
|
|
||||||
*
|
|
||||||
* Neither the name of Texas Instruments Incorporated nor the names of
|
|
||||||
* its contributors may be used to endorse or promote products derived
|
|
||||||
* from this software without specific prior written permission.
|
|
||||||
*
|
|
||||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
||||||
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
||||||
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
||||||
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
||||||
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
||||||
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
||||||
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
||||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
||||||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include "ti_drivers_config.h"
|
|
||||||
#include "ti_board_config.h"
|
|
||||||
|
|
||||||
void dcl_pi_main(void *args);
|
|
||||||
|
|
||||||
int main(void)
|
|
||||||
{
|
|
||||||
System_init();
|
|
||||||
Board_init();
|
|
||||||
|
|
||||||
dcl_pi_main(NULL);
|
|
||||||
|
|
||||||
Board_deinit();
|
|
||||||
System_deinit();
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
@ -1,19 +0,0 @@
|
|||||||
/*
|
|
||||||
* This linker file is optional, it's complementary to the device/core linker file
|
|
||||||
* Here it specifies the dcl function & data mapping allocated by __attribute__((section(...)))
|
|
||||||
* and link to a specific memory region for the best performance
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Define core & platform specific variables */
|
|
||||||
#define FAST_RAM M4F_IRAM
|
|
||||||
#define REG_RAM M4F_IRAM /* M4F_DRAM also works */
|
|
||||||
|
|
||||||
SECTIONS
|
|
||||||
{
|
|
||||||
/* dcl functions mapped to on-chip fast ram */
|
|
||||||
dclfuncs : {} > FAST_RAM
|
|
||||||
|
|
||||||
/* optional -- map datas & variables to regular ram */
|
|
||||||
/* Sitara default linker should already map variables to ram */
|
|
||||||
dclDataSection : {} > REG_RAM
|
|
||||||
}
|
|
||||||
@ -1,112 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<projectSpec>
|
|
||||||
<applicability>
|
|
||||||
<when>
|
|
||||||
<context
|
|
||||||
deviceFamily="ARM"
|
|
||||||
deviceId="Cortex M.AM2434_ALV"
|
|
||||||
/>
|
|
||||||
</when>
|
|
||||||
</applicability>
|
|
||||||
|
|
||||||
<project
|
|
||||||
title="Dcl Pi"
|
|
||||||
name = "dcl_pi_am243x-evm_m4fss0-0_nortos_ti-arm-clang"
|
|
||||||
products="sysconfig;com.ti.MOTOR_CONTROL_SDK_AMXXX;"
|
|
||||||
configurations="
|
|
||||||
Debug,
|
|
||||||
Release,
|
|
||||||
"
|
|
||||||
connection="TIXDS110_Connection.xml"
|
|
||||||
toolChain="TICLANG"
|
|
||||||
cgtVersion="2.1.3"
|
|
||||||
device="Cortex M.AM2434_ALV"
|
|
||||||
deviceCore="Cortex_M4F_0"
|
|
||||||
ignoreDefaultDeviceSettings="true"
|
|
||||||
ignoreDefaultCCSSettings="true"
|
|
||||||
endianness="little"
|
|
||||||
outputFormat="ELF"
|
|
||||||
outputType="executable"
|
|
||||||
|
|
||||||
compilerBuildOptions="
|
|
||||||
-I${CG_TOOL_ROOT}/include/c
|
|
||||||
-I${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source
|
|
||||||
-I${MOTOR_CONTROL_SDK_PATH}/source
|
|
||||||
-I${MOTOR_CONTROL_SDK_PATH}/source/dcl
|
|
||||||
-mcpu=cortex-m4
|
|
||||||
-mfloat-abi=hard
|
|
||||||
-mthumb
|
|
||||||
-Wall
|
|
||||||
-Werror
|
|
||||||
-g
|
|
||||||
-Wno-gnu-variable-sized-type-not-at-end
|
|
||||||
-Wno-unused-function
|
|
||||||
-DSOC_AM243X
|
|
||||||
"
|
|
||||||
linkerBuildOptions="
|
|
||||||
-i${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/nortos/lib
|
|
||||||
-i${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/drivers/lib
|
|
||||||
-i${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/board/lib
|
|
||||||
-i${CG_TOOL_ROOT}/lib
|
|
||||||
-m=dcl_pi.${ConfigName}.map
|
|
||||||
--ram_model
|
|
||||||
--reread_libs
|
|
||||||
"
|
|
||||||
|
|
||||||
postBuildStep="$(MAKE) -C ${CCS_PROJECT_DIR} -f makefile_ccs_bootimage_gen OUTNAME=${BuildArtifactFileBaseName} PROFILE=${ConfigName} MOTOR_CONTROL_SDK_PATH=${MOTOR_CONTROL_SDK_PATH} CG_TOOL_ROOT=${CG_TOOL_ROOT} CCS_INSTALL_DIR=${CCS_INSTALL_DIR} CCS_IDE_MODE=${CCS_IDE_MODE} DEVICE=am243x"
|
|
||||||
|
|
||||||
enableSysConfigTool="true"
|
|
||||||
sysConfigBuildOptions="
|
|
||||||
--context m4fss0-0 --part ALV --package ALV
|
|
||||||
"
|
|
||||||
|
|
||||||
description="A Dcl Pi NORTOS project">
|
|
||||||
|
|
||||||
<configuration name="Debug"
|
|
||||||
compilerBuildOptions="
|
|
||||||
-D_DEBUG_=1
|
|
||||||
"
|
|
||||||
linkerBuildOptions="
|
|
||||||
-lnortos.am243x.m4f.ti-arm-clang.debug.lib
|
|
||||||
-ldrivers.am243x.m4f.ti-arm-clang.debug.lib
|
|
||||||
-lboard.am243x.m4f.ti-arm-clang.debug.lib
|
|
||||||
-llibc.a
|
|
||||||
-llibsysbm.a
|
|
||||||
"
|
|
||||||
></configuration>
|
|
||||||
<configuration name="Release"
|
|
||||||
compilerBuildOptions="
|
|
||||||
-Os
|
|
||||||
"
|
|
||||||
linkerBuildOptions="
|
|
||||||
-lnortos.am243x.m4f.ti-arm-clang.release.lib
|
|
||||||
-ldrivers.am243x.m4f.ti-arm-clang.release.lib
|
|
||||||
-lboard.am243x.m4f.ti-arm-clang.release.lib
|
|
||||||
-llibc.a
|
|
||||||
-llibsysbm.a
|
|
||||||
"
|
|
||||||
></configuration>
|
|
||||||
<pathVariable name="MOTOR_CONTROL_SDK_PATH" path="${COM_TI_MOTOR_CONTROL_SDK_AMXXX_INSTALL_DIR}" scope="project" />
|
|
||||||
<file path="../../../pi_test.c" openOnCreation="false" excludeFromBuild="false" action="copy">
|
|
||||||
</file>
|
|
||||||
<file path="../main.c" openOnCreation="false" excludeFromBuild="false" action="copy">
|
|
||||||
</file>
|
|
||||||
<file path="linker.cmd" openOnCreation="false" excludeFromBuild="false" action="copy">
|
|
||||||
</file>
|
|
||||||
<file path="dcl_linker_m4f_am243x_sitara.cmd" openOnCreation="false" excludeFromBuild="false" action="copy">
|
|
||||||
</file>
|
|
||||||
<file path="../example.syscfg" openOnCreation="false" excludeFromBuild="false" action="copy">
|
|
||||||
</file>
|
|
||||||
<file path="${MOTOR_CONTROL_SDK_PATH}/docs/api_guide_am243x/EXAMPLES_DCL_PI.html"
|
|
||||||
openOnCreation="false" excludeFromBuild="false" targetName="README.html" action="link">
|
|
||||||
</file>
|
|
||||||
<file path="../../../pi_test.h" openOnCreation="false" excludeFromBuild="true" action="copy">
|
|
||||||
</file>
|
|
||||||
<file path="../../../data" openOnCreation="false" excludeFromBuild="true" action="copy">
|
|
||||||
</file>
|
|
||||||
<file path="syscfg_c.rov.xs" openOnCreation="false" excludeFromBuild="false" action="copy">
|
|
||||||
</file>
|
|
||||||
<file path="makefile_ccs_bootimage_gen" openOnCreation="false" excludeFromBuild="false" action="copy">
|
|
||||||
</file>
|
|
||||||
</project>
|
|
||||||
</projectSpec>
|
|
||||||
@ -1,62 +0,0 @@
|
|||||||
|
|
||||||
/* make sure below retain is there in your linker command file, it keeps the vector table in the final binary */
|
|
||||||
--retain="*(.vectors)"
|
|
||||||
/* This is the stack that is used by code running within main()
|
|
||||||
* In case of NORTOS,
|
|
||||||
* - This means all the code outside of ISR uses this stack
|
|
||||||
* In case of FreeRTOS
|
|
||||||
* - This means all the code until vTaskStartScheduler() is called in main()
|
|
||||||
* uses this stack.
|
|
||||||
* - After vTaskStartScheduler() each task created in FreeRTOS has its own stack
|
|
||||||
*/
|
|
||||||
--stack_size=16384
|
|
||||||
/* This is the heap size for malloc() API in NORTOS and FreeRTOS
|
|
||||||
* This is also the heap used by pvPortMalloc in FreeRTOS
|
|
||||||
*/
|
|
||||||
--heap_size=32768
|
|
||||||
|
|
||||||
|
|
||||||
SECTIONS
|
|
||||||
{
|
|
||||||
/* This has the M4F entry point and vector table, this MUST be at 0x0 */
|
|
||||||
.vectors:{} palign(8) > M4F_VECS
|
|
||||||
.text: {} palign(8) > M4F_IRAM /* This is where code resides */
|
|
||||||
|
|
||||||
.bss: {} palign(8) > M4F_DRAM /* This is where uninitialized globals go */
|
|
||||||
RUN_START(__BSS_START)
|
|
||||||
RUN_END(__BSS_END)
|
|
||||||
|
|
||||||
.data: {} palign(8) > M4F_DRAM /* This is where initialized globals and static go */
|
|
||||||
.rodata: {} palign(8) > M4F_DRAM /* This is where const's go */
|
|
||||||
.sysmem: {} palign(8) > M4F_IRAM /* This is where the malloc heap goes */
|
|
||||||
.stack: {} palign(8) > M4F_IRAM /* This is where the main() stack goes */
|
|
||||||
|
|
||||||
/* Sections needed for C++ projects */
|
|
||||||
.ARM.exidx: {} palign(8) > M4F_IRAM /* Needed for C++ exception handling */
|
|
||||||
.init_array: {} palign(8) > M4F_IRAM /* Contains function pointers called before main */
|
|
||||||
.fini_array: {} palign(8) > M4F_IRAM /* Contains function pointers called after main */
|
|
||||||
|
|
||||||
/* General purpose user shared memory */
|
|
||||||
.bss.user_shared_mem (NOLOAD) : {} > USER_SHM_MEM
|
|
||||||
/* this is used when Debug log's to shared memory are enabled, else this is not used */
|
|
||||||
.bss.log_shared_mem (NOLOAD) : {} > LOG_SHM_MEM
|
|
||||||
/* this is used only when IPC RPMessage is enabled, else this is not used */
|
|
||||||
.bss.ipc_vring_mem (NOLOAD) : {} > IPC_VRING_MEM
|
|
||||||
}
|
|
||||||
|
|
||||||
MEMORY
|
|
||||||
{
|
|
||||||
M4F_VECS : ORIGIN = 0x00000000 , LENGTH = 0x00000200
|
|
||||||
M4F_IRAM : ORIGIN = 0x00000200 , LENGTH = 0x0002FE00
|
|
||||||
M4F_DRAM : ORIGIN = 0x00030000 , LENGTH = 0x00010000
|
|
||||||
|
|
||||||
/* shared memories that are used by all cores */
|
|
||||||
/* On M4F,
|
|
||||||
* - By default MSMC RAM is not accessible to M4F, a RAT entry is needed to make it
|
|
||||||
* accessible on M4F
|
|
||||||
* - So make sure there is a RAT entry which has a 1:1 mapping from 0x70000000 to 0x70200000
|
|
||||||
*/
|
|
||||||
USER_SHM_MEM : ORIGIN = 0x701D0000, LENGTH = 0x180
|
|
||||||
LOG_SHM_MEM : ORIGIN = 0x701D0000 + 0x180, LENGTH = 0x00004000 - 0x180
|
|
||||||
IPC_VRING_MEM: ORIGIN = 0x701D4000, LENGTH = 0x0000C000
|
|
||||||
}
|
|
||||||
@ -1,300 +0,0 @@
|
|||||||
#
|
|
||||||
# Auto generated makefile
|
|
||||||
#
|
|
||||||
|
|
||||||
export MOTOR_CONTROL_SDK_PATH?=$(abspath ../../../../../..)
|
|
||||||
include $(MOTOR_CONTROL_SDK_PATH)/imports.mak
|
|
||||||
include $(MOTOR_CONTROL_SDK_PATH)/devconfig/devconfig.mak
|
|
||||||
|
|
||||||
CG_TOOL_ROOT=$(CGT_TI_ARM_CLANG_PATH)
|
|
||||||
|
|
||||||
CC=$(CG_TOOL_ROOT)/bin/tiarmclang
|
|
||||||
LNK=$(CG_TOOL_ROOT)/bin/tiarmclang
|
|
||||||
STRIP=$(CG_TOOL_ROOT)/bin/tiarmstrip
|
|
||||||
OBJCOPY=$(CG_TOOL_ROOT)/bin/tiarmobjcopy
|
|
||||||
ifeq ($(OS), Windows_NT)
|
|
||||||
PYTHON=python
|
|
||||||
else
|
|
||||||
PYTHON=python3
|
|
||||||
endif
|
|
||||||
|
|
||||||
PROFILE?=release
|
|
||||||
ConfigName:=$(PROFILE)
|
|
||||||
|
|
||||||
OUTNAME:=dcl_pi.$(PROFILE).out
|
|
||||||
|
|
||||||
BOOTIMAGE_PATH=$(abspath .)
|
|
||||||
BOOTIMAGE_NAME:=dcl_pi.$(PROFILE).appimage
|
|
||||||
BOOTIMAGE_NAME_XIP:=dcl_pi.$(PROFILE).appimage_xip
|
|
||||||
BOOTIMAGE_NAME_SIGNED:=dcl_pi.$(PROFILE).appimage.signed
|
|
||||||
BOOTIMAGE_RPRC_NAME:=dcl_pi.$(PROFILE).rprc
|
|
||||||
BOOTIMAGE_RPRC_NAME_XIP:=dcl_pi.$(PROFILE).rprc_xip
|
|
||||||
BOOTIMAGE_RPRC_NAME_TMP:=dcl_pi.$(PROFILE).rprc_tmp
|
|
||||||
BOOTIMAGE_NAME_HS:=dcl_pi.$(PROFILE).appimage.hs
|
|
||||||
BOOTIMAGE_NAME_HS_FS:=dcl_pi.$(PROFILE).appimage.hs_fs
|
|
||||||
TARGETS := $(BOOTIMAGE_NAME)
|
|
||||||
ifeq ($(DEVICE_TYPE), HS)
|
|
||||||
TARGETS += $(BOOTIMAGE_NAME_HS)
|
|
||||||
endif
|
|
||||||
|
|
||||||
FILES_common := \
|
|
||||||
pi_test.c \
|
|
||||||
main.c \
|
|
||||||
ti_drivers_config.c \
|
|
||||||
ti_drivers_open_close.c \
|
|
||||||
ti_board_config.c \
|
|
||||||
ti_board_open_close.c \
|
|
||||||
ti_dpl_config.c \
|
|
||||||
ti_pinmux_config.c \
|
|
||||||
ti_power_clock_config.c \
|
|
||||||
|
|
||||||
FILES_PATH_common = \
|
|
||||||
.. \
|
|
||||||
../../.. \
|
|
||||||
generated \
|
|
||||||
|
|
||||||
INCLUDES_common := \
|
|
||||||
-I${CG_TOOL_ROOT}/include/c \
|
|
||||||
-I${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source \
|
|
||||||
-I${MOTOR_CONTROL_SDK_PATH}/source \
|
|
||||||
-I${MOTOR_CONTROL_SDK_PATH}/source/dcl \
|
|
||||||
-Igenerated \
|
|
||||||
|
|
||||||
DEFINES_common := \
|
|
||||||
-DSOC_AM243X \
|
|
||||||
|
|
||||||
CFLAGS_common := \
|
|
||||||
-mcpu=cortex-m4 \
|
|
||||||
-mfloat-abi=hard \
|
|
||||||
-mthumb \
|
|
||||||
-Wall \
|
|
||||||
-Werror \
|
|
||||||
-g \
|
|
||||||
-Wno-gnu-variable-sized-type-not-at-end \
|
|
||||||
-Wno-unused-function \
|
|
||||||
|
|
||||||
CFLAGS_cpp_common := \
|
|
||||||
-Wno-c99-designator \
|
|
||||||
-Wno-extern-c-compat \
|
|
||||||
-Wno-c++11-narrowing \
|
|
||||||
-Wno-reorder-init-list \
|
|
||||||
-Wno-deprecated-register \
|
|
||||||
-Wno-writable-strings \
|
|
||||||
-Wno-enum-compare \
|
|
||||||
-Wno-reserved-user-defined-literal \
|
|
||||||
-Wno-unused-const-variable \
|
|
||||||
-x c++ \
|
|
||||||
|
|
||||||
CFLAGS_debug := \
|
|
||||||
-D_DEBUG_=1 \
|
|
||||||
|
|
||||||
CFLAGS_release := \
|
|
||||||
-Os \
|
|
||||||
|
|
||||||
LNK_FILES_common = \
|
|
||||||
linker.cmd \
|
|
||||||
dcl_linker_m4f_am243x_sitara.cmd \
|
|
||||||
|
|
||||||
LIBS_PATH_common = \
|
|
||||||
-Wl,-i${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/nortos/lib \
|
|
||||||
-Wl,-i${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/drivers/lib \
|
|
||||||
-Wl,-i${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/board/lib \
|
|
||||||
-Wl,-i${CG_TOOL_ROOT}/lib \
|
|
||||||
|
|
||||||
LIBS_common = \
|
|
||||||
-lnortos.am243x.m4f.ti-arm-clang.${ConfigName}.lib \
|
|
||||||
-ldrivers.am243x.m4f.ti-arm-clang.${ConfigName}.lib \
|
|
||||||
-lboard.am243x.m4f.ti-arm-clang.${ConfigName}.lib \
|
|
||||||
-llibc.a \
|
|
||||||
-llibsysbm.a \
|
|
||||||
|
|
||||||
LFLAGS_common = \
|
|
||||||
-Wl,--ram_model \
|
|
||||||
-Wl,--reread_libs \
|
|
||||||
|
|
||||||
|
|
||||||
LIBS_NAME = \
|
|
||||||
nortos.am243x.m4f.ti-arm-clang.${ConfigName}.lib \
|
|
||||||
drivers.am243x.m4f.ti-arm-clang.${ConfigName}.lib \
|
|
||||||
board.am243x.m4f.ti-arm-clang.${ConfigName}.lib \
|
|
||||||
libc.a \
|
|
||||||
libsysbm.a \
|
|
||||||
|
|
||||||
LIBS_PATH_NAME = \
|
|
||||||
${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/nortos/lib \
|
|
||||||
${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/drivers/lib \
|
|
||||||
${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/board/lib \
|
|
||||||
${CG_TOOL_ROOT}/lib \
|
|
||||||
|
|
||||||
FILES := $(FILES_common) $(FILES_$(PROFILE))
|
|
||||||
ASMFILES := $(ASMFILES_common) $(ASMFILES_$(PROFILE))
|
|
||||||
FILES_PATH := $(FILES_PATH_common) $(FILES_PATH_$(PROFILE))
|
|
||||||
CFLAGS := $(CFLAGS_common) $(CFLAGS_$(PROFILE))
|
|
||||||
DEFINES := $(DEFINES_common) $(DEFINES_$(PROFILE))
|
|
||||||
INCLUDES := $(INCLUDES_common) $(INCLUDE_$(PROFILE))
|
|
||||||
LIBS := $(LIBS_common) $(LIBS_$(PROFILE))
|
|
||||||
LIBS_PATH := $(LIBS_PATH_common) $(LIBS_PATH_$(PROFILE))
|
|
||||||
LFLAGS := $(LFLAGS_common) $(LFLAGS_$(PROFILE))
|
|
||||||
LNKOPTFLAGS := $(LNKOPTFLAGS_common) $(LNKOPTFLAGS_$(PROFILE))
|
|
||||||
LNK_FILES := $(LNK_FILES_common) $(LNK_FILES_$(PROFILE))
|
|
||||||
|
|
||||||
OBJDIR := obj/$(PROFILE)/
|
|
||||||
OBJS := $(FILES:%.c=%.obj)
|
|
||||||
OBJS += $(ASMFILES:%.S=%.obj)
|
|
||||||
DEPS := $(FILES:%.c=%.d)
|
|
||||||
|
|
||||||
vpath %.obj $(OBJDIR)
|
|
||||||
vpath %.c $(FILES_PATH)
|
|
||||||
vpath %.S $(FILES_PATH)
|
|
||||||
vpath %.lib $(LIBS_PATH_NAME)
|
|
||||||
vpath %.a $(LIBS_PATH_NAME)
|
|
||||||
|
|
||||||
$(OBJDIR)/%.obj %.obj: %.c
|
|
||||||
@echo Compiling: am243x:m4fss0-0:nortos:ti-arm-clang $(OUTNAME): $<
|
|
||||||
$(CC) -c $(CFLAGS) $(INCLUDES) $(DEFINES) -MMD -o $(OBJDIR)/$@ $<
|
|
||||||
|
|
||||||
$(OBJDIR)/%.obj %.obj: %.S
|
|
||||||
@echo Compiling: am243x:m4fss0-0:nortos:ti-arm-clang $(LIBNAME): $<
|
|
||||||
$(CC) -c $(CFLAGS) -o $(OBJDIR)/$@ $<
|
|
||||||
|
|
||||||
all: $(TARGETS)
|
|
||||||
|
|
||||||
SYSCFG_GEN_FILES=generated/ti_drivers_config.c generated/ti_drivers_config.h
|
|
||||||
SYSCFG_GEN_FILES+=generated/ti_drivers_open_close.c generated/ti_drivers_open_close.h
|
|
||||||
SYSCFG_GEN_FILES+=generated/ti_dpl_config.c generated/ti_dpl_config.h
|
|
||||||
SYSCFG_GEN_FILES+=generated/ti_pinmux_config.c generated/ti_power_clock_config.c
|
|
||||||
SYSCFG_GEN_FILES+=generated/ti_board_config.c generated/ti_board_config.h
|
|
||||||
SYSCFG_GEN_FILES+=generated/ti_board_open_close.c generated/ti_board_open_close.h
|
|
||||||
|
|
||||||
$(OUTNAME): syscfg $(SYSCFG_GEN_FILES) $(OBJS) $(LNK_FILES) $(LIBS_NAME)
|
|
||||||
@echo .
|
|
||||||
@echo Linking: am243x:m4fss0-0:nortos:ti-arm-clang $@ ...
|
|
||||||
$(LNK) $(LNKOPTFLAGS) $(LFLAGS) $(LIBS_PATH) -Wl,-m=$(basename $@).map -o $@ $(addprefix $(OBJDIR), $(OBJS)) $(LIBS) $(LNK_FILES)
|
|
||||||
@echo Linking: am243x:m4fss0-0:nortos:ti-arm-clang $@ Done !!!
|
|
||||||
@echo .
|
|
||||||
|
|
||||||
clean:
|
|
||||||
@echo Cleaning: am243x:m4fss0-0:nortos:ti-arm-clang $(OUTNAME) ...
|
|
||||||
$(RMDIR) $(OBJDIR)
|
|
||||||
$(RM) $(OUTNAME)
|
|
||||||
$(RM) $(BOOTIMAGE_NAME)
|
|
||||||
$(RM) $(BOOTIMAGE_NAME_XIP)
|
|
||||||
$(RM) $(BOOTIMAGE_NAME_SIGNED)
|
|
||||||
$(RM) $(BOOTIMAGE_NAME_HS)
|
|
||||||
$(RM) $(BOOTIMAGE_NAME_HS_FS)
|
|
||||||
$(RM) $(BOOTIMAGE_RPRC_NAME)
|
|
||||||
$(RM) $(BOOTIMAGE_RPRC_NAME_XIP)
|
|
||||||
$(RMDIR) generated/
|
|
||||||
|
|
||||||
scrub:
|
|
||||||
@echo Scrubing: am243x:m4fss0-0:nortos:ti-arm-clang dcl_pi ...
|
|
||||||
$(RMDIR) obj
|
|
||||||
ifeq ($(OS),Windows_NT)
|
|
||||||
$(RM) \*.out
|
|
||||||
$(RM) \*.map
|
|
||||||
$(RM) \*.appimage*
|
|
||||||
$(RM) \*.rprc*
|
|
||||||
$(RM) \*.tiimage*
|
|
||||||
$(RM) \*.bin
|
|
||||||
else
|
|
||||||
$(RM) *.out
|
|
||||||
$(RM) *.map
|
|
||||||
$(RM) *.appimage*
|
|
||||||
$(RM) *.rprc*
|
|
||||||
$(RM) *.tiimage*
|
|
||||||
$(RM) *.bin
|
|
||||||
endif
|
|
||||||
$(RMDIR) generated
|
|
||||||
|
|
||||||
$(OBJS): | $(OBJDIR)
|
|
||||||
|
|
||||||
$(OBJDIR):
|
|
||||||
$(MKDIR) $@
|
|
||||||
|
|
||||||
|
|
||||||
.NOTPARALLEL:
|
|
||||||
|
|
||||||
.INTERMEDIATE: syscfg
|
|
||||||
$(SYSCFG_GEN_FILES): syscfg
|
|
||||||
|
|
||||||
syscfg: ../example.syscfg
|
|
||||||
@echo Generating SysConfig files ...
|
|
||||||
$(SYSCFG_NODE) $(SYSCFG_CLI_PATH)/dist/cli.js --product $(SYSCFG_SDKPRODUCT) --context m4fss0-0 --part ALV --package ALV --output generated/ ../example.syscfg
|
|
||||||
|
|
||||||
syscfg-gui:
|
|
||||||
$(SYSCFG_NWJS) $(SYSCFG_PATH) --product $(SYSCFG_SDKPRODUCT) --device AM243x_ALV_beta --context m4fss0-0 --part ALV --package ALV --output generated/ ../example.syscfg
|
|
||||||
|
|
||||||
#
|
|
||||||
# Generation of boot image which can be loaded by Secondary Boot Loader (SBL)
|
|
||||||
#
|
|
||||||
ifeq ($(OS),Windows_NT)
|
|
||||||
EXE_EXT=.exe
|
|
||||||
endif
|
|
||||||
ifeq ($(OS),Windows_NT)
|
|
||||||
BOOTIMAGE_CERT_GEN_CMD=powershell -executionpolicy unrestricted -command $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/signing/x509CertificateGen.ps1
|
|
||||||
else
|
|
||||||
BOOTIMAGE_CERT_GEN_CMD=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/signing/x509CertificateGen.sh
|
|
||||||
endif
|
|
||||||
BOOTIMAGE_TEMP_OUT_FILE=temp_stdout_$(PROFILE).txt
|
|
||||||
|
|
||||||
BOOTIMAGE_CERT_KEY=$(APP_SIGNING_KEY)
|
|
||||||
|
|
||||||
BOOTIMAGE_CORE_ID_r5fss0-0 = 4
|
|
||||||
BOOTIMAGE_CORE_ID_r5fss0-1 = 5
|
|
||||||
BOOTIMAGE_CORE_ID_r5fss1-0 = 6
|
|
||||||
BOOTIMAGE_CORE_ID_r5fss1-1 = 7
|
|
||||||
BOOTIMAGE_CORE_ID_m4fss0-0 = 14
|
|
||||||
SBL_RUN_ADDRESS=0x70000000
|
|
||||||
SBL_DEV_ID=55
|
|
||||||
|
|
||||||
MULTI_CORE_IMAGE_GEN = $(SYSCFG_NODE) $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/multicoreImageGen/multicoreImageGen.js
|
|
||||||
OUTRPRC_CMD = $(SYSCFG_NODE) $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/out2rprc/elf2rprc.js
|
|
||||||
APP_IMAGE_SIGN_CMD = $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/signing/appimage_x509_cert_gen.py
|
|
||||||
|
|
||||||
ifeq ($(OS),Windows_NT)
|
|
||||||
XIPGEN_CMD=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/xipGen/xipGen.exe
|
|
||||||
else
|
|
||||||
XIPGEN_CMD=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/xipGen/xipGen.out
|
|
||||||
endif
|
|
||||||
|
|
||||||
MULTI_CORE_IMAGE_PARAMS = \
|
|
||||||
$(BOOTIMAGE_RPRC_NAME)@$(BOOTIMAGE_CORE_ID_m4fss0-0) \
|
|
||||||
|
|
||||||
MULTI_CORE_IMAGE_PARAMS_XIP = \
|
|
||||||
$(BOOTIMAGE_RPRC_NAME_XIP)@$(BOOTIMAGE_CORE_ID_m4fss0-0) \
|
|
||||||
|
|
||||||
$(BOOTIMAGE_NAME): $(OUTNAME)
|
|
||||||
@echo Boot image: am243x:m4fss0-0:nortos:ti-arm-clang $(BOOTIMAGE_PATH)/$@ ...
|
|
||||||
ifneq ($(OS),Windows_NT)
|
|
||||||
$(CHMOD) a+x $(XIPGEN_CMD)
|
|
||||||
endif
|
|
||||||
$(OUTRPRC_CMD) $(OUTNAME) >> $(BOOTIMAGE_TEMP_OUT_FILE)
|
|
||||||
$(COPY) $(BOOTIMAGE_RPRC_NAME) $(BOOTIMAGE_RPRC_NAME_TMP)
|
|
||||||
$(RM) $(BOOTIMAGE_RPRC_NAME)
|
|
||||||
$(XIPGEN_CMD) -i $(BOOTIMAGE_RPRC_NAME_TMP) -o $(BOOTIMAGE_RPRC_NAME) -x $(BOOTIMAGE_RPRC_NAME_XIP) --flash-start-addr 0x60000000 -v > $(BOOTIMAGE_TEMP_OUT_FILE)
|
|
||||||
$(MULTI_CORE_IMAGE_GEN) --devID $(SBL_DEV_ID) --out $(BOOTIMAGE_NAME) $(MULTI_CORE_IMAGE_PARAMS) >> $(BOOTIMAGE_TEMP_OUT_FILE)
|
|
||||||
$(MULTI_CORE_IMAGE_GEN) --devID $(SBL_DEV_ID) --out $(BOOTIMAGE_NAME_XIP) $(MULTI_CORE_IMAGE_PARAMS_XIP) >> $(BOOTIMAGE_TEMP_OUT_FILE)
|
|
||||||
# Sign the appimage for HS-FS using appimage signing script
|
|
||||||
$(PYTHON) $(APP_IMAGE_SIGN_CMD) --bin $(BOOTIMAGE_NAME) --authtype 1 --key $(APP_SIGNING_KEY) --output $(BOOTIMAGE_NAME_HS_FS)
|
|
||||||
$(RM) $(BOOTIMAGE_RPRC_NAME_TMP)
|
|
||||||
$(RM) $(BOOTIMAGE_TEMP_OUT_FILE)
|
|
||||||
@echo Boot image: am243x:m4fss0-0:nortos:ti-arm-clang $(BOOTIMAGE_PATH)/$@ Done !!!
|
|
||||||
@echo .
|
|
||||||
@echo Boot image: am243x:m4fss0-0:nortos:ti-arm-clang $(BOOTIMAGE_PATH)/$(BOOTIMAGE_NAME_HS_FS) Done !!!
|
|
||||||
@echo .
|
|
||||||
|
|
||||||
$(BOOTIMAGE_NAME_HS): $(BOOTIMAGE_NAME)
|
|
||||||
ifeq ($(DEVICE_TYPE), HS)
|
|
||||||
# Sign the appimage using appimage signing script
|
|
||||||
ifeq ($(ENC_ENABLED),no)
|
|
||||||
@echo Boot image signing: Encryption is disabled.
|
|
||||||
$(PYTHON) $(APP_IMAGE_SIGN_CMD) --bin $(BOOTIMAGE_NAME) --authtype 1 --key $(APP_SIGNING_KEY) --output $(BOOTIMAGE_NAME_HS)
|
|
||||||
else
|
|
||||||
@echo Boot image signing: Encryption is enabled.
|
|
||||||
$(PYTHON) $(APP_IMAGE_SIGN_CMD) --bin $(BOOTIMAGE_NAME) --authtype 1 --key $(APP_SIGNING_KEY) --enc y --enckey $(APP_ENCRYPTION_KEY) --output $(BOOTIMAGE_NAME_HS)
|
|
||||||
$(RM) $(BOOTIMAGE_NAME)-enc
|
|
||||||
endif
|
|
||||||
@echo Boot image: am243x:m4fss0-0:nortos:ti-arm-clang $(BOOTIMAGE_PATH)/$(BOOTIMAGE_NAME_HS) Done !!!
|
|
||||||
@echo .
|
|
||||||
endif
|
|
||||||
-include $(addprefix $(OBJDIR)/, $(DEPS))
|
|
||||||
@ -1,106 +0,0 @@
|
|||||||
#
|
|
||||||
# Auto generated makefile
|
|
||||||
#
|
|
||||||
|
|
||||||
# Below variables need to be defined outside this file or via command line
|
|
||||||
# - MOTOR_CONTROL_SDK_PATH
|
|
||||||
# - PROFILE
|
|
||||||
# - CG_TOOL_ROOT
|
|
||||||
# - OUTNAME
|
|
||||||
# - CCS_INSTALL_DIR
|
|
||||||
# - CCS_IDE_MODE
|
|
||||||
|
|
||||||
CCS_PATH=$(CCS_INSTALL_DIR)
|
|
||||||
include ${MOTOR_CONTROL_SDK_PATH}/imports.mak
|
|
||||||
include ${MOTOR_CONTROL_SDK_PATH}/devconfig/devconfig.mak
|
|
||||||
|
|
||||||
STRIP=$(CG_TOOL_ROOT)/bin/tiarmstrip
|
|
||||||
OBJCOPY=$(CG_TOOL_ROOT)/bin/tiarmobjcopy
|
|
||||||
ifeq ($(OS), Windows_NT)
|
|
||||||
PYTHON=python
|
|
||||||
else
|
|
||||||
PYTHON=python3
|
|
||||||
endif
|
|
||||||
|
|
||||||
OUTFILE=$(PROFILE)/$(OUTNAME).out
|
|
||||||
BOOTIMAGE_PATH=$(abspath ${PROFILE})
|
|
||||||
BOOTIMAGE_NAME:=$(BOOTIMAGE_PATH)/$(OUTNAME).appimage
|
|
||||||
BOOTIMAGE_NAME_XIP:=$(BOOTIMAGE_PATH)/$(OUTNAME).appimage_xip
|
|
||||||
BOOTIMAGE_NAME_SIGNED:=$(BOOTIMAGE_PATH)/$(OUTNAME).appimage.signed
|
|
||||||
BOOTIMAGE_RPRC_NAME:=$(BOOTIMAGE_PATH)/$(OUTNAME).rprc
|
|
||||||
BOOTIMAGE_RPRC_NAME_XIP:=$(BOOTIMAGE_PATH)/$(OUTNAME).rprc_xip
|
|
||||||
BOOTIMAGE_RPRC_NAME_TMP:=$(BOOTIMAGE_PATH)/$(OUTNAME).rprc_tmp
|
|
||||||
|
|
||||||
#
|
|
||||||
# Generation of boot image which can be loaded by Secondary Boot Loader (SBL)
|
|
||||||
#
|
|
||||||
ifeq ($(OS),Windows_NT)
|
|
||||||
EXE_EXT=.exe
|
|
||||||
endif
|
|
||||||
ifeq ($(OS),Windows_NT)
|
|
||||||
BOOTIMAGE_CERT_GEN_CMD=powershell -executionpolicy unrestricted -command $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/signing/x509CertificateGen.ps1
|
|
||||||
else
|
|
||||||
BOOTIMAGE_CERT_GEN_CMD=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/signing/x509CertificateGen.sh
|
|
||||||
endif
|
|
||||||
BOOTIMAGE_TEMP_OUT_FILE=$(PROFILE)/temp_stdout_$(PROFILE).txt
|
|
||||||
|
|
||||||
BOOTIMAGE_CORE_ID_r5fss0-0 = 4
|
|
||||||
BOOTIMAGE_CORE_ID_r5fss0-1 = 5
|
|
||||||
BOOTIMAGE_CORE_ID_r5fss1-0 = 6
|
|
||||||
BOOTIMAGE_CORE_ID_r5fss1-1 = 7
|
|
||||||
BOOTIMAGE_CORE_ID_m4fss0-0 = 14
|
|
||||||
SBL_RUN_ADDRESS=0x70000000
|
|
||||||
SBL_DEV_ID=55
|
|
||||||
|
|
||||||
MULTI_CORE_IMAGE_GEN = $(CCS_NODE) $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/multicoreImageGen/multicoreImageGen.js
|
|
||||||
OUTRPRC_CMD = $(CCS_NODE) $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/out2rprc/elf2rprc.js
|
|
||||||
APP_IMAGE_SIGN_CMD = $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/signing/appimage_x509_cert_gen.py
|
|
||||||
|
|
||||||
ifeq ($(OS),Windows_NT)
|
|
||||||
XIPGEN_CMD=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/xipGen/xipGen.exe
|
|
||||||
else
|
|
||||||
XIPGEN_CMD=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/xipGen/xipGen.out
|
|
||||||
endif
|
|
||||||
|
|
||||||
MULTI_CORE_IMAGE_PARAMS = \
|
|
||||||
$(BOOTIMAGE_RPRC_NAME)@$(BOOTIMAGE_CORE_ID_m4fss0-0) \
|
|
||||||
|
|
||||||
MULTI_CORE_IMAGE_PARAMS_XIP = \
|
|
||||||
$(BOOTIMAGE_RPRC_NAME_XIP)@$(BOOTIMAGE_CORE_ID_m4fss0-0) \
|
|
||||||
|
|
||||||
all:
|
|
||||||
ifeq ($(CCS_IDE_MODE),cloud)
|
|
||||||
# No post build steps
|
|
||||||
else
|
|
||||||
@echo Boot image: am243x:m4fss0-0:nortos:ti-arm-clang $(BOOTIMAGE_NAME) ...
|
|
||||||
$(OUTRPRC_CMD) $(OUTFILE) >> $(BOOTIMAGE_TEMP_OUT_FILE)
|
|
||||||
$(COPY) $(OUTNAME).rprc $(BOOTIMAGE_RPRC_NAME)
|
|
||||||
$(COPY) $(BOOTIMAGE_RPRC_NAME) $(BOOTIMAGE_RPRC_NAME_TMP)
|
|
||||||
$(RM) $(BOOTIMAGE_RPRC_NAME)
|
|
||||||
$(XIPGEN_CMD) -i $(BOOTIMAGE_RPRC_NAME_TMP) -o $(BOOTIMAGE_RPRC_NAME) -x $(BOOTIMAGE_RPRC_NAME_XIP) --flash-start-addr 0x60000000 -v > $(BOOTIMAGE_TEMP_OUT_FILE)
|
|
||||||
$(MULTI_CORE_IMAGE_GEN) --devID $(SBL_DEV_ID) --out $(BOOTIMAGE_NAME) $(MULTI_CORE_IMAGE_PARAMS) >> $(BOOTIMAGE_TEMP_OUT_FILE)
|
|
||||||
$(MULTI_CORE_IMAGE_GEN) --devID $(SBL_DEV_ID) --out $(BOOTIMAGE_NAME_XIP) $(MULTI_CORE_IMAGE_PARAMS_XIP) >> $(BOOTIMAGE_TEMP_OUT_FILE)
|
|
||||||
# Sign the appimage for HS-FS using appimage signing script
|
|
||||||
$(PYTHON) $(APP_IMAGE_SIGN_CMD) --bin $(BOOTIMAGE_NAME) --authtype 1 --key $(APP_SIGNING_KEY) --output $(BOOTIMAGE_NAME).hs_fs
|
|
||||||
ifeq ($(DEVICE_TYPE),HS)
|
|
||||||
# Sign the appimage using appimage signing script
|
|
||||||
ifeq ($(ENC_ENABLED),no)
|
|
||||||
@echo Boot image signing: Encryption is disabled.
|
|
||||||
$(PYTHON) $(APP_IMAGE_SIGN_CMD) --bin $(BOOTIMAGE_NAME) --authtype 1 --key $(APP_SIGNING_KEY) --output $(BOOTIMAGE_NAME).hs
|
|
||||||
else
|
|
||||||
@echo Boot image signing: Encryption is enabled.
|
|
||||||
$(PYTHON) $(APP_IMAGE_SIGN_CMD) --bin $(BOOTIMAGE_NAME) --authtype 1 --key $(APP_SIGNING_KEY) --enc y --enckey $(APP_ENCRYPTION_KEY) --output $(BOOTIMAGE_NAME).hs
|
|
||||||
$(RM) $(BOOTIMAGE_NAME)-enc
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
$(RM) $(BOOTIMAGE_RPRC_NAME_TMP)
|
|
||||||
@echo Boot image: am243x:m4fss0-0:nortos:ti-arm-clang $(BOOTIMAGE_NAME) Done !!!
|
|
||||||
@echo .
|
|
||||||
ifeq ($(DEVICE_TYPE),HS)
|
|
||||||
@echo Boot image: am243x:m4fss0-0:nortos:ti-arm-clang $(BOOTIMAGE_NAME).hs Done !!!
|
|
||||||
@echo .
|
|
||||||
else
|
|
||||||
@echo Boot image: am243x:m4fss0-0:nortos:ti-arm-clang $(BOOTIMAGE_NAME).hs_fs Done !!!
|
|
||||||
@echo .
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
@ -1,20 +0,0 @@
|
|||||||
#
|
|
||||||
# Auto generated makefile
|
|
||||||
#
|
|
||||||
|
|
||||||
export MOTOR_CONTROL_SDK_PATH?=$(abspath ../../../../../..)
|
|
||||||
include $(MOTOR_CONTROL_SDK_PATH)/imports.mak
|
|
||||||
|
|
||||||
PROFILE?=Release
|
|
||||||
|
|
||||||
PROJECT_NAME=dcl_pi_am243x-evm_m4fss0-0_nortos_ti-arm-clang
|
|
||||||
|
|
||||||
all:
|
|
||||||
$(CCS_ECLIPSE) -noSplash -data $(MOTOR_CONTROL_SDK_PATH)/ccs_projects -application com.ti.ccstudio.apps.projectBuild -ccs.projects $(PROJECT_NAME) -ccs.configuration $(PROFILE)
|
|
||||||
|
|
||||||
clean:
|
|
||||||
$(CCS_ECLIPSE) -noSplash -data $(MOTOR_CONTROL_SDK_PATH)/ccs_projects -application com.ti.ccstudio.apps.projectBuild -ccs.projects $(PROJECT_NAME) -ccs.configuration $(PROFILE) -ccs.clean
|
|
||||||
|
|
||||||
export:
|
|
||||||
$(MKDIR) $(MOTOR_CONTROL_SDK_PATH)/ccs_projects
|
|
||||||
$(CCS_ECLIPSE) -noSplash -data $(MOTOR_CONTROL_SDK_PATH)/ccs_projects -application com.ti.ccstudio.apps.projectCreate -ccs.projectSpec example.projectspec -ccs.overwrite full
|
|
||||||
@ -1,8 +0,0 @@
|
|||||||
/*
|
|
||||||
* ======== syscfg_c.rov.xs ========
|
|
||||||
* This file contains the information needed by the Runtime Object
|
|
||||||
* View (ROV) tool.
|
|
||||||
*/
|
|
||||||
var crovFiles = [
|
|
||||||
"kernel/freertos/rov/FreeRTOS.rov.js",
|
|
||||||
];
|
|
||||||
@ -1,45 +0,0 @@
|
|||||||
/**
|
|
||||||
* 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_ALX_beta" --package "ALX" --part "ALX" --context "m4fss0-0" --product "MCU_PLUS_SDK@07.03.01"
|
|
||||||
* @versions {"tool":"1.9.0+2015","templates":null}
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Import the modules used in this configuration.
|
|
||||||
*/
|
|
||||||
const addr_translate = scripting.addModule("/kernel/dpl/addr_translate", {}, false);
|
|
||||||
const addr_translate1 = addr_translate.addInstance();
|
|
||||||
const addr_translate2 = addr_translate.addInstance();
|
|
||||||
const addr_translate3 = addr_translate.addInstance();
|
|
||||||
const addr_translate4 = addr_translate.addInstance();
|
|
||||||
const clock = scripting.addModule("/kernel/dpl/clock");
|
|
||||||
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();
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Write custom configuration values to the imported modules.
|
|
||||||
*/
|
|
||||||
addr_translate1.$name = "CONFIG_ADDR_TRANSLATE_REGION0";
|
|
||||||
addr_translate1.localAddr = 0x80000000;
|
|
||||||
|
|
||||||
addr_translate2.$name = "CONFIG_ADDR_TRANSLATE_REGION1";
|
|
||||||
addr_translate2.systemAddr = 0x20000000;
|
|
||||||
addr_translate2.localAddr = 0xA0000000;
|
|
||||||
|
|
||||||
addr_translate3.$name = "CONFIG_ADDR_TRANSLATE_REGION2";
|
|
||||||
addr_translate3.systemAddr = 0x40000000;
|
|
||||||
addr_translate3.localAddr = 0xC0000000;
|
|
||||||
|
|
||||||
addr_translate4.$name = "CONFIG_ADDR_TRANSLATE_REGION3";
|
|
||||||
addr_translate4.systemAddr = 0x60000000;
|
|
||||||
addr_translate4.localAddr = 0x60000000;
|
|
||||||
|
|
||||||
mpu_armv71.$name = "CONFIG_MPU_REGION0";
|
|
||||||
mpu_armv71.attributes = "Device";
|
|
||||||
mpu_armv71.allowExecute = false;
|
|
||||||
|
|
||||||
mpu_armv72.$name = "CONFIG_MPU_REGION1";
|
|
||||||
mpu_armv72.size = 18;
|
|
||||||
@ -1,84 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright (C) 2018-2021 Texas Instruments Incorporated
|
|
||||||
*
|
|
||||||
* Redistribution and use in source and binary forms, with or without
|
|
||||||
* modification, are permitted provided that the following conditions
|
|
||||||
* are met:
|
|
||||||
*
|
|
||||||
* Redistributions of source code must retain the above copyright
|
|
||||||
* notice, this list of conditions and the following disclaimer.
|
|
||||||
*
|
|
||||||
* Redistributions in binary form must reproduce the above copyright
|
|
||||||
* notice, this list of conditions and the following disclaimer in the
|
|
||||||
* documentation and/or other materials provided with the
|
|
||||||
* distribution.
|
|
||||||
*
|
|
||||||
* Neither the name of Texas Instruments Incorporated nor the names of
|
|
||||||
* its contributors may be used to endorse or promote products derived
|
|
||||||
* from this software without specific prior written permission.
|
|
||||||
*
|
|
||||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
||||||
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
||||||
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
||||||
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
||||||
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
||||||
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
||||||
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
||||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
||||||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <kernel/dpl/DebugP.h>
|
|
||||||
#include "ti_drivers_config.h"
|
|
||||||
#include "ti_board_config.h"
|
|
||||||
#include "FreeRTOS.h"
|
|
||||||
#include "task.h"
|
|
||||||
|
|
||||||
#define MAIN_TASK_PRI (configMAX_PRIORITIES-1)
|
|
||||||
|
|
||||||
#define MAIN_TASK_SIZE (16384U/sizeof(configSTACK_DEPTH_TYPE))
|
|
||||||
StackType_t gMainTaskStack[MAIN_TASK_SIZE] __attribute__((aligned(32)));
|
|
||||||
|
|
||||||
StaticTask_t gMainTaskObj;
|
|
||||||
TaskHandle_t gMainTask;
|
|
||||||
|
|
||||||
void dcl_pi_main(void *args);
|
|
||||||
|
|
||||||
void freertos_main(void *args)
|
|
||||||
{
|
|
||||||
dcl_pi_main(NULL);
|
|
||||||
|
|
||||||
vTaskDelete(NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
int main(void)
|
|
||||||
{
|
|
||||||
/* init SOC specific modules */
|
|
||||||
System_init();
|
|
||||||
Board_init();
|
|
||||||
|
|
||||||
/* This task is created at highest priority, it should create more tasks and then delete itself */
|
|
||||||
gMainTask = xTaskCreateStatic( freertos_main, /* Pointer to the function that implements the task. */
|
|
||||||
"freertos_main", /* Text name for the task. This is to facilitate debugging only. */
|
|
||||||
MAIN_TASK_SIZE, /* Stack depth in units of StackType_t typically uint32_t on 32b CPUs */
|
|
||||||
NULL, /* We are not using the task parameter. */
|
|
||||||
MAIN_TASK_PRI, /* task priority, 0 is lowest priority, configMAX_PRIORITIES-1 is highest */
|
|
||||||
gMainTaskStack, /* pointer to stack base */
|
|
||||||
&gMainTaskObj ); /* pointer to statically allocated task object memory */
|
|
||||||
configASSERT(gMainTask != NULL);
|
|
||||||
|
|
||||||
/* Start the scheduler to start the tasks executing. */
|
|
||||||
vTaskStartScheduler();
|
|
||||||
|
|
||||||
/* The following line should never be reached because vTaskStartScheduler()
|
|
||||||
will only return if there was not enough FreeRTOS heap memory available to
|
|
||||||
create the Idle and (if configured) Timer tasks. Heap management, and
|
|
||||||
techniques for trapping heap exhaustion, are described in the book text. */
|
|
||||||
DebugP_assertNoLog(0);
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
@ -1,19 +0,0 @@
|
|||||||
/*
|
|
||||||
* This linker file is optional, it's complementary to the device/core linker file
|
|
||||||
* Here it specifies the dcl function & data mapping allocated by __attribute__((section(...)))
|
|
||||||
* and link to a specific memory region for the best performance
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Define core & platform specific variables */
|
|
||||||
#define FAST_RAM M4F_IRAM
|
|
||||||
#define REG_RAM M4F_IRAM /* M4F_DRAM also works */
|
|
||||||
|
|
||||||
SECTIONS
|
|
||||||
{
|
|
||||||
/* dcl functions mapped to on-chip fast ram */
|
|
||||||
dclfuncs : {} > FAST_RAM
|
|
||||||
|
|
||||||
/* optional -- map datas & variables to regular ram */
|
|
||||||
/* Sitara default linker should already map variables to ram */
|
|
||||||
dclDataSection : {} > REG_RAM
|
|
||||||
}
|
|
||||||
@ -1,115 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<projectSpec>
|
|
||||||
<applicability>
|
|
||||||
<when>
|
|
||||||
<context
|
|
||||||
deviceFamily="ARM"
|
|
||||||
deviceId="Cortex M.AM2434_ALX"
|
|
||||||
/>
|
|
||||||
</when>
|
|
||||||
</applicability>
|
|
||||||
|
|
||||||
<project
|
|
||||||
title="Dcl Pi"
|
|
||||||
name = "dcl_pi_am243x-lp_m4fss0-0_freertos_ti-arm-clang"
|
|
||||||
products="sysconfig;com.ti.MOTOR_CONTROL_SDK_AMXXX;"
|
|
||||||
configurations="
|
|
||||||
Debug,
|
|
||||||
Release,
|
|
||||||
"
|
|
||||||
connection="TIXDS110_Connection.xml"
|
|
||||||
toolChain="TICLANG"
|
|
||||||
cgtVersion="2.1.3"
|
|
||||||
device="Cortex M.AM2434_ALX"
|
|
||||||
deviceCore="Cortex_M4F_0"
|
|
||||||
ignoreDefaultDeviceSettings="true"
|
|
||||||
ignoreDefaultCCSSettings="true"
|
|
||||||
endianness="little"
|
|
||||||
outputFormat="ELF"
|
|
||||||
outputType="executable"
|
|
||||||
|
|
||||||
compilerBuildOptions="
|
|
||||||
-I${CG_TOOL_ROOT}/include/c
|
|
||||||
-I${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source
|
|
||||||
-I${MOTOR_CONTROL_SDK_PATH}/source
|
|
||||||
-I${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/FreeRTOS-Kernel/include
|
|
||||||
-I${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/portable/TI_ARM_CLANG/ARM_CM4F
|
|
||||||
-I${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/config/am243x/m4f
|
|
||||||
-I${MOTOR_CONTROL_SDK_PATH}/source/dcl
|
|
||||||
-mcpu=cortex-m4
|
|
||||||
-mfloat-abi=hard
|
|
||||||
-mthumb
|
|
||||||
-Wall
|
|
||||||
-Werror
|
|
||||||
-g
|
|
||||||
-Wno-gnu-variable-sized-type-not-at-end
|
|
||||||
-Wno-unused-function
|
|
||||||
-DSOC_AM243X
|
|
||||||
"
|
|
||||||
linkerBuildOptions="
|
|
||||||
-i${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/lib
|
|
||||||
-i${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/drivers/lib
|
|
||||||
-i${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/board/lib
|
|
||||||
-i${CG_TOOL_ROOT}/lib
|
|
||||||
-m=dcl_pi.${ConfigName}.map
|
|
||||||
--ram_model
|
|
||||||
--reread_libs
|
|
||||||
"
|
|
||||||
|
|
||||||
postBuildStep="$(MAKE) -C ${CCS_PROJECT_DIR} -f makefile_ccs_bootimage_gen OUTNAME=${BuildArtifactFileBaseName} PROFILE=${ConfigName} MOTOR_CONTROL_SDK_PATH=${MOTOR_CONTROL_SDK_PATH} CG_TOOL_ROOT=${CG_TOOL_ROOT} CCS_INSTALL_DIR=${CCS_INSTALL_DIR} CCS_IDE_MODE=${CCS_IDE_MODE} DEVICE=am243x"
|
|
||||||
|
|
||||||
enableSysConfigTool="true"
|
|
||||||
sysConfigBuildOptions="
|
|
||||||
--context m4fss0-0 --part ALX --package ALX
|
|
||||||
"
|
|
||||||
|
|
||||||
description="A Dcl Pi FREERTOS project">
|
|
||||||
|
|
||||||
<configuration name="Debug"
|
|
||||||
compilerBuildOptions="
|
|
||||||
-D_DEBUG_=1
|
|
||||||
"
|
|
||||||
linkerBuildOptions="
|
|
||||||
-lfreertos.am243x.m4f.ti-arm-clang.debug.lib
|
|
||||||
-ldrivers.am243x.m4f.ti-arm-clang.debug.lib
|
|
||||||
-lboard.am243x.m4f.ti-arm-clang.debug.lib
|
|
||||||
-llibc.a
|
|
||||||
-llibsysbm.a
|
|
||||||
"
|
|
||||||
></configuration>
|
|
||||||
<configuration name="Release"
|
|
||||||
compilerBuildOptions="
|
|
||||||
-Os
|
|
||||||
"
|
|
||||||
linkerBuildOptions="
|
|
||||||
-lfreertos.am243x.m4f.ti-arm-clang.release.lib
|
|
||||||
-ldrivers.am243x.m4f.ti-arm-clang.release.lib
|
|
||||||
-lboard.am243x.m4f.ti-arm-clang.release.lib
|
|
||||||
-llibc.a
|
|
||||||
-llibsysbm.a
|
|
||||||
"
|
|
||||||
></configuration>
|
|
||||||
<pathVariable name="MOTOR_CONTROL_SDK_PATH" path="${COM_TI_MOTOR_CONTROL_SDK_AMXXX_INSTALL_DIR}" scope="project" />
|
|
||||||
<file path="../../../pi_test.c" openOnCreation="false" excludeFromBuild="false" action="copy">
|
|
||||||
</file>
|
|
||||||
<file path="../main.c" openOnCreation="false" excludeFromBuild="false" action="copy">
|
|
||||||
</file>
|
|
||||||
<file path="linker.cmd" openOnCreation="false" excludeFromBuild="false" action="copy">
|
|
||||||
</file>
|
|
||||||
<file path="dcl_linker_m4f_am243x_sitara.cmd" openOnCreation="false" excludeFromBuild="false" action="copy">
|
|
||||||
</file>
|
|
||||||
<file path="../example.syscfg" openOnCreation="false" excludeFromBuild="false" action="copy">
|
|
||||||
</file>
|
|
||||||
<file path="${MOTOR_CONTROL_SDK_PATH}/docs/api_guide_am243x/EXAMPLES_DCL_PI.html"
|
|
||||||
openOnCreation="false" excludeFromBuild="false" targetName="README.html" action="link">
|
|
||||||
</file>
|
|
||||||
<file path="../../../pi_test.h" openOnCreation="false" excludeFromBuild="true" action="copy">
|
|
||||||
</file>
|
|
||||||
<file path="../../../data" openOnCreation="false" excludeFromBuild="true" action="copy">
|
|
||||||
</file>
|
|
||||||
<file path="syscfg_c.rov.xs" openOnCreation="false" excludeFromBuild="false" action="copy">
|
|
||||||
</file>
|
|
||||||
<file path="makefile_ccs_bootimage_gen" openOnCreation="false" excludeFromBuild="false" action="copy">
|
|
||||||
</file>
|
|
||||||
</project>
|
|
||||||
</projectSpec>
|
|
||||||
@ -1,62 +0,0 @@
|
|||||||
|
|
||||||
/* make sure below retain is there in your linker command file, it keeps the vector table in the final binary */
|
|
||||||
--retain="*(.vectors)"
|
|
||||||
/* This is the stack that is used by code running within main()
|
|
||||||
* In case of NORTOS,
|
|
||||||
* - This means all the code outside of ISR uses this stack
|
|
||||||
* In case of FreeRTOS
|
|
||||||
* - This means all the code until vTaskStartScheduler() is called in main()
|
|
||||||
* uses this stack.
|
|
||||||
* - After vTaskStartScheduler() each task created in FreeRTOS has its own stack
|
|
||||||
*/
|
|
||||||
--stack_size=16384
|
|
||||||
/* This is the heap size for malloc() API in NORTOS and FreeRTOS
|
|
||||||
* This is also the heap used by pvPortMalloc in FreeRTOS
|
|
||||||
*/
|
|
||||||
--heap_size=32768
|
|
||||||
|
|
||||||
|
|
||||||
SECTIONS
|
|
||||||
{
|
|
||||||
/* This has the M4F entry point and vector table, this MUST be at 0x0 */
|
|
||||||
.vectors:{} palign(8) > M4F_VECS
|
|
||||||
.text: {} palign(8) > M4F_IRAM /* This is where code resides */
|
|
||||||
|
|
||||||
.bss: {} palign(8) > M4F_DRAM /* This is where uninitialized globals go */
|
|
||||||
RUN_START(__BSS_START)
|
|
||||||
RUN_END(__BSS_END)
|
|
||||||
|
|
||||||
.data: {} palign(8) > M4F_DRAM /* This is where initialized globals and static go */
|
|
||||||
.rodata: {} palign(8) > M4F_DRAM /* This is where const's go */
|
|
||||||
.sysmem: {} palign(8) > M4F_IRAM /* This is where the malloc heap goes */
|
|
||||||
.stack: {} palign(8) > M4F_IRAM /* This is where the main() stack goes */
|
|
||||||
|
|
||||||
/* Sections needed for C++ projects */
|
|
||||||
.ARM.exidx: {} palign(8) > M4F_IRAM /* Needed for C++ exception handling */
|
|
||||||
.init_array: {} palign(8) > M4F_IRAM /* Contains function pointers called before main */
|
|
||||||
.fini_array: {} palign(8) > M4F_IRAM /* Contains function pointers called after main */
|
|
||||||
|
|
||||||
/* General purpose user shared memory */
|
|
||||||
.bss.user_shared_mem (NOLOAD) : {} > USER_SHM_MEM
|
|
||||||
/* this is used when Debug log's to shared memory are enabled, else this is not used */
|
|
||||||
.bss.log_shared_mem (NOLOAD) : {} > LOG_SHM_MEM
|
|
||||||
/* this is used only when IPC RPMessage is enabled, else this is not used */
|
|
||||||
.bss.ipc_vring_mem (NOLOAD) : {} > IPC_VRING_MEM
|
|
||||||
}
|
|
||||||
|
|
||||||
MEMORY
|
|
||||||
{
|
|
||||||
M4F_VECS : ORIGIN = 0x00000000 , LENGTH = 0x00000200
|
|
||||||
M4F_IRAM : ORIGIN = 0x00000200 , LENGTH = 0x0002FE00
|
|
||||||
M4F_DRAM : ORIGIN = 0x00030000 , LENGTH = 0x00010000
|
|
||||||
|
|
||||||
/* shared memories that are used by all cores */
|
|
||||||
/* On M4F,
|
|
||||||
* - By default MSMC RAM is not accessible to M4F, a RAT entry is needed to make it
|
|
||||||
* accessible on M4F
|
|
||||||
* - So make sure there is a RAT entry which has a 1:1 mapping from 0x70000000 to 0x70200000
|
|
||||||
*/
|
|
||||||
USER_SHM_MEM : ORIGIN = 0x701D0000, LENGTH = 0x180
|
|
||||||
LOG_SHM_MEM : ORIGIN = 0x701D0000 + 0x180, LENGTH = 0x00004000 - 0x180
|
|
||||||
IPC_VRING_MEM: ORIGIN = 0x701D4000, LENGTH = 0x0000C000
|
|
||||||
}
|
|
||||||
@ -1,303 +0,0 @@
|
|||||||
#
|
|
||||||
# Auto generated makefile
|
|
||||||
#
|
|
||||||
|
|
||||||
export MOTOR_CONTROL_SDK_PATH?=$(abspath ../../../../../..)
|
|
||||||
include $(MOTOR_CONTROL_SDK_PATH)/imports.mak
|
|
||||||
include $(MOTOR_CONTROL_SDK_PATH)/devconfig/devconfig.mak
|
|
||||||
|
|
||||||
CG_TOOL_ROOT=$(CGT_TI_ARM_CLANG_PATH)
|
|
||||||
|
|
||||||
CC=$(CG_TOOL_ROOT)/bin/tiarmclang
|
|
||||||
LNK=$(CG_TOOL_ROOT)/bin/tiarmclang
|
|
||||||
STRIP=$(CG_TOOL_ROOT)/bin/tiarmstrip
|
|
||||||
OBJCOPY=$(CG_TOOL_ROOT)/bin/tiarmobjcopy
|
|
||||||
ifeq ($(OS), Windows_NT)
|
|
||||||
PYTHON=python
|
|
||||||
else
|
|
||||||
PYTHON=python3
|
|
||||||
endif
|
|
||||||
|
|
||||||
PROFILE?=release
|
|
||||||
ConfigName:=$(PROFILE)
|
|
||||||
|
|
||||||
OUTNAME:=dcl_pi.$(PROFILE).out
|
|
||||||
|
|
||||||
BOOTIMAGE_PATH=$(abspath .)
|
|
||||||
BOOTIMAGE_NAME:=dcl_pi.$(PROFILE).appimage
|
|
||||||
BOOTIMAGE_NAME_XIP:=dcl_pi.$(PROFILE).appimage_xip
|
|
||||||
BOOTIMAGE_NAME_SIGNED:=dcl_pi.$(PROFILE).appimage.signed
|
|
||||||
BOOTIMAGE_RPRC_NAME:=dcl_pi.$(PROFILE).rprc
|
|
||||||
BOOTIMAGE_RPRC_NAME_XIP:=dcl_pi.$(PROFILE).rprc_xip
|
|
||||||
BOOTIMAGE_RPRC_NAME_TMP:=dcl_pi.$(PROFILE).rprc_tmp
|
|
||||||
BOOTIMAGE_NAME_HS:=dcl_pi.$(PROFILE).appimage.hs
|
|
||||||
BOOTIMAGE_NAME_HS_FS:=dcl_pi.$(PROFILE).appimage.hs_fs
|
|
||||||
TARGETS := $(BOOTIMAGE_NAME)
|
|
||||||
ifeq ($(DEVICE_TYPE), HS)
|
|
||||||
TARGETS += $(BOOTIMAGE_NAME_HS)
|
|
||||||
endif
|
|
||||||
|
|
||||||
FILES_common := \
|
|
||||||
pi_test.c \
|
|
||||||
main.c \
|
|
||||||
ti_drivers_config.c \
|
|
||||||
ti_drivers_open_close.c \
|
|
||||||
ti_board_config.c \
|
|
||||||
ti_board_open_close.c \
|
|
||||||
ti_dpl_config.c \
|
|
||||||
ti_pinmux_config.c \
|
|
||||||
ti_power_clock_config.c \
|
|
||||||
|
|
||||||
FILES_PATH_common = \
|
|
||||||
.. \
|
|
||||||
../../.. \
|
|
||||||
generated \
|
|
||||||
|
|
||||||
INCLUDES_common := \
|
|
||||||
-I${CG_TOOL_ROOT}/include/c \
|
|
||||||
-I${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source \
|
|
||||||
-I${MOTOR_CONTROL_SDK_PATH}/source \
|
|
||||||
-I${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/FreeRTOS-Kernel/include \
|
|
||||||
-I${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/portable/TI_ARM_CLANG/ARM_CM4F \
|
|
||||||
-I${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/config/am243x/m4f \
|
|
||||||
-I${MOTOR_CONTROL_SDK_PATH}/source/dcl \
|
|
||||||
-Igenerated \
|
|
||||||
|
|
||||||
DEFINES_common := \
|
|
||||||
-DSOC_AM243X \
|
|
||||||
|
|
||||||
CFLAGS_common := \
|
|
||||||
-mcpu=cortex-m4 \
|
|
||||||
-mfloat-abi=hard \
|
|
||||||
-mthumb \
|
|
||||||
-Wall \
|
|
||||||
-Werror \
|
|
||||||
-g \
|
|
||||||
-Wno-gnu-variable-sized-type-not-at-end \
|
|
||||||
-Wno-unused-function \
|
|
||||||
|
|
||||||
CFLAGS_cpp_common := \
|
|
||||||
-Wno-c99-designator \
|
|
||||||
-Wno-extern-c-compat \
|
|
||||||
-Wno-c++11-narrowing \
|
|
||||||
-Wno-reorder-init-list \
|
|
||||||
-Wno-deprecated-register \
|
|
||||||
-Wno-writable-strings \
|
|
||||||
-Wno-enum-compare \
|
|
||||||
-Wno-reserved-user-defined-literal \
|
|
||||||
-Wno-unused-const-variable \
|
|
||||||
-x c++ \
|
|
||||||
|
|
||||||
CFLAGS_debug := \
|
|
||||||
-D_DEBUG_=1 \
|
|
||||||
|
|
||||||
CFLAGS_release := \
|
|
||||||
-Os \
|
|
||||||
|
|
||||||
LNK_FILES_common = \
|
|
||||||
linker.cmd \
|
|
||||||
dcl_linker_m4f_am243x_sitara.cmd \
|
|
||||||
|
|
||||||
LIBS_PATH_common = \
|
|
||||||
-Wl,-i${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/lib \
|
|
||||||
-Wl,-i${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/drivers/lib \
|
|
||||||
-Wl,-i${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/board/lib \
|
|
||||||
-Wl,-i${CG_TOOL_ROOT}/lib \
|
|
||||||
|
|
||||||
LIBS_common = \
|
|
||||||
-lfreertos.am243x.m4f.ti-arm-clang.${ConfigName}.lib \
|
|
||||||
-ldrivers.am243x.m4f.ti-arm-clang.${ConfigName}.lib \
|
|
||||||
-lboard.am243x.m4f.ti-arm-clang.${ConfigName}.lib \
|
|
||||||
-llibc.a \
|
|
||||||
-llibsysbm.a \
|
|
||||||
|
|
||||||
LFLAGS_common = \
|
|
||||||
-Wl,--ram_model \
|
|
||||||
-Wl,--reread_libs \
|
|
||||||
|
|
||||||
|
|
||||||
LIBS_NAME = \
|
|
||||||
freertos.am243x.m4f.ti-arm-clang.${ConfigName}.lib \
|
|
||||||
drivers.am243x.m4f.ti-arm-clang.${ConfigName}.lib \
|
|
||||||
board.am243x.m4f.ti-arm-clang.${ConfigName}.lib \
|
|
||||||
libc.a \
|
|
||||||
libsysbm.a \
|
|
||||||
|
|
||||||
LIBS_PATH_NAME = \
|
|
||||||
${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/lib \
|
|
||||||
${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/drivers/lib \
|
|
||||||
${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/board/lib \
|
|
||||||
${CG_TOOL_ROOT}/lib \
|
|
||||||
|
|
||||||
FILES := $(FILES_common) $(FILES_$(PROFILE))
|
|
||||||
ASMFILES := $(ASMFILES_common) $(ASMFILES_$(PROFILE))
|
|
||||||
FILES_PATH := $(FILES_PATH_common) $(FILES_PATH_$(PROFILE))
|
|
||||||
CFLAGS := $(CFLAGS_common) $(CFLAGS_$(PROFILE))
|
|
||||||
DEFINES := $(DEFINES_common) $(DEFINES_$(PROFILE))
|
|
||||||
INCLUDES := $(INCLUDES_common) $(INCLUDE_$(PROFILE))
|
|
||||||
LIBS := $(LIBS_common) $(LIBS_$(PROFILE))
|
|
||||||
LIBS_PATH := $(LIBS_PATH_common) $(LIBS_PATH_$(PROFILE))
|
|
||||||
LFLAGS := $(LFLAGS_common) $(LFLAGS_$(PROFILE))
|
|
||||||
LNKOPTFLAGS := $(LNKOPTFLAGS_common) $(LNKOPTFLAGS_$(PROFILE))
|
|
||||||
LNK_FILES := $(LNK_FILES_common) $(LNK_FILES_$(PROFILE))
|
|
||||||
|
|
||||||
OBJDIR := obj/$(PROFILE)/
|
|
||||||
OBJS := $(FILES:%.c=%.obj)
|
|
||||||
OBJS += $(ASMFILES:%.S=%.obj)
|
|
||||||
DEPS := $(FILES:%.c=%.d)
|
|
||||||
|
|
||||||
vpath %.obj $(OBJDIR)
|
|
||||||
vpath %.c $(FILES_PATH)
|
|
||||||
vpath %.S $(FILES_PATH)
|
|
||||||
vpath %.lib $(LIBS_PATH_NAME)
|
|
||||||
vpath %.a $(LIBS_PATH_NAME)
|
|
||||||
|
|
||||||
$(OBJDIR)/%.obj %.obj: %.c
|
|
||||||
@echo Compiling: am243x:m4fss0-0:freertos:ti-arm-clang $(OUTNAME): $<
|
|
||||||
$(CC) -c $(CFLAGS) $(INCLUDES) $(DEFINES) -MMD -o $(OBJDIR)/$@ $<
|
|
||||||
|
|
||||||
$(OBJDIR)/%.obj %.obj: %.S
|
|
||||||
@echo Compiling: am243x:m4fss0-0:freertos:ti-arm-clang $(LIBNAME): $<
|
|
||||||
$(CC) -c $(CFLAGS) -o $(OBJDIR)/$@ $<
|
|
||||||
|
|
||||||
all: $(TARGETS)
|
|
||||||
|
|
||||||
SYSCFG_GEN_FILES=generated/ti_drivers_config.c generated/ti_drivers_config.h
|
|
||||||
SYSCFG_GEN_FILES+=generated/ti_drivers_open_close.c generated/ti_drivers_open_close.h
|
|
||||||
SYSCFG_GEN_FILES+=generated/ti_dpl_config.c generated/ti_dpl_config.h
|
|
||||||
SYSCFG_GEN_FILES+=generated/ti_pinmux_config.c generated/ti_power_clock_config.c
|
|
||||||
SYSCFG_GEN_FILES+=generated/ti_board_config.c generated/ti_board_config.h
|
|
||||||
SYSCFG_GEN_FILES+=generated/ti_board_open_close.c generated/ti_board_open_close.h
|
|
||||||
|
|
||||||
$(OUTNAME): syscfg $(SYSCFG_GEN_FILES) $(OBJS) $(LNK_FILES) $(LIBS_NAME)
|
|
||||||
@echo .
|
|
||||||
@echo Linking: am243x:m4fss0-0:freertos:ti-arm-clang $@ ...
|
|
||||||
$(LNK) $(LNKOPTFLAGS) $(LFLAGS) $(LIBS_PATH) -Wl,-m=$(basename $@).map -o $@ $(addprefix $(OBJDIR), $(OBJS)) $(LIBS) $(LNK_FILES)
|
|
||||||
@echo Linking: am243x:m4fss0-0:freertos:ti-arm-clang $@ Done !!!
|
|
||||||
@echo .
|
|
||||||
|
|
||||||
clean:
|
|
||||||
@echo Cleaning: am243x:m4fss0-0:freertos:ti-arm-clang $(OUTNAME) ...
|
|
||||||
$(RMDIR) $(OBJDIR)
|
|
||||||
$(RM) $(OUTNAME)
|
|
||||||
$(RM) $(BOOTIMAGE_NAME)
|
|
||||||
$(RM) $(BOOTIMAGE_NAME_XIP)
|
|
||||||
$(RM) $(BOOTIMAGE_NAME_SIGNED)
|
|
||||||
$(RM) $(BOOTIMAGE_NAME_HS)
|
|
||||||
$(RM) $(BOOTIMAGE_NAME_HS_FS)
|
|
||||||
$(RM) $(BOOTIMAGE_RPRC_NAME)
|
|
||||||
$(RM) $(BOOTIMAGE_RPRC_NAME_XIP)
|
|
||||||
$(RMDIR) generated/
|
|
||||||
|
|
||||||
scrub:
|
|
||||||
@echo Scrubing: am243x:m4fss0-0:freertos:ti-arm-clang dcl_pi ...
|
|
||||||
$(RMDIR) obj
|
|
||||||
ifeq ($(OS),Windows_NT)
|
|
||||||
$(RM) \*.out
|
|
||||||
$(RM) \*.map
|
|
||||||
$(RM) \*.appimage*
|
|
||||||
$(RM) \*.rprc*
|
|
||||||
$(RM) \*.tiimage*
|
|
||||||
$(RM) \*.bin
|
|
||||||
else
|
|
||||||
$(RM) *.out
|
|
||||||
$(RM) *.map
|
|
||||||
$(RM) *.appimage*
|
|
||||||
$(RM) *.rprc*
|
|
||||||
$(RM) *.tiimage*
|
|
||||||
$(RM) *.bin
|
|
||||||
endif
|
|
||||||
$(RMDIR) generated
|
|
||||||
|
|
||||||
$(OBJS): | $(OBJDIR)
|
|
||||||
|
|
||||||
$(OBJDIR):
|
|
||||||
$(MKDIR) $@
|
|
||||||
|
|
||||||
|
|
||||||
.NOTPARALLEL:
|
|
||||||
|
|
||||||
.INTERMEDIATE: syscfg
|
|
||||||
$(SYSCFG_GEN_FILES): syscfg
|
|
||||||
|
|
||||||
syscfg: ../example.syscfg
|
|
||||||
@echo Generating SysConfig files ...
|
|
||||||
$(SYSCFG_NODE) $(SYSCFG_CLI_PATH)/dist/cli.js --product $(SYSCFG_SDKPRODUCT) --context m4fss0-0 --part ALX --package ALX --output generated/ ../example.syscfg
|
|
||||||
|
|
||||||
syscfg-gui:
|
|
||||||
$(SYSCFG_NWJS) $(SYSCFG_PATH) --product $(SYSCFG_SDKPRODUCT) --device AM243x_ALX_beta --context m4fss0-0 --part ALX --package ALX --output generated/ ../example.syscfg
|
|
||||||
|
|
||||||
#
|
|
||||||
# Generation of boot image which can be loaded by Secondary Boot Loader (SBL)
|
|
||||||
#
|
|
||||||
ifeq ($(OS),Windows_NT)
|
|
||||||
EXE_EXT=.exe
|
|
||||||
endif
|
|
||||||
ifeq ($(OS),Windows_NT)
|
|
||||||
BOOTIMAGE_CERT_GEN_CMD=powershell -executionpolicy unrestricted -command $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/signing/x509CertificateGen.ps1
|
|
||||||
else
|
|
||||||
BOOTIMAGE_CERT_GEN_CMD=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/signing/x509CertificateGen.sh
|
|
||||||
endif
|
|
||||||
BOOTIMAGE_TEMP_OUT_FILE=temp_stdout_$(PROFILE).txt
|
|
||||||
|
|
||||||
BOOTIMAGE_CERT_KEY=$(APP_SIGNING_KEY)
|
|
||||||
|
|
||||||
BOOTIMAGE_CORE_ID_r5fss0-0 = 4
|
|
||||||
BOOTIMAGE_CORE_ID_r5fss0-1 = 5
|
|
||||||
BOOTIMAGE_CORE_ID_r5fss1-0 = 6
|
|
||||||
BOOTIMAGE_CORE_ID_r5fss1-1 = 7
|
|
||||||
BOOTIMAGE_CORE_ID_m4fss0-0 = 14
|
|
||||||
SBL_RUN_ADDRESS=0x70000000
|
|
||||||
SBL_DEV_ID=55
|
|
||||||
|
|
||||||
MULTI_CORE_IMAGE_GEN = $(SYSCFG_NODE) $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/multicoreImageGen/multicoreImageGen.js
|
|
||||||
OUTRPRC_CMD = $(SYSCFG_NODE) $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/out2rprc/elf2rprc.js
|
|
||||||
APP_IMAGE_SIGN_CMD = $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/signing/appimage_x509_cert_gen.py
|
|
||||||
|
|
||||||
ifeq ($(OS),Windows_NT)
|
|
||||||
XIPGEN_CMD=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/xipGen/xipGen.exe
|
|
||||||
else
|
|
||||||
XIPGEN_CMD=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/xipGen/xipGen.out
|
|
||||||
endif
|
|
||||||
|
|
||||||
MULTI_CORE_IMAGE_PARAMS = \
|
|
||||||
$(BOOTIMAGE_RPRC_NAME)@$(BOOTIMAGE_CORE_ID_m4fss0-0) \
|
|
||||||
|
|
||||||
MULTI_CORE_IMAGE_PARAMS_XIP = \
|
|
||||||
$(BOOTIMAGE_RPRC_NAME_XIP)@$(BOOTIMAGE_CORE_ID_m4fss0-0) \
|
|
||||||
|
|
||||||
$(BOOTIMAGE_NAME): $(OUTNAME)
|
|
||||||
@echo Boot image: am243x:m4fss0-0:freertos:ti-arm-clang $(BOOTIMAGE_PATH)/$@ ...
|
|
||||||
ifneq ($(OS),Windows_NT)
|
|
||||||
$(CHMOD) a+x $(XIPGEN_CMD)
|
|
||||||
endif
|
|
||||||
$(OUTRPRC_CMD) $(OUTNAME) >> $(BOOTIMAGE_TEMP_OUT_FILE)
|
|
||||||
$(COPY) $(BOOTIMAGE_RPRC_NAME) $(BOOTIMAGE_RPRC_NAME_TMP)
|
|
||||||
$(RM) $(BOOTIMAGE_RPRC_NAME)
|
|
||||||
$(XIPGEN_CMD) -i $(BOOTIMAGE_RPRC_NAME_TMP) -o $(BOOTIMAGE_RPRC_NAME) -x $(BOOTIMAGE_RPRC_NAME_XIP) --flash-start-addr 0x60000000 -v > $(BOOTIMAGE_TEMP_OUT_FILE)
|
|
||||||
$(MULTI_CORE_IMAGE_GEN) --devID $(SBL_DEV_ID) --out $(BOOTIMAGE_NAME) $(MULTI_CORE_IMAGE_PARAMS) >> $(BOOTIMAGE_TEMP_OUT_FILE)
|
|
||||||
$(MULTI_CORE_IMAGE_GEN) --devID $(SBL_DEV_ID) --out $(BOOTIMAGE_NAME_XIP) $(MULTI_CORE_IMAGE_PARAMS_XIP) >> $(BOOTIMAGE_TEMP_OUT_FILE)
|
|
||||||
# Sign the appimage for HS-FS using appimage signing script
|
|
||||||
$(PYTHON) $(APP_IMAGE_SIGN_CMD) --bin $(BOOTIMAGE_NAME) --authtype 1 --key $(APP_SIGNING_KEY) --output $(BOOTIMAGE_NAME_HS_FS)
|
|
||||||
$(RM) $(BOOTIMAGE_RPRC_NAME_TMP)
|
|
||||||
$(RM) $(BOOTIMAGE_TEMP_OUT_FILE)
|
|
||||||
@echo Boot image: am243x:m4fss0-0:freertos:ti-arm-clang $(BOOTIMAGE_PATH)/$@ Done !!!
|
|
||||||
@echo .
|
|
||||||
@echo Boot image: am243x:m4fss0-0:freertos:ti-arm-clang $(BOOTIMAGE_PATH)/$(BOOTIMAGE_NAME_HS_FS) Done !!!
|
|
||||||
@echo .
|
|
||||||
|
|
||||||
$(BOOTIMAGE_NAME_HS): $(BOOTIMAGE_NAME)
|
|
||||||
ifeq ($(DEVICE_TYPE), HS)
|
|
||||||
# Sign the appimage using appimage signing script
|
|
||||||
ifeq ($(ENC_ENABLED),no)
|
|
||||||
@echo Boot image signing: Encryption is disabled.
|
|
||||||
$(PYTHON) $(APP_IMAGE_SIGN_CMD) --bin $(BOOTIMAGE_NAME) --authtype 1 --key $(APP_SIGNING_KEY) --output $(BOOTIMAGE_NAME_HS)
|
|
||||||
else
|
|
||||||
@echo Boot image signing: Encryption is enabled.
|
|
||||||
$(PYTHON) $(APP_IMAGE_SIGN_CMD) --bin $(BOOTIMAGE_NAME) --authtype 1 --key $(APP_SIGNING_KEY) --enc y --enckey $(APP_ENCRYPTION_KEY) --output $(BOOTIMAGE_NAME_HS)
|
|
||||||
$(RM) $(BOOTIMAGE_NAME)-enc
|
|
||||||
endif
|
|
||||||
@echo Boot image: am243x:m4fss0-0:freertos:ti-arm-clang $(BOOTIMAGE_PATH)/$(BOOTIMAGE_NAME_HS) Done !!!
|
|
||||||
@echo .
|
|
||||||
endif
|
|
||||||
-include $(addprefix $(OBJDIR)/, $(DEPS))
|
|
||||||
@ -1,106 +0,0 @@
|
|||||||
#
|
|
||||||
# Auto generated makefile
|
|
||||||
#
|
|
||||||
|
|
||||||
# Below variables need to be defined outside this file or via command line
|
|
||||||
# - MOTOR_CONTROL_SDK_PATH
|
|
||||||
# - PROFILE
|
|
||||||
# - CG_TOOL_ROOT
|
|
||||||
# - OUTNAME
|
|
||||||
# - CCS_INSTALL_DIR
|
|
||||||
# - CCS_IDE_MODE
|
|
||||||
|
|
||||||
CCS_PATH=$(CCS_INSTALL_DIR)
|
|
||||||
include ${MOTOR_CONTROL_SDK_PATH}/imports.mak
|
|
||||||
include ${MOTOR_CONTROL_SDK_PATH}/devconfig/devconfig.mak
|
|
||||||
|
|
||||||
STRIP=$(CG_TOOL_ROOT)/bin/tiarmstrip
|
|
||||||
OBJCOPY=$(CG_TOOL_ROOT)/bin/tiarmobjcopy
|
|
||||||
ifeq ($(OS), Windows_NT)
|
|
||||||
PYTHON=python
|
|
||||||
else
|
|
||||||
PYTHON=python3
|
|
||||||
endif
|
|
||||||
|
|
||||||
OUTFILE=$(PROFILE)/$(OUTNAME).out
|
|
||||||
BOOTIMAGE_PATH=$(abspath ${PROFILE})
|
|
||||||
BOOTIMAGE_NAME:=$(BOOTIMAGE_PATH)/$(OUTNAME).appimage
|
|
||||||
BOOTIMAGE_NAME_XIP:=$(BOOTIMAGE_PATH)/$(OUTNAME).appimage_xip
|
|
||||||
BOOTIMAGE_NAME_SIGNED:=$(BOOTIMAGE_PATH)/$(OUTNAME).appimage.signed
|
|
||||||
BOOTIMAGE_RPRC_NAME:=$(BOOTIMAGE_PATH)/$(OUTNAME).rprc
|
|
||||||
BOOTIMAGE_RPRC_NAME_XIP:=$(BOOTIMAGE_PATH)/$(OUTNAME).rprc_xip
|
|
||||||
BOOTIMAGE_RPRC_NAME_TMP:=$(BOOTIMAGE_PATH)/$(OUTNAME).rprc_tmp
|
|
||||||
|
|
||||||
#
|
|
||||||
# Generation of boot image which can be loaded by Secondary Boot Loader (SBL)
|
|
||||||
#
|
|
||||||
ifeq ($(OS),Windows_NT)
|
|
||||||
EXE_EXT=.exe
|
|
||||||
endif
|
|
||||||
ifeq ($(OS),Windows_NT)
|
|
||||||
BOOTIMAGE_CERT_GEN_CMD=powershell -executionpolicy unrestricted -command $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/signing/x509CertificateGen.ps1
|
|
||||||
else
|
|
||||||
BOOTIMAGE_CERT_GEN_CMD=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/signing/x509CertificateGen.sh
|
|
||||||
endif
|
|
||||||
BOOTIMAGE_TEMP_OUT_FILE=$(PROFILE)/temp_stdout_$(PROFILE).txt
|
|
||||||
|
|
||||||
BOOTIMAGE_CORE_ID_r5fss0-0 = 4
|
|
||||||
BOOTIMAGE_CORE_ID_r5fss0-1 = 5
|
|
||||||
BOOTIMAGE_CORE_ID_r5fss1-0 = 6
|
|
||||||
BOOTIMAGE_CORE_ID_r5fss1-1 = 7
|
|
||||||
BOOTIMAGE_CORE_ID_m4fss0-0 = 14
|
|
||||||
SBL_RUN_ADDRESS=0x70000000
|
|
||||||
SBL_DEV_ID=55
|
|
||||||
|
|
||||||
MULTI_CORE_IMAGE_GEN = $(CCS_NODE) $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/multicoreImageGen/multicoreImageGen.js
|
|
||||||
OUTRPRC_CMD = $(CCS_NODE) $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/out2rprc/elf2rprc.js
|
|
||||||
APP_IMAGE_SIGN_CMD = $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/signing/appimage_x509_cert_gen.py
|
|
||||||
|
|
||||||
ifeq ($(OS),Windows_NT)
|
|
||||||
XIPGEN_CMD=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/xipGen/xipGen.exe
|
|
||||||
else
|
|
||||||
XIPGEN_CMD=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/xipGen/xipGen.out
|
|
||||||
endif
|
|
||||||
|
|
||||||
MULTI_CORE_IMAGE_PARAMS = \
|
|
||||||
$(BOOTIMAGE_RPRC_NAME)@$(BOOTIMAGE_CORE_ID_m4fss0-0) \
|
|
||||||
|
|
||||||
MULTI_CORE_IMAGE_PARAMS_XIP = \
|
|
||||||
$(BOOTIMAGE_RPRC_NAME_XIP)@$(BOOTIMAGE_CORE_ID_m4fss0-0) \
|
|
||||||
|
|
||||||
all:
|
|
||||||
ifeq ($(CCS_IDE_MODE),cloud)
|
|
||||||
# No post build steps
|
|
||||||
else
|
|
||||||
@echo Boot image: am243x:m4fss0-0:freertos:ti-arm-clang $(BOOTIMAGE_NAME) ...
|
|
||||||
$(OUTRPRC_CMD) $(OUTFILE) >> $(BOOTIMAGE_TEMP_OUT_FILE)
|
|
||||||
$(COPY) $(OUTNAME).rprc $(BOOTIMAGE_RPRC_NAME)
|
|
||||||
$(COPY) $(BOOTIMAGE_RPRC_NAME) $(BOOTIMAGE_RPRC_NAME_TMP)
|
|
||||||
$(RM) $(BOOTIMAGE_RPRC_NAME)
|
|
||||||
$(XIPGEN_CMD) -i $(BOOTIMAGE_RPRC_NAME_TMP) -o $(BOOTIMAGE_RPRC_NAME) -x $(BOOTIMAGE_RPRC_NAME_XIP) --flash-start-addr 0x60000000 -v > $(BOOTIMAGE_TEMP_OUT_FILE)
|
|
||||||
$(MULTI_CORE_IMAGE_GEN) --devID $(SBL_DEV_ID) --out $(BOOTIMAGE_NAME) $(MULTI_CORE_IMAGE_PARAMS) >> $(BOOTIMAGE_TEMP_OUT_FILE)
|
|
||||||
$(MULTI_CORE_IMAGE_GEN) --devID $(SBL_DEV_ID) --out $(BOOTIMAGE_NAME_XIP) $(MULTI_CORE_IMAGE_PARAMS_XIP) >> $(BOOTIMAGE_TEMP_OUT_FILE)
|
|
||||||
# Sign the appimage for HS-FS using appimage signing script
|
|
||||||
$(PYTHON) $(APP_IMAGE_SIGN_CMD) --bin $(BOOTIMAGE_NAME) --authtype 1 --key $(APP_SIGNING_KEY) --output $(BOOTIMAGE_NAME).hs_fs
|
|
||||||
ifeq ($(DEVICE_TYPE),HS)
|
|
||||||
# Sign the appimage using appimage signing script
|
|
||||||
ifeq ($(ENC_ENABLED),no)
|
|
||||||
@echo Boot image signing: Encryption is disabled.
|
|
||||||
$(PYTHON) $(APP_IMAGE_SIGN_CMD) --bin $(BOOTIMAGE_NAME) --authtype 1 --key $(APP_SIGNING_KEY) --output $(BOOTIMAGE_NAME).hs
|
|
||||||
else
|
|
||||||
@echo Boot image signing: Encryption is enabled.
|
|
||||||
$(PYTHON) $(APP_IMAGE_SIGN_CMD) --bin $(BOOTIMAGE_NAME) --authtype 1 --key $(APP_SIGNING_KEY) --enc y --enckey $(APP_ENCRYPTION_KEY) --output $(BOOTIMAGE_NAME).hs
|
|
||||||
$(RM) $(BOOTIMAGE_NAME)-enc
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
$(RM) $(BOOTIMAGE_RPRC_NAME_TMP)
|
|
||||||
@echo Boot image: am243x:m4fss0-0:freertos:ti-arm-clang $(BOOTIMAGE_NAME) Done !!!
|
|
||||||
@echo .
|
|
||||||
ifeq ($(DEVICE_TYPE),HS)
|
|
||||||
@echo Boot image: am243x:m4fss0-0:freertos:ti-arm-clang $(BOOTIMAGE_NAME).hs Done !!!
|
|
||||||
@echo .
|
|
||||||
else
|
|
||||||
@echo Boot image: am243x:m4fss0-0:freertos:ti-arm-clang $(BOOTIMAGE_NAME).hs_fs Done !!!
|
|
||||||
@echo .
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
@ -1,20 +0,0 @@
|
|||||||
#
|
|
||||||
# Auto generated makefile
|
|
||||||
#
|
|
||||||
|
|
||||||
export MOTOR_CONTROL_SDK_PATH?=$(abspath ../../../../../..)
|
|
||||||
include $(MOTOR_CONTROL_SDK_PATH)/imports.mak
|
|
||||||
|
|
||||||
PROFILE?=Release
|
|
||||||
|
|
||||||
PROJECT_NAME=dcl_pi_am243x-lp_m4fss0-0_freertos_ti-arm-clang
|
|
||||||
|
|
||||||
all:
|
|
||||||
$(CCS_ECLIPSE) -noSplash -data $(MOTOR_CONTROL_SDK_PATH)/ccs_projects -application com.ti.ccstudio.apps.projectBuild -ccs.projects $(PROJECT_NAME) -ccs.configuration $(PROFILE)
|
|
||||||
|
|
||||||
clean:
|
|
||||||
$(CCS_ECLIPSE) -noSplash -data $(MOTOR_CONTROL_SDK_PATH)/ccs_projects -application com.ti.ccstudio.apps.projectBuild -ccs.projects $(PROJECT_NAME) -ccs.configuration $(PROFILE) -ccs.clean
|
|
||||||
|
|
||||||
export:
|
|
||||||
$(MKDIR) $(MOTOR_CONTROL_SDK_PATH)/ccs_projects
|
|
||||||
$(CCS_ECLIPSE) -noSplash -data $(MOTOR_CONTROL_SDK_PATH)/ccs_projects -application com.ti.ccstudio.apps.projectCreate -ccs.projectSpec example.projectspec -ccs.overwrite full
|
|
||||||
@ -1,8 +0,0 @@
|
|||||||
/*
|
|
||||||
* ======== syscfg_c.rov.xs ========
|
|
||||||
* This file contains the information needed by the Runtime Object
|
|
||||||
* View (ROV) tool.
|
|
||||||
*/
|
|
||||||
var crovFiles = [
|
|
||||||
"kernel/freertos/rov/FreeRTOS.rov.js",
|
|
||||||
];
|
|
||||||
@ -1,45 +0,0 @@
|
|||||||
/**
|
|
||||||
* 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_ALX_beta" --package "ALX" --part "ALX" --context "m4fss0-0" --product "MCU_PLUS_SDK@07.03.01"
|
|
||||||
* @versions {"tool":"1.9.0+2015","templates":null}
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Import the modules used in this configuration.
|
|
||||||
*/
|
|
||||||
const addr_translate = scripting.addModule("/kernel/dpl/addr_translate", {}, false);
|
|
||||||
const addr_translate1 = addr_translate.addInstance();
|
|
||||||
const addr_translate2 = addr_translate.addInstance();
|
|
||||||
const addr_translate3 = addr_translate.addInstance();
|
|
||||||
const addr_translate4 = addr_translate.addInstance();
|
|
||||||
const clock = scripting.addModule("/kernel/dpl/clock");
|
|
||||||
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();
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Write custom configuration values to the imported modules.
|
|
||||||
*/
|
|
||||||
addr_translate1.$name = "CONFIG_ADDR_TRANSLATE_REGION0";
|
|
||||||
addr_translate1.localAddr = 0x80000000;
|
|
||||||
|
|
||||||
addr_translate2.$name = "CONFIG_ADDR_TRANSLATE_REGION1";
|
|
||||||
addr_translate2.systemAddr = 0x20000000;
|
|
||||||
addr_translate2.localAddr = 0xA0000000;
|
|
||||||
|
|
||||||
addr_translate3.$name = "CONFIG_ADDR_TRANSLATE_REGION2";
|
|
||||||
addr_translate3.systemAddr = 0x40000000;
|
|
||||||
addr_translate3.localAddr = 0xC0000000;
|
|
||||||
|
|
||||||
addr_translate4.$name = "CONFIG_ADDR_TRANSLATE_REGION3";
|
|
||||||
addr_translate4.systemAddr = 0x60000000;
|
|
||||||
addr_translate4.localAddr = 0x60000000;
|
|
||||||
|
|
||||||
mpu_armv71.$name = "CONFIG_MPU_REGION0";
|
|
||||||
mpu_armv71.attributes = "Device";
|
|
||||||
mpu_armv71.allowExecute = false;
|
|
||||||
|
|
||||||
mpu_armv72.$name = "CONFIG_MPU_REGION1";
|
|
||||||
mpu_armv72.size = 18;
|
|
||||||
@ -1,50 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright (C) 2018-2021 Texas Instruments Incorporated
|
|
||||||
*
|
|
||||||
* Redistribution and use in source and binary forms, with or without
|
|
||||||
* modification, are permitted provided that the following conditions
|
|
||||||
* are met:
|
|
||||||
*
|
|
||||||
* Redistributions of source code must retain the above copyright
|
|
||||||
* notice, this list of conditions and the following disclaimer.
|
|
||||||
*
|
|
||||||
* Redistributions in binary form must reproduce the above copyright
|
|
||||||
* notice, this list of conditions and the following disclaimer in the
|
|
||||||
* documentation and/or other materials provided with the
|
|
||||||
* distribution.
|
|
||||||
*
|
|
||||||
* Neither the name of Texas Instruments Incorporated nor the names of
|
|
||||||
* its contributors may be used to endorse or promote products derived
|
|
||||||
* from this software without specific prior written permission.
|
|
||||||
*
|
|
||||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
||||||
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
||||||
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
||||||
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
||||||
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
||||||
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
||||||
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
||||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
||||||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include "ti_drivers_config.h"
|
|
||||||
#include "ti_board_config.h"
|
|
||||||
|
|
||||||
void dcl_pi_main(void *args);
|
|
||||||
|
|
||||||
int main(void)
|
|
||||||
{
|
|
||||||
System_init();
|
|
||||||
Board_init();
|
|
||||||
|
|
||||||
dcl_pi_main(NULL);
|
|
||||||
|
|
||||||
Board_deinit();
|
|
||||||
System_deinit();
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
@ -1,19 +0,0 @@
|
|||||||
/*
|
|
||||||
* This linker file is optional, it's complementary to the device/core linker file
|
|
||||||
* Here it specifies the dcl function & data mapping allocated by __attribute__((section(...)))
|
|
||||||
* and link to a specific memory region for the best performance
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Define core & platform specific variables */
|
|
||||||
#define FAST_RAM M4F_IRAM
|
|
||||||
#define REG_RAM M4F_IRAM /* M4F_DRAM also works */
|
|
||||||
|
|
||||||
SECTIONS
|
|
||||||
{
|
|
||||||
/* dcl functions mapped to on-chip fast ram */
|
|
||||||
dclfuncs : {} > FAST_RAM
|
|
||||||
|
|
||||||
/* optional -- map datas & variables to regular ram */
|
|
||||||
/* Sitara default linker should already map variables to ram */
|
|
||||||
dclDataSection : {} > REG_RAM
|
|
||||||
}
|
|
||||||
@ -1,112 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<projectSpec>
|
|
||||||
<applicability>
|
|
||||||
<when>
|
|
||||||
<context
|
|
||||||
deviceFamily="ARM"
|
|
||||||
deviceId="Cortex M.AM2434_ALX"
|
|
||||||
/>
|
|
||||||
</when>
|
|
||||||
</applicability>
|
|
||||||
|
|
||||||
<project
|
|
||||||
title="Dcl Pi"
|
|
||||||
name = "dcl_pi_am243x-lp_m4fss0-0_nortos_ti-arm-clang"
|
|
||||||
products="sysconfig;com.ti.MOTOR_CONTROL_SDK_AMXXX;"
|
|
||||||
configurations="
|
|
||||||
Debug,
|
|
||||||
Release,
|
|
||||||
"
|
|
||||||
connection="TIXDS110_Connection.xml"
|
|
||||||
toolChain="TICLANG"
|
|
||||||
cgtVersion="2.1.3"
|
|
||||||
device="Cortex M.AM2434_ALX"
|
|
||||||
deviceCore="Cortex_M4F_0"
|
|
||||||
ignoreDefaultDeviceSettings="true"
|
|
||||||
ignoreDefaultCCSSettings="true"
|
|
||||||
endianness="little"
|
|
||||||
outputFormat="ELF"
|
|
||||||
outputType="executable"
|
|
||||||
|
|
||||||
compilerBuildOptions="
|
|
||||||
-I${CG_TOOL_ROOT}/include/c
|
|
||||||
-I${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source
|
|
||||||
-I${MOTOR_CONTROL_SDK_PATH}/source
|
|
||||||
-I${MOTOR_CONTROL_SDK_PATH}/source/dcl
|
|
||||||
-mcpu=cortex-m4
|
|
||||||
-mfloat-abi=hard
|
|
||||||
-mthumb
|
|
||||||
-Wall
|
|
||||||
-Werror
|
|
||||||
-g
|
|
||||||
-Wno-gnu-variable-sized-type-not-at-end
|
|
||||||
-Wno-unused-function
|
|
||||||
-DSOC_AM243X
|
|
||||||
"
|
|
||||||
linkerBuildOptions="
|
|
||||||
-i${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/nortos/lib
|
|
||||||
-i${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/drivers/lib
|
|
||||||
-i${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/board/lib
|
|
||||||
-i${CG_TOOL_ROOT}/lib
|
|
||||||
-m=dcl_pi.${ConfigName}.map
|
|
||||||
--ram_model
|
|
||||||
--reread_libs
|
|
||||||
"
|
|
||||||
|
|
||||||
postBuildStep="$(MAKE) -C ${CCS_PROJECT_DIR} -f makefile_ccs_bootimage_gen OUTNAME=${BuildArtifactFileBaseName} PROFILE=${ConfigName} MOTOR_CONTROL_SDK_PATH=${MOTOR_CONTROL_SDK_PATH} CG_TOOL_ROOT=${CG_TOOL_ROOT} CCS_INSTALL_DIR=${CCS_INSTALL_DIR} CCS_IDE_MODE=${CCS_IDE_MODE} DEVICE=am243x"
|
|
||||||
|
|
||||||
enableSysConfigTool="true"
|
|
||||||
sysConfigBuildOptions="
|
|
||||||
--context m4fss0-0 --part ALX --package ALX
|
|
||||||
"
|
|
||||||
|
|
||||||
description="A Dcl Pi NORTOS project">
|
|
||||||
|
|
||||||
<configuration name="Debug"
|
|
||||||
compilerBuildOptions="
|
|
||||||
-D_DEBUG_=1
|
|
||||||
"
|
|
||||||
linkerBuildOptions="
|
|
||||||
-lnortos.am243x.m4f.ti-arm-clang.debug.lib
|
|
||||||
-ldrivers.am243x.m4f.ti-arm-clang.debug.lib
|
|
||||||
-lboard.am243x.m4f.ti-arm-clang.debug.lib
|
|
||||||
-llibc.a
|
|
||||||
-llibsysbm.a
|
|
||||||
"
|
|
||||||
></configuration>
|
|
||||||
<configuration name="Release"
|
|
||||||
compilerBuildOptions="
|
|
||||||
-Os
|
|
||||||
"
|
|
||||||
linkerBuildOptions="
|
|
||||||
-lnortos.am243x.m4f.ti-arm-clang.release.lib
|
|
||||||
-ldrivers.am243x.m4f.ti-arm-clang.release.lib
|
|
||||||
-lboard.am243x.m4f.ti-arm-clang.release.lib
|
|
||||||
-llibc.a
|
|
||||||
-llibsysbm.a
|
|
||||||
"
|
|
||||||
></configuration>
|
|
||||||
<pathVariable name="MOTOR_CONTROL_SDK_PATH" path="${COM_TI_MOTOR_CONTROL_SDK_AMXXX_INSTALL_DIR}" scope="project" />
|
|
||||||
<file path="../../../pi_test.c" openOnCreation="false" excludeFromBuild="false" action="copy">
|
|
||||||
</file>
|
|
||||||
<file path="../main.c" openOnCreation="false" excludeFromBuild="false" action="copy">
|
|
||||||
</file>
|
|
||||||
<file path="linker.cmd" openOnCreation="false" excludeFromBuild="false" action="copy">
|
|
||||||
</file>
|
|
||||||
<file path="dcl_linker_m4f_am243x_sitara.cmd" openOnCreation="false" excludeFromBuild="false" action="copy">
|
|
||||||
</file>
|
|
||||||
<file path="../example.syscfg" openOnCreation="false" excludeFromBuild="false" action="copy">
|
|
||||||
</file>
|
|
||||||
<file path="${MOTOR_CONTROL_SDK_PATH}/docs/api_guide_am243x/EXAMPLES_DCL_PI.html"
|
|
||||||
openOnCreation="false" excludeFromBuild="false" targetName="README.html" action="link">
|
|
||||||
</file>
|
|
||||||
<file path="../../../pi_test.h" openOnCreation="false" excludeFromBuild="true" action="copy">
|
|
||||||
</file>
|
|
||||||
<file path="../../../data" openOnCreation="false" excludeFromBuild="true" action="copy">
|
|
||||||
</file>
|
|
||||||
<file path="syscfg_c.rov.xs" openOnCreation="false" excludeFromBuild="false" action="copy">
|
|
||||||
</file>
|
|
||||||
<file path="makefile_ccs_bootimage_gen" openOnCreation="false" excludeFromBuild="false" action="copy">
|
|
||||||
</file>
|
|
||||||
</project>
|
|
||||||
</projectSpec>
|
|
||||||
@ -1,62 +0,0 @@
|
|||||||
|
|
||||||
/* make sure below retain is there in your linker command file, it keeps the vector table in the final binary */
|
|
||||||
--retain="*(.vectors)"
|
|
||||||
/* This is the stack that is used by code running within main()
|
|
||||||
* In case of NORTOS,
|
|
||||||
* - This means all the code outside of ISR uses this stack
|
|
||||||
* In case of FreeRTOS
|
|
||||||
* - This means all the code until vTaskStartScheduler() is called in main()
|
|
||||||
* uses this stack.
|
|
||||||
* - After vTaskStartScheduler() each task created in FreeRTOS has its own stack
|
|
||||||
*/
|
|
||||||
--stack_size=16384
|
|
||||||
/* This is the heap size for malloc() API in NORTOS and FreeRTOS
|
|
||||||
* This is also the heap used by pvPortMalloc in FreeRTOS
|
|
||||||
*/
|
|
||||||
--heap_size=32768
|
|
||||||
|
|
||||||
|
|
||||||
SECTIONS
|
|
||||||
{
|
|
||||||
/* This has the M4F entry point and vector table, this MUST be at 0x0 */
|
|
||||||
.vectors:{} palign(8) > M4F_VECS
|
|
||||||
.text: {} palign(8) > M4F_IRAM /* This is where code resides */
|
|
||||||
|
|
||||||
.bss: {} palign(8) > M4F_DRAM /* This is where uninitialized globals go */
|
|
||||||
RUN_START(__BSS_START)
|
|
||||||
RUN_END(__BSS_END)
|
|
||||||
|
|
||||||
.data: {} palign(8) > M4F_DRAM /* This is where initialized globals and static go */
|
|
||||||
.rodata: {} palign(8) > M4F_DRAM /* This is where const's go */
|
|
||||||
.sysmem: {} palign(8) > M4F_IRAM /* This is where the malloc heap goes */
|
|
||||||
.stack: {} palign(8) > M4F_IRAM /* This is where the main() stack goes */
|
|
||||||
|
|
||||||
/* Sections needed for C++ projects */
|
|
||||||
.ARM.exidx: {} palign(8) > M4F_IRAM /* Needed for C++ exception handling */
|
|
||||||
.init_array: {} palign(8) > M4F_IRAM /* Contains function pointers called before main */
|
|
||||||
.fini_array: {} palign(8) > M4F_IRAM /* Contains function pointers called after main */
|
|
||||||
|
|
||||||
/* General purpose user shared memory */
|
|
||||||
.bss.user_shared_mem (NOLOAD) : {} > USER_SHM_MEM
|
|
||||||
/* this is used when Debug log's to shared memory are enabled, else this is not used */
|
|
||||||
.bss.log_shared_mem (NOLOAD) : {} > LOG_SHM_MEM
|
|
||||||
/* this is used only when IPC RPMessage is enabled, else this is not used */
|
|
||||||
.bss.ipc_vring_mem (NOLOAD) : {} > IPC_VRING_MEM
|
|
||||||
}
|
|
||||||
|
|
||||||
MEMORY
|
|
||||||
{
|
|
||||||
M4F_VECS : ORIGIN = 0x00000000 , LENGTH = 0x00000200
|
|
||||||
M4F_IRAM : ORIGIN = 0x00000200 , LENGTH = 0x0002FE00
|
|
||||||
M4F_DRAM : ORIGIN = 0x00030000 , LENGTH = 0x00010000
|
|
||||||
|
|
||||||
/* shared memories that are used by all cores */
|
|
||||||
/* On M4F,
|
|
||||||
* - By default MSMC RAM is not accessible to M4F, a RAT entry is needed to make it
|
|
||||||
* accessible on M4F
|
|
||||||
* - So make sure there is a RAT entry which has a 1:1 mapping from 0x70000000 to 0x70200000
|
|
||||||
*/
|
|
||||||
USER_SHM_MEM : ORIGIN = 0x701D0000, LENGTH = 0x180
|
|
||||||
LOG_SHM_MEM : ORIGIN = 0x701D0000 + 0x180, LENGTH = 0x00004000 - 0x180
|
|
||||||
IPC_VRING_MEM: ORIGIN = 0x701D4000, LENGTH = 0x0000C000
|
|
||||||
}
|
|
||||||
@ -1,300 +0,0 @@
|
|||||||
#
|
|
||||||
# Auto generated makefile
|
|
||||||
#
|
|
||||||
|
|
||||||
export MOTOR_CONTROL_SDK_PATH?=$(abspath ../../../../../..)
|
|
||||||
include $(MOTOR_CONTROL_SDK_PATH)/imports.mak
|
|
||||||
include $(MOTOR_CONTROL_SDK_PATH)/devconfig/devconfig.mak
|
|
||||||
|
|
||||||
CG_TOOL_ROOT=$(CGT_TI_ARM_CLANG_PATH)
|
|
||||||
|
|
||||||
CC=$(CG_TOOL_ROOT)/bin/tiarmclang
|
|
||||||
LNK=$(CG_TOOL_ROOT)/bin/tiarmclang
|
|
||||||
STRIP=$(CG_TOOL_ROOT)/bin/tiarmstrip
|
|
||||||
OBJCOPY=$(CG_TOOL_ROOT)/bin/tiarmobjcopy
|
|
||||||
ifeq ($(OS), Windows_NT)
|
|
||||||
PYTHON=python
|
|
||||||
else
|
|
||||||
PYTHON=python3
|
|
||||||
endif
|
|
||||||
|
|
||||||
PROFILE?=release
|
|
||||||
ConfigName:=$(PROFILE)
|
|
||||||
|
|
||||||
OUTNAME:=dcl_pi.$(PROFILE).out
|
|
||||||
|
|
||||||
BOOTIMAGE_PATH=$(abspath .)
|
|
||||||
BOOTIMAGE_NAME:=dcl_pi.$(PROFILE).appimage
|
|
||||||
BOOTIMAGE_NAME_XIP:=dcl_pi.$(PROFILE).appimage_xip
|
|
||||||
BOOTIMAGE_NAME_SIGNED:=dcl_pi.$(PROFILE).appimage.signed
|
|
||||||
BOOTIMAGE_RPRC_NAME:=dcl_pi.$(PROFILE).rprc
|
|
||||||
BOOTIMAGE_RPRC_NAME_XIP:=dcl_pi.$(PROFILE).rprc_xip
|
|
||||||
BOOTIMAGE_RPRC_NAME_TMP:=dcl_pi.$(PROFILE).rprc_tmp
|
|
||||||
BOOTIMAGE_NAME_HS:=dcl_pi.$(PROFILE).appimage.hs
|
|
||||||
BOOTIMAGE_NAME_HS_FS:=dcl_pi.$(PROFILE).appimage.hs_fs
|
|
||||||
TARGETS := $(BOOTIMAGE_NAME)
|
|
||||||
ifeq ($(DEVICE_TYPE), HS)
|
|
||||||
TARGETS += $(BOOTIMAGE_NAME_HS)
|
|
||||||
endif
|
|
||||||
|
|
||||||
FILES_common := \
|
|
||||||
pi_test.c \
|
|
||||||
main.c \
|
|
||||||
ti_drivers_config.c \
|
|
||||||
ti_drivers_open_close.c \
|
|
||||||
ti_board_config.c \
|
|
||||||
ti_board_open_close.c \
|
|
||||||
ti_dpl_config.c \
|
|
||||||
ti_pinmux_config.c \
|
|
||||||
ti_power_clock_config.c \
|
|
||||||
|
|
||||||
FILES_PATH_common = \
|
|
||||||
.. \
|
|
||||||
../../.. \
|
|
||||||
generated \
|
|
||||||
|
|
||||||
INCLUDES_common := \
|
|
||||||
-I${CG_TOOL_ROOT}/include/c \
|
|
||||||
-I${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source \
|
|
||||||
-I${MOTOR_CONTROL_SDK_PATH}/source \
|
|
||||||
-I${MOTOR_CONTROL_SDK_PATH}/source/dcl \
|
|
||||||
-Igenerated \
|
|
||||||
|
|
||||||
DEFINES_common := \
|
|
||||||
-DSOC_AM243X \
|
|
||||||
|
|
||||||
CFLAGS_common := \
|
|
||||||
-mcpu=cortex-m4 \
|
|
||||||
-mfloat-abi=hard \
|
|
||||||
-mthumb \
|
|
||||||
-Wall \
|
|
||||||
-Werror \
|
|
||||||
-g \
|
|
||||||
-Wno-gnu-variable-sized-type-not-at-end \
|
|
||||||
-Wno-unused-function \
|
|
||||||
|
|
||||||
CFLAGS_cpp_common := \
|
|
||||||
-Wno-c99-designator \
|
|
||||||
-Wno-extern-c-compat \
|
|
||||||
-Wno-c++11-narrowing \
|
|
||||||
-Wno-reorder-init-list \
|
|
||||||
-Wno-deprecated-register \
|
|
||||||
-Wno-writable-strings \
|
|
||||||
-Wno-enum-compare \
|
|
||||||
-Wno-reserved-user-defined-literal \
|
|
||||||
-Wno-unused-const-variable \
|
|
||||||
-x c++ \
|
|
||||||
|
|
||||||
CFLAGS_debug := \
|
|
||||||
-D_DEBUG_=1 \
|
|
||||||
|
|
||||||
CFLAGS_release := \
|
|
||||||
-Os \
|
|
||||||
|
|
||||||
LNK_FILES_common = \
|
|
||||||
linker.cmd \
|
|
||||||
dcl_linker_m4f_am243x_sitara.cmd \
|
|
||||||
|
|
||||||
LIBS_PATH_common = \
|
|
||||||
-Wl,-i${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/nortos/lib \
|
|
||||||
-Wl,-i${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/drivers/lib \
|
|
||||||
-Wl,-i${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/board/lib \
|
|
||||||
-Wl,-i${CG_TOOL_ROOT}/lib \
|
|
||||||
|
|
||||||
LIBS_common = \
|
|
||||||
-lnortos.am243x.m4f.ti-arm-clang.${ConfigName}.lib \
|
|
||||||
-ldrivers.am243x.m4f.ti-arm-clang.${ConfigName}.lib \
|
|
||||||
-lboard.am243x.m4f.ti-arm-clang.${ConfigName}.lib \
|
|
||||||
-llibc.a \
|
|
||||||
-llibsysbm.a \
|
|
||||||
|
|
||||||
LFLAGS_common = \
|
|
||||||
-Wl,--ram_model \
|
|
||||||
-Wl,--reread_libs \
|
|
||||||
|
|
||||||
|
|
||||||
LIBS_NAME = \
|
|
||||||
nortos.am243x.m4f.ti-arm-clang.${ConfigName}.lib \
|
|
||||||
drivers.am243x.m4f.ti-arm-clang.${ConfigName}.lib \
|
|
||||||
board.am243x.m4f.ti-arm-clang.${ConfigName}.lib \
|
|
||||||
libc.a \
|
|
||||||
libsysbm.a \
|
|
||||||
|
|
||||||
LIBS_PATH_NAME = \
|
|
||||||
${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/nortos/lib \
|
|
||||||
${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/drivers/lib \
|
|
||||||
${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/board/lib \
|
|
||||||
${CG_TOOL_ROOT}/lib \
|
|
||||||
|
|
||||||
FILES := $(FILES_common) $(FILES_$(PROFILE))
|
|
||||||
ASMFILES := $(ASMFILES_common) $(ASMFILES_$(PROFILE))
|
|
||||||
FILES_PATH := $(FILES_PATH_common) $(FILES_PATH_$(PROFILE))
|
|
||||||
CFLAGS := $(CFLAGS_common) $(CFLAGS_$(PROFILE))
|
|
||||||
DEFINES := $(DEFINES_common) $(DEFINES_$(PROFILE))
|
|
||||||
INCLUDES := $(INCLUDES_common) $(INCLUDE_$(PROFILE))
|
|
||||||
LIBS := $(LIBS_common) $(LIBS_$(PROFILE))
|
|
||||||
LIBS_PATH := $(LIBS_PATH_common) $(LIBS_PATH_$(PROFILE))
|
|
||||||
LFLAGS := $(LFLAGS_common) $(LFLAGS_$(PROFILE))
|
|
||||||
LNKOPTFLAGS := $(LNKOPTFLAGS_common) $(LNKOPTFLAGS_$(PROFILE))
|
|
||||||
LNK_FILES := $(LNK_FILES_common) $(LNK_FILES_$(PROFILE))
|
|
||||||
|
|
||||||
OBJDIR := obj/$(PROFILE)/
|
|
||||||
OBJS := $(FILES:%.c=%.obj)
|
|
||||||
OBJS += $(ASMFILES:%.S=%.obj)
|
|
||||||
DEPS := $(FILES:%.c=%.d)
|
|
||||||
|
|
||||||
vpath %.obj $(OBJDIR)
|
|
||||||
vpath %.c $(FILES_PATH)
|
|
||||||
vpath %.S $(FILES_PATH)
|
|
||||||
vpath %.lib $(LIBS_PATH_NAME)
|
|
||||||
vpath %.a $(LIBS_PATH_NAME)
|
|
||||||
|
|
||||||
$(OBJDIR)/%.obj %.obj: %.c
|
|
||||||
@echo Compiling: am243x:m4fss0-0:nortos:ti-arm-clang $(OUTNAME): $<
|
|
||||||
$(CC) -c $(CFLAGS) $(INCLUDES) $(DEFINES) -MMD -o $(OBJDIR)/$@ $<
|
|
||||||
|
|
||||||
$(OBJDIR)/%.obj %.obj: %.S
|
|
||||||
@echo Compiling: am243x:m4fss0-0:nortos:ti-arm-clang $(LIBNAME): $<
|
|
||||||
$(CC) -c $(CFLAGS) -o $(OBJDIR)/$@ $<
|
|
||||||
|
|
||||||
all: $(TARGETS)
|
|
||||||
|
|
||||||
SYSCFG_GEN_FILES=generated/ti_drivers_config.c generated/ti_drivers_config.h
|
|
||||||
SYSCFG_GEN_FILES+=generated/ti_drivers_open_close.c generated/ti_drivers_open_close.h
|
|
||||||
SYSCFG_GEN_FILES+=generated/ti_dpl_config.c generated/ti_dpl_config.h
|
|
||||||
SYSCFG_GEN_FILES+=generated/ti_pinmux_config.c generated/ti_power_clock_config.c
|
|
||||||
SYSCFG_GEN_FILES+=generated/ti_board_config.c generated/ti_board_config.h
|
|
||||||
SYSCFG_GEN_FILES+=generated/ti_board_open_close.c generated/ti_board_open_close.h
|
|
||||||
|
|
||||||
$(OUTNAME): syscfg $(SYSCFG_GEN_FILES) $(OBJS) $(LNK_FILES) $(LIBS_NAME)
|
|
||||||
@echo .
|
|
||||||
@echo Linking: am243x:m4fss0-0:nortos:ti-arm-clang $@ ...
|
|
||||||
$(LNK) $(LNKOPTFLAGS) $(LFLAGS) $(LIBS_PATH) -Wl,-m=$(basename $@).map -o $@ $(addprefix $(OBJDIR), $(OBJS)) $(LIBS) $(LNK_FILES)
|
|
||||||
@echo Linking: am243x:m4fss0-0:nortos:ti-arm-clang $@ Done !!!
|
|
||||||
@echo .
|
|
||||||
|
|
||||||
clean:
|
|
||||||
@echo Cleaning: am243x:m4fss0-0:nortos:ti-arm-clang $(OUTNAME) ...
|
|
||||||
$(RMDIR) $(OBJDIR)
|
|
||||||
$(RM) $(OUTNAME)
|
|
||||||
$(RM) $(BOOTIMAGE_NAME)
|
|
||||||
$(RM) $(BOOTIMAGE_NAME_XIP)
|
|
||||||
$(RM) $(BOOTIMAGE_NAME_SIGNED)
|
|
||||||
$(RM) $(BOOTIMAGE_NAME_HS)
|
|
||||||
$(RM) $(BOOTIMAGE_NAME_HS_FS)
|
|
||||||
$(RM) $(BOOTIMAGE_RPRC_NAME)
|
|
||||||
$(RM) $(BOOTIMAGE_RPRC_NAME_XIP)
|
|
||||||
$(RMDIR) generated/
|
|
||||||
|
|
||||||
scrub:
|
|
||||||
@echo Scrubing: am243x:m4fss0-0:nortos:ti-arm-clang dcl_pi ...
|
|
||||||
$(RMDIR) obj
|
|
||||||
ifeq ($(OS),Windows_NT)
|
|
||||||
$(RM) \*.out
|
|
||||||
$(RM) \*.map
|
|
||||||
$(RM) \*.appimage*
|
|
||||||
$(RM) \*.rprc*
|
|
||||||
$(RM) \*.tiimage*
|
|
||||||
$(RM) \*.bin
|
|
||||||
else
|
|
||||||
$(RM) *.out
|
|
||||||
$(RM) *.map
|
|
||||||
$(RM) *.appimage*
|
|
||||||
$(RM) *.rprc*
|
|
||||||
$(RM) *.tiimage*
|
|
||||||
$(RM) *.bin
|
|
||||||
endif
|
|
||||||
$(RMDIR) generated
|
|
||||||
|
|
||||||
$(OBJS): | $(OBJDIR)
|
|
||||||
|
|
||||||
$(OBJDIR):
|
|
||||||
$(MKDIR) $@
|
|
||||||
|
|
||||||
|
|
||||||
.NOTPARALLEL:
|
|
||||||
|
|
||||||
.INTERMEDIATE: syscfg
|
|
||||||
$(SYSCFG_GEN_FILES): syscfg
|
|
||||||
|
|
||||||
syscfg: ../example.syscfg
|
|
||||||
@echo Generating SysConfig files ...
|
|
||||||
$(SYSCFG_NODE) $(SYSCFG_CLI_PATH)/dist/cli.js --product $(SYSCFG_SDKPRODUCT) --context m4fss0-0 --part ALX --package ALX --output generated/ ../example.syscfg
|
|
||||||
|
|
||||||
syscfg-gui:
|
|
||||||
$(SYSCFG_NWJS) $(SYSCFG_PATH) --product $(SYSCFG_SDKPRODUCT) --device AM243x_ALX_beta --context m4fss0-0 --part ALX --package ALX --output generated/ ../example.syscfg
|
|
||||||
|
|
||||||
#
|
|
||||||
# Generation of boot image which can be loaded by Secondary Boot Loader (SBL)
|
|
||||||
#
|
|
||||||
ifeq ($(OS),Windows_NT)
|
|
||||||
EXE_EXT=.exe
|
|
||||||
endif
|
|
||||||
ifeq ($(OS),Windows_NT)
|
|
||||||
BOOTIMAGE_CERT_GEN_CMD=powershell -executionpolicy unrestricted -command $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/signing/x509CertificateGen.ps1
|
|
||||||
else
|
|
||||||
BOOTIMAGE_CERT_GEN_CMD=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/signing/x509CertificateGen.sh
|
|
||||||
endif
|
|
||||||
BOOTIMAGE_TEMP_OUT_FILE=temp_stdout_$(PROFILE).txt
|
|
||||||
|
|
||||||
BOOTIMAGE_CERT_KEY=$(APP_SIGNING_KEY)
|
|
||||||
|
|
||||||
BOOTIMAGE_CORE_ID_r5fss0-0 = 4
|
|
||||||
BOOTIMAGE_CORE_ID_r5fss0-1 = 5
|
|
||||||
BOOTIMAGE_CORE_ID_r5fss1-0 = 6
|
|
||||||
BOOTIMAGE_CORE_ID_r5fss1-1 = 7
|
|
||||||
BOOTIMAGE_CORE_ID_m4fss0-0 = 14
|
|
||||||
SBL_RUN_ADDRESS=0x70000000
|
|
||||||
SBL_DEV_ID=55
|
|
||||||
|
|
||||||
MULTI_CORE_IMAGE_GEN = $(SYSCFG_NODE) $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/multicoreImageGen/multicoreImageGen.js
|
|
||||||
OUTRPRC_CMD = $(SYSCFG_NODE) $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/out2rprc/elf2rprc.js
|
|
||||||
APP_IMAGE_SIGN_CMD = $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/signing/appimage_x509_cert_gen.py
|
|
||||||
|
|
||||||
ifeq ($(OS),Windows_NT)
|
|
||||||
XIPGEN_CMD=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/xipGen/xipGen.exe
|
|
||||||
else
|
|
||||||
XIPGEN_CMD=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/xipGen/xipGen.out
|
|
||||||
endif
|
|
||||||
|
|
||||||
MULTI_CORE_IMAGE_PARAMS = \
|
|
||||||
$(BOOTIMAGE_RPRC_NAME)@$(BOOTIMAGE_CORE_ID_m4fss0-0) \
|
|
||||||
|
|
||||||
MULTI_CORE_IMAGE_PARAMS_XIP = \
|
|
||||||
$(BOOTIMAGE_RPRC_NAME_XIP)@$(BOOTIMAGE_CORE_ID_m4fss0-0) \
|
|
||||||
|
|
||||||
$(BOOTIMAGE_NAME): $(OUTNAME)
|
|
||||||
@echo Boot image: am243x:m4fss0-0:nortos:ti-arm-clang $(BOOTIMAGE_PATH)/$@ ...
|
|
||||||
ifneq ($(OS),Windows_NT)
|
|
||||||
$(CHMOD) a+x $(XIPGEN_CMD)
|
|
||||||
endif
|
|
||||||
$(OUTRPRC_CMD) $(OUTNAME) >> $(BOOTIMAGE_TEMP_OUT_FILE)
|
|
||||||
$(COPY) $(BOOTIMAGE_RPRC_NAME) $(BOOTIMAGE_RPRC_NAME_TMP)
|
|
||||||
$(RM) $(BOOTIMAGE_RPRC_NAME)
|
|
||||||
$(XIPGEN_CMD) -i $(BOOTIMAGE_RPRC_NAME_TMP) -o $(BOOTIMAGE_RPRC_NAME) -x $(BOOTIMAGE_RPRC_NAME_XIP) --flash-start-addr 0x60000000 -v > $(BOOTIMAGE_TEMP_OUT_FILE)
|
|
||||||
$(MULTI_CORE_IMAGE_GEN) --devID $(SBL_DEV_ID) --out $(BOOTIMAGE_NAME) $(MULTI_CORE_IMAGE_PARAMS) >> $(BOOTIMAGE_TEMP_OUT_FILE)
|
|
||||||
$(MULTI_CORE_IMAGE_GEN) --devID $(SBL_DEV_ID) --out $(BOOTIMAGE_NAME_XIP) $(MULTI_CORE_IMAGE_PARAMS_XIP) >> $(BOOTIMAGE_TEMP_OUT_FILE)
|
|
||||||
# Sign the appimage for HS-FS using appimage signing script
|
|
||||||
$(PYTHON) $(APP_IMAGE_SIGN_CMD) --bin $(BOOTIMAGE_NAME) --authtype 1 --key $(APP_SIGNING_KEY) --output $(BOOTIMAGE_NAME_HS_FS)
|
|
||||||
$(RM) $(BOOTIMAGE_RPRC_NAME_TMP)
|
|
||||||
$(RM) $(BOOTIMAGE_TEMP_OUT_FILE)
|
|
||||||
@echo Boot image: am243x:m4fss0-0:nortos:ti-arm-clang $(BOOTIMAGE_PATH)/$@ Done !!!
|
|
||||||
@echo .
|
|
||||||
@echo Boot image: am243x:m4fss0-0:nortos:ti-arm-clang $(BOOTIMAGE_PATH)/$(BOOTIMAGE_NAME_HS_FS) Done !!!
|
|
||||||
@echo .
|
|
||||||
|
|
||||||
$(BOOTIMAGE_NAME_HS): $(BOOTIMAGE_NAME)
|
|
||||||
ifeq ($(DEVICE_TYPE), HS)
|
|
||||||
# Sign the appimage using appimage signing script
|
|
||||||
ifeq ($(ENC_ENABLED),no)
|
|
||||||
@echo Boot image signing: Encryption is disabled.
|
|
||||||
$(PYTHON) $(APP_IMAGE_SIGN_CMD) --bin $(BOOTIMAGE_NAME) --authtype 1 --key $(APP_SIGNING_KEY) --output $(BOOTIMAGE_NAME_HS)
|
|
||||||
else
|
|
||||||
@echo Boot image signing: Encryption is enabled.
|
|
||||||
$(PYTHON) $(APP_IMAGE_SIGN_CMD) --bin $(BOOTIMAGE_NAME) --authtype 1 --key $(APP_SIGNING_KEY) --enc y --enckey $(APP_ENCRYPTION_KEY) --output $(BOOTIMAGE_NAME_HS)
|
|
||||||
$(RM) $(BOOTIMAGE_NAME)-enc
|
|
||||||
endif
|
|
||||||
@echo Boot image: am243x:m4fss0-0:nortos:ti-arm-clang $(BOOTIMAGE_PATH)/$(BOOTIMAGE_NAME_HS) Done !!!
|
|
||||||
@echo .
|
|
||||||
endif
|
|
||||||
-include $(addprefix $(OBJDIR)/, $(DEPS))
|
|
||||||
@ -1,106 +0,0 @@
|
|||||||
#
|
|
||||||
# Auto generated makefile
|
|
||||||
#
|
|
||||||
|
|
||||||
# Below variables need to be defined outside this file or via command line
|
|
||||||
# - MOTOR_CONTROL_SDK_PATH
|
|
||||||
# - PROFILE
|
|
||||||
# - CG_TOOL_ROOT
|
|
||||||
# - OUTNAME
|
|
||||||
# - CCS_INSTALL_DIR
|
|
||||||
# - CCS_IDE_MODE
|
|
||||||
|
|
||||||
CCS_PATH=$(CCS_INSTALL_DIR)
|
|
||||||
include ${MOTOR_CONTROL_SDK_PATH}/imports.mak
|
|
||||||
include ${MOTOR_CONTROL_SDK_PATH}/devconfig/devconfig.mak
|
|
||||||
|
|
||||||
STRIP=$(CG_TOOL_ROOT)/bin/tiarmstrip
|
|
||||||
OBJCOPY=$(CG_TOOL_ROOT)/bin/tiarmobjcopy
|
|
||||||
ifeq ($(OS), Windows_NT)
|
|
||||||
PYTHON=python
|
|
||||||
else
|
|
||||||
PYTHON=python3
|
|
||||||
endif
|
|
||||||
|
|
||||||
OUTFILE=$(PROFILE)/$(OUTNAME).out
|
|
||||||
BOOTIMAGE_PATH=$(abspath ${PROFILE})
|
|
||||||
BOOTIMAGE_NAME:=$(BOOTIMAGE_PATH)/$(OUTNAME).appimage
|
|
||||||
BOOTIMAGE_NAME_XIP:=$(BOOTIMAGE_PATH)/$(OUTNAME).appimage_xip
|
|
||||||
BOOTIMAGE_NAME_SIGNED:=$(BOOTIMAGE_PATH)/$(OUTNAME).appimage.signed
|
|
||||||
BOOTIMAGE_RPRC_NAME:=$(BOOTIMAGE_PATH)/$(OUTNAME).rprc
|
|
||||||
BOOTIMAGE_RPRC_NAME_XIP:=$(BOOTIMAGE_PATH)/$(OUTNAME).rprc_xip
|
|
||||||
BOOTIMAGE_RPRC_NAME_TMP:=$(BOOTIMAGE_PATH)/$(OUTNAME).rprc_tmp
|
|
||||||
|
|
||||||
#
|
|
||||||
# Generation of boot image which can be loaded by Secondary Boot Loader (SBL)
|
|
||||||
#
|
|
||||||
ifeq ($(OS),Windows_NT)
|
|
||||||
EXE_EXT=.exe
|
|
||||||
endif
|
|
||||||
ifeq ($(OS),Windows_NT)
|
|
||||||
BOOTIMAGE_CERT_GEN_CMD=powershell -executionpolicy unrestricted -command $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/signing/x509CertificateGen.ps1
|
|
||||||
else
|
|
||||||
BOOTIMAGE_CERT_GEN_CMD=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/signing/x509CertificateGen.sh
|
|
||||||
endif
|
|
||||||
BOOTIMAGE_TEMP_OUT_FILE=$(PROFILE)/temp_stdout_$(PROFILE).txt
|
|
||||||
|
|
||||||
BOOTIMAGE_CORE_ID_r5fss0-0 = 4
|
|
||||||
BOOTIMAGE_CORE_ID_r5fss0-1 = 5
|
|
||||||
BOOTIMAGE_CORE_ID_r5fss1-0 = 6
|
|
||||||
BOOTIMAGE_CORE_ID_r5fss1-1 = 7
|
|
||||||
BOOTIMAGE_CORE_ID_m4fss0-0 = 14
|
|
||||||
SBL_RUN_ADDRESS=0x70000000
|
|
||||||
SBL_DEV_ID=55
|
|
||||||
|
|
||||||
MULTI_CORE_IMAGE_GEN = $(CCS_NODE) $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/multicoreImageGen/multicoreImageGen.js
|
|
||||||
OUTRPRC_CMD = $(CCS_NODE) $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/out2rprc/elf2rprc.js
|
|
||||||
APP_IMAGE_SIGN_CMD = $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/signing/appimage_x509_cert_gen.py
|
|
||||||
|
|
||||||
ifeq ($(OS),Windows_NT)
|
|
||||||
XIPGEN_CMD=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/xipGen/xipGen.exe
|
|
||||||
else
|
|
||||||
XIPGEN_CMD=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/xipGen/xipGen.out
|
|
||||||
endif
|
|
||||||
|
|
||||||
MULTI_CORE_IMAGE_PARAMS = \
|
|
||||||
$(BOOTIMAGE_RPRC_NAME)@$(BOOTIMAGE_CORE_ID_m4fss0-0) \
|
|
||||||
|
|
||||||
MULTI_CORE_IMAGE_PARAMS_XIP = \
|
|
||||||
$(BOOTIMAGE_RPRC_NAME_XIP)@$(BOOTIMAGE_CORE_ID_m4fss0-0) \
|
|
||||||
|
|
||||||
all:
|
|
||||||
ifeq ($(CCS_IDE_MODE),cloud)
|
|
||||||
# No post build steps
|
|
||||||
else
|
|
||||||
@echo Boot image: am243x:m4fss0-0:nortos:ti-arm-clang $(BOOTIMAGE_NAME) ...
|
|
||||||
$(OUTRPRC_CMD) $(OUTFILE) >> $(BOOTIMAGE_TEMP_OUT_FILE)
|
|
||||||
$(COPY) $(OUTNAME).rprc $(BOOTIMAGE_RPRC_NAME)
|
|
||||||
$(COPY) $(BOOTIMAGE_RPRC_NAME) $(BOOTIMAGE_RPRC_NAME_TMP)
|
|
||||||
$(RM) $(BOOTIMAGE_RPRC_NAME)
|
|
||||||
$(XIPGEN_CMD) -i $(BOOTIMAGE_RPRC_NAME_TMP) -o $(BOOTIMAGE_RPRC_NAME) -x $(BOOTIMAGE_RPRC_NAME_XIP) --flash-start-addr 0x60000000 -v > $(BOOTIMAGE_TEMP_OUT_FILE)
|
|
||||||
$(MULTI_CORE_IMAGE_GEN) --devID $(SBL_DEV_ID) --out $(BOOTIMAGE_NAME) $(MULTI_CORE_IMAGE_PARAMS) >> $(BOOTIMAGE_TEMP_OUT_FILE)
|
|
||||||
$(MULTI_CORE_IMAGE_GEN) --devID $(SBL_DEV_ID) --out $(BOOTIMAGE_NAME_XIP) $(MULTI_CORE_IMAGE_PARAMS_XIP) >> $(BOOTIMAGE_TEMP_OUT_FILE)
|
|
||||||
# Sign the appimage for HS-FS using appimage signing script
|
|
||||||
$(PYTHON) $(APP_IMAGE_SIGN_CMD) --bin $(BOOTIMAGE_NAME) --authtype 1 --key $(APP_SIGNING_KEY) --output $(BOOTIMAGE_NAME).hs_fs
|
|
||||||
ifeq ($(DEVICE_TYPE),HS)
|
|
||||||
# Sign the appimage using appimage signing script
|
|
||||||
ifeq ($(ENC_ENABLED),no)
|
|
||||||
@echo Boot image signing: Encryption is disabled.
|
|
||||||
$(PYTHON) $(APP_IMAGE_SIGN_CMD) --bin $(BOOTIMAGE_NAME) --authtype 1 --key $(APP_SIGNING_KEY) --output $(BOOTIMAGE_NAME).hs
|
|
||||||
else
|
|
||||||
@echo Boot image signing: Encryption is enabled.
|
|
||||||
$(PYTHON) $(APP_IMAGE_SIGN_CMD) --bin $(BOOTIMAGE_NAME) --authtype 1 --key $(APP_SIGNING_KEY) --enc y --enckey $(APP_ENCRYPTION_KEY) --output $(BOOTIMAGE_NAME).hs
|
|
||||||
$(RM) $(BOOTIMAGE_NAME)-enc
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
$(RM) $(BOOTIMAGE_RPRC_NAME_TMP)
|
|
||||||
@echo Boot image: am243x:m4fss0-0:nortos:ti-arm-clang $(BOOTIMAGE_NAME) Done !!!
|
|
||||||
@echo .
|
|
||||||
ifeq ($(DEVICE_TYPE),HS)
|
|
||||||
@echo Boot image: am243x:m4fss0-0:nortos:ti-arm-clang $(BOOTIMAGE_NAME).hs Done !!!
|
|
||||||
@echo .
|
|
||||||
else
|
|
||||||
@echo Boot image: am243x:m4fss0-0:nortos:ti-arm-clang $(BOOTIMAGE_NAME).hs_fs Done !!!
|
|
||||||
@echo .
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
@ -1,20 +0,0 @@
|
|||||||
#
|
|
||||||
# Auto generated makefile
|
|
||||||
#
|
|
||||||
|
|
||||||
export MOTOR_CONTROL_SDK_PATH?=$(abspath ../../../../../..)
|
|
||||||
include $(MOTOR_CONTROL_SDK_PATH)/imports.mak
|
|
||||||
|
|
||||||
PROFILE?=Release
|
|
||||||
|
|
||||||
PROJECT_NAME=dcl_pi_am243x-lp_m4fss0-0_nortos_ti-arm-clang
|
|
||||||
|
|
||||||
all:
|
|
||||||
$(CCS_ECLIPSE) -noSplash -data $(MOTOR_CONTROL_SDK_PATH)/ccs_projects -application com.ti.ccstudio.apps.projectBuild -ccs.projects $(PROJECT_NAME) -ccs.configuration $(PROFILE)
|
|
||||||
|
|
||||||
clean:
|
|
||||||
$(CCS_ECLIPSE) -noSplash -data $(MOTOR_CONTROL_SDK_PATH)/ccs_projects -application com.ti.ccstudio.apps.projectBuild -ccs.projects $(PROJECT_NAME) -ccs.configuration $(PROFILE) -ccs.clean
|
|
||||||
|
|
||||||
export:
|
|
||||||
$(MKDIR) $(MOTOR_CONTROL_SDK_PATH)/ccs_projects
|
|
||||||
$(CCS_ECLIPSE) -noSplash -data $(MOTOR_CONTROL_SDK_PATH)/ccs_projects -application com.ti.ccstudio.apps.projectCreate -ccs.projectSpec example.projectspec -ccs.overwrite full
|
|
||||||
@ -1,8 +0,0 @@
|
|||||||
/*
|
|
||||||
* ======== syscfg_c.rov.xs ========
|
|
||||||
* This file contains the information needed by the Runtime Object
|
|
||||||
* View (ROV) tool.
|
|
||||||
*/
|
|
||||||
var crovFiles = [
|
|
||||||
"kernel/freertos/rov/FreeRTOS.rov.js",
|
|
||||||
];
|
|
||||||
104
makefile.am243x
104
makefile.am243x
@ -48,20 +48,12 @@ help:
|
|||||||
@echo ======================
|
@echo ======================
|
||||||
@echo $(MAKE) -s -C examples/dcl/dcl_df22/am243x-evm/r5fss0-0_nortos/ti-arm-clang [all clean syscfg-gui syscfg]
|
@echo $(MAKE) -s -C examples/dcl/dcl_df22/am243x-evm/r5fss0-0_nortos/ti-arm-clang [all clean syscfg-gui syscfg]
|
||||||
@echo $(MAKE) -s -C examples/dcl/dcl_df22/am243x-evm/r5fss0-0_freertos/ti-arm-clang [all clean syscfg-gui syscfg]
|
@echo $(MAKE) -s -C examples/dcl/dcl_df22/am243x-evm/r5fss0-0_freertos/ti-arm-clang [all clean syscfg-gui syscfg]
|
||||||
@echo $(MAKE) -s -C examples/dcl/dcl_df22/am243x-evm/m4fss0-0_nortos/ti-arm-clang [all clean syscfg-gui syscfg]
|
|
||||||
@echo $(MAKE) -s -C examples/dcl/dcl_df22/am243x-evm/m4fss0-0_freertos/ti-arm-clang [all clean syscfg-gui syscfg]
|
|
||||||
@echo $(MAKE) -s -C examples/dcl/dcl_df22/am243x-lp/r5fss0-0_nortos/ti-arm-clang [all clean syscfg-gui syscfg]
|
@echo $(MAKE) -s -C examples/dcl/dcl_df22/am243x-lp/r5fss0-0_nortos/ti-arm-clang [all clean syscfg-gui syscfg]
|
||||||
@echo $(MAKE) -s -C examples/dcl/dcl_df22/am243x-lp/r5fss0-0_freertos/ti-arm-clang [all clean syscfg-gui syscfg]
|
@echo $(MAKE) -s -C examples/dcl/dcl_df22/am243x-lp/r5fss0-0_freertos/ti-arm-clang [all clean syscfg-gui syscfg]
|
||||||
@echo $(MAKE) -s -C examples/dcl/dcl_df22/am243x-lp/m4fss0-0_nortos/ti-arm-clang [all clean syscfg-gui syscfg]
|
|
||||||
@echo $(MAKE) -s -C examples/dcl/dcl_df22/am243x-lp/m4fss0-0_freertos/ti-arm-clang [all clean syscfg-gui syscfg]
|
|
||||||
@echo $(MAKE) -s -C examples/dcl/dcl_pi/am243x-evm/r5fss0-0_nortos/ti-arm-clang [all clean syscfg-gui syscfg]
|
@echo $(MAKE) -s -C examples/dcl/dcl_pi/am243x-evm/r5fss0-0_nortos/ti-arm-clang [all clean syscfg-gui syscfg]
|
||||||
@echo $(MAKE) -s -C examples/dcl/dcl_pi/am243x-evm/r5fss0-0_freertos/ti-arm-clang [all clean syscfg-gui syscfg]
|
@echo $(MAKE) -s -C examples/dcl/dcl_pi/am243x-evm/r5fss0-0_freertos/ti-arm-clang [all clean syscfg-gui syscfg]
|
||||||
@echo $(MAKE) -s -C examples/dcl/dcl_pi/am243x-evm/m4fss0-0_nortos/ti-arm-clang [all clean syscfg-gui syscfg]
|
|
||||||
@echo $(MAKE) -s -C examples/dcl/dcl_pi/am243x-evm/m4fss0-0_freertos/ti-arm-clang [all clean syscfg-gui syscfg]
|
|
||||||
@echo $(MAKE) -s -C examples/dcl/dcl_pi/am243x-lp/r5fss0-0_nortos/ti-arm-clang [all clean syscfg-gui syscfg]
|
@echo $(MAKE) -s -C examples/dcl/dcl_pi/am243x-lp/r5fss0-0_nortos/ti-arm-clang [all clean syscfg-gui syscfg]
|
||||||
@echo $(MAKE) -s -C examples/dcl/dcl_pi/am243x-lp/r5fss0-0_freertos/ti-arm-clang [all clean syscfg-gui syscfg]
|
@echo $(MAKE) -s -C examples/dcl/dcl_pi/am243x-lp/r5fss0-0_freertos/ti-arm-clang [all clean syscfg-gui syscfg]
|
||||||
@echo $(MAKE) -s -C examples/dcl/dcl_pi/am243x-lp/m4fss0-0_nortos/ti-arm-clang [all clean syscfg-gui syscfg]
|
|
||||||
@echo $(MAKE) -s -C examples/dcl/dcl_pi/am243x-lp/m4fss0-0_freertos/ti-arm-clang [all clean syscfg-gui syscfg]
|
|
||||||
@echo $(MAKE) -s -C examples/position_sense/endat_diagnostic/single_channel/am243x-evm/r5fss0-0_freertos/ti-arm-clang [all clean syscfg-gui syscfg]
|
@echo $(MAKE) -s -C examples/position_sense/endat_diagnostic/single_channel/am243x-evm/r5fss0-0_freertos/ti-arm-clang [all clean syscfg-gui syscfg]
|
||||||
@echo $(MAKE) -s -C examples/position_sense/endat_diagnostic/single_channel/am243x-lp/r5fss0-0_freertos/ti-arm-clang [all clean syscfg-gui syscfg]
|
@echo $(MAKE) -s -C examples/position_sense/endat_diagnostic/single_channel/am243x-lp/r5fss0-0_freertos/ti-arm-clang [all clean syscfg-gui syscfg]
|
||||||
@echo $(MAKE) -s -C examples/position_sense/endat_diagnostic/multi_channel_load_share/am243x-evm/r5fss0-0_freertos/ti-arm-clang [all clean syscfg-gui syscfg]
|
@echo $(MAKE) -s -C examples/position_sense/endat_diagnostic/multi_channel_load_share/am243x-evm/r5fss0-0_freertos/ti-arm-clang [all clean syscfg-gui syscfg]
|
||||||
@ -190,20 +182,12 @@ BUILD_COMBO_EXAMPLE_ALL =
|
|||||||
# Various Example Targets
|
# Various Example Targets
|
||||||
BUILD_COMBO_EXAMPLE_ALL += dcl_df22_am243x-evm_r5fss0-0_nortos_ti-arm-clang
|
BUILD_COMBO_EXAMPLE_ALL += dcl_df22_am243x-evm_r5fss0-0_nortos_ti-arm-clang
|
||||||
BUILD_COMBO_EXAMPLE_ALL += dcl_df22_am243x-evm_r5fss0-0_freertos_ti-arm-clang
|
BUILD_COMBO_EXAMPLE_ALL += dcl_df22_am243x-evm_r5fss0-0_freertos_ti-arm-clang
|
||||||
BUILD_COMBO_EXAMPLE_ALL += dcl_df22_am243x-evm_m4fss0-0_nortos_ti-arm-clang
|
|
||||||
BUILD_COMBO_EXAMPLE_ALL += dcl_df22_am243x-evm_m4fss0-0_freertos_ti-arm-clang
|
|
||||||
BUILD_COMBO_EXAMPLE_ALL += dcl_df22_am243x-lp_r5fss0-0_nortos_ti-arm-clang
|
BUILD_COMBO_EXAMPLE_ALL += dcl_df22_am243x-lp_r5fss0-0_nortos_ti-arm-clang
|
||||||
BUILD_COMBO_EXAMPLE_ALL += dcl_df22_am243x-lp_r5fss0-0_freertos_ti-arm-clang
|
BUILD_COMBO_EXAMPLE_ALL += dcl_df22_am243x-lp_r5fss0-0_freertos_ti-arm-clang
|
||||||
BUILD_COMBO_EXAMPLE_ALL += dcl_df22_am243x-lp_m4fss0-0_nortos_ti-arm-clang
|
|
||||||
BUILD_COMBO_EXAMPLE_ALL += dcl_df22_am243x-lp_m4fss0-0_freertos_ti-arm-clang
|
|
||||||
BUILD_COMBO_EXAMPLE_ALL += dcl_pi_am243x-evm_r5fss0-0_nortos_ti-arm-clang
|
BUILD_COMBO_EXAMPLE_ALL += dcl_pi_am243x-evm_r5fss0-0_nortos_ti-arm-clang
|
||||||
BUILD_COMBO_EXAMPLE_ALL += dcl_pi_am243x-evm_r5fss0-0_freertos_ti-arm-clang
|
BUILD_COMBO_EXAMPLE_ALL += dcl_pi_am243x-evm_r5fss0-0_freertos_ti-arm-clang
|
||||||
BUILD_COMBO_EXAMPLE_ALL += dcl_pi_am243x-evm_m4fss0-0_nortos_ti-arm-clang
|
|
||||||
BUILD_COMBO_EXAMPLE_ALL += dcl_pi_am243x-evm_m4fss0-0_freertos_ti-arm-clang
|
|
||||||
BUILD_COMBO_EXAMPLE_ALL += dcl_pi_am243x-lp_r5fss0-0_nortos_ti-arm-clang
|
BUILD_COMBO_EXAMPLE_ALL += dcl_pi_am243x-lp_r5fss0-0_nortos_ti-arm-clang
|
||||||
BUILD_COMBO_EXAMPLE_ALL += dcl_pi_am243x-lp_r5fss0-0_freertos_ti-arm-clang
|
BUILD_COMBO_EXAMPLE_ALL += dcl_pi_am243x-lp_r5fss0-0_freertos_ti-arm-clang
|
||||||
BUILD_COMBO_EXAMPLE_ALL += dcl_pi_am243x-lp_m4fss0-0_nortos_ti-arm-clang
|
|
||||||
BUILD_COMBO_EXAMPLE_ALL += dcl_pi_am243x-lp_m4fss0-0_freertos_ti-arm-clang
|
|
||||||
BUILD_COMBO_EXAMPLE_ALL += endat_diagnostic_single_channel_am243x-evm_r5fss0-0_freertos_ti-arm-clang
|
BUILD_COMBO_EXAMPLE_ALL += endat_diagnostic_single_channel_am243x-evm_r5fss0-0_freertos_ti-arm-clang
|
||||||
BUILD_COMBO_EXAMPLE_ALL += endat_diagnostic_single_channel_am243x-lp_r5fss0-0_freertos_ti-arm-clang
|
BUILD_COMBO_EXAMPLE_ALL += endat_diagnostic_single_channel_am243x-lp_r5fss0-0_freertos_ti-arm-clang
|
||||||
BUILD_COMBO_EXAMPLE_ALL += endat_diagnostic_multi_channel_load_share_am243x-evm_r5fss0-0_freertos_ti-arm-clang
|
BUILD_COMBO_EXAMPLE_ALL += endat_diagnostic_multi_channel_load_share_am243x-evm_r5fss0-0_freertos_ti-arm-clang
|
||||||
@ -247,48 +231,24 @@ examples-private: $(BUILD_COMBO_EXAMPLE_PRIVATE_ALL)
|
|||||||
dcl_df22_am243x-evm_r5fss0-0_freertos_ti-arm-clang:
|
dcl_df22_am243x-evm_r5fss0-0_freertos_ti-arm-clang:
|
||||||
$(MAKE) -C examples/dcl/dcl_df22/am243x-evm/r5fss0-0_freertos/ti-arm-clang -f makefile all
|
$(MAKE) -C examples/dcl/dcl_df22/am243x-evm/r5fss0-0_freertos/ti-arm-clang -f makefile all
|
||||||
|
|
||||||
dcl_df22_am243x-evm_m4fss0-0_nortos_ti-arm-clang:
|
|
||||||
$(MAKE) -C examples/dcl/dcl_df22/am243x-evm/m4fss0-0_nortos/ti-arm-clang -f makefile all
|
|
||||||
|
|
||||||
dcl_df22_am243x-evm_m4fss0-0_freertos_ti-arm-clang:
|
|
||||||
$(MAKE) -C examples/dcl/dcl_df22/am243x-evm/m4fss0-0_freertos/ti-arm-clang -f makefile all
|
|
||||||
|
|
||||||
dcl_df22_am243x-lp_r5fss0-0_nortos_ti-arm-clang:
|
dcl_df22_am243x-lp_r5fss0-0_nortos_ti-arm-clang:
|
||||||
$(MAKE) -C examples/dcl/dcl_df22/am243x-lp/r5fss0-0_nortos/ti-arm-clang -f makefile all
|
$(MAKE) -C examples/dcl/dcl_df22/am243x-lp/r5fss0-0_nortos/ti-arm-clang -f makefile all
|
||||||
|
|
||||||
dcl_df22_am243x-lp_r5fss0-0_freertos_ti-arm-clang:
|
dcl_df22_am243x-lp_r5fss0-0_freertos_ti-arm-clang:
|
||||||
$(MAKE) -C examples/dcl/dcl_df22/am243x-lp/r5fss0-0_freertos/ti-arm-clang -f makefile all
|
$(MAKE) -C examples/dcl/dcl_df22/am243x-lp/r5fss0-0_freertos/ti-arm-clang -f makefile all
|
||||||
|
|
||||||
dcl_df22_am243x-lp_m4fss0-0_nortos_ti-arm-clang:
|
|
||||||
$(MAKE) -C examples/dcl/dcl_df22/am243x-lp/m4fss0-0_nortos/ti-arm-clang -f makefile all
|
|
||||||
|
|
||||||
dcl_df22_am243x-lp_m4fss0-0_freertos_ti-arm-clang:
|
|
||||||
$(MAKE) -C examples/dcl/dcl_df22/am243x-lp/m4fss0-0_freertos/ti-arm-clang -f makefile all
|
|
||||||
|
|
||||||
dcl_pi_am243x-evm_r5fss0-0_nortos_ti-arm-clang:
|
dcl_pi_am243x-evm_r5fss0-0_nortos_ti-arm-clang:
|
||||||
$(MAKE) -C examples/dcl/dcl_pi/am243x-evm/r5fss0-0_nortos/ti-arm-clang -f makefile all
|
$(MAKE) -C examples/dcl/dcl_pi/am243x-evm/r5fss0-0_nortos/ti-arm-clang -f makefile all
|
||||||
|
|
||||||
dcl_pi_am243x-evm_r5fss0-0_freertos_ti-arm-clang:
|
dcl_pi_am243x-evm_r5fss0-0_freertos_ti-arm-clang:
|
||||||
$(MAKE) -C examples/dcl/dcl_pi/am243x-evm/r5fss0-0_freertos/ti-arm-clang -f makefile all
|
$(MAKE) -C examples/dcl/dcl_pi/am243x-evm/r5fss0-0_freertos/ti-arm-clang -f makefile all
|
||||||
|
|
||||||
dcl_pi_am243x-evm_m4fss0-0_nortos_ti-arm-clang:
|
|
||||||
$(MAKE) -C examples/dcl/dcl_pi/am243x-evm/m4fss0-0_nortos/ti-arm-clang -f makefile all
|
|
||||||
|
|
||||||
dcl_pi_am243x-evm_m4fss0-0_freertos_ti-arm-clang:
|
|
||||||
$(MAKE) -C examples/dcl/dcl_pi/am243x-evm/m4fss0-0_freertos/ti-arm-clang -f makefile all
|
|
||||||
|
|
||||||
dcl_pi_am243x-lp_r5fss0-0_nortos_ti-arm-clang:
|
dcl_pi_am243x-lp_r5fss0-0_nortos_ti-arm-clang:
|
||||||
$(MAKE) -C examples/dcl/dcl_pi/am243x-lp/r5fss0-0_nortos/ti-arm-clang -f makefile all
|
$(MAKE) -C examples/dcl/dcl_pi/am243x-lp/r5fss0-0_nortos/ti-arm-clang -f makefile all
|
||||||
|
|
||||||
dcl_pi_am243x-lp_r5fss0-0_freertos_ti-arm-clang:
|
dcl_pi_am243x-lp_r5fss0-0_freertos_ti-arm-clang:
|
||||||
$(MAKE) -C examples/dcl/dcl_pi/am243x-lp/r5fss0-0_freertos/ti-arm-clang -f makefile all
|
$(MAKE) -C examples/dcl/dcl_pi/am243x-lp/r5fss0-0_freertos/ti-arm-clang -f makefile all
|
||||||
|
|
||||||
dcl_pi_am243x-lp_m4fss0-0_nortos_ti-arm-clang:
|
|
||||||
$(MAKE) -C examples/dcl/dcl_pi/am243x-lp/m4fss0-0_nortos/ti-arm-clang -f makefile all
|
|
||||||
|
|
||||||
dcl_pi_am243x-lp_m4fss0-0_freertos_ti-arm-clang:
|
|
||||||
$(MAKE) -C examples/dcl/dcl_pi/am243x-lp/m4fss0-0_freertos/ti-arm-clang -f makefile all
|
|
||||||
|
|
||||||
endat_diagnostic_single_channel_am243x-evm_r5fss0-0_freertos_ti-arm-clang:
|
endat_diagnostic_single_channel_am243x-evm_r5fss0-0_freertos_ti-arm-clang:
|
||||||
$(MAKE) -C examples/position_sense/endat_diagnostic/single_channel/am243x-evm/r5fss0-0_freertos/ti-arm-clang -f makefile all
|
$(MAKE) -C examples/position_sense/endat_diagnostic/single_channel/am243x-evm/r5fss0-0_freertos/ti-arm-clang -f makefile all
|
||||||
|
|
||||||
@ -375,20 +335,12 @@ BUILD_COMBO_EXAMPLE_CLEAN_ALL =
|
|||||||
# Various Example Clean Targets
|
# Various Example Clean Targets
|
||||||
BUILD_COMBO_EXAMPLE_CLEAN_ALL += dcl_df22_am243x-evm_r5fss0-0_nortos_ti-arm-clang_clean
|
BUILD_COMBO_EXAMPLE_CLEAN_ALL += dcl_df22_am243x-evm_r5fss0-0_nortos_ti-arm-clang_clean
|
||||||
BUILD_COMBO_EXAMPLE_CLEAN_ALL += dcl_df22_am243x-evm_r5fss0-0_freertos_ti-arm-clang_clean
|
BUILD_COMBO_EXAMPLE_CLEAN_ALL += dcl_df22_am243x-evm_r5fss0-0_freertos_ti-arm-clang_clean
|
||||||
BUILD_COMBO_EXAMPLE_CLEAN_ALL += dcl_df22_am243x-evm_m4fss0-0_nortos_ti-arm-clang_clean
|
|
||||||
BUILD_COMBO_EXAMPLE_CLEAN_ALL += dcl_df22_am243x-evm_m4fss0-0_freertos_ti-arm-clang_clean
|
|
||||||
BUILD_COMBO_EXAMPLE_CLEAN_ALL += dcl_df22_am243x-lp_r5fss0-0_nortos_ti-arm-clang_clean
|
BUILD_COMBO_EXAMPLE_CLEAN_ALL += dcl_df22_am243x-lp_r5fss0-0_nortos_ti-arm-clang_clean
|
||||||
BUILD_COMBO_EXAMPLE_CLEAN_ALL += dcl_df22_am243x-lp_r5fss0-0_freertos_ti-arm-clang_clean
|
BUILD_COMBO_EXAMPLE_CLEAN_ALL += dcl_df22_am243x-lp_r5fss0-0_freertos_ti-arm-clang_clean
|
||||||
BUILD_COMBO_EXAMPLE_CLEAN_ALL += dcl_df22_am243x-lp_m4fss0-0_nortos_ti-arm-clang_clean
|
|
||||||
BUILD_COMBO_EXAMPLE_CLEAN_ALL += dcl_df22_am243x-lp_m4fss0-0_freertos_ti-arm-clang_clean
|
|
||||||
BUILD_COMBO_EXAMPLE_CLEAN_ALL += dcl_pi_am243x-evm_r5fss0-0_nortos_ti-arm-clang_clean
|
BUILD_COMBO_EXAMPLE_CLEAN_ALL += dcl_pi_am243x-evm_r5fss0-0_nortos_ti-arm-clang_clean
|
||||||
BUILD_COMBO_EXAMPLE_CLEAN_ALL += dcl_pi_am243x-evm_r5fss0-0_freertos_ti-arm-clang_clean
|
BUILD_COMBO_EXAMPLE_CLEAN_ALL += dcl_pi_am243x-evm_r5fss0-0_freertos_ti-arm-clang_clean
|
||||||
BUILD_COMBO_EXAMPLE_CLEAN_ALL += dcl_pi_am243x-evm_m4fss0-0_nortos_ti-arm-clang_clean
|
|
||||||
BUILD_COMBO_EXAMPLE_CLEAN_ALL += dcl_pi_am243x-evm_m4fss0-0_freertos_ti-arm-clang_clean
|
|
||||||
BUILD_COMBO_EXAMPLE_CLEAN_ALL += dcl_pi_am243x-lp_r5fss0-0_nortos_ti-arm-clang_clean
|
BUILD_COMBO_EXAMPLE_CLEAN_ALL += dcl_pi_am243x-lp_r5fss0-0_nortos_ti-arm-clang_clean
|
||||||
BUILD_COMBO_EXAMPLE_CLEAN_ALL += dcl_pi_am243x-lp_r5fss0-0_freertos_ti-arm-clang_clean
|
BUILD_COMBO_EXAMPLE_CLEAN_ALL += dcl_pi_am243x-lp_r5fss0-0_freertos_ti-arm-clang_clean
|
||||||
BUILD_COMBO_EXAMPLE_CLEAN_ALL += dcl_pi_am243x-lp_m4fss0-0_nortos_ti-arm-clang_clean
|
|
||||||
BUILD_COMBO_EXAMPLE_CLEAN_ALL += dcl_pi_am243x-lp_m4fss0-0_freertos_ti-arm-clang_clean
|
|
||||||
BUILD_COMBO_EXAMPLE_CLEAN_ALL += endat_diagnostic_single_channel_am243x-evm_r5fss0-0_freertos_ti-arm-clang_clean
|
BUILD_COMBO_EXAMPLE_CLEAN_ALL += endat_diagnostic_single_channel_am243x-evm_r5fss0-0_freertos_ti-arm-clang_clean
|
||||||
BUILD_COMBO_EXAMPLE_CLEAN_ALL += endat_diagnostic_single_channel_am243x-lp_r5fss0-0_freertos_ti-arm-clang_clean
|
BUILD_COMBO_EXAMPLE_CLEAN_ALL += endat_diagnostic_single_channel_am243x-lp_r5fss0-0_freertos_ti-arm-clang_clean
|
||||||
BUILD_COMBO_EXAMPLE_CLEAN_ALL += endat_diagnostic_multi_channel_load_share_am243x-evm_r5fss0-0_freertos_ti-arm-clang_clean
|
BUILD_COMBO_EXAMPLE_CLEAN_ALL += endat_diagnostic_multi_channel_load_share_am243x-evm_r5fss0-0_freertos_ti-arm-clang_clean
|
||||||
@ -432,48 +384,24 @@ examples-private-clean: $(BUILD_COMBO_EXAMPLE_PRIVATE_CLEAN_ALL)
|
|||||||
dcl_df22_am243x-evm_r5fss0-0_freertos_ti-arm-clang_clean:
|
dcl_df22_am243x-evm_r5fss0-0_freertos_ti-arm-clang_clean:
|
||||||
$(MAKE) -C examples/dcl/dcl_df22/am243x-evm/r5fss0-0_freertos/ti-arm-clang -f makefile clean
|
$(MAKE) -C examples/dcl/dcl_df22/am243x-evm/r5fss0-0_freertos/ti-arm-clang -f makefile clean
|
||||||
|
|
||||||
dcl_df22_am243x-evm_m4fss0-0_nortos_ti-arm-clang_clean:
|
|
||||||
$(MAKE) -C examples/dcl/dcl_df22/am243x-evm/m4fss0-0_nortos/ti-arm-clang -f makefile clean
|
|
||||||
|
|
||||||
dcl_df22_am243x-evm_m4fss0-0_freertos_ti-arm-clang_clean:
|
|
||||||
$(MAKE) -C examples/dcl/dcl_df22/am243x-evm/m4fss0-0_freertos/ti-arm-clang -f makefile clean
|
|
||||||
|
|
||||||
dcl_df22_am243x-lp_r5fss0-0_nortos_ti-arm-clang_clean:
|
dcl_df22_am243x-lp_r5fss0-0_nortos_ti-arm-clang_clean:
|
||||||
$(MAKE) -C examples/dcl/dcl_df22/am243x-lp/r5fss0-0_nortos/ti-arm-clang -f makefile clean
|
$(MAKE) -C examples/dcl/dcl_df22/am243x-lp/r5fss0-0_nortos/ti-arm-clang -f makefile clean
|
||||||
|
|
||||||
dcl_df22_am243x-lp_r5fss0-0_freertos_ti-arm-clang_clean:
|
dcl_df22_am243x-lp_r5fss0-0_freertos_ti-arm-clang_clean:
|
||||||
$(MAKE) -C examples/dcl/dcl_df22/am243x-lp/r5fss0-0_freertos/ti-arm-clang -f makefile clean
|
$(MAKE) -C examples/dcl/dcl_df22/am243x-lp/r5fss0-0_freertos/ti-arm-clang -f makefile clean
|
||||||
|
|
||||||
dcl_df22_am243x-lp_m4fss0-0_nortos_ti-arm-clang_clean:
|
|
||||||
$(MAKE) -C examples/dcl/dcl_df22/am243x-lp/m4fss0-0_nortos/ti-arm-clang -f makefile clean
|
|
||||||
|
|
||||||
dcl_df22_am243x-lp_m4fss0-0_freertos_ti-arm-clang_clean:
|
|
||||||
$(MAKE) -C examples/dcl/dcl_df22/am243x-lp/m4fss0-0_freertos/ti-arm-clang -f makefile clean
|
|
||||||
|
|
||||||
dcl_pi_am243x-evm_r5fss0-0_nortos_ti-arm-clang_clean:
|
dcl_pi_am243x-evm_r5fss0-0_nortos_ti-arm-clang_clean:
|
||||||
$(MAKE) -C examples/dcl/dcl_pi/am243x-evm/r5fss0-0_nortos/ti-arm-clang -f makefile clean
|
$(MAKE) -C examples/dcl/dcl_pi/am243x-evm/r5fss0-0_nortos/ti-arm-clang -f makefile clean
|
||||||
|
|
||||||
dcl_pi_am243x-evm_r5fss0-0_freertos_ti-arm-clang_clean:
|
dcl_pi_am243x-evm_r5fss0-0_freertos_ti-arm-clang_clean:
|
||||||
$(MAKE) -C examples/dcl/dcl_pi/am243x-evm/r5fss0-0_freertos/ti-arm-clang -f makefile clean
|
$(MAKE) -C examples/dcl/dcl_pi/am243x-evm/r5fss0-0_freertos/ti-arm-clang -f makefile clean
|
||||||
|
|
||||||
dcl_pi_am243x-evm_m4fss0-0_nortos_ti-arm-clang_clean:
|
|
||||||
$(MAKE) -C examples/dcl/dcl_pi/am243x-evm/m4fss0-0_nortos/ti-arm-clang -f makefile clean
|
|
||||||
|
|
||||||
dcl_pi_am243x-evm_m4fss0-0_freertos_ti-arm-clang_clean:
|
|
||||||
$(MAKE) -C examples/dcl/dcl_pi/am243x-evm/m4fss0-0_freertos/ti-arm-clang -f makefile clean
|
|
||||||
|
|
||||||
dcl_pi_am243x-lp_r5fss0-0_nortos_ti-arm-clang_clean:
|
dcl_pi_am243x-lp_r5fss0-0_nortos_ti-arm-clang_clean:
|
||||||
$(MAKE) -C examples/dcl/dcl_pi/am243x-lp/r5fss0-0_nortos/ti-arm-clang -f makefile clean
|
$(MAKE) -C examples/dcl/dcl_pi/am243x-lp/r5fss0-0_nortos/ti-arm-clang -f makefile clean
|
||||||
|
|
||||||
dcl_pi_am243x-lp_r5fss0-0_freertos_ti-arm-clang_clean:
|
dcl_pi_am243x-lp_r5fss0-0_freertos_ti-arm-clang_clean:
|
||||||
$(MAKE) -C examples/dcl/dcl_pi/am243x-lp/r5fss0-0_freertos/ti-arm-clang -f makefile clean
|
$(MAKE) -C examples/dcl/dcl_pi/am243x-lp/r5fss0-0_freertos/ti-arm-clang -f makefile clean
|
||||||
|
|
||||||
dcl_pi_am243x-lp_m4fss0-0_nortos_ti-arm-clang_clean:
|
|
||||||
$(MAKE) -C examples/dcl/dcl_pi/am243x-lp/m4fss0-0_nortos/ti-arm-clang -f makefile clean
|
|
||||||
|
|
||||||
dcl_pi_am243x-lp_m4fss0-0_freertos_ti-arm-clang_clean:
|
|
||||||
$(MAKE) -C examples/dcl/dcl_pi/am243x-lp/m4fss0-0_freertos/ti-arm-clang -f makefile clean
|
|
||||||
|
|
||||||
endat_diagnostic_single_channel_am243x-evm_r5fss0-0_freertos_ti-arm-clang_clean:
|
endat_diagnostic_single_channel_am243x-evm_r5fss0-0_freertos_ti-arm-clang_clean:
|
||||||
$(MAKE) -C examples/position_sense/endat_diagnostic/single_channel/am243x-evm/r5fss0-0_freertos/ti-arm-clang -f makefile clean
|
$(MAKE) -C examples/position_sense/endat_diagnostic/single_channel/am243x-evm/r5fss0-0_freertos/ti-arm-clang -f makefile clean
|
||||||
|
|
||||||
@ -560,20 +488,12 @@ BUILD_COMBO_EXAMPLE_SCRUB_ALL =
|
|||||||
# Various Example Scrub Targets
|
# Various Example Scrub Targets
|
||||||
BUILD_COMBO_EXAMPLE_SCRUB_ALL += dcl_df22_am243x-evm_r5fss0-0_nortos_ti-arm-clang_scrub
|
BUILD_COMBO_EXAMPLE_SCRUB_ALL += dcl_df22_am243x-evm_r5fss0-0_nortos_ti-arm-clang_scrub
|
||||||
BUILD_COMBO_EXAMPLE_SCRUB_ALL += dcl_df22_am243x-evm_r5fss0-0_freertos_ti-arm-clang_scrub
|
BUILD_COMBO_EXAMPLE_SCRUB_ALL += dcl_df22_am243x-evm_r5fss0-0_freertos_ti-arm-clang_scrub
|
||||||
BUILD_COMBO_EXAMPLE_SCRUB_ALL += dcl_df22_am243x-evm_m4fss0-0_nortos_ti-arm-clang_scrub
|
|
||||||
BUILD_COMBO_EXAMPLE_SCRUB_ALL += dcl_df22_am243x-evm_m4fss0-0_freertos_ti-arm-clang_scrub
|
|
||||||
BUILD_COMBO_EXAMPLE_SCRUB_ALL += dcl_df22_am243x-lp_r5fss0-0_nortos_ti-arm-clang_scrub
|
BUILD_COMBO_EXAMPLE_SCRUB_ALL += dcl_df22_am243x-lp_r5fss0-0_nortos_ti-arm-clang_scrub
|
||||||
BUILD_COMBO_EXAMPLE_SCRUB_ALL += dcl_df22_am243x-lp_r5fss0-0_freertos_ti-arm-clang_scrub
|
BUILD_COMBO_EXAMPLE_SCRUB_ALL += dcl_df22_am243x-lp_r5fss0-0_freertos_ti-arm-clang_scrub
|
||||||
BUILD_COMBO_EXAMPLE_SCRUB_ALL += dcl_df22_am243x-lp_m4fss0-0_nortos_ti-arm-clang_scrub
|
|
||||||
BUILD_COMBO_EXAMPLE_SCRUB_ALL += dcl_df22_am243x-lp_m4fss0-0_freertos_ti-arm-clang_scrub
|
|
||||||
BUILD_COMBO_EXAMPLE_SCRUB_ALL += dcl_pi_am243x-evm_r5fss0-0_nortos_ti-arm-clang_scrub
|
BUILD_COMBO_EXAMPLE_SCRUB_ALL += dcl_pi_am243x-evm_r5fss0-0_nortos_ti-arm-clang_scrub
|
||||||
BUILD_COMBO_EXAMPLE_SCRUB_ALL += dcl_pi_am243x-evm_r5fss0-0_freertos_ti-arm-clang_scrub
|
BUILD_COMBO_EXAMPLE_SCRUB_ALL += dcl_pi_am243x-evm_r5fss0-0_freertos_ti-arm-clang_scrub
|
||||||
BUILD_COMBO_EXAMPLE_SCRUB_ALL += dcl_pi_am243x-evm_m4fss0-0_nortos_ti-arm-clang_scrub
|
|
||||||
BUILD_COMBO_EXAMPLE_SCRUB_ALL += dcl_pi_am243x-evm_m4fss0-0_freertos_ti-arm-clang_scrub
|
|
||||||
BUILD_COMBO_EXAMPLE_SCRUB_ALL += dcl_pi_am243x-lp_r5fss0-0_nortos_ti-arm-clang_scrub
|
BUILD_COMBO_EXAMPLE_SCRUB_ALL += dcl_pi_am243x-lp_r5fss0-0_nortos_ti-arm-clang_scrub
|
||||||
BUILD_COMBO_EXAMPLE_SCRUB_ALL += dcl_pi_am243x-lp_r5fss0-0_freertos_ti-arm-clang_scrub
|
BUILD_COMBO_EXAMPLE_SCRUB_ALL += dcl_pi_am243x-lp_r5fss0-0_freertos_ti-arm-clang_scrub
|
||||||
BUILD_COMBO_EXAMPLE_SCRUB_ALL += dcl_pi_am243x-lp_m4fss0-0_nortos_ti-arm-clang_scrub
|
|
||||||
BUILD_COMBO_EXAMPLE_SCRUB_ALL += dcl_pi_am243x-lp_m4fss0-0_freertos_ti-arm-clang_scrub
|
|
||||||
BUILD_COMBO_EXAMPLE_SCRUB_ALL += endat_diagnostic_single_channel_am243x-evm_r5fss0-0_freertos_ti-arm-clang_scrub
|
BUILD_COMBO_EXAMPLE_SCRUB_ALL += endat_diagnostic_single_channel_am243x-evm_r5fss0-0_freertos_ti-arm-clang_scrub
|
||||||
BUILD_COMBO_EXAMPLE_SCRUB_ALL += endat_diagnostic_single_channel_am243x-lp_r5fss0-0_freertos_ti-arm-clang_scrub
|
BUILD_COMBO_EXAMPLE_SCRUB_ALL += endat_diagnostic_single_channel_am243x-lp_r5fss0-0_freertos_ti-arm-clang_scrub
|
||||||
BUILD_COMBO_EXAMPLE_SCRUB_ALL += endat_diagnostic_multi_channel_load_share_am243x-evm_r5fss0-0_freertos_ti-arm-clang_scrub
|
BUILD_COMBO_EXAMPLE_SCRUB_ALL += endat_diagnostic_multi_channel_load_share_am243x-evm_r5fss0-0_freertos_ti-arm-clang_scrub
|
||||||
@ -617,48 +537,24 @@ examples-scrub-private: $(BUILD_COMBO_EXAMPLE_PRIVATE_SCRUB_ALL)
|
|||||||
dcl_df22_am243x-evm_r5fss0-0_freertos_ti-arm-clang_scrub:
|
dcl_df22_am243x-evm_r5fss0-0_freertos_ti-arm-clang_scrub:
|
||||||
$(MAKE) -C examples/dcl/dcl_df22/am243x-evm/r5fss0-0_freertos/ti-arm-clang -f makefile scrub
|
$(MAKE) -C examples/dcl/dcl_df22/am243x-evm/r5fss0-0_freertos/ti-arm-clang -f makefile scrub
|
||||||
|
|
||||||
dcl_df22_am243x-evm_m4fss0-0_nortos_ti-arm-clang_scrub:
|
|
||||||
$(MAKE) -C examples/dcl/dcl_df22/am243x-evm/m4fss0-0_nortos/ti-arm-clang -f makefile scrub
|
|
||||||
|
|
||||||
dcl_df22_am243x-evm_m4fss0-0_freertos_ti-arm-clang_scrub:
|
|
||||||
$(MAKE) -C examples/dcl/dcl_df22/am243x-evm/m4fss0-0_freertos/ti-arm-clang -f makefile scrub
|
|
||||||
|
|
||||||
dcl_df22_am243x-lp_r5fss0-0_nortos_ti-arm-clang_scrub:
|
dcl_df22_am243x-lp_r5fss0-0_nortos_ti-arm-clang_scrub:
|
||||||
$(MAKE) -C examples/dcl/dcl_df22/am243x-lp/r5fss0-0_nortos/ti-arm-clang -f makefile scrub
|
$(MAKE) -C examples/dcl/dcl_df22/am243x-lp/r5fss0-0_nortos/ti-arm-clang -f makefile scrub
|
||||||
|
|
||||||
dcl_df22_am243x-lp_r5fss0-0_freertos_ti-arm-clang_scrub:
|
dcl_df22_am243x-lp_r5fss0-0_freertos_ti-arm-clang_scrub:
|
||||||
$(MAKE) -C examples/dcl/dcl_df22/am243x-lp/r5fss0-0_freertos/ti-arm-clang -f makefile scrub
|
$(MAKE) -C examples/dcl/dcl_df22/am243x-lp/r5fss0-0_freertos/ti-arm-clang -f makefile scrub
|
||||||
|
|
||||||
dcl_df22_am243x-lp_m4fss0-0_nortos_ti-arm-clang_scrub:
|
|
||||||
$(MAKE) -C examples/dcl/dcl_df22/am243x-lp/m4fss0-0_nortos/ti-arm-clang -f makefile scrub
|
|
||||||
|
|
||||||
dcl_df22_am243x-lp_m4fss0-0_freertos_ti-arm-clang_scrub:
|
|
||||||
$(MAKE) -C examples/dcl/dcl_df22/am243x-lp/m4fss0-0_freertos/ti-arm-clang -f makefile scrub
|
|
||||||
|
|
||||||
dcl_pi_am243x-evm_r5fss0-0_nortos_ti-arm-clang_scrub:
|
dcl_pi_am243x-evm_r5fss0-0_nortos_ti-arm-clang_scrub:
|
||||||
$(MAKE) -C examples/dcl/dcl_pi/am243x-evm/r5fss0-0_nortos/ti-arm-clang -f makefile scrub
|
$(MAKE) -C examples/dcl/dcl_pi/am243x-evm/r5fss0-0_nortos/ti-arm-clang -f makefile scrub
|
||||||
|
|
||||||
dcl_pi_am243x-evm_r5fss0-0_freertos_ti-arm-clang_scrub:
|
dcl_pi_am243x-evm_r5fss0-0_freertos_ti-arm-clang_scrub:
|
||||||
$(MAKE) -C examples/dcl/dcl_pi/am243x-evm/r5fss0-0_freertos/ti-arm-clang -f makefile scrub
|
$(MAKE) -C examples/dcl/dcl_pi/am243x-evm/r5fss0-0_freertos/ti-arm-clang -f makefile scrub
|
||||||
|
|
||||||
dcl_pi_am243x-evm_m4fss0-0_nortos_ti-arm-clang_scrub:
|
|
||||||
$(MAKE) -C examples/dcl/dcl_pi/am243x-evm/m4fss0-0_nortos/ti-arm-clang -f makefile scrub
|
|
||||||
|
|
||||||
dcl_pi_am243x-evm_m4fss0-0_freertos_ti-arm-clang_scrub:
|
|
||||||
$(MAKE) -C examples/dcl/dcl_pi/am243x-evm/m4fss0-0_freertos/ti-arm-clang -f makefile scrub
|
|
||||||
|
|
||||||
dcl_pi_am243x-lp_r5fss0-0_nortos_ti-arm-clang_scrub:
|
dcl_pi_am243x-lp_r5fss0-0_nortos_ti-arm-clang_scrub:
|
||||||
$(MAKE) -C examples/dcl/dcl_pi/am243x-lp/r5fss0-0_nortos/ti-arm-clang -f makefile scrub
|
$(MAKE) -C examples/dcl/dcl_pi/am243x-lp/r5fss0-0_nortos/ti-arm-clang -f makefile scrub
|
||||||
|
|
||||||
dcl_pi_am243x-lp_r5fss0-0_freertos_ti-arm-clang_scrub:
|
dcl_pi_am243x-lp_r5fss0-0_freertos_ti-arm-clang_scrub:
|
||||||
$(MAKE) -C examples/dcl/dcl_pi/am243x-lp/r5fss0-0_freertos/ti-arm-clang -f makefile scrub
|
$(MAKE) -C examples/dcl/dcl_pi/am243x-lp/r5fss0-0_freertos/ti-arm-clang -f makefile scrub
|
||||||
|
|
||||||
dcl_pi_am243x-lp_m4fss0-0_nortos_ti-arm-clang_scrub:
|
|
||||||
$(MAKE) -C examples/dcl/dcl_pi/am243x-lp/m4fss0-0_nortos/ti-arm-clang -f makefile scrub
|
|
||||||
|
|
||||||
dcl_pi_am243x-lp_m4fss0-0_freertos_ti-arm-clang_scrub:
|
|
||||||
$(MAKE) -C examples/dcl/dcl_pi/am243x-lp/m4fss0-0_freertos/ti-arm-clang -f makefile scrub
|
|
||||||
|
|
||||||
endat_diagnostic_single_channel_am243x-evm_r5fss0-0_freertos_ti-arm-clang_scrub:
|
endat_diagnostic_single_channel_am243x-evm_r5fss0-0_freertos_ti-arm-clang_scrub:
|
||||||
$(MAKE) -C examples/position_sense/endat_diagnostic/single_channel/am243x-evm/r5fss0-0_freertos/ti-arm-clang -f makefile scrub
|
$(MAKE) -C examples/position_sense/endat_diagnostic/single_channel/am243x-evm/r5fss0-0_freertos/ti-arm-clang -f makefile scrub
|
||||||
|
|
||||||
|
|||||||
@ -9,20 +9,12 @@ BUILD_COMBO_EXAMPLE_PROJECTSPEC_BUILD_ALL =
|
|||||||
# Various Example Projectspec Build Targets
|
# Various Example Projectspec Build Targets
|
||||||
BUILD_COMBO_EXAMPLE_PROJECTSPEC_BUILD_ALL += dcl_df22_am243x-evm_r5fss0-0_nortos_ti-arm-clang_build
|
BUILD_COMBO_EXAMPLE_PROJECTSPEC_BUILD_ALL += dcl_df22_am243x-evm_r5fss0-0_nortos_ti-arm-clang_build
|
||||||
BUILD_COMBO_EXAMPLE_PROJECTSPEC_BUILD_ALL += dcl_df22_am243x-evm_r5fss0-0_freertos_ti-arm-clang_build
|
BUILD_COMBO_EXAMPLE_PROJECTSPEC_BUILD_ALL += dcl_df22_am243x-evm_r5fss0-0_freertos_ti-arm-clang_build
|
||||||
BUILD_COMBO_EXAMPLE_PROJECTSPEC_BUILD_ALL += dcl_df22_am243x-evm_m4fss0-0_nortos_ti-arm-clang_build
|
|
||||||
BUILD_COMBO_EXAMPLE_PROJECTSPEC_BUILD_ALL += dcl_df22_am243x-evm_m4fss0-0_freertos_ti-arm-clang_build
|
|
||||||
BUILD_COMBO_EXAMPLE_PROJECTSPEC_BUILD_ALL += dcl_df22_am243x-lp_r5fss0-0_nortos_ti-arm-clang_build
|
BUILD_COMBO_EXAMPLE_PROJECTSPEC_BUILD_ALL += dcl_df22_am243x-lp_r5fss0-0_nortos_ti-arm-clang_build
|
||||||
BUILD_COMBO_EXAMPLE_PROJECTSPEC_BUILD_ALL += dcl_df22_am243x-lp_r5fss0-0_freertos_ti-arm-clang_build
|
BUILD_COMBO_EXAMPLE_PROJECTSPEC_BUILD_ALL += dcl_df22_am243x-lp_r5fss0-0_freertos_ti-arm-clang_build
|
||||||
BUILD_COMBO_EXAMPLE_PROJECTSPEC_BUILD_ALL += dcl_df22_am243x-lp_m4fss0-0_nortos_ti-arm-clang_build
|
|
||||||
BUILD_COMBO_EXAMPLE_PROJECTSPEC_BUILD_ALL += dcl_df22_am243x-lp_m4fss0-0_freertos_ti-arm-clang_build
|
|
||||||
BUILD_COMBO_EXAMPLE_PROJECTSPEC_BUILD_ALL += dcl_pi_am243x-evm_r5fss0-0_nortos_ti-arm-clang_build
|
BUILD_COMBO_EXAMPLE_PROJECTSPEC_BUILD_ALL += dcl_pi_am243x-evm_r5fss0-0_nortos_ti-arm-clang_build
|
||||||
BUILD_COMBO_EXAMPLE_PROJECTSPEC_BUILD_ALL += dcl_pi_am243x-evm_r5fss0-0_freertos_ti-arm-clang_build
|
BUILD_COMBO_EXAMPLE_PROJECTSPEC_BUILD_ALL += dcl_pi_am243x-evm_r5fss0-0_freertos_ti-arm-clang_build
|
||||||
BUILD_COMBO_EXAMPLE_PROJECTSPEC_BUILD_ALL += dcl_pi_am243x-evm_m4fss0-0_nortos_ti-arm-clang_build
|
|
||||||
BUILD_COMBO_EXAMPLE_PROJECTSPEC_BUILD_ALL += dcl_pi_am243x-evm_m4fss0-0_freertos_ti-arm-clang_build
|
|
||||||
BUILD_COMBO_EXAMPLE_PROJECTSPEC_BUILD_ALL += dcl_pi_am243x-lp_r5fss0-0_nortos_ti-arm-clang_build
|
BUILD_COMBO_EXAMPLE_PROJECTSPEC_BUILD_ALL += dcl_pi_am243x-lp_r5fss0-0_nortos_ti-arm-clang_build
|
||||||
BUILD_COMBO_EXAMPLE_PROJECTSPEC_BUILD_ALL += dcl_pi_am243x-lp_r5fss0-0_freertos_ti-arm-clang_build
|
BUILD_COMBO_EXAMPLE_PROJECTSPEC_BUILD_ALL += dcl_pi_am243x-lp_r5fss0-0_freertos_ti-arm-clang_build
|
||||||
BUILD_COMBO_EXAMPLE_PROJECTSPEC_BUILD_ALL += dcl_pi_am243x-lp_m4fss0-0_nortos_ti-arm-clang_build
|
|
||||||
BUILD_COMBO_EXAMPLE_PROJECTSPEC_BUILD_ALL += dcl_pi_am243x-lp_m4fss0-0_freertos_ti-arm-clang_build
|
|
||||||
BUILD_COMBO_EXAMPLE_PROJECTSPEC_BUILD_ALL += endat_diagnostic_single_channel_am243x-evm_r5fss0-0_freertos_ti-arm-clang_build
|
BUILD_COMBO_EXAMPLE_PROJECTSPEC_BUILD_ALL += endat_diagnostic_single_channel_am243x-evm_r5fss0-0_freertos_ti-arm-clang_build
|
||||||
BUILD_COMBO_EXAMPLE_PROJECTSPEC_BUILD_ALL += endat_diagnostic_single_channel_am243x-lp_r5fss0-0_freertos_ti-arm-clang_build
|
BUILD_COMBO_EXAMPLE_PROJECTSPEC_BUILD_ALL += endat_diagnostic_single_channel_am243x-lp_r5fss0-0_freertos_ti-arm-clang_build
|
||||||
BUILD_COMBO_EXAMPLE_PROJECTSPEC_BUILD_ALL += endat_diagnostic_multi_channel_load_share_am243x-evm_r5fss0-0_freertos_ti-arm-clang_build
|
BUILD_COMBO_EXAMPLE_PROJECTSPEC_BUILD_ALL += endat_diagnostic_multi_channel_load_share_am243x-evm_r5fss0-0_freertos_ti-arm-clang_build
|
||||||
@ -66,48 +58,24 @@ all-private: $(BUILD_COMBO_EXAMPLE_PROJECTSPEC_BUILD_PRIVATE_ALL)
|
|||||||
dcl_df22_am243x-evm_r5fss0-0_freertos_ti-arm-clang_build:
|
dcl_df22_am243x-evm_r5fss0-0_freertos_ti-arm-clang_build:
|
||||||
$(MAKE) -C examples/dcl/dcl_df22/am243x-evm/r5fss0-0_freertos/ti-arm-clang -f makefile_projectspec all
|
$(MAKE) -C examples/dcl/dcl_df22/am243x-evm/r5fss0-0_freertos/ti-arm-clang -f makefile_projectspec all
|
||||||
|
|
||||||
dcl_df22_am243x-evm_m4fss0-0_nortos_ti-arm-clang_build:
|
|
||||||
$(MAKE) -C examples/dcl/dcl_df22/am243x-evm/m4fss0-0_nortos/ti-arm-clang -f makefile_projectspec all
|
|
||||||
|
|
||||||
dcl_df22_am243x-evm_m4fss0-0_freertos_ti-arm-clang_build:
|
|
||||||
$(MAKE) -C examples/dcl/dcl_df22/am243x-evm/m4fss0-0_freertos/ti-arm-clang -f makefile_projectspec all
|
|
||||||
|
|
||||||
dcl_df22_am243x-lp_r5fss0-0_nortos_ti-arm-clang_build:
|
dcl_df22_am243x-lp_r5fss0-0_nortos_ti-arm-clang_build:
|
||||||
$(MAKE) -C examples/dcl/dcl_df22/am243x-lp/r5fss0-0_nortos/ti-arm-clang -f makefile_projectspec all
|
$(MAKE) -C examples/dcl/dcl_df22/am243x-lp/r5fss0-0_nortos/ti-arm-clang -f makefile_projectspec all
|
||||||
|
|
||||||
dcl_df22_am243x-lp_r5fss0-0_freertos_ti-arm-clang_build:
|
dcl_df22_am243x-lp_r5fss0-0_freertos_ti-arm-clang_build:
|
||||||
$(MAKE) -C examples/dcl/dcl_df22/am243x-lp/r5fss0-0_freertos/ti-arm-clang -f makefile_projectspec all
|
$(MAKE) -C examples/dcl/dcl_df22/am243x-lp/r5fss0-0_freertos/ti-arm-clang -f makefile_projectspec all
|
||||||
|
|
||||||
dcl_df22_am243x-lp_m4fss0-0_nortos_ti-arm-clang_build:
|
|
||||||
$(MAKE) -C examples/dcl/dcl_df22/am243x-lp/m4fss0-0_nortos/ti-arm-clang -f makefile_projectspec all
|
|
||||||
|
|
||||||
dcl_df22_am243x-lp_m4fss0-0_freertos_ti-arm-clang_build:
|
|
||||||
$(MAKE) -C examples/dcl/dcl_df22/am243x-lp/m4fss0-0_freertos/ti-arm-clang -f makefile_projectspec all
|
|
||||||
|
|
||||||
dcl_pi_am243x-evm_r5fss0-0_nortos_ti-arm-clang_build:
|
dcl_pi_am243x-evm_r5fss0-0_nortos_ti-arm-clang_build:
|
||||||
$(MAKE) -C examples/dcl/dcl_pi/am243x-evm/r5fss0-0_nortos/ti-arm-clang -f makefile_projectspec all
|
$(MAKE) -C examples/dcl/dcl_pi/am243x-evm/r5fss0-0_nortos/ti-arm-clang -f makefile_projectspec all
|
||||||
|
|
||||||
dcl_pi_am243x-evm_r5fss0-0_freertos_ti-arm-clang_build:
|
dcl_pi_am243x-evm_r5fss0-0_freertos_ti-arm-clang_build:
|
||||||
$(MAKE) -C examples/dcl/dcl_pi/am243x-evm/r5fss0-0_freertos/ti-arm-clang -f makefile_projectspec all
|
$(MAKE) -C examples/dcl/dcl_pi/am243x-evm/r5fss0-0_freertos/ti-arm-clang -f makefile_projectspec all
|
||||||
|
|
||||||
dcl_pi_am243x-evm_m4fss0-0_nortos_ti-arm-clang_build:
|
|
||||||
$(MAKE) -C examples/dcl/dcl_pi/am243x-evm/m4fss0-0_nortos/ti-arm-clang -f makefile_projectspec all
|
|
||||||
|
|
||||||
dcl_pi_am243x-evm_m4fss0-0_freertos_ti-arm-clang_build:
|
|
||||||
$(MAKE) -C examples/dcl/dcl_pi/am243x-evm/m4fss0-0_freertos/ti-arm-clang -f makefile_projectspec all
|
|
||||||
|
|
||||||
dcl_pi_am243x-lp_r5fss0-0_nortos_ti-arm-clang_build:
|
dcl_pi_am243x-lp_r5fss0-0_nortos_ti-arm-clang_build:
|
||||||
$(MAKE) -C examples/dcl/dcl_pi/am243x-lp/r5fss0-0_nortos/ti-arm-clang -f makefile_projectspec all
|
$(MAKE) -C examples/dcl/dcl_pi/am243x-lp/r5fss0-0_nortos/ti-arm-clang -f makefile_projectspec all
|
||||||
|
|
||||||
dcl_pi_am243x-lp_r5fss0-0_freertos_ti-arm-clang_build:
|
dcl_pi_am243x-lp_r5fss0-0_freertos_ti-arm-clang_build:
|
||||||
$(MAKE) -C examples/dcl/dcl_pi/am243x-lp/r5fss0-0_freertos/ti-arm-clang -f makefile_projectspec all
|
$(MAKE) -C examples/dcl/dcl_pi/am243x-lp/r5fss0-0_freertos/ti-arm-clang -f makefile_projectspec all
|
||||||
|
|
||||||
dcl_pi_am243x-lp_m4fss0-0_nortos_ti-arm-clang_build:
|
|
||||||
$(MAKE) -C examples/dcl/dcl_pi/am243x-lp/m4fss0-0_nortos/ti-arm-clang -f makefile_projectspec all
|
|
||||||
|
|
||||||
dcl_pi_am243x-lp_m4fss0-0_freertos_ti-arm-clang_build:
|
|
||||||
$(MAKE) -C examples/dcl/dcl_pi/am243x-lp/m4fss0-0_freertos/ti-arm-clang -f makefile_projectspec all
|
|
||||||
|
|
||||||
endat_diagnostic_single_channel_am243x-evm_r5fss0-0_freertos_ti-arm-clang_build:
|
endat_diagnostic_single_channel_am243x-evm_r5fss0-0_freertos_ti-arm-clang_build:
|
||||||
$(MAKE) -C examples/position_sense/endat_diagnostic/single_channel/am243x-evm/r5fss0-0_freertos/ti-arm-clang -f makefile_projectspec all
|
$(MAKE) -C examples/position_sense/endat_diagnostic/single_channel/am243x-evm/r5fss0-0_freertos/ti-arm-clang -f makefile_projectspec all
|
||||||
|
|
||||||
@ -195,20 +163,12 @@ BUILD_COMBO_EXAMPLE_PROJECTSPEC_CLEAN_ALL =
|
|||||||
# Various Example Projectspec Clean Targets
|
# Various Example Projectspec Clean Targets
|
||||||
BUILD_COMBO_EXAMPLE_PROJECTSPEC_CLEAN_ALL += dcl_df22_am243x-evm_r5fss0-0_nortos_ti-arm-clang_clean
|
BUILD_COMBO_EXAMPLE_PROJECTSPEC_CLEAN_ALL += dcl_df22_am243x-evm_r5fss0-0_nortos_ti-arm-clang_clean
|
||||||
BUILD_COMBO_EXAMPLE_PROJECTSPEC_CLEAN_ALL += dcl_df22_am243x-evm_r5fss0-0_freertos_ti-arm-clang_clean
|
BUILD_COMBO_EXAMPLE_PROJECTSPEC_CLEAN_ALL += dcl_df22_am243x-evm_r5fss0-0_freertos_ti-arm-clang_clean
|
||||||
BUILD_COMBO_EXAMPLE_PROJECTSPEC_CLEAN_ALL += dcl_df22_am243x-evm_m4fss0-0_nortos_ti-arm-clang_clean
|
|
||||||
BUILD_COMBO_EXAMPLE_PROJECTSPEC_CLEAN_ALL += dcl_df22_am243x-evm_m4fss0-0_freertos_ti-arm-clang_clean
|
|
||||||
BUILD_COMBO_EXAMPLE_PROJECTSPEC_CLEAN_ALL += dcl_df22_am243x-lp_r5fss0-0_nortos_ti-arm-clang_clean
|
BUILD_COMBO_EXAMPLE_PROJECTSPEC_CLEAN_ALL += dcl_df22_am243x-lp_r5fss0-0_nortos_ti-arm-clang_clean
|
||||||
BUILD_COMBO_EXAMPLE_PROJECTSPEC_CLEAN_ALL += dcl_df22_am243x-lp_r5fss0-0_freertos_ti-arm-clang_clean
|
BUILD_COMBO_EXAMPLE_PROJECTSPEC_CLEAN_ALL += dcl_df22_am243x-lp_r5fss0-0_freertos_ti-arm-clang_clean
|
||||||
BUILD_COMBO_EXAMPLE_PROJECTSPEC_CLEAN_ALL += dcl_df22_am243x-lp_m4fss0-0_nortos_ti-arm-clang_clean
|
|
||||||
BUILD_COMBO_EXAMPLE_PROJECTSPEC_CLEAN_ALL += dcl_df22_am243x-lp_m4fss0-0_freertos_ti-arm-clang_clean
|
|
||||||
BUILD_COMBO_EXAMPLE_PROJECTSPEC_CLEAN_ALL += dcl_pi_am243x-evm_r5fss0-0_nortos_ti-arm-clang_clean
|
BUILD_COMBO_EXAMPLE_PROJECTSPEC_CLEAN_ALL += dcl_pi_am243x-evm_r5fss0-0_nortos_ti-arm-clang_clean
|
||||||
BUILD_COMBO_EXAMPLE_PROJECTSPEC_CLEAN_ALL += dcl_pi_am243x-evm_r5fss0-0_freertos_ti-arm-clang_clean
|
BUILD_COMBO_EXAMPLE_PROJECTSPEC_CLEAN_ALL += dcl_pi_am243x-evm_r5fss0-0_freertos_ti-arm-clang_clean
|
||||||
BUILD_COMBO_EXAMPLE_PROJECTSPEC_CLEAN_ALL += dcl_pi_am243x-evm_m4fss0-0_nortos_ti-arm-clang_clean
|
|
||||||
BUILD_COMBO_EXAMPLE_PROJECTSPEC_CLEAN_ALL += dcl_pi_am243x-evm_m4fss0-0_freertos_ti-arm-clang_clean
|
|
||||||
BUILD_COMBO_EXAMPLE_PROJECTSPEC_CLEAN_ALL += dcl_pi_am243x-lp_r5fss0-0_nortos_ti-arm-clang_clean
|
BUILD_COMBO_EXAMPLE_PROJECTSPEC_CLEAN_ALL += dcl_pi_am243x-lp_r5fss0-0_nortos_ti-arm-clang_clean
|
||||||
BUILD_COMBO_EXAMPLE_PROJECTSPEC_CLEAN_ALL += dcl_pi_am243x-lp_r5fss0-0_freertos_ti-arm-clang_clean
|
BUILD_COMBO_EXAMPLE_PROJECTSPEC_CLEAN_ALL += dcl_pi_am243x-lp_r5fss0-0_freertos_ti-arm-clang_clean
|
||||||
BUILD_COMBO_EXAMPLE_PROJECTSPEC_CLEAN_ALL += dcl_pi_am243x-lp_m4fss0-0_nortos_ti-arm-clang_clean
|
|
||||||
BUILD_COMBO_EXAMPLE_PROJECTSPEC_CLEAN_ALL += dcl_pi_am243x-lp_m4fss0-0_freertos_ti-arm-clang_clean
|
|
||||||
BUILD_COMBO_EXAMPLE_PROJECTSPEC_CLEAN_ALL += endat_diagnostic_single_channel_am243x-evm_r5fss0-0_freertos_ti-arm-clang_clean
|
BUILD_COMBO_EXAMPLE_PROJECTSPEC_CLEAN_ALL += endat_diagnostic_single_channel_am243x-evm_r5fss0-0_freertos_ti-arm-clang_clean
|
||||||
BUILD_COMBO_EXAMPLE_PROJECTSPEC_CLEAN_ALL += endat_diagnostic_single_channel_am243x-lp_r5fss0-0_freertos_ti-arm-clang_clean
|
BUILD_COMBO_EXAMPLE_PROJECTSPEC_CLEAN_ALL += endat_diagnostic_single_channel_am243x-lp_r5fss0-0_freertos_ti-arm-clang_clean
|
||||||
BUILD_COMBO_EXAMPLE_PROJECTSPEC_CLEAN_ALL += endat_diagnostic_multi_channel_load_share_am243x-evm_r5fss0-0_freertos_ti-arm-clang_clean
|
BUILD_COMBO_EXAMPLE_PROJECTSPEC_CLEAN_ALL += endat_diagnostic_multi_channel_load_share_am243x-evm_r5fss0-0_freertos_ti-arm-clang_clean
|
||||||
@ -252,48 +212,24 @@ clean-private: $(BUILD_COMBO_EXAMPLE_PROJECTSPEC_CLEAN_PRIVATE_ALL)
|
|||||||
dcl_df22_am243x-evm_r5fss0-0_freertos_ti-arm-clang_clean:
|
dcl_df22_am243x-evm_r5fss0-0_freertos_ti-arm-clang_clean:
|
||||||
$(MAKE) -C examples/dcl/dcl_df22/am243x-evm/r5fss0-0_freertos/ti-arm-clang -f makefile_projectspec clean
|
$(MAKE) -C examples/dcl/dcl_df22/am243x-evm/r5fss0-0_freertos/ti-arm-clang -f makefile_projectspec clean
|
||||||
|
|
||||||
dcl_df22_am243x-evm_m4fss0-0_nortos_ti-arm-clang_clean:
|
|
||||||
$(MAKE) -C examples/dcl/dcl_df22/am243x-evm/m4fss0-0_nortos/ti-arm-clang -f makefile_projectspec clean
|
|
||||||
|
|
||||||
dcl_df22_am243x-evm_m4fss0-0_freertos_ti-arm-clang_clean:
|
|
||||||
$(MAKE) -C examples/dcl/dcl_df22/am243x-evm/m4fss0-0_freertos/ti-arm-clang -f makefile_projectspec clean
|
|
||||||
|
|
||||||
dcl_df22_am243x-lp_r5fss0-0_nortos_ti-arm-clang_clean:
|
dcl_df22_am243x-lp_r5fss0-0_nortos_ti-arm-clang_clean:
|
||||||
$(MAKE) -C examples/dcl/dcl_df22/am243x-lp/r5fss0-0_nortos/ti-arm-clang -f makefile_projectspec clean
|
$(MAKE) -C examples/dcl/dcl_df22/am243x-lp/r5fss0-0_nortos/ti-arm-clang -f makefile_projectspec clean
|
||||||
|
|
||||||
dcl_df22_am243x-lp_r5fss0-0_freertos_ti-arm-clang_clean:
|
dcl_df22_am243x-lp_r5fss0-0_freertos_ti-arm-clang_clean:
|
||||||
$(MAKE) -C examples/dcl/dcl_df22/am243x-lp/r5fss0-0_freertos/ti-arm-clang -f makefile_projectspec clean
|
$(MAKE) -C examples/dcl/dcl_df22/am243x-lp/r5fss0-0_freertos/ti-arm-clang -f makefile_projectspec clean
|
||||||
|
|
||||||
dcl_df22_am243x-lp_m4fss0-0_nortos_ti-arm-clang_clean:
|
|
||||||
$(MAKE) -C examples/dcl/dcl_df22/am243x-lp/m4fss0-0_nortos/ti-arm-clang -f makefile_projectspec clean
|
|
||||||
|
|
||||||
dcl_df22_am243x-lp_m4fss0-0_freertos_ti-arm-clang_clean:
|
|
||||||
$(MAKE) -C examples/dcl/dcl_df22/am243x-lp/m4fss0-0_freertos/ti-arm-clang -f makefile_projectspec clean
|
|
||||||
|
|
||||||
dcl_pi_am243x-evm_r5fss0-0_nortos_ti-arm-clang_clean:
|
dcl_pi_am243x-evm_r5fss0-0_nortos_ti-arm-clang_clean:
|
||||||
$(MAKE) -C examples/dcl/dcl_pi/am243x-evm/r5fss0-0_nortos/ti-arm-clang -f makefile_projectspec clean
|
$(MAKE) -C examples/dcl/dcl_pi/am243x-evm/r5fss0-0_nortos/ti-arm-clang -f makefile_projectspec clean
|
||||||
|
|
||||||
dcl_pi_am243x-evm_r5fss0-0_freertos_ti-arm-clang_clean:
|
dcl_pi_am243x-evm_r5fss0-0_freertos_ti-arm-clang_clean:
|
||||||
$(MAKE) -C examples/dcl/dcl_pi/am243x-evm/r5fss0-0_freertos/ti-arm-clang -f makefile_projectspec clean
|
$(MAKE) -C examples/dcl/dcl_pi/am243x-evm/r5fss0-0_freertos/ti-arm-clang -f makefile_projectspec clean
|
||||||
|
|
||||||
dcl_pi_am243x-evm_m4fss0-0_nortos_ti-arm-clang_clean:
|
|
||||||
$(MAKE) -C examples/dcl/dcl_pi/am243x-evm/m4fss0-0_nortos/ti-arm-clang -f makefile_projectspec clean
|
|
||||||
|
|
||||||
dcl_pi_am243x-evm_m4fss0-0_freertos_ti-arm-clang_clean:
|
|
||||||
$(MAKE) -C examples/dcl/dcl_pi/am243x-evm/m4fss0-0_freertos/ti-arm-clang -f makefile_projectspec clean
|
|
||||||
|
|
||||||
dcl_pi_am243x-lp_r5fss0-0_nortos_ti-arm-clang_clean:
|
dcl_pi_am243x-lp_r5fss0-0_nortos_ti-arm-clang_clean:
|
||||||
$(MAKE) -C examples/dcl/dcl_pi/am243x-lp/r5fss0-0_nortos/ti-arm-clang -f makefile_projectspec clean
|
$(MAKE) -C examples/dcl/dcl_pi/am243x-lp/r5fss0-0_nortos/ti-arm-clang -f makefile_projectspec clean
|
||||||
|
|
||||||
dcl_pi_am243x-lp_r5fss0-0_freertos_ti-arm-clang_clean:
|
dcl_pi_am243x-lp_r5fss0-0_freertos_ti-arm-clang_clean:
|
||||||
$(MAKE) -C examples/dcl/dcl_pi/am243x-lp/r5fss0-0_freertos/ti-arm-clang -f makefile_projectspec clean
|
$(MAKE) -C examples/dcl/dcl_pi/am243x-lp/r5fss0-0_freertos/ti-arm-clang -f makefile_projectspec clean
|
||||||
|
|
||||||
dcl_pi_am243x-lp_m4fss0-0_nortos_ti-arm-clang_clean:
|
|
||||||
$(MAKE) -C examples/dcl/dcl_pi/am243x-lp/m4fss0-0_nortos/ti-arm-clang -f makefile_projectspec clean
|
|
||||||
|
|
||||||
dcl_pi_am243x-lp_m4fss0-0_freertos_ti-arm-clang_clean:
|
|
||||||
$(MAKE) -C examples/dcl/dcl_pi/am243x-lp/m4fss0-0_freertos/ti-arm-clang -f makefile_projectspec clean
|
|
||||||
|
|
||||||
endat_diagnostic_single_channel_am243x-evm_r5fss0-0_freertos_ti-arm-clang_clean:
|
endat_diagnostic_single_channel_am243x-evm_r5fss0-0_freertos_ti-arm-clang_clean:
|
||||||
$(MAKE) -C examples/position_sense/endat_diagnostic/single_channel/am243x-evm/r5fss0-0_freertos/ti-arm-clang -f makefile_projectspec clean
|
$(MAKE) -C examples/position_sense/endat_diagnostic/single_channel/am243x-evm/r5fss0-0_freertos/ti-arm-clang -f makefile_projectspec clean
|
||||||
|
|
||||||
@ -381,20 +317,12 @@ BUILD_COMBO_EXAMPLE_PROJECTSPEC_EXPORT_ALL =
|
|||||||
# Various Example Projectspec Export Targets
|
# Various Example Projectspec Export Targets
|
||||||
BUILD_COMBO_EXAMPLE_PROJECTSPEC_EXPORT_ALL += dcl_df22_am243x-evm_r5fss0-0_nortos_ti-arm-clang_export
|
BUILD_COMBO_EXAMPLE_PROJECTSPEC_EXPORT_ALL += dcl_df22_am243x-evm_r5fss0-0_nortos_ti-arm-clang_export
|
||||||
BUILD_COMBO_EXAMPLE_PROJECTSPEC_EXPORT_ALL += dcl_df22_am243x-evm_r5fss0-0_freertos_ti-arm-clang_export
|
BUILD_COMBO_EXAMPLE_PROJECTSPEC_EXPORT_ALL += dcl_df22_am243x-evm_r5fss0-0_freertos_ti-arm-clang_export
|
||||||
BUILD_COMBO_EXAMPLE_PROJECTSPEC_EXPORT_ALL += dcl_df22_am243x-evm_m4fss0-0_nortos_ti-arm-clang_export
|
|
||||||
BUILD_COMBO_EXAMPLE_PROJECTSPEC_EXPORT_ALL += dcl_df22_am243x-evm_m4fss0-0_freertos_ti-arm-clang_export
|
|
||||||
BUILD_COMBO_EXAMPLE_PROJECTSPEC_EXPORT_ALL += dcl_df22_am243x-lp_r5fss0-0_nortos_ti-arm-clang_export
|
BUILD_COMBO_EXAMPLE_PROJECTSPEC_EXPORT_ALL += dcl_df22_am243x-lp_r5fss0-0_nortos_ti-arm-clang_export
|
||||||
BUILD_COMBO_EXAMPLE_PROJECTSPEC_EXPORT_ALL += dcl_df22_am243x-lp_r5fss0-0_freertos_ti-arm-clang_export
|
BUILD_COMBO_EXAMPLE_PROJECTSPEC_EXPORT_ALL += dcl_df22_am243x-lp_r5fss0-0_freertos_ti-arm-clang_export
|
||||||
BUILD_COMBO_EXAMPLE_PROJECTSPEC_EXPORT_ALL += dcl_df22_am243x-lp_m4fss0-0_nortos_ti-arm-clang_export
|
|
||||||
BUILD_COMBO_EXAMPLE_PROJECTSPEC_EXPORT_ALL += dcl_df22_am243x-lp_m4fss0-0_freertos_ti-arm-clang_export
|
|
||||||
BUILD_COMBO_EXAMPLE_PROJECTSPEC_EXPORT_ALL += dcl_pi_am243x-evm_r5fss0-0_nortos_ti-arm-clang_export
|
BUILD_COMBO_EXAMPLE_PROJECTSPEC_EXPORT_ALL += dcl_pi_am243x-evm_r5fss0-0_nortos_ti-arm-clang_export
|
||||||
BUILD_COMBO_EXAMPLE_PROJECTSPEC_EXPORT_ALL += dcl_pi_am243x-evm_r5fss0-0_freertos_ti-arm-clang_export
|
BUILD_COMBO_EXAMPLE_PROJECTSPEC_EXPORT_ALL += dcl_pi_am243x-evm_r5fss0-0_freertos_ti-arm-clang_export
|
||||||
BUILD_COMBO_EXAMPLE_PROJECTSPEC_EXPORT_ALL += dcl_pi_am243x-evm_m4fss0-0_nortos_ti-arm-clang_export
|
|
||||||
BUILD_COMBO_EXAMPLE_PROJECTSPEC_EXPORT_ALL += dcl_pi_am243x-evm_m4fss0-0_freertos_ti-arm-clang_export
|
|
||||||
BUILD_COMBO_EXAMPLE_PROJECTSPEC_EXPORT_ALL += dcl_pi_am243x-lp_r5fss0-0_nortos_ti-arm-clang_export
|
BUILD_COMBO_EXAMPLE_PROJECTSPEC_EXPORT_ALL += dcl_pi_am243x-lp_r5fss0-0_nortos_ti-arm-clang_export
|
||||||
BUILD_COMBO_EXAMPLE_PROJECTSPEC_EXPORT_ALL += dcl_pi_am243x-lp_r5fss0-0_freertos_ti-arm-clang_export
|
BUILD_COMBO_EXAMPLE_PROJECTSPEC_EXPORT_ALL += dcl_pi_am243x-lp_r5fss0-0_freertos_ti-arm-clang_export
|
||||||
BUILD_COMBO_EXAMPLE_PROJECTSPEC_EXPORT_ALL += dcl_pi_am243x-lp_m4fss0-0_nortos_ti-arm-clang_export
|
|
||||||
BUILD_COMBO_EXAMPLE_PROJECTSPEC_EXPORT_ALL += dcl_pi_am243x-lp_m4fss0-0_freertos_ti-arm-clang_export
|
|
||||||
BUILD_COMBO_EXAMPLE_PROJECTSPEC_EXPORT_ALL += endat_diagnostic_single_channel_am243x-evm_r5fss0-0_freertos_ti-arm-clang_export
|
BUILD_COMBO_EXAMPLE_PROJECTSPEC_EXPORT_ALL += endat_diagnostic_single_channel_am243x-evm_r5fss0-0_freertos_ti-arm-clang_export
|
||||||
BUILD_COMBO_EXAMPLE_PROJECTSPEC_EXPORT_ALL += endat_diagnostic_single_channel_am243x-lp_r5fss0-0_freertos_ti-arm-clang_export
|
BUILD_COMBO_EXAMPLE_PROJECTSPEC_EXPORT_ALL += endat_diagnostic_single_channel_am243x-lp_r5fss0-0_freertos_ti-arm-clang_export
|
||||||
BUILD_COMBO_EXAMPLE_PROJECTSPEC_EXPORT_ALL += endat_diagnostic_multi_channel_load_share_am243x-evm_r5fss0-0_freertos_ti-arm-clang_export
|
BUILD_COMBO_EXAMPLE_PROJECTSPEC_EXPORT_ALL += endat_diagnostic_multi_channel_load_share_am243x-evm_r5fss0-0_freertos_ti-arm-clang_export
|
||||||
@ -438,48 +366,24 @@ export-private: $(BUILD_COMBO_EXAMPLE_PROJECTSPEC_EXPORT_PRIVATE_ALL)
|
|||||||
dcl_df22_am243x-evm_r5fss0-0_freertos_ti-arm-clang_export:
|
dcl_df22_am243x-evm_r5fss0-0_freertos_ti-arm-clang_export:
|
||||||
$(MAKE) -C examples/dcl/dcl_df22/am243x-evm/r5fss0-0_freertos/ti-arm-clang -f makefile_projectspec export
|
$(MAKE) -C examples/dcl/dcl_df22/am243x-evm/r5fss0-0_freertos/ti-arm-clang -f makefile_projectspec export
|
||||||
|
|
||||||
dcl_df22_am243x-evm_m4fss0-0_nortos_ti-arm-clang_export:
|
|
||||||
$(MAKE) -C examples/dcl/dcl_df22/am243x-evm/m4fss0-0_nortos/ti-arm-clang -f makefile_projectspec export
|
|
||||||
|
|
||||||
dcl_df22_am243x-evm_m4fss0-0_freertos_ti-arm-clang_export:
|
|
||||||
$(MAKE) -C examples/dcl/dcl_df22/am243x-evm/m4fss0-0_freertos/ti-arm-clang -f makefile_projectspec export
|
|
||||||
|
|
||||||
dcl_df22_am243x-lp_r5fss0-0_nortos_ti-arm-clang_export:
|
dcl_df22_am243x-lp_r5fss0-0_nortos_ti-arm-clang_export:
|
||||||
$(MAKE) -C examples/dcl/dcl_df22/am243x-lp/r5fss0-0_nortos/ti-arm-clang -f makefile_projectspec export
|
$(MAKE) -C examples/dcl/dcl_df22/am243x-lp/r5fss0-0_nortos/ti-arm-clang -f makefile_projectspec export
|
||||||
|
|
||||||
dcl_df22_am243x-lp_r5fss0-0_freertos_ti-arm-clang_export:
|
dcl_df22_am243x-lp_r5fss0-0_freertos_ti-arm-clang_export:
|
||||||
$(MAKE) -C examples/dcl/dcl_df22/am243x-lp/r5fss0-0_freertos/ti-arm-clang -f makefile_projectspec export
|
$(MAKE) -C examples/dcl/dcl_df22/am243x-lp/r5fss0-0_freertos/ti-arm-clang -f makefile_projectspec export
|
||||||
|
|
||||||
dcl_df22_am243x-lp_m4fss0-0_nortos_ti-arm-clang_export:
|
|
||||||
$(MAKE) -C examples/dcl/dcl_df22/am243x-lp/m4fss0-0_nortos/ti-arm-clang -f makefile_projectspec export
|
|
||||||
|
|
||||||
dcl_df22_am243x-lp_m4fss0-0_freertos_ti-arm-clang_export:
|
|
||||||
$(MAKE) -C examples/dcl/dcl_df22/am243x-lp/m4fss0-0_freertos/ti-arm-clang -f makefile_projectspec export
|
|
||||||
|
|
||||||
dcl_pi_am243x-evm_r5fss0-0_nortos_ti-arm-clang_export:
|
dcl_pi_am243x-evm_r5fss0-0_nortos_ti-arm-clang_export:
|
||||||
$(MAKE) -C examples/dcl/dcl_pi/am243x-evm/r5fss0-0_nortos/ti-arm-clang -f makefile_projectspec export
|
$(MAKE) -C examples/dcl/dcl_pi/am243x-evm/r5fss0-0_nortos/ti-arm-clang -f makefile_projectspec export
|
||||||
|
|
||||||
dcl_pi_am243x-evm_r5fss0-0_freertos_ti-arm-clang_export:
|
dcl_pi_am243x-evm_r5fss0-0_freertos_ti-arm-clang_export:
|
||||||
$(MAKE) -C examples/dcl/dcl_pi/am243x-evm/r5fss0-0_freertos/ti-arm-clang -f makefile_projectspec export
|
$(MAKE) -C examples/dcl/dcl_pi/am243x-evm/r5fss0-0_freertos/ti-arm-clang -f makefile_projectspec export
|
||||||
|
|
||||||
dcl_pi_am243x-evm_m4fss0-0_nortos_ti-arm-clang_export:
|
|
||||||
$(MAKE) -C examples/dcl/dcl_pi/am243x-evm/m4fss0-0_nortos/ti-arm-clang -f makefile_projectspec export
|
|
||||||
|
|
||||||
dcl_pi_am243x-evm_m4fss0-0_freertos_ti-arm-clang_export:
|
|
||||||
$(MAKE) -C examples/dcl/dcl_pi/am243x-evm/m4fss0-0_freertos/ti-arm-clang -f makefile_projectspec export
|
|
||||||
|
|
||||||
dcl_pi_am243x-lp_r5fss0-0_nortos_ti-arm-clang_export:
|
dcl_pi_am243x-lp_r5fss0-0_nortos_ti-arm-clang_export:
|
||||||
$(MAKE) -C examples/dcl/dcl_pi/am243x-lp/r5fss0-0_nortos/ti-arm-clang -f makefile_projectspec export
|
$(MAKE) -C examples/dcl/dcl_pi/am243x-lp/r5fss0-0_nortos/ti-arm-clang -f makefile_projectspec export
|
||||||
|
|
||||||
dcl_pi_am243x-lp_r5fss0-0_freertos_ti-arm-clang_export:
|
dcl_pi_am243x-lp_r5fss0-0_freertos_ti-arm-clang_export:
|
||||||
$(MAKE) -C examples/dcl/dcl_pi/am243x-lp/r5fss0-0_freertos/ti-arm-clang -f makefile_projectspec export
|
$(MAKE) -C examples/dcl/dcl_pi/am243x-lp/r5fss0-0_freertos/ti-arm-clang -f makefile_projectspec export
|
||||||
|
|
||||||
dcl_pi_am243x-lp_m4fss0-0_nortos_ti-arm-clang_export:
|
|
||||||
$(MAKE) -C examples/dcl/dcl_pi/am243x-lp/m4fss0-0_nortos/ti-arm-clang -f makefile_projectspec export
|
|
||||||
|
|
||||||
dcl_pi_am243x-lp_m4fss0-0_freertos_ti-arm-clang_export:
|
|
||||||
$(MAKE) -C examples/dcl/dcl_pi/am243x-lp/m4fss0-0_freertos/ti-arm-clang -f makefile_projectspec export
|
|
||||||
|
|
||||||
endat_diagnostic_single_channel_am243x-evm_r5fss0-0_freertos_ti-arm-clang_export:
|
endat_diagnostic_single_channel_am243x-evm_r5fss0-0_freertos_ti-arm-clang_export:
|
||||||
$(MAKE) -C examples/position_sense/endat_diagnostic/single_channel/am243x-evm/r5fss0-0_freertos/ti-arm-clang -f makefile_projectspec export
|
$(MAKE) -C examples/position_sense/endat_diagnostic/single_channel/am243x-evm/r5fss0-0_freertos/ti-arm-clang -f makefile_projectspec export
|
||||||
|
|
||||||
@ -592,20 +496,12 @@ help:
|
|||||||
@echo ==================================
|
@echo ==================================
|
||||||
@echo $(MAKE) -s -C examples/dcl/dcl_df22/am243x-evm/r5fss0-0_nortos/ti-arm-clang -f makefile_projectspec [export all clean]
|
@echo $(MAKE) -s -C examples/dcl/dcl_df22/am243x-evm/r5fss0-0_nortos/ti-arm-clang -f makefile_projectspec [export all clean]
|
||||||
@echo $(MAKE) -s -C examples/dcl/dcl_df22/am243x-evm/r5fss0-0_freertos/ti-arm-clang -f makefile_projectspec [export all clean]
|
@echo $(MAKE) -s -C examples/dcl/dcl_df22/am243x-evm/r5fss0-0_freertos/ti-arm-clang -f makefile_projectspec [export all clean]
|
||||||
@echo $(MAKE) -s -C examples/dcl/dcl_df22/am243x-evm/m4fss0-0_nortos/ti-arm-clang -f makefile_projectspec [export all clean]
|
|
||||||
@echo $(MAKE) -s -C examples/dcl/dcl_df22/am243x-evm/m4fss0-0_freertos/ti-arm-clang -f makefile_projectspec [export all clean]
|
|
||||||
@echo $(MAKE) -s -C examples/dcl/dcl_df22/am243x-lp/r5fss0-0_nortos/ti-arm-clang -f makefile_projectspec [export all clean]
|
@echo $(MAKE) -s -C examples/dcl/dcl_df22/am243x-lp/r5fss0-0_nortos/ti-arm-clang -f makefile_projectspec [export all clean]
|
||||||
@echo $(MAKE) -s -C examples/dcl/dcl_df22/am243x-lp/r5fss0-0_freertos/ti-arm-clang -f makefile_projectspec [export all clean]
|
@echo $(MAKE) -s -C examples/dcl/dcl_df22/am243x-lp/r5fss0-0_freertos/ti-arm-clang -f makefile_projectspec [export all clean]
|
||||||
@echo $(MAKE) -s -C examples/dcl/dcl_df22/am243x-lp/m4fss0-0_nortos/ti-arm-clang -f makefile_projectspec [export all clean]
|
|
||||||
@echo $(MAKE) -s -C examples/dcl/dcl_df22/am243x-lp/m4fss0-0_freertos/ti-arm-clang -f makefile_projectspec [export all clean]
|
|
||||||
@echo $(MAKE) -s -C examples/dcl/dcl_pi/am243x-evm/r5fss0-0_nortos/ti-arm-clang -f makefile_projectspec [export all clean]
|
@echo $(MAKE) -s -C examples/dcl/dcl_pi/am243x-evm/r5fss0-0_nortos/ti-arm-clang -f makefile_projectspec [export all clean]
|
||||||
@echo $(MAKE) -s -C examples/dcl/dcl_pi/am243x-evm/r5fss0-0_freertos/ti-arm-clang -f makefile_projectspec [export all clean]
|
@echo $(MAKE) -s -C examples/dcl/dcl_pi/am243x-evm/r5fss0-0_freertos/ti-arm-clang -f makefile_projectspec [export all clean]
|
||||||
@echo $(MAKE) -s -C examples/dcl/dcl_pi/am243x-evm/m4fss0-0_nortos/ti-arm-clang -f makefile_projectspec [export all clean]
|
|
||||||
@echo $(MAKE) -s -C examples/dcl/dcl_pi/am243x-evm/m4fss0-0_freertos/ti-arm-clang -f makefile_projectspec [export all clean]
|
|
||||||
@echo $(MAKE) -s -C examples/dcl/dcl_pi/am243x-lp/r5fss0-0_nortos/ti-arm-clang -f makefile_projectspec [export all clean]
|
@echo $(MAKE) -s -C examples/dcl/dcl_pi/am243x-lp/r5fss0-0_nortos/ti-arm-clang -f makefile_projectspec [export all clean]
|
||||||
@echo $(MAKE) -s -C examples/dcl/dcl_pi/am243x-lp/r5fss0-0_freertos/ti-arm-clang -f makefile_projectspec [export all clean]
|
@echo $(MAKE) -s -C examples/dcl/dcl_pi/am243x-lp/r5fss0-0_freertos/ti-arm-clang -f makefile_projectspec [export all clean]
|
||||||
@echo $(MAKE) -s -C examples/dcl/dcl_pi/am243x-lp/m4fss0-0_nortos/ti-arm-clang -f makefile_projectspec [export all clean]
|
|
||||||
@echo $(MAKE) -s -C examples/dcl/dcl_pi/am243x-lp/m4fss0-0_freertos/ti-arm-clang -f makefile_projectspec [export all clean]
|
|
||||||
@echo $(MAKE) -s -C examples/position_sense/endat_diagnostic/single_channel/am243x-evm/r5fss0-0_freertos/ti-arm-clang -f makefile_projectspec [export all clean]
|
@echo $(MAKE) -s -C examples/position_sense/endat_diagnostic/single_channel/am243x-evm/r5fss0-0_freertos/ti-arm-clang -f makefile_projectspec [export all clean]
|
||||||
@echo $(MAKE) -s -C examples/position_sense/endat_diagnostic/single_channel/am243x-lp/r5fss0-0_freertos/ti-arm-clang -f makefile_projectspec [export all clean]
|
@echo $(MAKE) -s -C examples/position_sense/endat_diagnostic/single_channel/am243x-lp/r5fss0-0_freertos/ti-arm-clang -f makefile_projectspec [export all clean]
|
||||||
@echo $(MAKE) -s -C examples/position_sense/endat_diagnostic/multi_channel_load_share/am243x-evm/r5fss0-0_freertos/ti-arm-clang -f makefile_projectspec [export all clean]
|
@echo $(MAKE) -s -C examples/position_sense/endat_diagnostic/multi_channel_load_share/am243x-evm/r5fss0-0_freertos/ti-arm-clang -f makefile_projectspec [export all clean]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user