Compare commits

..

10 Commits

Author SHA1 Message Date
Naresh A
274b907c1b Pull request #3: Next
Merge in PINDSW/motor_control_sdk from next to main

* commit '66708329b53e0195b7c0f24359af885acef2b76d':
  am64x/am243x/am263x : update the device name of AM64x as per the new one
  am64x/am243x/am263x : update tool versions
2023-07-27 03:36:26 -05:00
Naresh A
66708329b5 Pull request #2: am64x/am243x/am263x : update the device name of AM64x as per the new one
Merge in PINDSW/motor_control_sdk from PINDSW-6431_Update-the-device-name-of-AM64x to next

* commit '33e19c02dec9c1a6c6d47e276ff98b2a116a5b21':
  am64x/am243x/am263x : update the device name of AM64x as per the new one
2023-07-27 02:51:22 -05:00
Naresh A
33e19c02de am64x/am243x/am263x : update the device name of AM64x as per the new one
Update the device name of AM64x as per the new one

Fixes: PINDSW-6431

Signed-off-by: Naresh A <nareshk@ti.com>
2023-07-27 13:20:26 +05:30
Naresh A
9934fd84c3 Pull request #1: am64x/am243x/am263x : update tool versions
Merge in PINDSW/motor_control_sdk from PINDSW-5825_update_tool_versions to next

* commit 'a247671e9fe244ba4d43e89b6b4a83a6b37ceab0':
  am64x/am243x/am263x : update tool versions
2023-07-27 01:39:59 -05:00
Naresh A
a247671e9f am64x/am243x/am263x : update tool versions
Update tool versions

Fixes: PINDSW-5825

Signed-off-by: Naresh A <nareshk@ti.com>
2023-07-27 12:06:31 +05:30
Naresh A
206f344bd1 am64x/am243x/am263x : remove motor_control folder from the repository
remove motor_control folder from the repository

Fixes: PINDSW-5635

Signed-off-by: Naresh A <nareshk@ti.com>
2023-07-13 15:23:20 +05:30
Naresh A
2cefea833a am64x/am243x/am263x : update README with correct details
update README with correct details

Fixes: PINDSW-5635

Signed-off-by: Naresh A <nareshk@ti.com>
2023-07-11 11:38:08 +05:30
Naresh A
5599e4387e am64x/am243x/am263x : remove MCU_PLUS_SDK_PATH variable from repository
remove MCU_PLUS_SDK_PATH variable from repository

Fixes: PINDSW-5635

Signed-off-by: Naresh A <nareshk@ti.com>
2023-07-11 11:23:31 +05:30
Naresh A
56dfa91f1b am64x/am243x/am263x : add manifest file for Motor Control SDK
add manifest file for Motor Control SDK

Fixes: PINDSW-5635

Signed-off-by: Naresh A <nareshk@ti.com>
2023-07-10 12:04:29 +05:30
Naresh A
4b91088387 am64x/am243x/am263x : update MCU + SDK Path
Update MCU + SDK Path

Fixes: PINDSW-5635

Signed-off-by: Naresh A <nareshk@ti.com>
2023-07-07 13:07:31 +05:30
501 changed files with 3562 additions and 4457 deletions

18
.gitignore vendored
View File

@ -55,13 +55,15 @@ source/dsplib_c66x_3_4_0_0/
docs/industrial_protocol_docs docs/industrial_protocol_docs
mcusdk_tagfile mcusdk_tagfile
__pycache__/ __pycache__/
source/motor_control/position_sense/hdsl/firmware/*.lst source/position_sense/hdsl/firmware/*.lst
source/motor_control/position_sense/hdsl/firmware/*.obj source/position_sense/hdsl/firmware/*.obj
source/motor_control/position_sense/hdsl/firmware/*.b00 source/position_sense/hdsl/firmware/*.b00
source/motor_control/position_sense/hdsl/firmware/*.xml source/position_sense/hdsl/firmware/*.xml
source/networking/mbedtls_library/mbedtls source/networking/mbedtls_library/mbedtls
source/motor_control/position_sense/endat/firmware/*.lst source/position_sense/endat/firmware/*.lst
source/motor_control/position_sense/endat/firmware/*.obj source/position_sense/endat/firmware/*.obj
source/motor_control/position_sense/endat/firmware/*.b00 source/position_sense/endat/firmware/*.b00
source/motor_control/position_sense/endat/firmware/*.xml source/position_sense/endat/firmware/*.xml
!*boardcfg_*.bin !*boardcfg_*.bin
mcu_plus_sdk
ind_comms_sdk

View File

@ -9,7 +9,7 @@
], ],
"description": "A Endat Diagnostic Single Channel Example. CPU is R5FSS0-0 running FREERTOS.", "description": "A Endat Diagnostic Single Channel Example. CPU is R5FSS0-0 running FREERTOS.",
"name": "endat_diagnostic_single_channel", "name": "endat_diagnostic_single_channel",
"location": "../../examples/motor_control/endat_diagnostic/single_channel/am243x-evm/r5fss0-0_freertos/ti-arm-clang/example.projectspec", "location": "../../examples/position_sense/endat_diagnostic/single_channel/am243x-evm/r5fss0-0_freertos/ti-arm-clang/example.projectspec",
"devtools": [ "devtools": [
"AM243x_GP_EVM" "AM243x_GP_EVM"
], ],
@ -20,7 +20,7 @@
"ticlang" "ticlang"
], ],
"subCategories": [ "subCategories": [
"motor_control", "position_sense",
"endat_diagnostic", "endat_diagnostic",
"single_channel", "single_channel",
"r5fss0-0_freertos" "r5fss0-0_freertos"
@ -42,7 +42,7 @@
], ],
"description": "A Endat Diagnostic Single Channel Example. CPU is R5FSS0-0 running FREERTOS.", "description": "A Endat Diagnostic Single Channel Example. CPU is R5FSS0-0 running FREERTOS.",
"name": "endat_diagnostic_single_channel", "name": "endat_diagnostic_single_channel",
"location": "../../examples/motor_control/endat_diagnostic/single_channel/am243x-lp/r5fss0-0_freertos/ti-arm-clang/example.projectspec", "location": "../../examples/position_sense/endat_diagnostic/single_channel/am243x-lp/r5fss0-0_freertos/ti-arm-clang/example.projectspec",
"devtools": [ "devtools": [
"AM243x_LAUNCHPAD" "AM243x_LAUNCHPAD"
], ],
@ -53,7 +53,7 @@
"ticlang" "ticlang"
], ],
"subCategories": [ "subCategories": [
"motor_control", "position_sense",
"endat_diagnostic", "endat_diagnostic",
"single_channel", "single_channel",
"r5fss0-0_freertos" "r5fss0-0_freertos"
@ -75,7 +75,7 @@
], ],
"description": "A Endat Diagnostic Multi Channel Load Share Example. CPU is R5FSS0-0 running FREERTOS.", "description": "A Endat Diagnostic Multi Channel Load Share Example. CPU is R5FSS0-0 running FREERTOS.",
"name": "endat_diagnostic_multi_channel_load_share", "name": "endat_diagnostic_multi_channel_load_share",
"location": "../../examples/motor_control/endat_diagnostic/multi_channel_load_share/am243x-evm/r5fss0-0_freertos/ti-arm-clang/example.projectspec", "location": "../../examples/position_sense/endat_diagnostic/multi_channel_load_share/am243x-evm/r5fss0-0_freertos/ti-arm-clang/example.projectspec",
"devtools": [ "devtools": [
"AM243x_GP_EVM" "AM243x_GP_EVM"
], ],
@ -86,7 +86,7 @@
"ticlang" "ticlang"
], ],
"subCategories": [ "subCategories": [
"motor_control", "position_sense",
"endat_diagnostic", "endat_diagnostic",
"multi_channel_load_share", "multi_channel_load_share",
"r5fss0-0_freertos" "r5fss0-0_freertos"
@ -108,7 +108,7 @@
], ],
"description": "A Endat Diagnostic Multi Channel Single Pru Example. CPU is R5FSS0-0 running FREERTOS.", "description": "A Endat Diagnostic Multi Channel Single Pru Example. CPU is R5FSS0-0 running FREERTOS.",
"name": "endat_diagnostic_multi_channel_single_pru", "name": "endat_diagnostic_multi_channel_single_pru",
"location": "../../examples/motor_control/endat_diagnostic/multi_channel_single_pru/am243x-evm/r5fss0-0_freertos/ti-arm-clang/example.projectspec", "location": "../../examples/position_sense/endat_diagnostic/multi_channel_single_pru/am243x-evm/r5fss0-0_freertos/ti-arm-clang/example.projectspec",
"devtools": [ "devtools": [
"AM243x_GP_EVM" "AM243x_GP_EVM"
], ],
@ -119,7 +119,7 @@
"ticlang" "ticlang"
], ],
"subCategories": [ "subCategories": [
"motor_control", "position_sense",
"endat_diagnostic", "endat_diagnostic",
"multi_channel_single_pru", "multi_channel_single_pru",
"r5fss0-0_freertos" "r5fss0-0_freertos"
@ -141,7 +141,7 @@
], ],
"description": "A Hdsl Diagnostic Multi Channel Example. CPU is R5FSS0-0 running FREERTOS.", "description": "A Hdsl Diagnostic Multi Channel Example. CPU is R5FSS0-0 running FREERTOS.",
"name": "hdsl_diagnostic_multi_channel", "name": "hdsl_diagnostic_multi_channel",
"location": "../../examples/motor_control/hdsl_diagnostic/multi_channel/am243x-evm/r5fss0-0_freertos/ti-arm-clang/example.projectspec", "location": "../../examples/position_sense/hdsl_diagnostic/multi_channel/am243x-evm/r5fss0-0_freertos/ti-arm-clang/example.projectspec",
"devtools": [ "devtools": [
"AM243x_GP_EVM" "AM243x_GP_EVM"
], ],
@ -152,7 +152,7 @@
"ticlang" "ticlang"
], ],
"subCategories": [ "subCategories": [
"motor_control", "position_sense",
"hdsl_diagnostic", "hdsl_diagnostic",
"multi_channel", "multi_channel",
"r5fss0-0_freertos" "r5fss0-0_freertos"
@ -174,7 +174,7 @@
], ],
"description": "A Hdsl Diagnostic Single Channel Example. CPU is R5FSS0-0 running FREERTOS.", "description": "A Hdsl Diagnostic Single Channel Example. CPU is R5FSS0-0 running FREERTOS.",
"name": "hdsl_diagnostic_single_channel", "name": "hdsl_diagnostic_single_channel",
"location": "../../examples/motor_control/hdsl_diagnostic/single_channel/am243x-evm/r5fss0-0_freertos/ti-arm-clang/example.projectspec", "location": "../../examples/position_sense/hdsl_diagnostic/single_channel/am243x-evm/r5fss0-0_freertos/ti-arm-clang/example.projectspec",
"devtools": [ "devtools": [
"AM243x_GP_EVM" "AM243x_GP_EVM"
], ],
@ -185,7 +185,7 @@
"ticlang" "ticlang"
], ],
"subCategories": [ "subCategories": [
"motor_control", "position_sense",
"hdsl_diagnostic", "hdsl_diagnostic",
"single_channel", "single_channel",
"r5fss0-0_freertos" "r5fss0-0_freertos"
@ -207,7 +207,7 @@
], ],
"description": "A Hdsl Diagnostic Single Channel Example. CPU is R5FSS0-0 running FREERTOS.", "description": "A Hdsl Diagnostic Single Channel Example. CPU is R5FSS0-0 running FREERTOS.",
"name": "hdsl_diagnostic_single_channel", "name": "hdsl_diagnostic_single_channel",
"location": "../../examples/motor_control/hdsl_diagnostic/single_channel/am243x-lp/r5fss0-0_freertos/ti-arm-clang/example.projectspec", "location": "../../examples/position_sense/hdsl_diagnostic/single_channel/am243x-lp/r5fss0-0_freertos/ti-arm-clang/example.projectspec",
"devtools": [ "devtools": [
"AM243x_LAUNCHPAD" "AM243x_LAUNCHPAD"
], ],
@ -218,7 +218,7 @@
"ticlang" "ticlang"
], ],
"subCategories": [ "subCategories": [
"motor_control", "position_sense",
"hdsl_diagnostic", "hdsl_diagnostic",
"single_channel", "single_channel",
"r5fss0-0_freertos" "r5fss0-0_freertos"
@ -240,7 +240,7 @@
], ],
"description": "A Hdsl Diagnostic Ddr Example. CPU is R5FSS0-0 running FREERTOS.", "description": "A Hdsl Diagnostic Ddr Example. CPU is R5FSS0-0 running FREERTOS.",
"name": "hdsl_diagnostic_ddr", "name": "hdsl_diagnostic_ddr",
"location": "../../examples/motor_control/hdsl_diagnostic_with_traces/am243x-evm/r5fss0-0_freertos/ti-arm-clang/example.projectspec", "location": "../../examples/position_sense/hdsl_diagnostic_with_traces/am243x-evm/r5fss0-0_freertos/ti-arm-clang/example.projectspec",
"devtools": [ "devtools": [
"AM243x_GP_EVM" "AM243x_GP_EVM"
], ],
@ -251,7 +251,7 @@
"ticlang" "ticlang"
], ],
"subCategories": [ "subCategories": [
"motor_control", "position_sense",
"hdsl_diagnostic_with_traces", "hdsl_diagnostic_with_traces",
"r5fss0-0_freertos" "r5fss0-0_freertos"
], ],
@ -272,7 +272,7 @@
], ],
"description": "A Tamagawa Diagnostic Multi Channel Example. CPU is R5FSS0-0 running FREERTOS.", "description": "A Tamagawa Diagnostic Multi Channel Example. CPU is R5FSS0-0 running FREERTOS.",
"name": "tamagawa_diagnostic_multi_channel", "name": "tamagawa_diagnostic_multi_channel",
"location": "../../examples/motor_control/tamagawa_diagnostic/multi_channel/am243x-evm/r5fss0-0_freertos/ti-arm-clang/example.projectspec", "location": "../../examples/position_sense/tamagawa_diagnostic/multi_channel/am243x-evm/r5fss0-0_freertos/ti-arm-clang/example.projectspec",
"devtools": [ "devtools": [
"AM243x_GP_EVM" "AM243x_GP_EVM"
], ],
@ -283,7 +283,7 @@
"ticlang" "ticlang"
], ],
"subCategories": [ "subCategories": [
"motor_control", "position_sense",
"tamagawa_diagnostic", "tamagawa_diagnostic",
"multi_channel", "multi_channel",
"r5fss0-0_freertos" "r5fss0-0_freertos"
@ -305,7 +305,7 @@
], ],
"description": "A Tamagawa Diagnostic Single Channel Example. CPU is R5FSS0-0 running FREERTOS.", "description": "A Tamagawa Diagnostic Single Channel Example. CPU is R5FSS0-0 running FREERTOS.",
"name": "tamagawa_diagnostic_single_channel", "name": "tamagawa_diagnostic_single_channel",
"location": "../../examples/motor_control/tamagawa_diagnostic/single_channel/am243x-evm/r5fss0-0_freertos/ti-arm-clang/example.projectspec", "location": "../../examples/position_sense/tamagawa_diagnostic/single_channel/am243x-evm/r5fss0-0_freertos/ti-arm-clang/example.projectspec",
"devtools": [ "devtools": [
"AM243x_GP_EVM" "AM243x_GP_EVM"
], ],
@ -316,7 +316,7 @@
"ticlang" "ticlang"
], ],
"subCategories": [ "subCategories": [
"motor_control", "position_sense",
"tamagawa_diagnostic", "tamagawa_diagnostic",
"single_channel", "single_channel",
"r5fss0-0_freertos" "r5fss0-0_freertos"
@ -338,7 +338,7 @@
], ],
"description": "A Tamagawa Diagnostic Single Channel Example. CPU is R5FSS0-0 running FREERTOS.", "description": "A Tamagawa Diagnostic Single Channel Example. CPU is R5FSS0-0 running FREERTOS.",
"name": "tamagawa_diagnostic_single_channel", "name": "tamagawa_diagnostic_single_channel",
"location": "../../examples/motor_control/tamagawa_diagnostic/single_channel/am243x-lp/r5fss0-0_freertos/ti-arm-clang/example.projectspec", "location": "../../examples/position_sense/tamagawa_diagnostic/single_channel/am243x-lp/r5fss0-0_freertos/ti-arm-clang/example.projectspec",
"devtools": [ "devtools": [
"AM243x_LAUNCHPAD" "AM243x_LAUNCHPAD"
], ],
@ -349,7 +349,7 @@
"ticlang" "ticlang"
], ],
"subCategories": [ "subCategories": [
"motor_control", "position_sense",
"tamagawa_diagnostic", "tamagawa_diagnostic",
"single_channel", "single_channel",
"r5fss0-0_freertos" "r5fss0-0_freertos"
@ -371,7 +371,7 @@
], ],
"description": "A Icss Sdfm Example. CPU is R5FSS0-0 running FREERTOS.", "description": "A Icss Sdfm Example. CPU is R5FSS0-0 running FREERTOS.",
"name": "icss_sdfm", "name": "icss_sdfm",
"location": "../../examples/motor_control/icss_sdfm/am243x-evm/r5fss0-0_freertos/ti-arm-clang/example.projectspec", "location": "../../examples/current_sense/icss_sdfm/am243x-evm/r5fss0-0_freertos/ti-arm-clang/example.projectspec",
"devtools": [ "devtools": [
"AM243x_GP_EVM" "AM243x_GP_EVM"
], ],
@ -382,7 +382,7 @@
"ticlang" "ticlang"
], ],
"subCategories": [ "subCategories": [
"motor_control", "current_sense",
"icss_sdfm", "icss_sdfm",
"r5fss0-0_freertos" "r5fss0-0_freertos"
], ],

View File

@ -9,7 +9,7 @@
], ],
"description": "An Example of tamagawa single channel with soc uart CPU is R5FSS0-0 running FREERTOS.", "description": "An Example of tamagawa single channel with soc uart CPU is R5FSS0-0 running FREERTOS.",
"name": "tamagawa_diagnostic_soc_uart", "name": "tamagawa_diagnostic_soc_uart",
"location": "../../examples/motor_control/tamagawa_diagnostic_over_soc_uart/am263x-lp/r5fss0-0_freertos/ti-arm-clang/example.projectspec", "location": "../../examples/position_sense/tamagawa_diagnostic_over_soc_uart/am263x-lp/r5fss0-0_freertos/ti-arm-clang/example.projectspec",
"devtools": [ "devtools": [
"LP-AM263" "LP-AM263"
], ],
@ -20,7 +20,7 @@
"ticlang" "ticlang"
], ],
"subCategories": [ "subCategories": [
"motor_control", "position_sense",
"tamagawa_diagnostic_over_soc_uart", "tamagawa_diagnostic_over_soc_uart",
"r5fss0-0_freertos" "r5fss0-0_freertos"
], ],

View File

@ -9,7 +9,7 @@
], ],
"description": "A Endat Diagnostic Single Channel Example. CPU is R5FSS0-0 running FREERTOS.", "description": "A Endat Diagnostic Single Channel Example. CPU is R5FSS0-0 running FREERTOS.",
"name": "endat_diagnostic_single_channel", "name": "endat_diagnostic_single_channel",
"location": "../../examples/motor_control/endat_diagnostic/single_channel/am64x-evm/r5fss0-0_freertos/ti-arm-clang/example.projectspec", "location": "../../examples/position_sense/endat_diagnostic/single_channel/am64x-evm/r5fss0-0_freertos/ti-arm-clang/example.projectspec",
"devtools": [ "devtools": [
"AM64x_GP_EVM" "AM64x_GP_EVM"
], ],
@ -20,7 +20,7 @@
"ticlang" "ticlang"
], ],
"subCategories": [ "subCategories": [
"motor_control", "position_sense",
"endat_diagnostic", "endat_diagnostic",
"single_channel", "single_channel",
"r5fss0-0_freertos" "r5fss0-0_freertos"
@ -42,7 +42,7 @@
], ],
"description": "A Endat Diagnostic Multi Channel Load Share Example. CPU is R5FSS0-0 running FREERTOS.", "description": "A Endat Diagnostic Multi Channel Load Share Example. CPU is R5FSS0-0 running FREERTOS.",
"name": "endat_diagnostic_multi_channel_load_share", "name": "endat_diagnostic_multi_channel_load_share",
"location": "../../examples/motor_control/endat_diagnostic/multi_channel_load_share/am64x-evm/r5fss0-0_freertos/ti-arm-clang/example.projectspec", "location": "../../examples/position_sense/endat_diagnostic/multi_channel_load_share/am64x-evm/r5fss0-0_freertos/ti-arm-clang/example.projectspec",
"devtools": [ "devtools": [
"AM64x_GP_EVM" "AM64x_GP_EVM"
], ],
@ -53,7 +53,7 @@
"ticlang" "ticlang"
], ],
"subCategories": [ "subCategories": [
"motor_control", "position_sense",
"endat_diagnostic", "endat_diagnostic",
"multi_channel_load_share", "multi_channel_load_share",
"r5fss0-0_freertos" "r5fss0-0_freertos"
@ -75,7 +75,7 @@
], ],
"description": "A Endat Diagnostic Multi Channel Single Pru Example. CPU is R5FSS0-0 running FREERTOS.", "description": "A Endat Diagnostic Multi Channel Single Pru Example. CPU is R5FSS0-0 running FREERTOS.",
"name": "endat_diagnostic_multi_channel_single_pru", "name": "endat_diagnostic_multi_channel_single_pru",
"location": "../../examples/motor_control/endat_diagnostic/multi_channel_single_pru/am64x-evm/r5fss0-0_freertos/ti-arm-clang/example.projectspec", "location": "../../examples/position_sense/endat_diagnostic/multi_channel_single_pru/am64x-evm/r5fss0-0_freertos/ti-arm-clang/example.projectspec",
"devtools": [ "devtools": [
"AM64x_GP_EVM" "AM64x_GP_EVM"
], ],
@ -86,7 +86,7 @@
"ticlang" "ticlang"
], ],
"subCategories": [ "subCategories": [
"motor_control", "position_sense",
"endat_diagnostic", "endat_diagnostic",
"multi_channel_single_pru", "multi_channel_single_pru",
"r5fss0-0_freertos" "r5fss0-0_freertos"
@ -108,7 +108,7 @@
], ],
"description": "A Hdsl Diagnostic Multi Channel Example. CPU is R5FSS0-0 running FREERTOS.", "description": "A Hdsl Diagnostic Multi Channel Example. CPU is R5FSS0-0 running FREERTOS.",
"name": "hdsl_diagnostic_multi_channel", "name": "hdsl_diagnostic_multi_channel",
"location": "../../examples/motor_control/hdsl_diagnostic/multi_channel/am64x-evm/r5fss0-0_freertos/ti-arm-clang/example.projectspec", "location": "../../examples/position_sense/hdsl_diagnostic/multi_channel/am64x-evm/r5fss0-0_freertos/ti-arm-clang/example.projectspec",
"devtools": [ "devtools": [
"AM64x_GP_EVM" "AM64x_GP_EVM"
], ],
@ -119,7 +119,7 @@
"ticlang" "ticlang"
], ],
"subCategories": [ "subCategories": [
"motor_control", "position_sense",
"hdsl_diagnostic", "hdsl_diagnostic",
"multi_channel", "multi_channel",
"r5fss0-0_freertos" "r5fss0-0_freertos"
@ -141,7 +141,7 @@
], ],
"description": "A Hdsl Diagnostic Single Channel Example. CPU is R5FSS0-0 running FREERTOS.", "description": "A Hdsl Diagnostic Single Channel Example. CPU is R5FSS0-0 running FREERTOS.",
"name": "hdsl_diagnostic_single_channel", "name": "hdsl_diagnostic_single_channel",
"location": "../../examples/motor_control/hdsl_diagnostic/single_channel/am64x-evm/r5fss0-0_freertos/ti-arm-clang/example.projectspec", "location": "../../examples/position_sense/hdsl_diagnostic/single_channel/am64x-evm/r5fss0-0_freertos/ti-arm-clang/example.projectspec",
"devtools": [ "devtools": [
"AM64x_GP_EVM" "AM64x_GP_EVM"
], ],
@ -152,7 +152,7 @@
"ticlang" "ticlang"
], ],
"subCategories": [ "subCategories": [
"motor_control", "position_sense",
"hdsl_diagnostic", "hdsl_diagnostic",
"single_channel", "single_channel",
"r5fss0-0_freertos" "r5fss0-0_freertos"
@ -174,7 +174,7 @@
], ],
"description": "A Hdsl Diagnostic Ddr Example. CPU is R5FSS0-0 running FREERTOS.", "description": "A Hdsl Diagnostic Ddr Example. CPU is R5FSS0-0 running FREERTOS.",
"name": "hdsl_diagnostic_ddr", "name": "hdsl_diagnostic_ddr",
"location": "../../examples/motor_control/hdsl_diagnostic_with_traces/am64x-evm/r5fss0-0_freertos/ti-arm-clang/example.projectspec", "location": "../../examples/position_sense/hdsl_diagnostic_with_traces/am64x-evm/r5fss0-0_freertos/ti-arm-clang/example.projectspec",
"devtools": [ "devtools": [
"AM64x_GP_EVM" "AM64x_GP_EVM"
], ],
@ -185,7 +185,7 @@
"ticlang" "ticlang"
], ],
"subCategories": [ "subCategories": [
"motor_control", "position_sense",
"hdsl_diagnostic_with_traces", "hdsl_diagnostic_with_traces",
"r5fss0-0_freertos" "r5fss0-0_freertos"
], ],
@ -206,7 +206,7 @@
], ],
"description": "A Tamagawa Diagnostic Multi Channel Example. CPU is R5FSS0-0 running FREERTOS.", "description": "A Tamagawa Diagnostic Multi Channel Example. CPU is R5FSS0-0 running FREERTOS.",
"name": "tamagawa_diagnostic_multi_channel", "name": "tamagawa_diagnostic_multi_channel",
"location": "../../examples/motor_control/tamagawa_diagnostic/multi_channel/am64x-evm/r5fss0-0_freertos/ti-arm-clang/example.projectspec", "location": "../../examples/position_sense/tamagawa_diagnostic/multi_channel/am64x-evm/r5fss0-0_freertos/ti-arm-clang/example.projectspec",
"devtools": [ "devtools": [
"AM64x_GP_EVM" "AM64x_GP_EVM"
], ],
@ -217,7 +217,7 @@
"ticlang" "ticlang"
], ],
"subCategories": [ "subCategories": [
"motor_control", "position_sense",
"tamagawa_diagnostic", "tamagawa_diagnostic",
"multi_channel", "multi_channel",
"r5fss0-0_freertos" "r5fss0-0_freertos"
@ -239,7 +239,7 @@
], ],
"description": "A Tamagawa Diagnostic Single Channel Example. CPU is R5FSS0-0 running FREERTOS.", "description": "A Tamagawa Diagnostic Single Channel Example. CPU is R5FSS0-0 running FREERTOS.",
"name": "tamagawa_diagnostic_single_channel", "name": "tamagawa_diagnostic_single_channel",
"location": "../../examples/motor_control/tamagawa_diagnostic/single_channel/am64x-evm/r5fss0-0_freertos/ti-arm-clang/example.projectspec", "location": "../../examples/position_sense/tamagawa_diagnostic/single_channel/am64x-evm/r5fss0-0_freertos/ti-arm-clang/example.projectspec",
"devtools": [ "devtools": [
"AM64x_GP_EVM" "AM64x_GP_EVM"
], ],
@ -250,7 +250,7 @@
"ticlang" "ticlang"
], ],
"subCategories": [ "subCategories": [
"motor_control", "position_sense",
"tamagawa_diagnostic", "tamagawa_diagnostic",
"single_channel", "single_channel",
"r5fss0-0_freertos" "r5fss0-0_freertos"
@ -272,7 +272,7 @@
], ],
"description": "A Icss Sdfm Example. CPU is R5FSS0-0 running FREERTOS.", "description": "A Icss Sdfm Example. CPU is R5FSS0-0 running FREERTOS.",
"name": "icss_sdfm", "name": "icss_sdfm",
"location": "../../examples/motor_control/icss_sdfm/am64x-evm/r5fss0-0_freertos/ti-arm-clang/example.projectspec", "location": "../../examples/current_sense/icss_sdfm/am64x-evm/r5fss0-0_freertos/ti-arm-clang/example.projectspec",
"devtools": [ "devtools": [
"AM64x_GP_EVM" "AM64x_GP_EVM"
], ],
@ -283,7 +283,7 @@
"ticlang" "ticlang"
], ],
"subCategories": [ "subCategories": [
"motor_control", "current_sense",
"icss_sdfm", "icss_sdfm",
"r5fss0-0_freertos" "r5fss0-0_freertos"
], ],

View File

@ -12,8 +12,8 @@
"tags": ["SDK", "Baremetal", "FreeRTOS"], "tags": ["SDK", "Baremetal", "FreeRTOS"],
"description": "Welcome to MOTOR CONTROL SDK for AMXXX. This SDK contains examples, libraries and tools to develop RTOS and no-RTOS based applications for ARM R5F, ARM M4F CPUs and related peripherals.", "description": "Welcome to MOTOR CONTROL SDK for AMXXX. This SDK contains examples, libraries and tools to develop RTOS and no-RTOS based applications for ARM R5F, ARM M4F CPUs and related peripherals.",
"dependencies": [ "dependencies": [
{ "packageId": "sysconfig", "version": "1.14.0", "require": "mandatory" }, { "packageId": "sysconfig", "version": "1.17.0", "require": "mandatory" },
{ "packageId": "ti_cgt_tiarmclang", "version": "2.1.2", "require": "mandatory" }, { "packageId": "ti_cgt_tiarmclang", "version": "2.1.3", "require": "mandatory" },
{ "packageId": "arm.gnu.aarch64-none", "version": "9.2.1", "require": "mandatory" } { "packageId": "arm.gnu.aarch64-none", "version": "9.2.1", "require": "mandatory" }
] ]
} }

View File

@ -5,21 +5,27 @@
"documentationPath": "../docs", "documentationPath": "../docs",
"includePaths": [ "includePaths": [
"../source", "../source",
"../mcu_plus_sdk/source",
], ],
"components": [ "components": [
"/motor_control/motor_control", "/motor_control",
"/kernel/dpl",
"/drivers/drivers",
"/board/board",
"/fs/fs",
"/networking/networking",
"/security/security",
"/usb/usb",
"/pru_io/pru_io",
], ],
"devices": [ "devices": [
"AM64x_beta", "AM64x",
"AM243x_ALV_beta", "AM243x_ALV_beta",
"AM243x_ALX_beta", "AM243x_ALX_beta",
"AM273x",
"AWR294X",
"AM263x_beta", "AM263x_beta",
"AM62x",
], ],
"contexts": { "contexts": {
"AM64x_beta": [ "AM64x": [
"r5fss0-0", "r5fss0-0",
"r5fss0-1", "r5fss0-1",
"r5fss1-0", "r5fss1-0",
@ -41,18 +47,6 @@
"r5fss1-1", "r5fss1-1",
"m4fss0-0", "m4fss0-0",
], ],
"AM273x": [
"r5fss0-0",
"r5fss0-1",
"c66ss0",
"hsm0-0",
],
"AWR294X": [
"r5fss0-0",
"r5fss0-1",
"c66ss0",
"hsm0-0",
],
"AM263x_beta": [ "AM263x_beta": [
"r5fss0-0", "r5fss0-0",
"r5fss0-1", "r5fss0-1",
@ -60,9 +54,6 @@
"r5fss1-1", "r5fss1-1",
"hsm0-0", "hsm0-0",
], ],
"AM62x": [
"m4fss0-0",
],
}, },
"pinmuxUIOptions": { "pinmuxUIOptions": {
"group": "merged", "group": "merged",
@ -71,5 +62,5 @@
"showSignals": true, "showSignals": true,
"showUsed": true "showUsed": true
}, },
"minToolVersion" : "1.14.0" "minToolVersion" : "1.17.0"
} }

View File

@ -25,7 +25,7 @@ const cgt_common = {
includes: { includes: {
common: [ common: [
"${MCU_PLUS_SDK_PATH}/source", "${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source",
"${MOTOR_CONTROL_SDK_PATH}/source", "${MOTOR_CONTROL_SDK_PATH}/source",
], ],
}, },

View File

@ -30,7 +30,7 @@ const cgt_common = {
includes: { includes: {
common: [ common: [
"${MCU_PLUS_SDK_PATH}/source", "${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source",
"${MOTOR_CONTROL_SDK_PATH}/source", "${MOTOR_CONTROL_SDK_PATH}/source",
], ],
}, },

View File

@ -42,7 +42,7 @@ const cgt_common = {
includes: { includes: {
common: [ common: [
"${CG_TOOL_ROOT}/include/c", "${CG_TOOL_ROOT}/include/c",
"${MCU_PLUS_SDK_PATH}/source", "${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source",
"${MOTOR_CONTROL_SDK_PATH}/source", "${MOTOR_CONTROL_SDK_PATH}/source",
], ],
}, },

View File

@ -7,8 +7,9 @@ const cgt = {
common: [ common: [
"$(CGT_TI_ARM_PATH)/include", "$(CGT_TI_ARM_PATH)/include",
".", ".",
"$(MCU_PLUS_SDK_PATH)/source"], "${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source"
"${MOTOR_CONTROL_SDK_PATH}/source", "${MOTOR_CONTROL_SDK_PATH}/source",
]
}, },
cflags: { cflags: {
common: [ common: [

View File

@ -12,7 +12,7 @@ const cgt_common = {
includes: { includes: {
common: [ common: [
"${CG_TOOL_ROOT}/include", "${CG_TOOL_ROOT}/include",
"${MCU_PLUS_SDK_PATH}/source", "${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source",
"${MOTOR_CONTROL_SDK_PATH}/source", "${MOTOR_CONTROL_SDK_PATH}/source",
], ],
}, },
@ -74,7 +74,7 @@ const cgt_common_awr294x = {
includes: { includes: {
common: [ common: [
"${CG_TOOL_ROOT}/include", "${CG_TOOL_ROOT}/include",
"${MCU_PLUS_SDK_PATH}/source", "${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source",
"${MOTOR_CONTROL_SDK_PATH}/source", "${MOTOR_CONTROL_SDK_PATH}/source",
], ],
}, },

View File

@ -77,7 +77,7 @@ const cgt_common = {
includes: { includes: {
common: [ common: [
"${CG_TOOL_ROOT}/include", "${CG_TOOL_ROOT}/include",
"${MCU_PLUS_SDK_PATH}/source", "${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source",
"${MOTOR_CONTROL_SDK_PATH}/source", "${MOTOR_CONTROL_SDK_PATH}/source",
], ],
}, },

View File

@ -1,10 +1,10 @@
const common = require("../common.js"); const common = require("../common.js");
const component_file_list = [ const component_file_list = [
"source/motor_control/current_sense/sdfm/.project/project.js", "source/current_sense/sdfm/.project/project.js",
"source/motor_control/position_sense/endat/.project/project.js", "source/position_sense/endat/.project/project.js",
"source/motor_control/position_sense/hdsl/.project/project.js", "source/position_sense/hdsl/.project/project.js",
"source/motor_control/position_sense/tamagawa/.project/project.js", "source/position_sense/tamagawa/.project/project.js",
]; ];
const device_defines = { const device_defines = {
@ -14,26 +14,26 @@ const device_defines = {
}; };
const example_file_list = [ const example_file_list = [
"examples/motor_control/endat_diagnostic/single_channel/.project/project.js", "examples/position_sense/endat_diagnostic/single_channel/.project/project.js",
"examples/motor_control/endat_diagnostic/multi_channel_load_share/.project/project.js", "examples/position_sense/endat_diagnostic/multi_channel_load_share/.project/project.js",
"examples/motor_control/endat_diagnostic/multi_channel_single_pru/.project/project.js", "examples/position_sense/endat_diagnostic/multi_channel_single_pru/.project/project.js",
"examples/motor_control/hdsl_diagnostic/multi_channel/.project/project.js", "examples/position_sense/hdsl_diagnostic/multi_channel/.project/project.js",
"examples/motor_control/hdsl_diagnostic/single_channel/.project/project.js", "examples/position_sense/hdsl_diagnostic/single_channel/.project/project.js",
"examples/motor_control/hdsl_diagnostic_with_traces/.project/project.js", "examples/position_sense/hdsl_diagnostic_with_traces/.project/project.js",
"examples/motor_control/tamagawa_diagnostic/multi_channel/.project/project.js", "examples/position_sense/tamagawa_diagnostic/multi_channel/.project/project.js",
"examples/motor_control/tamagawa_diagnostic/single_channel/.project/project.js", "examples/position_sense/tamagawa_diagnostic/single_channel/.project/project.js",
"examples/motor_control/icss_sdfm/.project/project.js", "examples/current_sense/icss_sdfm/.project/project.js",
"source/motor_control/current_sense/sdfm/firmware/.project/project.js", "source/current_sense/sdfm/firmware/.project/project.js",
"source/motor_control/position_sense/endat/firmware/multi_channel_load_share/.project/project.js", "source/position_sense/endat/firmware/multi_channel_load_share/.project/project.js",
"source/motor_control/position_sense/endat/firmware/single_channel/.project/project.js", "source/position_sense/endat/firmware/single_channel/.project/project.js",
"source/motor_control/position_sense/endat/firmware/multi_channel_single_pru/.project/project.js", "source/position_sense/endat/firmware/multi_channel_single_pru/.project/project.js",
"source/motor_control/position_sense/hdsl/firmware/freerun_225_mhz/.project/project.js", "source/position_sense/hdsl/firmware/freerun_225_mhz/.project/project.js",
"source/motor_control/position_sense/hdsl/firmware/freerun_300_mhz/.project/project.js", "source/position_sense/hdsl/firmware/freerun_300_mhz/.project/project.js",
"source/motor_control/position_sense/hdsl/firmware/multichannel_ch0/.project/project.js", "source/position_sense/hdsl/firmware/multichannel_ch0/.project/project.js",
"source/motor_control/position_sense/hdsl/firmware/multichannel_ch1/.project/project.js", "source/position_sense/hdsl/firmware/multichannel_ch1/.project/project.js",
"source/motor_control/position_sense/hdsl/firmware/sync_225_mhz/.project/project.js", "source/position_sense/hdsl/firmware/sync_225_mhz/.project/project.js",
"source/motor_control/position_sense/tamagawa/firmware/multi_channel/.project/project.js", "source/position_sense/tamagawa/firmware/multi_channel/.project/project.js",
"source/motor_control/position_sense/tamagawa/firmware/single_channel/.project/project.js", "source/position_sense/tamagawa/firmware/single_channel/.project/project.js",
]; ];
function getProjectSpecCpu(cpu) { function getProjectSpecCpu(cpu) {
@ -154,10 +154,6 @@ function getProductNameProjectSpec() {
return "MOTOR_CONTROL_SDK_AM243X"; return "MOTOR_CONTROL_SDK_AM243X";
} }
function getDependentProductNameProjectSpec() {
return "MCU_PLUS_SDK_AM243X";
}
function getFlashAddr() { function getFlashAddr() {
return 0x60000000; return 0x60000000;
} }
@ -175,6 +171,5 @@ module.exports = {
getProperty, getProperty,
getLinuxFwName, getLinuxFwName,
getProductNameProjectSpec, getProductNameProjectSpec,
getDependentProductNameProjectSpec,
getFlashAddr, getFlashAddr,
}; };

View File

@ -1,7 +1,7 @@
const common = require("../common.js"); const common = require("../common.js");
const component_file_list = [ const component_file_list = [
"source/motor_control/position_sense/tamagawa_over_soc_uart/.project/project.js", "source/position_sense/tamagawa_over_soc_uart/.project/project.js",
]; ];
const device_defines = { const device_defines = {
@ -11,7 +11,7 @@ const device_defines = {
}; };
const example_file_list = [ const example_file_list = [
"examples/motor_control/tamagawa_diagnostic_over_soc_uart/.project/project.js", "examples/position_sense/tamagawa_diagnostic_over_soc_uart/.project/project.js",
]; ];
function getProjectSpecCpu(cpu) { function getProjectSpecCpu(cpu) {
@ -116,7 +116,7 @@ function getLinuxFwName(cpu) {
} }
function getProductNameProjectSpec() { function getProductNameProjectSpec() {
return "MCU_PLUS_SDK_AM263X"; return "MOTOR_CONTROL_SDK_AM263X";
} }
function getFlashAddr() { function getFlashAddr() {
@ -135,6 +135,5 @@ module.exports = {
getDevToolTirex, getDevToolTirex,
getProperty, getProperty,
getLinuxFwName, getLinuxFwName,
getProductNameProjectSpec,
getFlashAddr, getFlashAddr,
}; };

View File

@ -1,10 +1,10 @@
const common = require("../common.js"); const common = require("../common.js");
const component_file_list = [ const component_file_list = [
"source/motor_control/current_sense/sdfm/.project/project.js", "source/current_sense/sdfm/.project/project.js",
"source/motor_control/position_sense/endat/.project/project.js", "source/position_sense/endat/.project/project.js",
"source/motor_control/position_sense/hdsl/.project/project.js", "source/position_sense/hdsl/.project/project.js",
"source/motor_control/position_sense/tamagawa/.project/project.js", "source/position_sense/tamagawa/.project/project.js",
]; ];
const device_defines = { const device_defines = {
@ -14,26 +14,26 @@ const device_defines = {
}; };
const example_file_list = [ const example_file_list = [
"examples/motor_control/endat_diagnostic/single_channel/.project/project.js", "examples/position_sense/endat_diagnostic/single_channel/.project/project.js",
"examples/motor_control/endat_diagnostic/multi_channel_load_share/.project/project.js", "examples/position_sense/endat_diagnostic/multi_channel_load_share/.project/project.js",
"examples/motor_control/endat_diagnostic/multi_channel_single_pru/.project/project.js", "examples/position_sense/endat_diagnostic/multi_channel_single_pru/.project/project.js",
"examples/motor_control/hdsl_diagnostic/multi_channel/.project/project.js", "examples/position_sense/hdsl_diagnostic/multi_channel/.project/project.js",
"examples/motor_control/hdsl_diagnostic/single_channel/.project/project.js", "examples/position_sense/hdsl_diagnostic/single_channel/.project/project.js",
"examples/motor_control/hdsl_diagnostic_with_traces/.project/project.js", "examples/position_sense/hdsl_diagnostic_with_traces/.project/project.js",
"examples/motor_control/tamagawa_diagnostic/multi_channel/.project/project.js", "examples/position_sense/tamagawa_diagnostic/multi_channel/.project/project.js",
"examples/motor_control/tamagawa_diagnostic/single_channel/.project/project.js", "examples/position_sense/tamagawa_diagnostic/single_channel/.project/project.js",
"examples/motor_control/icss_sdfm/.project/project.js", "examples/current_sense/icss_sdfm/.project/project.js",
"source/motor_control/current_sense/sdfm/firmware/.project/project.js", "source/current_sense/sdfm/firmware/.project/project.js",
"source/motor_control/position_sense/endat/firmware/multi_channel_load_share/.project/project.js", "source/position_sense/endat/firmware/multi_channel_load_share/.project/project.js",
"source/motor_control/position_sense/endat/firmware/single_channel/.project/project.js", "source/position_sense/endat/firmware/single_channel/.project/project.js",
"source/motor_control/position_sense/endat/firmware/multi_channel_single_pru/.project/project.js", "source/position_sense/endat/firmware/multi_channel_single_pru/.project/project.js",
"source/motor_control/position_sense/hdsl/firmware/freerun_225_mhz/.project/project.js", "source/position_sense/hdsl/firmware/freerun_225_mhz/.project/project.js",
"source/motor_control/position_sense/hdsl/firmware/freerun_300_mhz/.project/project.js", "source/position_sense/hdsl/firmware/freerun_300_mhz/.project/project.js",
"source/motor_control/position_sense/hdsl/firmware/multichannel_ch0/.project/project.js", "source/position_sense/hdsl/firmware/multichannel_ch0/.project/project.js",
"source/motor_control/position_sense/hdsl/firmware/multichannel_ch1/.project/project.js", "source/position_sense/hdsl/firmware/multichannel_ch1/.project/project.js",
"source/motor_control/position_sense/hdsl/firmware/sync_225_mhz/.project/project.js", "source/position_sense/hdsl/firmware/sync_225_mhz/.project/project.js",
"source/motor_control/position_sense/tamagawa/firmware/multi_channel/.project/project.js", "source/position_sense/tamagawa/firmware/multi_channel/.project/project.js",
"source/motor_control/position_sense/tamagawa/firmware/single_channel/.project/project.js", "source/position_sense/tamagawa/firmware/single_channel/.project/project.js",
]; ];
function getProjectSpecCpu(cpu) { function getProjectSpecCpu(cpu) {
@ -71,7 +71,7 @@ function getExampleList() {
} }
function getSysCfgDevice(board) { function getSysCfgDevice(board) {
return "AM64x_beta"; return "AM64x";
} }
function getProjectSpecDevice(board) { function getProjectSpecDevice(board) {
@ -129,10 +129,6 @@ function getProductNameProjectSpec() {
return "MOTOR_CONTROL_SDK_AM64X"; return "MOTOR_CONTROL_SDK_AM64X";
} }
function getDependentProductNameProjectSpec() {
return "MCU_PLUS_SDK_AM64X";
}
function getFlashAddr() { function getFlashAddr() {
return 0x60000000; return 0x60000000;
} }
@ -150,6 +146,5 @@ module.exports = {
getProperty, getProperty,
getLinuxFwName, getLinuxFwName,
getProductNameProjectSpec, getProductNameProjectSpec,
getDependentProductNameProjectSpec,
getFlashAddr, getFlashAddr,
}; };

View File

@ -143,13 +143,6 @@ const utils = {
return require(`./device/project_${device}`).getProductNameProjectSpec(); return require(`./device/project_${device}`).getProductNameProjectSpec();
}, },
getDependentProductNameProjectSpec: (device) => {
if(common.isDevelopmentMode())
return "MCU_PLUS_SDK_AMXXX"
return require(`./device/project_${device}`).getDependentProductNameProjectSpec();
},
/* default action for files in project spec, i.e copy or link */ /* default action for files in project spec, i.e copy or link */
getDefaultActionProjectSpec: () => { getDefaultActionProjectSpec: () => {
@ -163,7 +156,7 @@ const utils = {
switch(cgt) { switch(cgt) {
case 'ti-arm-clang': case 'ti-arm-clang':
toolchainVersion = '2.1.2' toolchainVersion = '2.1.3'
break; break;
case 'gcc-aarch64': case 'gcc-aarch64':
toolchainVersion = '9.2' toolchainVersion = '9.2'
@ -183,15 +176,15 @@ const utils = {
}, },
getSysCfgVersionProjectSpec: () => { getSysCfgVersionProjectSpec: () => {
return "1.14.0"; return "1.17.0";
}, },
getCCSVersionProjectSpec: () => { getCCSVersionProjectSpec: () => {
return "1210"; return "1240";
}, },
getTiClangVersionProjectSpec: () => { getTiClangVersionProjectSpec: () => {
return "2.1.2"; return "2.1.3";
}, },
getGCCAarch64NoneVersionProjectSpec: () => { getGCCAarch64NoneVersionProjectSpec: () => {

View File

@ -7,7 +7,7 @@ DEVICE ?= am64x
ifeq ($(OS),Windows_NT) ifeq ($(OS),Windows_NT)
TOOLS_PATH?=C:/ti TOOLS_PATH?=C:/ti
CCS_PATH?=$(TOOLS_PATH)/ccs1210/ccs CCS_PATH?=$(TOOLS_PATH)/ccs1240/ccs
CCS_ECLIPSE=$(CCS_PATH)/eclipse/eclipsec CCS_ECLIPSE=$(CCS_PATH)/eclipse/eclipsec
CYGWIN_PATH?=$(CCS_PATH)/utils/cygwin CYGWIN_PATH?=$(CCS_PATH)/utils/cygwin
MKDIR=$(CYGWIN_PATH)/mkdir -p MKDIR=$(CYGWIN_PATH)/mkdir -p
@ -27,7 +27,7 @@ else
UNAME_S := $(shell uname -s) UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Linux) ifeq ($(UNAME_S),Linux)
export TOOLS_PATH?=$(HOME)/ti export TOOLS_PATH?=$(HOME)/ti
export CCS_PATH?=$(TOOLS_PATH)/ccs1210/ccs export CCS_PATH?=$(TOOLS_PATH)/ccs1240/ccs
export CCS_ECLIPSE=$(CCS_PATH)/eclipse/eclipse export CCS_ECLIPSE=$(CCS_PATH)/eclipse/eclipse
export MKDIR=mkdir -p export MKDIR=mkdir -p
export RMDIR=rm -rf export RMDIR=rm -rf
@ -44,23 +44,19 @@ else
endif endif
endif endif
# Variable pointing to location of MCU+ SDK
export MCU_PLUS_SDK_PATH?=./mcu_plus_sdk
CGT_TI_PRU_PATH=$(TOOLS_PATH)/ti-cgt-pru_2.3.3 CGT_TI_PRU_PATH=$(TOOLS_PATH)/ti-cgt-pru_2.3.3
CGT_TI_SMART_PLACEMENT_TOOL_PATH=$(TOOLS_PATH)/ti-cgt-armllvm_3.0.0.STS CGT_TI_SMART_PLACEMENT_TOOL_PATH=$(TOOLS_PATH)/ti-cgt-armllvm_3.0.0.STS
CGT_TI_ARM_CLANG_PATH=$(CCS_PATH)/tools/compiler/ti-cgt-armllvm_2.1.2.LTS CGT_TI_ARM_CLANG_PATH=$(CCS_PATH)/tools/compiler/ti-cgt-armllvm_2.1.3.LTS
ifeq ($(wildcard $(CGT_TI_ARM_CLANG_PATH)),) ifeq ($(wildcard $(CGT_TI_ARM_CLANG_PATH)),)
CGT_TI_ARM_CLANG_PATH=$(TOOLS_PATH)/ti-cgt-armllvm_2.1.2.LTS CGT_TI_ARM_CLANG_PATH=$(TOOLS_PATH)/ti-cgt-armllvm_2.1.3.LTS
endif endif
% if((args.device == "am273x") || (args.device == "awr294x") || (isDevelopmentMode)) { % if((args.device == "am273x") || (args.device == "awr294x") || (isDevelopmentMode)) {
CGT_TI_C6000_PATH=$(CCS_PATH)/tools/compiler/ti-cgt-c6000_8.3.12 CGT_TI_C6000_PATH=$(CCS_PATH)/tools/compiler/ti-cgt-c6000_8.3.12
DSPLIB_PATH=$(MCU_PLUS_SDK_PATH)/source/dsplib_c66x_3_4_0_0 DSPLIB_PATH=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/source/dsplib_c66x_3_4_0_0
% } % }
CCS_NODE = $(CCS_PATH)/tools/node/node CCS_NODE = $(CCS_PATH)/tools/node/node
SYSCFG_PATH ?= $(TOOLS_PATH)/sysconfig_1.14.0 SYSCFG_PATH ?= $(TOOLS_PATH)/sysconfig_1.17.0
SYSCFG_CLI_PATH ?= $(SYSCFG_PATH) SYSCFG_CLI_PATH ?= $(SYSCFG_PATH)
SYSCFG_NODE = $(SYSCFG_PATH)/nodejs/node SYSCFG_NODE = $(SYSCFG_PATH)/nodejs/node
SYSCFG_NWJS = $(SYSCFG_PATH)/nw/nw SYSCFG_NWJS = $(SYSCFG_PATH)/nw/nw
SYSCFG_SDKPRODUCT=$(MOTOR_CONTROL_SDK_PATH)/.metadata/product.json SYSCFG_SDKPRODUCT=$(MOTOR_CONTROL_SDK_PATH)/.metadata/product.json
SYSCFG_MCUPLUSSDKPRODUCT=$(MCU_PLUS_SDK_PATH)/.metadata/product.json

View File

@ -3,7 +3,7 @@
# #
# Below variables need to be defined outside this file or via command line # Below variables need to be defined outside this file or via command line
# - MCU_PLUS_SDK_PATH # - MOTOR_CONTROL_SDK_PATH
# - PROFILE # - PROFILE
# - CG_TOOL_ROOT # - CG_TOOL_ROOT
# - OUTNAME # - OUTNAME
@ -11,9 +11,9 @@
# - CCS_IDE_MODE # - CCS_IDE_MODE
CCS_PATH=$(CCS_INSTALL_DIR) CCS_PATH=$(CCS_INSTALL_DIR)
include $(MCU_PLUS_SDK_PATH)/imports.mak include ${MOTOR_CONTROL_SDK_PATH}/imports.mak
% if (["am243x", "am64x", "am263x", "am273x"].includes(args.project.device)) { % if (["am243x", "am64x", "am263x", "am273x"].includes(args.project.device)) {
include $(MCU_PLUS_SDK_PATH)/devconfig/devconfig.mak include ${MOTOR_CONTROL_SDK_PATH}/devconfig/devconfig.mak
% } % }
STRIP=$(CG_TOOL_ROOT)/bin/`args.cgtOptions.strip` STRIP=$(CG_TOOL_ROOT)/bin/`args.cgtOptions.strip`
@ -65,30 +65,30 @@ ifeq ($(OS),Windows_NT)
EXE_EXT=.exe EXE_EXT=.exe
endif endif
ifeq ($(OS),Windows_NT) ifeq ($(OS),Windows_NT)
BOOTIMAGE_CERT_GEN_CMD=powershell -executionpolicy unrestricted -command $(MCU_PLUS_SDK_PATH)/tools/boot/signing/x509CertificateGen.ps1 BOOTIMAGE_CERT_GEN_CMD=powershell -executionpolicy unrestricted -command $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/signing/x509CertificateGen.ps1
else else
BOOTIMAGE_CERT_GEN_CMD=$(MCU_PLUS_SDK_PATH)/tools/boot/signing/x509CertificateGen.sh BOOTIMAGE_CERT_GEN_CMD=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/signing/x509CertificateGen.sh
endif endif
BOOTIMAGE_TEMP_OUT_FILE=$(PROFILE)/temp_stdout_$(PROFILE).txt BOOTIMAGE_TEMP_OUT_FILE=$(PROFILE)/temp_stdout_$(PROFILE).txt
% if (args.project.isBootLoader) { % if (args.project.isBootLoader) {
% if ((args.project.device == "am64x") || (args.project.device == "am243x")) { % if ((args.project.device == "am64x") || (args.project.device == "am243x")) {
BOOTIMAGE_CERT_KEY=$(APP_SIGNING_KEY) BOOTIMAGE_CERT_KEY=$(APP_SIGNING_KEY)
BOOTIMAGE_CERT_GEN_CMD=$(PYTHON) $(MCU_PLUS_SDK_PATH)/tools/boot/signing/rom_image_gen.py BOOTIMAGE_CERT_GEN_CMD=$(PYTHON) $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/signing/rom_image_gen.py
SYSFW_PATH=$(MCU_PLUS_SDK_PATH)/source/drivers/sciclient/soc/am64x_am243x SYSFW_PATH=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/source/drivers/sciclient/soc/am64x_am243x
SYSFW_LOAD_ADDR=0x44000 SYSFW_LOAD_ADDR=0x44000
BOARDCFG_LOAD_ADDR=0x7B000 BOARDCFG_LOAD_ADDR=0x7B000
% if (args.project.name.includes("linux")) { % if (args.project.name.includes("linux")) {
% if (args.project.device == "am64x") { % if (args.project.device == "am64x") {
BOARDCFG_BLOB=$(MCU_PLUS_SDK_PATH)/source/drivers/sciclient/sciclient_default_boardcfg/am64x/boardcfg_blob_linux.bin BOARDCFG_BLOB=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/source/drivers/sciclient/sciclient_default_boardcfg/am64x/boardcfg_blob_linux.bin
% } else if (args.project.device == "am243x") { % } else if (args.project.device == "am243x") {
BOARDCFG_BLOB=$(MCU_PLUS_SDK_PATH)/source/drivers/sciclient/sciclient_default_boardcfg/am243x/boardcfg_blob_linux.bin BOARDCFG_BLOB=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/source/drivers/sciclient/sciclient_default_boardcfg/am243x/boardcfg_blob_linux.bin
% } % }
% } else { % } else {
% if (args.project.device == "am64x") { % if (args.project.device == "am64x") {
BOARDCFG_BLOB=$(MCU_PLUS_SDK_PATH)/source/drivers/sciclient/sciclient_default_boardcfg/am64x/boardcfg_blob.bin BOARDCFG_BLOB=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/source/drivers/sciclient/sciclient_default_boardcfg/am64x/boardcfg_blob.bin
% } else if (args.project.device == "am243x") { % } else if (args.project.device == "am243x") {
BOARDCFG_BLOB=$(MCU_PLUS_SDK_PATH)/source/drivers/sciclient/sciclient_default_boardcfg/am243x/boardcfg_blob.bin BOARDCFG_BLOB=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/source/drivers/sciclient/sciclient_default_boardcfg/am243x/boardcfg_blob.bin
% } % }
% } % }
% } % }
@ -96,9 +96,9 @@ BOARDCFG_BLOB=$(MCU_PLUS_SDK_PATH)/source/drivers/sciclient/sciclient_default_bo
ifeq ($(DEVICE_TYPE),HS) ifeq ($(DEVICE_TYPE),HS)
BOOTIMAGE_CERT_KEY=$(APP_SIGNING_KEY) BOOTIMAGE_CERT_KEY=$(APP_SIGNING_KEY)
else else
BOOTIMAGE_CERT_KEY=$(MCU_PLUS_SDK_PATH)/tools/boot/signing/mcu_gpkey.pem BOOTIMAGE_CERT_KEY=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/signing/mcu_gpkey.pem
endif endif
BOOTIMAGE_CERT_GEN_CMD=$(PYTHON) $(MCU_PLUS_SDK_PATH)/tools/boot/signing/mcu_rom_image_gen.py BOOTIMAGE_CERT_GEN_CMD=$(PYTHON) $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/signing/mcu_rom_image_gen.py
% } % }
% if ((args.project.device == "am273x") || (args.project.device == "awr294x")) { % if ((args.project.device == "am273x") || (args.project.device == "awr294x")) {
@ -109,7 +109,7 @@ SBL_RUN_ADDRESS=0x70002000
SBL_RUN_ADDRESS=0x70000000 SBL_RUN_ADDRESS=0x70000000
% } % }
SBL_PREBUILT_PATH=$(MCU_PLUS_SDK_PATH)/tools/boot/sbl_prebuilt/`args.project.board` SBL_PREBUILT_PATH=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/sbl_prebuilt/`args.project.board`
all: all:
ifeq ($(CCS_IDE_MODE),cloud) ifeq ($(CCS_IDE_MODE),cloud)
@ -197,7 +197,7 @@ BOOTIMAGE_CORE_ID_r5fss0-1 = 1
BOOTIMAGE_CORE_ID_c66ss0 = 2 BOOTIMAGE_CORE_ID_c66ss0 = 2
% if (args.project.device == "awr294x") { % if (args.project.device == "awr294x") {
BOOTIMAGE_CORE_ID_r4 = 3 BOOTIMAGE_CORE_ID_r4 = 3
R4_RPRC_PATH = $(MCU_PLUS_SDK_PATH)/source/drivers/bootloader/soc/awr294x/xwr2xxx_radarss_metarprc.bin R4_RPRC_PATH = $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/source/drivers/bootloader/soc/awr294x/xwr2xxx_radarss_metarprc.bin
% } % }
SBL_RUN_ADDRESS=0x10200000 SBL_RUN_ADDRESS=0x10200000
SBL_DEV_ID=55 SBL_DEV_ID=55
@ -213,16 +213,16 @@ SBL_RUN_ADDRESS=0x70000000
SBL_DEV_ID=55 SBL_DEV_ID=55
% } % }
MULTI_CORE_IMAGE_GEN = $(CCS_NODE) $(MCU_PLUS_SDK_PATH)/tools/boot/multicoreImageGen/multicoreImageGen.js MULTI_CORE_IMAGE_GEN = $(CCS_NODE) $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/multicoreImageGen/multicoreImageGen.js
OUTRPRC_CMD = $(CCS_NODE) $(MCU_PLUS_SDK_PATH)/tools/boot/out2rprc/elf2rprc.js OUTRPRC_CMD = $(CCS_NODE) $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/out2rprc/elf2rprc.js
% if (((args.project.device == "am243x") || (args.project.device == "am64x")) && (!args.project.isPartOfSystemProject)) { % if (((args.project.device == "am243x") || (args.project.device == "am64x")) && (!args.project.isPartOfSystemProject)) {
APP_IMAGE_SIGN_CMD = $(MCU_PLUS_SDK_PATH)/tools/boot/signing/appimage_x509_cert_gen.py APP_IMAGE_SIGN_CMD = $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/signing/appimage_x509_cert_gen.py
% } % }
ifeq ($(OS),Windows_NT) ifeq ($(OS),Windows_NT)
XIPGEN_CMD=$(MCU_PLUS_SDK_PATH)/tools/boot/xipGen/xipGen.exe XIPGEN_CMD=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/xipGen/xipGen.exe
else else
XIPGEN_CMD=$(MCU_PLUS_SDK_PATH)/tools/boot/xipGen/xipGen.out XIPGEN_CMD=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/xipGen/xipGen.out
endif endif
MULTI_CORE_IMAGE_PARAMS = \ MULTI_CORE_IMAGE_PARAMS = \

View File

@ -147,7 +147,7 @@ $(BUILD_COMBO_EXAMPLE_PROJECTSPEC_EXPORT_ALL) $(BUILD_COMBO_EXAMPLE_PROJECTSPEC_
# Same CCS workspace used by the examples is used here. # Same CCS workspace used by the examples is used here.
import_extra_components: import_extra_components:
$(MKDIR) $(MOTOR_CONTROL_SDK_PATH)/ccs_projects $(MKDIR) $(MOTOR_CONTROL_SDK_PATH)/ccs_projects
$(CCS_ECLIPSE) -noSplash -data $(MOTOR_CONTROL_SDK_PATH)/ccs_projects -application com.ti.common.core.initialize -ccs.productDiscoveryPath $(COM_TI_MOTOR_CONTROL_SDK_AMXXX_INSTALL_DIR) -ccs.productDiscoveryPath $(COM_TI_MCU_PLUS_SDK_AMXXX_INSTALL_DIR) $(CCS_ECLIPSE) -noSplash -data $(MOTOR_CONTROL_SDK_PATH)/ccs_projects -application com.ti.common.core.initialize -ccs.productDiscoveryPath $(COM_TI_MOTOR_CONTROL_SDK_AMXXX_INSTALL_DIR)
% } % }
help: help:

View File

@ -439,10 +439,10 @@ $(SYSCFG_GEN_FILES): syscfg
syscfg: `args.project.syscfgfile` syscfg: `args.project.syscfgfile`
@echo Generating SysConfig files ... @echo Generating SysConfig files ...
$(SYSCFG_NODE) $(SYSCFG_CLI_PATH)/dist/cli.js --product $(SYSCFG_MCUPLUSSDKPRODUCT) --product $(SYSCFG_SDKPRODUCT) --context `args.syscfg.cpu` --part `args.syscfg.part` --package `args.syscfg.pkg` --output generated/ `args.project.syscfgfile` $(SYSCFG_NODE) $(SYSCFG_CLI_PATH)/dist/cli.js --product $(SYSCFG_SDKPRODUCT) --context `args.syscfg.cpu` --part `args.syscfg.part` --package `args.syscfg.pkg` --output generated/ `args.project.syscfgfile`
syscfg-gui: syscfg-gui:
$(SYSCFG_NWJS) $(SYSCFG_PATH) --product $(SYSCFG_MCUPLUSSDKPRODUCT) --product $(SYSCFG_SDKPRODUCT) --device `args.syscfg.device` --context `args.syscfg.cpu` --part `args.syscfg.part` --package `args.syscfg.pkg` --output generated/ `args.project.syscfgfile` $(SYSCFG_NWJS) $(SYSCFG_PATH) --product $(SYSCFG_SDKPRODUCT) --device `args.syscfg.device` --context `args.syscfg.cpu` --part `args.syscfg.part` --package `args.syscfg.pkg` --output generated/ `args.project.syscfgfile`
% } % }
% if (args.project.isBootLoader) { % if (args.project.isBootLoader) {
@ -458,9 +458,9 @@ ifeq ($(OS),Windows_NT)
EXE_EXT=.exe EXE_EXT=.exe
endif endif
ifeq ($(OS),Windows_NT) ifeq ($(OS),Windows_NT)
BOOTIMAGE_CERT_GEN_CMD=powershell -executionpolicy unrestricted -command $(MCU_PLUS_SDK_PATH)/tools/boot/signing/x509CertificateGen.ps1 BOOTIMAGE_CERT_GEN_CMD=powershell -executionpolicy unrestricted -command $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/signing/x509CertificateGen.ps1
else else
BOOTIMAGE_CERT_GEN_CMD=$(MCU_PLUS_SDK_PATH)/tools/boot/signing/x509CertificateGen.sh BOOTIMAGE_CERT_GEN_CMD=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/signing/x509CertificateGen.sh
endif endif
BOOTIMAGE_TEMP_OUT_FILE=temp_stdout_$(PROFILE).txt BOOTIMAGE_TEMP_OUT_FILE=temp_stdout_$(PROFILE).txt
@ -471,21 +471,21 @@ BOOTIMAGE_CERT_KEY=$(APP_SIGNING_KEY)
% if (args.project.isBootLoader) { % if (args.project.isBootLoader) {
% if ((args.project.device == "am64x") || (args.project.device == "am243x")) { % if ((args.project.device == "am64x") || (args.project.device == "am243x")) {
BOOTIMAGE_CERT_KEY=$(APP_SIGNING_KEY) BOOTIMAGE_CERT_KEY=$(APP_SIGNING_KEY)
BOOTIMAGE_CERT_GEN_CMD=$(PYTHON) $(MCU_PLUS_SDK_PATH)/tools/boot/signing/rom_image_gen.py BOOTIMAGE_CERT_GEN_CMD=$(PYTHON) $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/signing/rom_image_gen.py
SYSFW_PATH=$(MCU_PLUS_SDK_PATH)/source/drivers/sciclient/soc/am64x_am243x SYSFW_PATH=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/source/drivers/sciclient/soc/am64x_am243x
SYSFW_LOAD_ADDR=0x44000 SYSFW_LOAD_ADDR=0x44000
BOARDCFG_LOAD_ADDR=0x7B000 BOARDCFG_LOAD_ADDR=0x7B000
% if (args.project.name.includes("linux")) { % if (args.project.name.includes("linux")) {
% if (args.project.device == "am64x") { % if (args.project.device == "am64x") {
BOARDCFG_BLOB=$(MCU_PLUS_SDK_PATH)/source/drivers/sciclient/sciclient_default_boardcfg/am64x/boardcfg_blob_linux.bin BOARDCFG_BLOB=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/source/drivers/sciclient/sciclient_default_boardcfg/am64x/boardcfg_blob_linux.bin
% } else if (args.project.device == "am243x") { % } else if (args.project.device == "am243x") {
BOARDCFG_BLOB=$(MCU_PLUS_SDK_PATH)/source/drivers/sciclient/sciclient_default_boardcfg/am243x/boardcfg_blob_linux.bin BOARDCFG_BLOB=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/source/drivers/sciclient/sciclient_default_boardcfg/am243x/boardcfg_blob_linux.bin
% } % }
% } else { % } else {
% if (args.project.device == "am64x") { % if (args.project.device == "am64x") {
BOARDCFG_BLOB=$(MCU_PLUS_SDK_PATH)/source/drivers/sciclient/sciclient_default_boardcfg/am64x/boardcfg_blob.bin BOARDCFG_BLOB=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/source/drivers/sciclient/sciclient_default_boardcfg/am64x/boardcfg_blob.bin
% } else if (args.project.device == "am243x") { % } else if (args.project.device == "am243x") {
BOARDCFG_BLOB=$(MCU_PLUS_SDK_PATH)/source/drivers/sciclient/sciclient_default_boardcfg/am243x/boardcfg_blob.bin BOARDCFG_BLOB=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/source/drivers/sciclient/sciclient_default_boardcfg/am243x/boardcfg_blob.bin
% } % }
% } % }
% } % }
@ -494,9 +494,9 @@ BOARDCFG_BLOB=$(MCU_PLUS_SDK_PATH)/source/drivers/sciclient/sciclient_default_bo
ifeq ($(DEVICE_TYPE),HS) ifeq ($(DEVICE_TYPE),HS)
BOOTIMAGE_CERT_KEY=$(APP_SIGNING_KEY) BOOTIMAGE_CERT_KEY=$(APP_SIGNING_KEY)
else else
BOOTIMAGE_CERT_KEY=$(MCU_PLUS_SDK_PATH)/tools/boot/signing/mcu_gpkey.pem BOOTIMAGE_CERT_KEY=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/signing/mcu_gpkey.pem
endif endif
BOOTIMAGE_CERT_GEN_CMD=$(PYTHON) $(MCU_PLUS_SDK_PATH)/tools/boot/signing/mcu_rom_image_gen.py BOOTIMAGE_CERT_GEN_CMD=$(PYTHON) $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/signing/mcu_rom_image_gen.py
% } % }
% if ((args.project.device == "am273x") || (args.project.device == "awr294x")) { % if ((args.project.device == "am273x") || (args.project.device == "awr294x")) {
@ -507,7 +507,7 @@ SBL_RUN_ADDRESS=0x70002000
SBL_RUN_ADDRESS=0x70000000 SBL_RUN_ADDRESS=0x70000000
% } % }
SBL_PREBUILT_PATH=$(MCU_PLUS_SDK_PATH)/tools/boot/sbl_prebuilt/`args.project.board` SBL_PREBUILT_PATH=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/sbl_prebuilt/`args.project.board`
$(BOOTIMAGE_BIN_NAME): $(OUTNAME) $(BOOTIMAGE_BIN_NAME): $(OUTNAME)
$(OBJCOPY) --strip-sections -O binary $(OUTNAME) $(BOOTIMAGE_BIN_NAME) $(OBJCOPY) --strip-sections -O binary $(OUTNAME) $(BOOTIMAGE_BIN_NAME)
@ -607,7 +607,7 @@ BOOTIMAGE_CORE_ID_r5fss0-1 = 1
BOOTIMAGE_CORE_ID_c66ss0 = 2 BOOTIMAGE_CORE_ID_c66ss0 = 2
% if (args.project.device == "awr294x") { % if (args.project.device == "awr294x") {
BOOTIMAGE_CORE_ID_r4 = 3 BOOTIMAGE_CORE_ID_r4 = 3
R4_RPRC_PATH = $(MCU_PLUS_SDK_PATH)/source/drivers/bootloader/soc/awr294x/xwr2xxx_radarss_metarprc.bin R4_RPRC_PATH = $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/source/drivers/bootloader/soc/awr294x/xwr2xxx_radarss_metarprc.bin
% } % }
SBL_RUN_ADDRESS=0x10200000 SBL_RUN_ADDRESS=0x10200000
SBL_DEV_ID=55 SBL_DEV_ID=55
@ -623,16 +623,16 @@ SBL_RUN_ADDRESS=0x70000000
SBL_DEV_ID=55 SBL_DEV_ID=55
% } % }
MULTI_CORE_IMAGE_GEN = $(SYSCFG_NODE) $(MCU_PLUS_SDK_PATH)/tools/boot/multicoreImageGen/multicoreImageGen.js MULTI_CORE_IMAGE_GEN = $(SYSCFG_NODE) $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/multicoreImageGen/multicoreImageGen.js
OUTRPRC_CMD = $(SYSCFG_NODE) $(MCU_PLUS_SDK_PATH)/tools/boot/out2rprc/elf2rprc.js OUTRPRC_CMD = $(SYSCFG_NODE) $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/out2rprc/elf2rprc.js
% if (((args.project.device == "am243x") || (args.project.device == "am64x")) && (!args.project.isPartOfSystemProject)) { % if (((args.project.device == "am243x") || (args.project.device == "am64x")) && (!args.project.isPartOfSystemProject)) {
APP_IMAGE_SIGN_CMD = $(MCU_PLUS_SDK_PATH)/tools/boot/signing/appimage_x509_cert_gen.py APP_IMAGE_SIGN_CMD = $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/signing/appimage_x509_cert_gen.py
% } % }
ifeq ($(OS),Windows_NT) ifeq ($(OS),Windows_NT)
XIPGEN_CMD=$(MCU_PLUS_SDK_PATH)/tools/boot/xipGen/xipGen.exe XIPGEN_CMD=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/xipGen/xipGen.exe
else else
XIPGEN_CMD=$(MCU_PLUS_SDK_PATH)/tools/boot/xipGen/xipGen.out XIPGEN_CMD=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/xipGen/xipGen.out
endif endif
MULTI_CORE_IMAGE_PARAMS = \ MULTI_CORE_IMAGE_PARAMS = \
@ -703,7 +703,7 @@ coverage:
$(PROFDATA) merge -sparse -obj-file=$(OUTNAME) $(OUTNAME).cnt -o `args.project.name`.$(PROFILE).profdata $(PROFDATA) merge -sparse -obj-file=$(OUTNAME) $(OUTNAME).cnt -o `args.project.name`.$(PROFILE).profdata
$(COV) show --format=html --show-expansions --show-instantiations --show-branches=count --object=$(OUTNAME) -instr-profile=`args.project.name`.$(PROFILE).profdata --output-dir=$(COVERAGE_PATH)/coverage $(COV) show --format=html --show-expansions --show-instantiations --show-branches=count --object=$(OUTNAME) -instr-profile=`args.project.name`.$(PROFILE).profdata --output-dir=$(COVERAGE_PATH)/coverage
$(COV) export --format=text --object=$(OUTNAME) --instr-profile=`args.project.name`.$(PROFILE).profdata > coverage/`args.project.name`.$(PROFILE).profdata.json $(COV) export --format=text --object=$(OUTNAME) --instr-profile=`args.project.name`.$(PROFILE).profdata > coverage/`args.project.name`.$(PROFILE).profdata.json
node $(MCU_PLUS_SDK_PATH)/docs_src/code_coverage/clang_coverage_analyse.js --input=coverage/`args.project.name`.$(PROFILE).profdata.json --output-json=coverage/`args.project.name`.$(PROFILE).analysis.json --output-lnk=linker_xip.cmd --top-function-count=500 node ${MOTOR_CONTROL_SDK_PATH}/docs_src/code_coverage/clang_coverage_analyse.js --input=coverage/`args.project.name`.$(PROFILE).profdata.json --output-json=coverage/`args.project.name`.$(PROFILE).analysis.json --output-lnk=linker_xip.cmd --top-function-count=500
@echo Coverage Report Generated at $(COVERAGE_PATH)/coverage folder !!! @echo Coverage Report Generated at $(COVERAGE_PATH)/coverage folder !!!
% } % }

View File

@ -6,9 +6,9 @@
################################################################################ ################################################################################
# Required input arguments: # Required input arguments:
# MCU_PLUS_SDK_PATH=${MCU_PLUS_SDK_PATH} sdk_dir_path # MOTOR_CONTROL_SDK_PATH=${MOTOR_CONTROL_SDK_PATH} sdk_dir_path
# CCS_INSTALL_DIR=${CCS_INSTALL_DIR} ccs_dir_path # CCS_INSTALL_DIR=${CCS_INSTALL_DIR} ccs_dir_path
# CCS_PROJECT_DEBUG=${CWD} project_debug_dir_path # CCS_PROJECT_DEBUG=${CWD} project_debug_dir_path
SHELL = cmd.exe SHELL = cmd.exe
CCS_PATH?=$(CCS_INSTALL_DIR)/ccs_base/pru/include CCS_PATH?=$(CCS_INSTALL_DIR)/ccs_base/pru/include
@ -20,7 +20,7 @@ GEN_CMDS__FLAG :=
ORDERED_OBJS += \ ORDERED_OBJS += \
"./`obj.pru_main_file`.obj" \ "./`obj.pru_main_file`.obj" \
"$(MCU_PLUS_SDK_PATH)/`projectPath`/`obj.pru_linker_file`.cmd" \ "${MOTOR_CONTROL_SDK_PATH}/`projectPath`/`obj.pru_linker_file`.cmd" \
$(GEN_CMDS__FLAG) \ $(GEN_CMDS__FLAG) \
-llibc.a \ -llibc.a \
@ -36,10 +36,10 @@ SUBDIRS := \
# Add inputs and outputs from these tool invocations to the build variables # Add inputs and outputs from these tool invocations to the build variables
CMD_SRCS += \ CMD_SRCS += \
$(MCU_PLUS_SDK_PATH)/`projectPath`/`obj.pru_linker_file`.cmd \ ${MOTOR_CONTROL_SDK_PATH}/`projectPath`/`obj.pru_linker_file`.cmd \
ASM_SRCS += \ ASM_SRCS += \
$(MCU_PLUS_SDK_PATH)/`obj.relpath`/`obj.pru_main_file`.asm ${MOTOR_CONTROL_SDK_PATH}/`obj.relpath`/`obj.pru_main_file`.asm
OBJS += \ OBJS += \
./`obj.pru_main_file`.obj ./`obj.pru_main_file`.obj
@ -54,7 +54,7 @@ ASM_DEPS__QUOTED += \
"`obj.pru_main_file`.d" "`obj.pru_main_file`.d"
ASM_SRCS__QUOTED += \ ASM_SRCS__QUOTED += \
"$(MCU_PLUS_SDK_PATH)/`obj.relpath`/`obj.pru_main_file`.asm" "${MOTOR_CONTROL_SDK_PATH}/`obj.relpath`/`obj.pru_main_file`.asm"
% let commandString = ""; % let commandString = "";
% let cflags = obj.cflags; % let cflags = obj.cflags;
@ -87,7 +87,7 @@ ASM_SRCS__QUOTED += \
% } % }
% } % }
# Each subdirectory must supply rules for building sources it contributes # Each subdirectory must supply rules for building sources it contributes
`obj.pru_main_file`.obj: $(MCU_PLUS_SDK_PATH)/`obj.relpath`/`obj.pru_main_file`.asm $(GEN_OPTS) | $(GEN_FILES) $(GEN_MISC_FILES) `obj.pru_main_file`.obj: ${MOTOR_CONTROL_SDK_PATH}/`obj.relpath`/`obj.pru_main_file`.asm $(GEN_OPTS) | $(GEN_FILES) $(GEN_MISC_FILES)
@echo 'Building file: "$<"' @echo 'Building file: "$<"'
@echo 'Invoking: PRU Compiler' @echo 'Invoking: PRU Compiler'
"$(CG_TOOL_ROOT)/bin/clpru" `commandString` --define=_DEBUG_=1 -g --diag_warning=225 --diag_wrap=off --display_error_number --endian=little --preproc_with_compile --preproc_dependency="$(basename $(<F)).d_raw" $(GEN_OPTS__FLAG) "$<" "$(CG_TOOL_ROOT)/bin/clpru" `commandString` --define=_DEBUG_=1 -g --diag_warning=225 --diag_wrap=off --display_error_number --endian=little --preproc_with_compile --preproc_dependency="$(basename $(<F)).d_raw" $(GEN_OPTS__FLAG) "$<"
@ -152,8 +152,8 @@ post-build:
% } % }
% if(obj["defaultPruPostBuildSteps"]) { % if(obj["defaultPruPostBuildSteps"]) {
post-build: post-build:
-$(CG_TOOL_ROOT)/bin/hexpru.exe ${MCU_PLUS_SDK_PATH}/`projectPath`/hexpru.cmd `projectName`.out -$(CG_TOOL_ROOT)/bin/hexpru.exe ${MOTOR_CONTROL_SDK_PATH}/`projectPath`/hexpru.cmd `projectName`.out
-${MCU_PLUS_SDK_PATH}/tools/bin2header/bin2header.exe `projectName`.b00 pru_load_bin.h PRUFirmware 4 -${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/tools/bin2header/bin2header.exe `projectName`.b00 pru_load_bin.h PRUFirmware 4
-@echo ' ' -@echo ' '
% } % }

View File

@ -145,7 +145,7 @@ BOOTIMAGE_CORE_ID_r5fss0-1 = 1
BOOTIMAGE_CORE_ID_c66ss0 = 2 BOOTIMAGE_CORE_ID_c66ss0 = 2
% if (args.project.device == "awr294x") { % if (args.project.device == "awr294x") {
BOOTIMAGE_CORE_ID_r4 = 3 BOOTIMAGE_CORE_ID_r4 = 3
R4_RPRC_PATH = $(MCU_PLUS_SDK_PATH)/source/drivers/bootloader/soc/awr294x/xwr2xxx_radarss_metarprc.bin R4_RPRC_PATH = $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/source/drivers/bootloader/soc/awr294x/xwr2xxx_radarss_metarprc.bin
% } % }
SBL_RUN_ADDRESS=0x10200000 SBL_RUN_ADDRESS=0x10200000
SBL_DEV_ID=55 SBL_DEV_ID=55
@ -161,10 +161,10 @@ SBL_RUN_ADDRESS=0x70000000
SBL_DEV_ID=55 SBL_DEV_ID=55
% } % }
MULTI_CORE_IMAGE_GEN = $(SYSCFG_NODE) $(MCU_PLUS_SDK_PATH)/tools/boot/multicoreImageGen/multicoreImageGen.js MULTI_CORE_IMAGE_GEN = $(SYSCFG_NODE) $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/multicoreImageGen/multicoreImageGen.js
OUTRPRC_CMD = $(SYSCFG_NODE) $(MCU_PLUS_SDK_PATH)/tools/boot/out2rprc/elf2rprc.js OUTRPRC_CMD = $(SYSCFG_NODE) $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/out2rprc/elf2rprc.js
% if ((args.project.device == "am243x") || (args.project.device == "am64x")) { % if ((args.project.device == "am243x") || (args.project.device == "am64x")) {
APP_IMAGE_SIGN_CMD = $(MCU_PLUS_SDK_PATH)/tools/boot/signing/appimage_x509_cert_gen.py APP_IMAGE_SIGN_CMD = $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/signing/appimage_x509_cert_gen.py
% } % }
MULTI_CORE_APP_PARAMS = \ MULTI_CORE_APP_PARAMS = \

View File

@ -3,7 +3,7 @@
# #
# Below variables need to be defined outside this file or via command line # Below variables need to be defined outside this file or via command line
# - MCU_PLUS_SDK_PATH # - MOTOR_CONTROL_SDK_PATH
# - PROFILE # - PROFILE
# - OUTNAME # - OUTNAME
# - CCS_INSTALL_DIR # - CCS_INSTALL_DIR
@ -71,7 +71,7 @@ BOOTIMAGE_CORE_ID_r5fss0-1 = 1
BOOTIMAGE_CORE_ID_c66ss0 = 2 BOOTIMAGE_CORE_ID_c66ss0 = 2
% if (args.project.device == "awr294x") { % if (args.project.device == "awr294x") {
BOOTIMAGE_CORE_ID_r4 = 3 BOOTIMAGE_CORE_ID_r4 = 3
R4_RPRC_PATH = $(MCU_PLUS_SDK_PATH)/source/drivers/bootloader/soc/awr294x/xwr2xxx_radarss_metarprc.bin R4_RPRC_PATH = $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/source/drivers/bootloader/soc/awr294x/xwr2xxx_radarss_metarprc.bin
% } % }
SBL_RUN_ADDRESS=0x10200000 SBL_RUN_ADDRESS=0x10200000
SBL_DEV_ID=55 SBL_DEV_ID=55
@ -87,10 +87,10 @@ SBL_RUN_ADDRESS=0x70000000
SBL_DEV_ID=55 SBL_DEV_ID=55
% } % }
MULTI_CORE_IMAGE_GEN = $(CCS_NODE) $(MCU_PLUS_SDK_PATH)/tools/boot/multicoreImageGen/multicoreImageGen.js MULTI_CORE_IMAGE_GEN = $(CCS_NODE) $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/multicoreImageGen/multicoreImageGen.js
OUTRPRC_CMD = $(CCS_NODE) $(MCU_PLUS_SDK_PATH)/tools/boot/out2rprc/elf2rprc.js OUTRPRC_CMD = $(CCS_NODE) $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/out2rprc/elf2rprc.js
% if ((args.project.device == "am243x") || (args.project.device == "am64x")) { % if ((args.project.device == "am243x") || (args.project.device == "am64x")) {
APP_IMAGE_SIGN_CMD = $(MCU_PLUS_SDK_PATH)/tools/boot/signing/appimage_x509_cert_gen.py APP_IMAGE_SIGN_CMD = $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/signing/appimage_x509_cert_gen.py
% } % }
MULTI_CORE_APP_PARAMS = \ MULTI_CORE_APP_PARAMS = \

View File

@ -17,50 +17,36 @@
"documentationPath": "../docs", "documentationPath": "../docs",
"includePaths": [ "includePaths": [
"../source", "../source",
"../mcu_plus_sdk/source",
], ],
"components": [ "components": [
% if((args.device == "am64x") || (args.device == "am243x")) { % if((args.device == "am64x") || (args.device == "am243x") || (args.device == "am263x")) {
"/motor_control/motor_control", "/motor_control",
% }
% if(args.device == "am263x") {
"/motor_control/motor_control",
% }
% if((args.device == "am273x") || (args.device == "awr294x")) {
"/kernel/dpl", "/kernel/dpl",
"/drivers/drivers", "/drivers/drivers",
"/board/board", "/board/board",
"/fs/fs",
"/networking/networking", "/networking/networking",
% } "/security/security",
% if(args.device == "am62x") { "/usb/usb",
"/kernel/dpl", "/pru_io/pru_io",
"/drivers/drivers",
"/board/board",
% } % }
], ],
"devices": [ "devices": [
% if((args.device == "am64x") || (isDevelopmentMode)) { % if((args.device == "am64x") || (isDevelopmentMode)) {
"AM64x_beta", "AM64x",
% } % }
% if((args.device == "am243x") || (isDevelopmentMode)) { % if((args.device == "am243x") || (isDevelopmentMode)) {
"AM243x_ALV_beta", "AM243x_ALV_beta",
"AM243x_ALX_beta", "AM243x_ALX_beta",
% } % }
% if((args.device == "am273x") || (isDevelopmentMode)) {
"AM273x",
% }
% if((args.device == "awr294x") || (isDevelopmentMode)) {
"AWR294X",
% }
% if((args.device == "am263x") || (isDevelopmentMode)) { % if((args.device == "am263x") || (isDevelopmentMode)) {
"AM263x_beta", "AM263x_beta",
% }
% if((args.device == "am62x") || (isDevelopmentMode)) {
"AM62x",
% } % }
], ],
"contexts": { "contexts": {
% if((args.device == "am64x") || (isDevelopmentMode)) { % if((args.device == "am64x") || (isDevelopmentMode)) {
"AM64x_beta": [ "AM64x": [
"r5fss0-0", "r5fss0-0",
"r5fss0-1", "r5fss0-1",
"r5fss1-0", "r5fss1-0",
@ -85,22 +71,6 @@
"m4fss0-0", "m4fss0-0",
], ],
% } % }
% if((args.device == "am273x") || (isDevelopmentMode)) {
"AM273x": [
"r5fss0-0",
"r5fss0-1",
"c66ss0",
"hsm0-0",
],
% }
% if((args.device == "awr294x") || (isDevelopmentMode)) {
"AWR294X": [
"r5fss0-0",
"r5fss0-1",
"c66ss0",
"hsm0-0",
],
% }
% if((args.device == "am263x") || (isDevelopmentMode)) { % if((args.device == "am263x") || (isDevelopmentMode)) {
"AM263x_beta": [ "AM263x_beta": [
"r5fss0-0", "r5fss0-0",
@ -109,11 +79,6 @@
"r5fss1-1", "r5fss1-1",
"hsm0-0", "hsm0-0",
], ],
% }
% if((args.device == "am62x") || (isDevelopmentMode)) {
"AM62x": [
"m4fss0-0",
],
% } % }
}, },
"pinmuxUIOptions": { "pinmuxUIOptions": {

View File

@ -7,8 +7,6 @@
} }
products+=`com.ti.${args.utils.getProductNameProjectSpec(args.project.device)};` products+=`com.ti.${args.utils.getProductNameProjectSpec(args.project.device)};`
productName = args.utils.getProductNameProjectSpec(args.project.device); productName = args.utils.getProductNameProjectSpec(args.project.device);
products+=`com.ti.${args.utils.getDependentProductNameProjectSpec(args.project.device)}`
dependentProductName = args.utils.getDependentProductNameProjectSpec(args.project.device);
if(args.project.projecspecFileAction) // should be renamed to projectspecFileAction if(args.project.projecspecFileAction) // should be renamed to projectspecFileAction
{ {
defaultAction = args.project.projecspecFileAction; defaultAction = args.project.projecspecFileAction;
@ -160,8 +158,8 @@
% let projectPath = `${obj.relpath}/${obj.board}/${obj.cpu}_${obj.os}/${obj.cgt}`; % let projectPath = `${obj.relpath}/${obj.board}/${obj.cpu}_${obj.os}/${obj.cgt}`;
% if(args.project["defaultPruPostBuildSteps"]) { % if(args.project["defaultPruPostBuildSteps"]) {
postBuildStep=" postBuildStep="
$(CG_TOOL_ROOT)/bin/hexpru.exe ${MCU_PLUS_SDK_PATH}/`projectPath`/hexpru.cmd `projectName`.out; $(CG_TOOL_ROOT)/bin/hexpru.exe ${MOTOR_CONTROL_SDK_PATH}/`projectPath`/hexpru.cmd `projectName`.out;
${MCU_PLUS_SDK_PATH}/tools/bin2header/bin2header.exe `projectName`.b00 pru_load_bin.h PRUFirmware 4; ${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/tools/bin2header/bin2header.exe `projectName`.b00 pru_load_bin.h PRUFirmware 4;
" "
% } % }
% if("postBuildSteps" in args.project) { % if("postBuildSteps" in args.project) {
@ -173,7 +171,7 @@
" "
% } else if (args.project.cpu.includes("pru")) { % } else if (args.project.cpu.includes("pru")) {
% } else { % } else {
postBuildStep="$(MAKE) -C ${CCS_PROJECT_DIR} -f makefile_ccs_bootimage_gen OUTNAME=${BuildArtifactFileBaseName} PROFILE=${ConfigName} MCU_PLUS_SDK_PATH=${MCU_PLUS_SDK_PATH} CG_TOOL_ROOT=${CG_TOOL_ROOT} CCS_INSTALL_DIR=${CCS_INSTALL_DIR} CCS_IDE_MODE=${CCS_IDE_MODE} DEVICE=`args.project.device`" 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=`args.project.device`"
% } % }
% if("syscfgfile" in args.project) { % if("syscfgfile" in args.project) {
@ -252,7 +250,6 @@
% if(args.project.device == "am273x") { % if(args.project.device == "am273x") {
<pathVariable name="DSPLIB_PATH" path="${COM_TI_`productName`_INSTALL_DIR}/source/dsplib_c66x_3_4_0_0" scope="project" /> <pathVariable name="DSPLIB_PATH" path="${COM_TI_`productName`_INSTALL_DIR}/source/dsplib_c66x_3_4_0_0" scope="project" />
% } % }
<pathVariable name="MCU_PLUS_SDK_PATH" path="${COM_TI_`dependentProductName`_INSTALL_DIR}" scope="project" />
<pathVariable name="`args.sdkName`" path="${COM_TI_`productName`_INSTALL_DIR}" scope="project" /> <pathVariable name="`args.sdkName`" path="${COM_TI_`productName`_INSTALL_DIR}" scope="project" />
% filelist = args.utils.getFileListProjectSpec(args.project.files, args.project.filedirs, args.project.dirPath) % filelist = args.utils.getFileListProjectSpec(args.project.files, args.project.filedirs, args.project.dirPath)
% for (file of filelist) { % for (file of filelist) {

View File

@ -10,7 +10,7 @@
<preBuildSteps> <preBuildSteps>
</preBuildSteps> </preBuildSteps>
<postBuildSteps> <postBuildSteps>
<step command="$(MAKE) -C ${CCS_PROJECT_DIR} -f makefile_system_ccs_bootimage_gen OUTNAME=`args.project.name`_system PROFILE=${ConfigName} MCU_PLUS_SDK_PATH=${MCU_PLUS_SDK_PATH} CG_TOOL_ROOT=${CG_TOOL_ROOT} CCS_INSTALL_DIR=${CCS_INSTALL_DIR} CCS_IDE_MODE=${CCS_IDE_MODE}"/> <step command="$(MAKE) -C ${CCS_PROJECT_DIR} -f makefile_system_ccs_bootimage_gen OUTNAME=`args.project.name`_system 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}"/>
</postBuildSteps> </postBuildSteps>
</system> </system>

View File

@ -9,7 +9,7 @@
## Introduction ## Introduction
The Motor Control SDK enables real-time industrial communications for TI processors. Industrial communication is typically handled by the Programmable Real-Time Unit Industrial Communication Subsystem (PRU-ICSS). The PRU-ICSS is a co-processor subsystem containing Programmable Real-Time (PRU) cores and Ethernet media access controllers (EMACs), which implement the low level industrial Ethernet and fieldbus protocols through firmware. The Motor Control SDK enables real-time communications with encoders for TI processors. Communication is typically handled by the Programmable Real-Time Unit Industrial Communication Subsystem (PRU-ICSS). The PRU-ICSS is a co-processor subsystem containing Programmable Real-Time (PRU) cores which implement the low level firmware
These devices currently include These devices currently include
@ -20,13 +20,14 @@ These devices currently include
## Features ## Features
- Out of Box peripheral and application Examples - Out of Box peripheral and application Examples
- Application Level Examples: Motor Drives, Industrial Communications etc. - Application Level Examples: Motor Drives etc.
- Protocol stacks and middleware - Protocol stacks and middleware
- Various Industrial Protocol Stacks - Various Industrial Protocol Stacks
- Industrial protocol firmware - Fimrware
- ICCSG, ICSSM etc. - Motor Drivers fimrware
- Industrial protocol firmware
## Overview ## Overview
@ -77,10 +78,10 @@ To clone the repositories using repo tool, do below in your workarea folder:
Note that depending on the SoC you're working with, the components you clone might be Note that depending on the SoC you're working with, the components you clone might be
slightly different. So please choose the manifest folder according to the SoC of your slightly different. So please choose the manifest folder according to the SoC of your
interest. For example, we are showing for am263x below. interest. For example, we are showing for am243x below.
```bash ```bash
repo init -u https://github.com/TexasInstruments/industrial-comms-manifests.git -m am243x/dev.xml -b main repo init -u https://github.com/TexasInstruments/motor-control-manifests.git -m am243x/dev.xml -b main
``` ```
Note that repo uses symbolic links. So if you're on Windows and do not have permissions Note that repo uses symbolic links. So if you're on Windows and do not have permissions
@ -89,7 +90,7 @@ to create symbolic links, the above command might fail for you. So you can eithe
worktree feature of repo. To do this, initialize the repo like so: worktree feature of repo. To do this, initialize the repo like so:
```bash ```bash
repo init --worktree -u https://github.com/TexasInstruments/industrial-comms-manifests.git -m am243x/dev.xml -b main repo init --worktree -u https://github.com/TexasInstruments/motor-control-manifests.git -m am243x/dev.xml -b main
``` ```
After the repo is initialized, do a After the repo is initialized, do a
@ -102,35 +103,35 @@ This should clone all the repositories required for Motor Control SDK developmen
#### Downloading And Installing Dependencies #### Downloading And Installing Dependencies
Note that the dependencies are also soc specific, here we take an example of am263x. Note that the dependencies are also soc specific, here we take an example of am243x.
You can replace that with the SoC of your choice like the `repo init` step. You can replace that with the SoC of your choice like the `repo init` step.
**To download and install dependencies in linux, follow the below steps**: **To download and install dependencies in linux, follow the below steps**:
Run the following from the same location where you have `industrial_comms` and `industrial_comms_setup` Run the following from the same location where you have `motor_control_sdk` and `motor_control_setup`
folders. folders.
```bash ```bash
./industrial_comms_setup/am243x/download_components.sh ./motor_control_setup/am243x/download_components.sh
``` ```
This will install all the required dependencies including Code Composer Studio (CCS). This will install all the required dependencies including Code Composer Studio (CCS).
The script assumes that `industrial_comms` folder is in the same location from where The script assumes that `motor_control_sdk` folder is in the same location from where
you have invoked the script, and that dependencies are installed into `${HOME}/ti` you have invoked the script, and that dependencies are installed into `${HOME}/ti`
location. If these defaults don't work for you, please pass these as arguments to location. If these defaults don't work for you, please pass these as arguments to
the script like the script like
```bash ```bash
./industrial_comms_setup/am243x/download_components.sh --install_dir=/path/to/tools ./motor_control_setup/am243x/download_components.sh --install_dir=/path/to/tools
OR OR
./industrial_comms_setup/am243x/download_components.sh --industrial_comms_sdk_folder=/path/to/industrial_comms/folder ./motor_control_setup/am243x/download_components.sh --motor_control_sdk_sdk_folder=/path/to/motor_control_sdk/folder
``` ```
and so on. For a complete list of arguments you can pass to the script, please run and so on. For a complete list of arguments you can pass to the script, please run
```bash ```bash
./industrial_comms_setup/am243x/download_components.sh -h ./motor_control_setup/am243x/download_components.sh -h
``` ```
**In windows the dependencies has to be manually installed. Given below are the steps**: **In windows the dependencies has to be manually installed. Given below are the steps**:
@ -149,9 +150,9 @@ and so on. For a complete list of arguments you can pass to the script, please r
4. Download and install Node.js v12.18.4 LTS 4. Download and install Node.js v12.18.4 LTS
- Go to the [NodeJS Website](https://nodejs.org/en/) and use the installer to - Go to the [NodeJS Website](https://nodejs.org/en/) and use the installer to
download and install v12.18.4 of node. Install in the default directory. download and install v12.18.4 of node. Install in the default directory.
- After successful installation, run an `npm ci` inside the `industrial_comms` folder like so: - After successful installation, run an `npm ci` inside the `motor_control_sdk` folder like so:
```bash ```bash
$ cd industrial_comms/ $ cd motor_control_sdk/
$ npm ci $ npm ci
$ cd ../ $ cd ../
``` ```
@ -230,8 +231,8 @@ repo start dev --all
- Use `gmake` in windows, add path to gmake present in CCS at `C:\ti\ccsxxxx\ccs\utils\bin` to your windows PATH. We have - Use `gmake` in windows, add path to gmake present in CCS at `C:\ti\ccsxxxx\ccs\utils\bin` to your windows PATH. We have
used `make` in below instructions. used `make` in below instructions.
- Unless mentioned otherwise, all below commands are invoked from root folder of the "industrial_comms" repository. - Unless mentioned otherwise, all below commands are invoked from root folder of the "motor_control_sdk" repository.
- Current supported device names are am64x, am243x, am263x, am273x and awr294x - Current supported device names are am64x, am243x, am243x, am273x and awr294x
- Pass one of these values to `"DEVICE="` - Pass one of these values to `"DEVICE="`
- You can also build components (examples, tests or libraries) in `release` or `debug` - You can also build components (examples, tests or libraries) in `release` or `debug`
profiles. To do this pass one of these values to `"PROFILE="` profiles. To do this pass one of these values to `"PROFILE="`
@ -241,29 +242,29 @@ repo start dev --all
1. Run the following command to create makefiles, this step is optional since this is invoked as part of other steps as well, 1. Run the following command to create makefiles, this step is optional since this is invoked as part of other steps as well,
```bash ```bash
make gen-buildfiles DEVICE=am263x make gen-buildfiles DEVICE=am243x
``` ```
2. To see all granular build options, run 2. To see all granular build options, run
```bash ```bash
make -s help DEVICE=am263x make -s help DEVICE=am243x
``` ```
This should show you commands to build specific libraries, examples or tests. This should show you commands to build specific libraries, examples or tests.
3. Make sure to build the libraries before attempting to build an example. For example, 3. Make sure to build the libraries before attempting to build an example. For example,
to build a Hello World example for AM263x, run the following: to build a Hello World example for AM263x, run the following:
```bash ```bash
make -s -j4 libs DEVICE=am263x PROFILE=debug make -s -j4 libs DEVICE=am243x PROFILE=debug
``` ```
Once the library build is complete, to build the example run: Once the library build is complete, to build the example run:
```bash ```bash
make -s -C examples/hello_world/am263x-cc/r5fss0-0_nortos/ti-arm-clang all PROFILE=debug make -s -C examples/hello_world/am243x-cc/r5fss0-0_nortos/ti-arm-clang all PROFILE=debug
``` ```
4. Following are the commands to build **all libraries** and **all examples**. Valid PROFILE's are "release" or "debug" 4. Following are the commands to build **all libraries** and **all examples**. Valid PROFILE's are "release" or "debug"
```bash ```bash
make -s -j4 clean DEVICE=am263x PROFILE=debug make -s -j4 clean DEVICE=am243x PROFILE=debug
make -s -j4 all DEVICE=am263x PROFILE=debug make -s -j4 all DEVICE=am243x PROFILE=debug
``` ```

View File

@ -2,7 +2,7 @@
DEVICE_TYPE?=GP DEVICE_TYPE?=GP
# Path to the signing tools, keys etc # Path to the signing tools, keys etc
SIGNING_TOOL_PATH=$(MCU_PLUS_SDK_PATH)/tools/boot/signing SIGNING_TOOL_PATH=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/signing
# Path to the keys # Path to the keys
ROM_DEGENERATE_KEY:=$(SIGNING_TOOL_PATH)/rom_degenerateKey.pem ROM_DEGENERATE_KEY:=$(SIGNING_TOOL_PATH)/rom_degenerateKey.pem

File diff suppressed because one or more lines are too long

View File

@ -26,20 +26,20 @@ const filedirs = {
const libdirs_freertos = { const libdirs_freertos = {
common: [ common: [
"${MCU_PLUS_SDK_PATH}/source/kernel/freertos/lib", "${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/lib",
"${MCU_PLUS_SDK_PATH}/source/drivers/lib", "${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/drivers/lib",
"${MCU_PLUS_SDK_PATH}/source/board/lib", "${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/board/lib",
"${MOTOR_CONTROL_SDK_PATH}/source/motor_control/current_sense/sdfm/lib", "${MOTOR_CONTROL_SDK_PATH}/source/current_sense/sdfm/lib",
], ],
}; };
const includes_freertos_r5f = { const includes_freertos_r5f = {
common: [ common: [
"${MCU_PLUS_SDK_PATH}/source/kernel/freertos/FreeRTOS-Kernel/include", "${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/FreeRTOS-Kernel/include",
"${MCU_PLUS_SDK_PATH}/source/kernel/freertos/portable/TI_ARM_CLANG/ARM_CR5F", "${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/portable/TI_ARM_CLANG/ARM_CR5F",
"${MCU_PLUS_SDK_PATH}/source/kernel/freertos/config/am243x/r5f", "${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/config/am243x/r5f",
"${MOTOR_CONTROL_SDK_PATH}/source/motor_control/current_sense/sdfm/include", "${MOTOR_CONTROL_SDK_PATH}/source/current_sense/sdfm/include",
"${MCU_PLUS_SDK_PATH}/examples/motor_control/icss_sdfm", "${MOTOR_CONTROL_SDK_PATH}/examples/icss_sdfm",
], ],
}; };

View File

@ -26,20 +26,20 @@ const filedirs = {
const libdirs_freertos = { const libdirs_freertos = {
common: [ common: [
"${MCU_PLUS_SDK_PATH}/source/kernel/freertos/lib", "${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/lib",
"${MCU_PLUS_SDK_PATH}/source/drivers/lib", "${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/drivers/lib",
"${MCU_PLUS_SDK_PATH}/source/board/lib", "${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/board/lib",
"${MOTOR_CONTROL_SDK_PATH}/source/motor_control/current_sense/sdfm/lib", "${MOTOR_CONTROL_SDK_PATH}/source/current_sense/sdfm/lib",
], ],
}; };
const includes_freertos_r5f = { const includes_freertos_r5f = {
common: [ common: [
"${MCU_PLUS_SDK_PATH}/source/kernel/freertos/FreeRTOS-Kernel/include", "${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/FreeRTOS-Kernel/include",
"${MCU_PLUS_SDK_PATH}/source/kernel/freertos/portable/TI_ARM_CLANG/ARM_CR5F", "${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/portable/TI_ARM_CLANG/ARM_CR5F",
"${MCU_PLUS_SDK_PATH}/source/kernel/freertos/config/am64x/r5f", "${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/config/am64x/r5f",
"${MOTOR_CONTROL_SDK_PATH}/source/motor_control/current_sense/sdfm/include", "${MOTOR_CONTROL_SDK_PATH}/source/current_sense/sdfm/include",
"${MCU_PLUS_SDK_PATH}/examples/motor_control/icss_sdfm", "${MOTOR_CONTROL_SDK_PATH}/examples/icss_sdfm",
], ],
}; };

View File

@ -12,14 +12,14 @@
<project <project
title="Icss Sdfm" title="Icss Sdfm"
name = "icss_sdfm_am243x-evm_r5fss0-0_freertos_ti-arm-clang" name = "icss_sdfm_am243x-evm_r5fss0-0_freertos_ti-arm-clang"
products="sysconfig;com.ti.MOTOR_CONTROL_SDK_AMXXX;com.ti.MCU_PLUS_SDK_AMXXX" products="sysconfig;com.ti.MOTOR_CONTROL_SDK_AMXXX;"
configurations=" configurations="
Debug, Debug,
Release, Release,
" "
connection="TIXDS110_Connection.xml" connection="TIXDS110_Connection.xml"
toolChain="TICLANG" toolChain="TICLANG"
cgtVersion="2.1.2" cgtVersion="2.1.3"
device="Cortex R.AM2434_ALV" device="Cortex R.AM2434_ALV"
deviceCore="MAIN_PULSAR_Cortex_R5_0_0" deviceCore="MAIN_PULSAR_Cortex_R5_0_0"
ignoreDefaultDeviceSettings="true" ignoreDefaultDeviceSettings="true"
@ -30,13 +30,13 @@
compilerBuildOptions=" compilerBuildOptions="
-I${CG_TOOL_ROOT}/include/c -I${CG_TOOL_ROOT}/include/c
-I${MCU_PLUS_SDK_PATH}/source -I${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source
-I${MOTOR_CONTROL_SDK_PATH}/source -I${MOTOR_CONTROL_SDK_PATH}/source
-I${MCU_PLUS_SDK_PATH}/source/kernel/freertos/FreeRTOS-Kernel/include -I${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/FreeRTOS-Kernel/include
-I${MCU_PLUS_SDK_PATH}/source/kernel/freertos/portable/TI_ARM_CLANG/ARM_CR5F -I${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/portable/TI_ARM_CLANG/ARM_CR5F
-I${MCU_PLUS_SDK_PATH}/source/kernel/freertos/config/am243x/r5f -I${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/config/am243x/r5f
-I${MOTOR_CONTROL_SDK_PATH}/source/motor_control/current_sense/sdfm/include -I${MOTOR_CONTROL_SDK_PATH}/source/current_sense/sdfm/include
-I${MCU_PLUS_SDK_PATH}/examples/motor_control/icss_sdfm -I${MOTOR_CONTROL_SDK_PATH}/examples/icss_sdfm
-mcpu=cortex-r5 -mcpu=cortex-r5
-mfloat-abi=hard -mfloat-abi=hard
-mfpu=vfpv3-d16 -mfpu=vfpv3-d16
@ -49,10 +49,10 @@
-DSOC_AM243X -DSOC_AM243X
" "
linkerBuildOptions=" linkerBuildOptions="
-i${MCU_PLUS_SDK_PATH}/source/kernel/freertos/lib -i${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/lib
-i${MCU_PLUS_SDK_PATH}/source/drivers/lib -i${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/drivers/lib
-i${MCU_PLUS_SDK_PATH}/source/board/lib -i${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/board/lib
-i${MOTOR_CONTROL_SDK_PATH}/source/motor_control/current_sense/sdfm/lib -i${MOTOR_CONTROL_SDK_PATH}/source/current_sense/sdfm/lib
-i${CG_TOOL_ROOT}/lib -i${CG_TOOL_ROOT}/lib
-m=icss_sdfm.${ConfigName}.map -m=icss_sdfm.${ConfigName}.map
--diag_suppress=10063 --diag_suppress=10063
@ -60,7 +60,7 @@
--reread_libs --reread_libs
" "
postBuildStep="$(MAKE) -C ${CCS_PROJECT_DIR} -f makefile_ccs_bootimage_gen OUTNAME=${BuildArtifactFileBaseName} PROFILE=${ConfigName} MCU_PLUS_SDK_PATH=${MCU_PLUS_SDK_PATH} CG_TOOL_ROOT=${CG_TOOL_ROOT} CCS_INSTALL_DIR=${CCS_INSTALL_DIR} CCS_IDE_MODE=${CCS_IDE_MODE} DEVICE=am243x" 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" enableSysConfigTool="true"
sysConfigBuildOptions=" sysConfigBuildOptions="
@ -95,7 +95,6 @@
-llibsysbm.a -llibsysbm.a
" "
></configuration> ></configuration>
<pathVariable name="MCU_PLUS_SDK_PATH" path="${COM_TI_MCU_PLUS_SDK_AMXXX_INSTALL_DIR}" scope="project" />
<pathVariable name="MOTOR_CONTROL_SDK_PATH" path="${COM_TI_MOTOR_CONTROL_SDK_AMXXX_INSTALL_DIR}" scope="project" /> <pathVariable name="MOTOR_CONTROL_SDK_PATH" path="${COM_TI_MOTOR_CONTROL_SDK_AMXXX_INSTALL_DIR}" scope="project" />
<file path="../../../app_sddf.c" openOnCreation="false" excludeFromBuild="false" action="copy"> <file path="../../../app_sddf.c" openOnCreation="false" excludeFromBuild="false" action="copy">
</file> </file>

View File

@ -60,13 +60,13 @@ FILES_PATH_common = \
INCLUDES_common := \ INCLUDES_common := \
-I${CG_TOOL_ROOT}/include/c \ -I${CG_TOOL_ROOT}/include/c \
-I${MCU_PLUS_SDK_PATH}/source \ -I${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source \
-I${MOTOR_CONTROL_SDK_PATH}/source \ -I${MOTOR_CONTROL_SDK_PATH}/source \
-I${MCU_PLUS_SDK_PATH}/source/kernel/freertos/FreeRTOS-Kernel/include \ -I${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/FreeRTOS-Kernel/include \
-I${MCU_PLUS_SDK_PATH}/source/kernel/freertos/portable/TI_ARM_CLANG/ARM_CR5F \ -I${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/portable/TI_ARM_CLANG/ARM_CR5F \
-I${MCU_PLUS_SDK_PATH}/source/kernel/freertos/config/am243x/r5f \ -I${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/config/am243x/r5f \
-I${MOTOR_CONTROL_SDK_PATH}/source/motor_control/current_sense/sdfm/include \ -I${MOTOR_CONTROL_SDK_PATH}/source/current_sense/sdfm/include \
-I${MCU_PLUS_SDK_PATH}/examples/motor_control/icss_sdfm \ -I${MOTOR_CONTROL_SDK_PATH}/examples/icss_sdfm \
-Igenerated \ -Igenerated \
DEFINES_common := \ DEFINES_common := \
@ -105,10 +105,10 @@ LNK_FILES_common = \
linker.cmd \ linker.cmd \
LIBS_PATH_common = \ LIBS_PATH_common = \
-Wl,-i${MCU_PLUS_SDK_PATH}/source/kernel/freertos/lib \ -Wl,-i${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/lib \
-Wl,-i${MCU_PLUS_SDK_PATH}/source/drivers/lib \ -Wl,-i${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/drivers/lib \
-Wl,-i${MCU_PLUS_SDK_PATH}/source/board/lib \ -Wl,-i${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/board/lib \
-Wl,-i${MOTOR_CONTROL_SDK_PATH}/source/motor_control/current_sense/sdfm/lib \ -Wl,-i${MOTOR_CONTROL_SDK_PATH}/source/current_sense/sdfm/lib \
-Wl,-i${CG_TOOL_ROOT}/lib \ -Wl,-i${CG_TOOL_ROOT}/lib \
LIBS_common = \ LIBS_common = \
@ -134,10 +134,10 @@ LIBS_NAME = \
libsysbm.a \ libsysbm.a \
LIBS_PATH_NAME = \ LIBS_PATH_NAME = \
${MCU_PLUS_SDK_PATH}/source/kernel/freertos/lib \ ${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/lib \
${MCU_PLUS_SDK_PATH}/source/drivers/lib \ ${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/drivers/lib \
${MCU_PLUS_SDK_PATH}/source/board/lib \ ${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/board/lib \
${MOTOR_CONTROL_SDK_PATH}/source/motor_control/current_sense/sdfm/lib \ ${MOTOR_CONTROL_SDK_PATH}/source/current_sense/sdfm/lib \
${CG_TOOL_ROOT}/lib \ ${CG_TOOL_ROOT}/lib \
FILES := $(FILES_common) $(FILES_$(PROFILE)) FILES := $(FILES_common) $(FILES_$(PROFILE))
@ -233,10 +233,10 @@ $(SYSCFG_GEN_FILES): syscfg
syscfg: ../example.syscfg syscfg: ../example.syscfg
@echo Generating SysConfig files ... @echo Generating SysConfig files ...
$(SYSCFG_NODE) $(SYSCFG_CLI_PATH)/dist/cli.js --product $(SYSCFG_MCUPLUSSDKPRODUCT) --product $(SYSCFG_SDKPRODUCT) --context r5fss0-0 --part ALV --package ALV --output generated/ ../example.syscfg $(SYSCFG_NODE) $(SYSCFG_CLI_PATH)/dist/cli.js --product $(SYSCFG_SDKPRODUCT) --context r5fss0-0 --part ALV --package ALV --output generated/ ../example.syscfg
syscfg-gui: syscfg-gui:
$(SYSCFG_NWJS) $(SYSCFG_PATH) --product $(SYSCFG_MCUPLUSSDKPRODUCT) --product $(SYSCFG_SDKPRODUCT) --device AM243x_ALV_beta --context r5fss0-0 --part ALV --package ALV --output generated/ ../example.syscfg $(SYSCFG_NWJS) $(SYSCFG_PATH) --product $(SYSCFG_SDKPRODUCT) --device AM243x_ALV_beta --context r5fss0-0 --part ALV --package ALV --output generated/ ../example.syscfg
# #
# Generation of boot image which can be loaded by Secondary Boot Loader (SBL) # Generation of boot image which can be loaded by Secondary Boot Loader (SBL)
@ -245,9 +245,9 @@ ifeq ($(OS),Windows_NT)
EXE_EXT=.exe EXE_EXT=.exe
endif endif
ifeq ($(OS),Windows_NT) ifeq ($(OS),Windows_NT)
BOOTIMAGE_CERT_GEN_CMD=powershell -executionpolicy unrestricted -command $(MCU_PLUS_SDK_PATH)/tools/boot/signing/x509CertificateGen.ps1 BOOTIMAGE_CERT_GEN_CMD=powershell -executionpolicy unrestricted -command $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/signing/x509CertificateGen.ps1
else else
BOOTIMAGE_CERT_GEN_CMD=$(MCU_PLUS_SDK_PATH)/tools/boot/signing/x509CertificateGen.sh BOOTIMAGE_CERT_GEN_CMD=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/signing/x509CertificateGen.sh
endif endif
BOOTIMAGE_TEMP_OUT_FILE=temp_stdout_$(PROFILE).txt BOOTIMAGE_TEMP_OUT_FILE=temp_stdout_$(PROFILE).txt
@ -261,14 +261,14 @@ BOOTIMAGE_CORE_ID_m4fss0-0 = 14
SBL_RUN_ADDRESS=0x70000000 SBL_RUN_ADDRESS=0x70000000
SBL_DEV_ID=55 SBL_DEV_ID=55
MULTI_CORE_IMAGE_GEN = $(SYSCFG_NODE) $(MCU_PLUS_SDK_PATH)/tools/boot/multicoreImageGen/multicoreImageGen.js MULTI_CORE_IMAGE_GEN = $(SYSCFG_NODE) $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/multicoreImageGen/multicoreImageGen.js
OUTRPRC_CMD = $(SYSCFG_NODE) $(MCU_PLUS_SDK_PATH)/tools/boot/out2rprc/elf2rprc.js OUTRPRC_CMD = $(SYSCFG_NODE) $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/out2rprc/elf2rprc.js
APP_IMAGE_SIGN_CMD = $(MCU_PLUS_SDK_PATH)/tools/boot/signing/appimage_x509_cert_gen.py APP_IMAGE_SIGN_CMD = $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/signing/appimage_x509_cert_gen.py
ifeq ($(OS),Windows_NT) ifeq ($(OS),Windows_NT)
XIPGEN_CMD=$(MCU_PLUS_SDK_PATH)/tools/boot/xipGen/xipGen.exe XIPGEN_CMD=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/xipGen/xipGen.exe
else else
XIPGEN_CMD=$(MCU_PLUS_SDK_PATH)/tools/boot/xipGen/xipGen.out XIPGEN_CMD=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/xipGen/xipGen.out
endif endif
MULTI_CORE_IMAGE_PARAMS = \ MULTI_CORE_IMAGE_PARAMS = \

View File

@ -3,7 +3,7 @@
# #
# Below variables need to be defined outside this file or via command line # Below variables need to be defined outside this file or via command line
# - MCU_PLUS_SDK_PATH # - MOTOR_CONTROL_SDK_PATH
# - PROFILE # - PROFILE
# - CG_TOOL_ROOT # - CG_TOOL_ROOT
# - OUTNAME # - OUTNAME
@ -11,8 +11,8 @@
# - CCS_IDE_MODE # - CCS_IDE_MODE
CCS_PATH=$(CCS_INSTALL_DIR) CCS_PATH=$(CCS_INSTALL_DIR)
include $(MCU_PLUS_SDK_PATH)/imports.mak include ${MOTOR_CONTROL_SDK_PATH}/imports.mak
include $(MCU_PLUS_SDK_PATH)/devconfig/devconfig.mak include ${MOTOR_CONTROL_SDK_PATH}/devconfig/devconfig.mak
STRIP=$(CG_TOOL_ROOT)/bin/tiarmstrip STRIP=$(CG_TOOL_ROOT)/bin/tiarmstrip
OBJCOPY=$(CG_TOOL_ROOT)/bin/tiarmobjcopy OBJCOPY=$(CG_TOOL_ROOT)/bin/tiarmobjcopy
@ -38,9 +38,9 @@ ifeq ($(OS),Windows_NT)
EXE_EXT=.exe EXE_EXT=.exe
endif endif
ifeq ($(OS),Windows_NT) ifeq ($(OS),Windows_NT)
BOOTIMAGE_CERT_GEN_CMD=powershell -executionpolicy unrestricted -command $(MCU_PLUS_SDK_PATH)/tools/boot/signing/x509CertificateGen.ps1 BOOTIMAGE_CERT_GEN_CMD=powershell -executionpolicy unrestricted -command $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/signing/x509CertificateGen.ps1
else else
BOOTIMAGE_CERT_GEN_CMD=$(MCU_PLUS_SDK_PATH)/tools/boot/signing/x509CertificateGen.sh BOOTIMAGE_CERT_GEN_CMD=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/signing/x509CertificateGen.sh
endif endif
BOOTIMAGE_TEMP_OUT_FILE=$(PROFILE)/temp_stdout_$(PROFILE).txt BOOTIMAGE_TEMP_OUT_FILE=$(PROFILE)/temp_stdout_$(PROFILE).txt
@ -52,14 +52,14 @@ BOOTIMAGE_CORE_ID_m4fss0-0 = 14
SBL_RUN_ADDRESS=0x70000000 SBL_RUN_ADDRESS=0x70000000
SBL_DEV_ID=55 SBL_DEV_ID=55
MULTI_CORE_IMAGE_GEN = $(CCS_NODE) $(MCU_PLUS_SDK_PATH)/tools/boot/multicoreImageGen/multicoreImageGen.js MULTI_CORE_IMAGE_GEN = $(CCS_NODE) $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/multicoreImageGen/multicoreImageGen.js
OUTRPRC_CMD = $(CCS_NODE) $(MCU_PLUS_SDK_PATH)/tools/boot/out2rprc/elf2rprc.js OUTRPRC_CMD = $(CCS_NODE) $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/out2rprc/elf2rprc.js
APP_IMAGE_SIGN_CMD = $(MCU_PLUS_SDK_PATH)/tools/boot/signing/appimage_x509_cert_gen.py APP_IMAGE_SIGN_CMD = $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/signing/appimage_x509_cert_gen.py
ifeq ($(OS),Windows_NT) ifeq ($(OS),Windows_NT)
XIPGEN_CMD=$(MCU_PLUS_SDK_PATH)/tools/boot/xipGen/xipGen.exe XIPGEN_CMD=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/xipGen/xipGen.exe
else else
XIPGEN_CMD=$(MCU_PLUS_SDK_PATH)/tools/boot/xipGen/xipGen.out XIPGEN_CMD=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/xipGen/xipGen.out
endif endif
MULTI_CORE_IMAGE_PARAMS = \ MULTI_CORE_IMAGE_PARAMS = \

View File

@ -12,14 +12,14 @@
<project <project
title="Icss Sdfm" title="Icss Sdfm"
name = "icss_sdfm_am64x-evm_r5fss0-0_freertos_ti-arm-clang" name = "icss_sdfm_am64x-evm_r5fss0-0_freertos_ti-arm-clang"
products="sysconfig;com.ti.MOTOR_CONTROL_SDK_AMXXX;com.ti.MCU_PLUS_SDK_AMXXX" products="sysconfig;com.ti.MOTOR_CONTROL_SDK_AMXXX;"
configurations=" configurations="
Debug, Debug,
Release, Release,
" "
connection="TIXDS110_Connection.xml" connection="TIXDS110_Connection.xml"
toolChain="TICLANG" toolChain="TICLANG"
cgtVersion="2.1.2" cgtVersion="2.1.3"
device="Cortex R.AM64x" device="Cortex R.AM64x"
deviceCore="MAIN_PULSAR_Cortex_R5_0_0" deviceCore="MAIN_PULSAR_Cortex_R5_0_0"
ignoreDefaultDeviceSettings="true" ignoreDefaultDeviceSettings="true"
@ -30,13 +30,13 @@
compilerBuildOptions=" compilerBuildOptions="
-I${CG_TOOL_ROOT}/include/c -I${CG_TOOL_ROOT}/include/c
-I${MCU_PLUS_SDK_PATH}/source -I${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source
-I${MOTOR_CONTROL_SDK_PATH}/source -I${MOTOR_CONTROL_SDK_PATH}/source
-I${MCU_PLUS_SDK_PATH}/source/kernel/freertos/FreeRTOS-Kernel/include -I${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/FreeRTOS-Kernel/include
-I${MCU_PLUS_SDK_PATH}/source/kernel/freertos/portable/TI_ARM_CLANG/ARM_CR5F -I${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/portable/TI_ARM_CLANG/ARM_CR5F
-I${MCU_PLUS_SDK_PATH}/source/kernel/freertos/config/am64x/r5f -I${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/config/am64x/r5f
-I${MOTOR_CONTROL_SDK_PATH}/source/motor_control/current_sense/sdfm/include -I${MOTOR_CONTROL_SDK_PATH}/source/current_sense/sdfm/include
-I${MCU_PLUS_SDK_PATH}/examples/motor_control/icss_sdfm -I${MOTOR_CONTROL_SDK_PATH}/examples/icss_sdfm
-mcpu=cortex-r5 -mcpu=cortex-r5
-mfloat-abi=hard -mfloat-abi=hard
-mfpu=vfpv3-d16 -mfpu=vfpv3-d16
@ -49,10 +49,10 @@
-DSOC_AM64X -DSOC_AM64X
" "
linkerBuildOptions=" linkerBuildOptions="
-i${MCU_PLUS_SDK_PATH}/source/kernel/freertos/lib -i${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/lib
-i${MCU_PLUS_SDK_PATH}/source/drivers/lib -i${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/drivers/lib
-i${MCU_PLUS_SDK_PATH}/source/board/lib -i${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/board/lib
-i${MOTOR_CONTROL_SDK_PATH}/source/motor_control/current_sense/sdfm/lib -i${MOTOR_CONTROL_SDK_PATH}/source/current_sense/sdfm/lib
-i${CG_TOOL_ROOT}/lib -i${CG_TOOL_ROOT}/lib
-m=icss_sdfm.${ConfigName}.map -m=icss_sdfm.${ConfigName}.map
--diag_suppress=10063 --diag_suppress=10063
@ -60,7 +60,7 @@
--reread_libs --reread_libs
" "
postBuildStep="$(MAKE) -C ${CCS_PROJECT_DIR} -f makefile_ccs_bootimage_gen OUTNAME=${BuildArtifactFileBaseName} PROFILE=${ConfigName} MCU_PLUS_SDK_PATH=${MCU_PLUS_SDK_PATH} CG_TOOL_ROOT=${CG_TOOL_ROOT} CCS_INSTALL_DIR=${CCS_INSTALL_DIR} CCS_IDE_MODE=${CCS_IDE_MODE} DEVICE=am64x" 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=am64x"
enableSysConfigTool="true" enableSysConfigTool="true"
sysConfigBuildOptions=" sysConfigBuildOptions="
@ -95,7 +95,6 @@
-llibsysbm.a -llibsysbm.a
" "
></configuration> ></configuration>
<pathVariable name="MCU_PLUS_SDK_PATH" path="${COM_TI_MCU_PLUS_SDK_AMXXX_INSTALL_DIR}" scope="project" />
<pathVariable name="MOTOR_CONTROL_SDK_PATH" path="${COM_TI_MOTOR_CONTROL_SDK_AMXXX_INSTALL_DIR}" scope="project" /> <pathVariable name="MOTOR_CONTROL_SDK_PATH" path="${COM_TI_MOTOR_CONTROL_SDK_AMXXX_INSTALL_DIR}" scope="project" />
<file path="../../../app_sddf.c" openOnCreation="false" excludeFromBuild="false" action="copy"> <file path="../../../app_sddf.c" openOnCreation="false" excludeFromBuild="false" action="copy">
</file> </file>

View File

@ -60,13 +60,13 @@ FILES_PATH_common = \
INCLUDES_common := \ INCLUDES_common := \
-I${CG_TOOL_ROOT}/include/c \ -I${CG_TOOL_ROOT}/include/c \
-I${MCU_PLUS_SDK_PATH}/source \ -I${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source \
-I${MOTOR_CONTROL_SDK_PATH}/source \ -I${MOTOR_CONTROL_SDK_PATH}/source \
-I${MCU_PLUS_SDK_PATH}/source/kernel/freertos/FreeRTOS-Kernel/include \ -I${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/FreeRTOS-Kernel/include \
-I${MCU_PLUS_SDK_PATH}/source/kernel/freertos/portable/TI_ARM_CLANG/ARM_CR5F \ -I${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/portable/TI_ARM_CLANG/ARM_CR5F \
-I${MCU_PLUS_SDK_PATH}/source/kernel/freertos/config/am64x/r5f \ -I${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/config/am64x/r5f \
-I${MOTOR_CONTROL_SDK_PATH}/source/motor_control/current_sense/sdfm/include \ -I${MOTOR_CONTROL_SDK_PATH}/source/current_sense/sdfm/include \
-I${MCU_PLUS_SDK_PATH}/examples/motor_control/icss_sdfm \ -I${MOTOR_CONTROL_SDK_PATH}/examples/icss_sdfm \
-Igenerated \ -Igenerated \
DEFINES_common := \ DEFINES_common := \
@ -105,10 +105,10 @@ LNK_FILES_common = \
linker.cmd \ linker.cmd \
LIBS_PATH_common = \ LIBS_PATH_common = \
-Wl,-i${MCU_PLUS_SDK_PATH}/source/kernel/freertos/lib \ -Wl,-i${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/lib \
-Wl,-i${MCU_PLUS_SDK_PATH}/source/drivers/lib \ -Wl,-i${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/drivers/lib \
-Wl,-i${MCU_PLUS_SDK_PATH}/source/board/lib \ -Wl,-i${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/board/lib \
-Wl,-i${MOTOR_CONTROL_SDK_PATH}/source/motor_control/current_sense/sdfm/lib \ -Wl,-i${MOTOR_CONTROL_SDK_PATH}/source/current_sense/sdfm/lib \
-Wl,-i${CG_TOOL_ROOT}/lib \ -Wl,-i${CG_TOOL_ROOT}/lib \
LIBS_common = \ LIBS_common = \
@ -134,10 +134,10 @@ LIBS_NAME = \
libsysbm.a \ libsysbm.a \
LIBS_PATH_NAME = \ LIBS_PATH_NAME = \
${MCU_PLUS_SDK_PATH}/source/kernel/freertos/lib \ ${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/lib \
${MCU_PLUS_SDK_PATH}/source/drivers/lib \ ${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/drivers/lib \
${MCU_PLUS_SDK_PATH}/source/board/lib \ ${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/board/lib \
${MOTOR_CONTROL_SDK_PATH}/source/motor_control/current_sense/sdfm/lib \ ${MOTOR_CONTROL_SDK_PATH}/source/current_sense/sdfm/lib \
${CG_TOOL_ROOT}/lib \ ${CG_TOOL_ROOT}/lib \
FILES := $(FILES_common) $(FILES_$(PROFILE)) FILES := $(FILES_common) $(FILES_$(PROFILE))
@ -233,10 +233,10 @@ $(SYSCFG_GEN_FILES): syscfg
syscfg: ../example.syscfg syscfg: ../example.syscfg
@echo Generating SysConfig files ... @echo Generating SysConfig files ...
$(SYSCFG_NODE) $(SYSCFG_CLI_PATH)/dist/cli.js --product $(SYSCFG_MCUPLUSSDKPRODUCT) --product $(SYSCFG_SDKPRODUCT) --context r5fss0-0 --part Default --package ALV --output generated/ ../example.syscfg $(SYSCFG_NODE) $(SYSCFG_CLI_PATH)/dist/cli.js --product $(SYSCFG_SDKPRODUCT) --context r5fss0-0 --part Default --package ALV --output generated/ ../example.syscfg
syscfg-gui: syscfg-gui:
$(SYSCFG_NWJS) $(SYSCFG_PATH) --product $(SYSCFG_MCUPLUSSDKPRODUCT) --product $(SYSCFG_SDKPRODUCT) --device AM64x_beta --context r5fss0-0 --part Default --package ALV --output generated/ ../example.syscfg $(SYSCFG_NWJS) $(SYSCFG_PATH) --product $(SYSCFG_SDKPRODUCT) --device AM64x --context r5fss0-0 --part Default --package ALV --output generated/ ../example.syscfg
# #
# Generation of boot image which can be loaded by Secondary Boot Loader (SBL) # Generation of boot image which can be loaded by Secondary Boot Loader (SBL)
@ -245,9 +245,9 @@ ifeq ($(OS),Windows_NT)
EXE_EXT=.exe EXE_EXT=.exe
endif endif
ifeq ($(OS),Windows_NT) ifeq ($(OS),Windows_NT)
BOOTIMAGE_CERT_GEN_CMD=powershell -executionpolicy unrestricted -command $(MCU_PLUS_SDK_PATH)/tools/boot/signing/x509CertificateGen.ps1 BOOTIMAGE_CERT_GEN_CMD=powershell -executionpolicy unrestricted -command $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/signing/x509CertificateGen.ps1
else else
BOOTIMAGE_CERT_GEN_CMD=$(MCU_PLUS_SDK_PATH)/tools/boot/signing/x509CertificateGen.sh BOOTIMAGE_CERT_GEN_CMD=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/signing/x509CertificateGen.sh
endif endif
BOOTIMAGE_TEMP_OUT_FILE=temp_stdout_$(PROFILE).txt BOOTIMAGE_TEMP_OUT_FILE=temp_stdout_$(PROFILE).txt
@ -262,14 +262,14 @@ BOOTIMAGE_CORE_ID_m4fss0-0 = 14
SBL_RUN_ADDRESS=0x70000000 SBL_RUN_ADDRESS=0x70000000
SBL_DEV_ID=55 SBL_DEV_ID=55
MULTI_CORE_IMAGE_GEN = $(SYSCFG_NODE) $(MCU_PLUS_SDK_PATH)/tools/boot/multicoreImageGen/multicoreImageGen.js MULTI_CORE_IMAGE_GEN = $(SYSCFG_NODE) $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/multicoreImageGen/multicoreImageGen.js
OUTRPRC_CMD = $(SYSCFG_NODE) $(MCU_PLUS_SDK_PATH)/tools/boot/out2rprc/elf2rprc.js OUTRPRC_CMD = $(SYSCFG_NODE) $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/out2rprc/elf2rprc.js
APP_IMAGE_SIGN_CMD = $(MCU_PLUS_SDK_PATH)/tools/boot/signing/appimage_x509_cert_gen.py APP_IMAGE_SIGN_CMD = $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/signing/appimage_x509_cert_gen.py
ifeq ($(OS),Windows_NT) ifeq ($(OS),Windows_NT)
XIPGEN_CMD=$(MCU_PLUS_SDK_PATH)/tools/boot/xipGen/xipGen.exe XIPGEN_CMD=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/xipGen/xipGen.exe
else else
XIPGEN_CMD=$(MCU_PLUS_SDK_PATH)/tools/boot/xipGen/xipGen.out XIPGEN_CMD=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/xipGen/xipGen.out
endif endif
MULTI_CORE_IMAGE_PARAMS = \ MULTI_CORE_IMAGE_PARAMS = \

View File

@ -3,7 +3,7 @@
# #
# Below variables need to be defined outside this file or via command line # Below variables need to be defined outside this file or via command line
# - MCU_PLUS_SDK_PATH # - MOTOR_CONTROL_SDK_PATH
# - PROFILE # - PROFILE
# - CG_TOOL_ROOT # - CG_TOOL_ROOT
# - OUTNAME # - OUTNAME
@ -11,8 +11,8 @@
# - CCS_IDE_MODE # - CCS_IDE_MODE
CCS_PATH=$(CCS_INSTALL_DIR) CCS_PATH=$(CCS_INSTALL_DIR)
include $(MCU_PLUS_SDK_PATH)/imports.mak include ${MOTOR_CONTROL_SDK_PATH}/imports.mak
include $(MCU_PLUS_SDK_PATH)/devconfig/devconfig.mak include ${MOTOR_CONTROL_SDK_PATH}/devconfig/devconfig.mak
STRIP=$(CG_TOOL_ROOT)/bin/tiarmstrip STRIP=$(CG_TOOL_ROOT)/bin/tiarmstrip
OBJCOPY=$(CG_TOOL_ROOT)/bin/tiarmobjcopy OBJCOPY=$(CG_TOOL_ROOT)/bin/tiarmobjcopy
@ -38,9 +38,9 @@ ifeq ($(OS),Windows_NT)
EXE_EXT=.exe EXE_EXT=.exe
endif endif
ifeq ($(OS),Windows_NT) ifeq ($(OS),Windows_NT)
BOOTIMAGE_CERT_GEN_CMD=powershell -executionpolicy unrestricted -command $(MCU_PLUS_SDK_PATH)/tools/boot/signing/x509CertificateGen.ps1 BOOTIMAGE_CERT_GEN_CMD=powershell -executionpolicy unrestricted -command $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/signing/x509CertificateGen.ps1
else else
BOOTIMAGE_CERT_GEN_CMD=$(MCU_PLUS_SDK_PATH)/tools/boot/signing/x509CertificateGen.sh BOOTIMAGE_CERT_GEN_CMD=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/signing/x509CertificateGen.sh
endif endif
BOOTIMAGE_TEMP_OUT_FILE=$(PROFILE)/temp_stdout_$(PROFILE).txt BOOTIMAGE_TEMP_OUT_FILE=$(PROFILE)/temp_stdout_$(PROFILE).txt
@ -53,14 +53,14 @@ BOOTIMAGE_CORE_ID_m4fss0-0 = 14
SBL_RUN_ADDRESS=0x70000000 SBL_RUN_ADDRESS=0x70000000
SBL_DEV_ID=55 SBL_DEV_ID=55
MULTI_CORE_IMAGE_GEN = $(CCS_NODE) $(MCU_PLUS_SDK_PATH)/tools/boot/multicoreImageGen/multicoreImageGen.js MULTI_CORE_IMAGE_GEN = $(CCS_NODE) $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/multicoreImageGen/multicoreImageGen.js
OUTRPRC_CMD = $(CCS_NODE) $(MCU_PLUS_SDK_PATH)/tools/boot/out2rprc/elf2rprc.js OUTRPRC_CMD = $(CCS_NODE) $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/out2rprc/elf2rprc.js
APP_IMAGE_SIGN_CMD = $(MCU_PLUS_SDK_PATH)/tools/boot/signing/appimage_x509_cert_gen.py APP_IMAGE_SIGN_CMD = $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/signing/appimage_x509_cert_gen.py
ifeq ($(OS),Windows_NT) ifeq ($(OS),Windows_NT)
XIPGEN_CMD=$(MCU_PLUS_SDK_PATH)/tools/boot/xipGen/xipGen.exe XIPGEN_CMD=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/xipGen/xipGen.exe
else else
XIPGEN_CMD=$(MCU_PLUS_SDK_PATH)/tools/boot/xipGen/xipGen.out XIPGEN_CMD=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/xipGen/xipGen.out
endif endif
MULTI_CORE_IMAGE_PARAMS = \ MULTI_CORE_IMAGE_PARAMS = \

View File

@ -42,9 +42,9 @@
#include <drivers/sciclient.h> #include <drivers/sciclient.h>
#include "tisddf_pruss_intc_mapping.h" /* INTC configuration */ #include "tisddf_pruss_intc_mapping.h" /* INTC configuration */
#include "motor_control/current_sense/sdfm/firmware/sdfm_bin.h" /* SDDF image data */ #include "current_sense/sdfm/firmware/sdfm_bin.h" /* SDDF image data */
#include "sddf.h" #include "sddf.h"
#include "motor_control/current_sense/sdfm/include/sddf_api.h" #include "current_sense/sdfm/include/sddf_api.h"
/* PRU SDDF FW image info */ /* PRU SDDF FW image info */
typedef struct PRUSDDF_PruFwImageInfo_s { typedef struct PRUSDDF_PruFwImageInfo_s {
const uint32_t *pPruImemImg; const uint32_t *pPruImemImg;

View File

@ -35,7 +35,7 @@
#include <stdint.h> #include <stdint.h>
#include <drivers/pruicss.h> #include <drivers/pruicss.h>
#include "motor_control/current_sense/sdfm/include/sddf_api.h" #include "current_sense/sdfm/include/sddf_api.h"
/* Status codes */ /* Status codes */
#define SDDF_ERR_NERR ( 0 ) /* no error */ #define SDDF_ERR_NERR ( 0 ) /* no error */

View File

@ -1,106 +0,0 @@
#
# Auto generated makefile
#
# Below variables need to be defined outside this file or via command line
# - MCU_PLUS_SDK_PATH
# - PROFILE
# - CG_TOOL_ROOT
# - OUTNAME
# - CCS_INSTALL_DIR
# - CCS_IDE_MODE
CCS_PATH=$(CCS_INSTALL_DIR)
include $(MCU_PLUS_SDK_PATH)/imports.mak
include $(MCU_PLUS_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 $(MCU_PLUS_SDK_PATH)/tools/boot/signing/x509CertificateGen.ps1
else
BOOTIMAGE_CERT_GEN_CMD=$(MCU_PLUS_SDK_PATH)/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) $(MCU_PLUS_SDK_PATH)/tools/boot/multicoreImageGen/multicoreImageGen.js
OUTRPRC_CMD = $(CCS_NODE) $(MCU_PLUS_SDK_PATH)/tools/boot/out2rprc/elf2rprc.js
APP_IMAGE_SIGN_CMD = $(MCU_PLUS_SDK_PATH)/tools/boot/signing/appimage_x509_cert_gen.py
ifeq ($(OS),Windows_NT)
XIPGEN_CMD=$(MCU_PLUS_SDK_PATH)/tools/boot/xipGen/xipGen.exe
else
XIPGEN_CMD=$(MCU_PLUS_SDK_PATH)/tools/boot/xipGen/xipGen.out
endif
MULTI_CORE_IMAGE_PARAMS = \
$(BOOTIMAGE_RPRC_NAME)@$(BOOTIMAGE_CORE_ID_r5fss0-0) \
MULTI_CORE_IMAGE_PARAMS_XIP = \
$(BOOTIMAGE_RPRC_NAME_XIP)@$(BOOTIMAGE_CORE_ID_r5fss0-0) \
all:
ifeq ($(CCS_IDE_MODE),cloud)
# No post build steps
else
@echo Boot image: am243x:r5fss0-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:r5fss0-0:freertos:ti-arm-clang $(BOOTIMAGE_NAME) Done !!!
@echo .
ifeq ($(DEVICE_TYPE),HS)
@echo Boot image: am243x:r5fss0-0:freertos:ti-arm-clang $(BOOTIMAGE_NAME).hs Done !!!
@echo .
else
@echo Boot image: am243x:r5fss0-0:freertos:ti-arm-clang $(BOOTIMAGE_NAME).hs_fs Done !!!
@echo .
endif
endif

View File

@ -1,106 +0,0 @@
#
# Auto generated makefile
#
# Below variables need to be defined outside this file or via command line
# - MCU_PLUS_SDK_PATH
# - PROFILE
# - CG_TOOL_ROOT
# - OUTNAME
# - CCS_INSTALL_DIR
# - CCS_IDE_MODE
CCS_PATH=$(CCS_INSTALL_DIR)
include $(MCU_PLUS_SDK_PATH)/imports.mak
include $(MCU_PLUS_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 $(MCU_PLUS_SDK_PATH)/tools/boot/signing/x509CertificateGen.ps1
else
BOOTIMAGE_CERT_GEN_CMD=$(MCU_PLUS_SDK_PATH)/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) $(MCU_PLUS_SDK_PATH)/tools/boot/multicoreImageGen/multicoreImageGen.js
OUTRPRC_CMD = $(CCS_NODE) $(MCU_PLUS_SDK_PATH)/tools/boot/out2rprc/elf2rprc.js
APP_IMAGE_SIGN_CMD = $(MCU_PLUS_SDK_PATH)/tools/boot/signing/appimage_x509_cert_gen.py
ifeq ($(OS),Windows_NT)
XIPGEN_CMD=$(MCU_PLUS_SDK_PATH)/tools/boot/xipGen/xipGen.exe
else
XIPGEN_CMD=$(MCU_PLUS_SDK_PATH)/tools/boot/xipGen/xipGen.out
endif
MULTI_CORE_IMAGE_PARAMS = \
$(BOOTIMAGE_RPRC_NAME)@$(BOOTIMAGE_CORE_ID_r5fss0-0) \
MULTI_CORE_IMAGE_PARAMS_XIP = \
$(BOOTIMAGE_RPRC_NAME_XIP)@$(BOOTIMAGE_CORE_ID_r5fss0-0) \
all:
ifeq ($(CCS_IDE_MODE),cloud)
# No post build steps
else
@echo Boot image: am243x:r5fss0-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:r5fss0-0:freertos:ti-arm-clang $(BOOTIMAGE_NAME) Done !!!
@echo .
ifeq ($(DEVICE_TYPE),HS)
@echo Boot image: am243x:r5fss0-0:freertos:ti-arm-clang $(BOOTIMAGE_NAME).hs Done !!!
@echo .
else
@echo Boot image: am243x:r5fss0-0:freertos:ti-arm-clang $(BOOTIMAGE_NAME).hs_fs Done !!!
@echo .
endif
endif

View File

@ -1,106 +0,0 @@
#
# Auto generated makefile
#
# Below variables need to be defined outside this file or via command line
# - MCU_PLUS_SDK_PATH
# - PROFILE
# - CG_TOOL_ROOT
# - OUTNAME
# - CCS_INSTALL_DIR
# - CCS_IDE_MODE
CCS_PATH=$(CCS_INSTALL_DIR)
include $(MCU_PLUS_SDK_PATH)/imports.mak
include $(MCU_PLUS_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 $(MCU_PLUS_SDK_PATH)/tools/boot/signing/x509CertificateGen.ps1
else
BOOTIMAGE_CERT_GEN_CMD=$(MCU_PLUS_SDK_PATH)/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) $(MCU_PLUS_SDK_PATH)/tools/boot/multicoreImageGen/multicoreImageGen.js
OUTRPRC_CMD = $(CCS_NODE) $(MCU_PLUS_SDK_PATH)/tools/boot/out2rprc/elf2rprc.js
APP_IMAGE_SIGN_CMD = $(MCU_PLUS_SDK_PATH)/tools/boot/signing/appimage_x509_cert_gen.py
ifeq ($(OS),Windows_NT)
XIPGEN_CMD=$(MCU_PLUS_SDK_PATH)/tools/boot/xipGen/xipGen.exe
else
XIPGEN_CMD=$(MCU_PLUS_SDK_PATH)/tools/boot/xipGen/xipGen.out
endif
MULTI_CORE_IMAGE_PARAMS = \
$(BOOTIMAGE_RPRC_NAME)@$(BOOTIMAGE_CORE_ID_r5fss0-0) \
MULTI_CORE_IMAGE_PARAMS_XIP = \
$(BOOTIMAGE_RPRC_NAME_XIP)@$(BOOTIMAGE_CORE_ID_r5fss0-0) \
all:
ifeq ($(CCS_IDE_MODE),cloud)
# No post build steps
else
@echo Boot image: am243x:r5fss0-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:r5fss0-0:freertos:ti-arm-clang $(BOOTIMAGE_NAME) Done !!!
@echo .
ifeq ($(DEVICE_TYPE),HS)
@echo Boot image: am243x:r5fss0-0:freertos:ti-arm-clang $(BOOTIMAGE_NAME).hs Done !!!
@echo .
else
@echo Boot image: am243x:r5fss0-0:freertos:ti-arm-clang $(BOOTIMAGE_NAME).hs_fs Done !!!
@echo .
endif
endif

View File

@ -1,107 +0,0 @@
#
# Auto generated makefile
#
# Below variables need to be defined outside this file or via command line
# - MCU_PLUS_SDK_PATH
# - PROFILE
# - CG_TOOL_ROOT
# - OUTNAME
# - CCS_INSTALL_DIR
# - CCS_IDE_MODE
CCS_PATH=$(CCS_INSTALL_DIR)
include $(MCU_PLUS_SDK_PATH)/imports.mak
include $(MCU_PLUS_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 $(MCU_PLUS_SDK_PATH)/tools/boot/signing/x509CertificateGen.ps1
else
BOOTIMAGE_CERT_GEN_CMD=$(MCU_PLUS_SDK_PATH)/tools/boot/signing/x509CertificateGen.sh
endif
BOOTIMAGE_TEMP_OUT_FILE=$(PROFILE)/temp_stdout_$(PROFILE).txt
BOOTIMAGE_CORE_ID_a53ss0-0 = 0
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) $(MCU_PLUS_SDK_PATH)/tools/boot/multicoreImageGen/multicoreImageGen.js
OUTRPRC_CMD = $(CCS_NODE) $(MCU_PLUS_SDK_PATH)/tools/boot/out2rprc/elf2rprc.js
APP_IMAGE_SIGN_CMD = $(MCU_PLUS_SDK_PATH)/tools/boot/signing/appimage_x509_cert_gen.py
ifeq ($(OS),Windows_NT)
XIPGEN_CMD=$(MCU_PLUS_SDK_PATH)/tools/boot/xipGen/xipGen.exe
else
XIPGEN_CMD=$(MCU_PLUS_SDK_PATH)/tools/boot/xipGen/xipGen.out
endif
MULTI_CORE_IMAGE_PARAMS = \
$(BOOTIMAGE_RPRC_NAME)@$(BOOTIMAGE_CORE_ID_r5fss0-0) \
MULTI_CORE_IMAGE_PARAMS_XIP = \
$(BOOTIMAGE_RPRC_NAME_XIP)@$(BOOTIMAGE_CORE_ID_r5fss0-0) \
all:
ifeq ($(CCS_IDE_MODE),cloud)
# No post build steps
else
@echo Boot image: am64x:r5fss0-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: am64x:r5fss0-0:freertos:ti-arm-clang $(BOOTIMAGE_NAME) Done !!!
@echo .
ifeq ($(DEVICE_TYPE),HS)
@echo Boot image: am64x:r5fss0-0:freertos:ti-arm-clang $(BOOTIMAGE_NAME).hs Done !!!
@echo .
else
@echo Boot image: am64x:r5fss0-0:freertos:ti-arm-clang $(BOOTIMAGE_NAME).hs_fs Done !!!
@echo .
endif
endif

View File

@ -1,106 +0,0 @@
#
# Auto generated makefile
#
# Below variables need to be defined outside this file or via command line
# - MCU_PLUS_SDK_PATH
# - PROFILE
# - CG_TOOL_ROOT
# - OUTNAME
# - CCS_INSTALL_DIR
# - CCS_IDE_MODE
CCS_PATH=$(CCS_INSTALL_DIR)
include $(MCU_PLUS_SDK_PATH)/imports.mak
include $(MCU_PLUS_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 $(MCU_PLUS_SDK_PATH)/tools/boot/signing/x509CertificateGen.ps1
else
BOOTIMAGE_CERT_GEN_CMD=$(MCU_PLUS_SDK_PATH)/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) $(MCU_PLUS_SDK_PATH)/tools/boot/multicoreImageGen/multicoreImageGen.js
OUTRPRC_CMD = $(CCS_NODE) $(MCU_PLUS_SDK_PATH)/tools/boot/out2rprc/elf2rprc.js
APP_IMAGE_SIGN_CMD = $(MCU_PLUS_SDK_PATH)/tools/boot/signing/appimage_x509_cert_gen.py
ifeq ($(OS),Windows_NT)
XIPGEN_CMD=$(MCU_PLUS_SDK_PATH)/tools/boot/xipGen/xipGen.exe
else
XIPGEN_CMD=$(MCU_PLUS_SDK_PATH)/tools/boot/xipGen/xipGen.out
endif
MULTI_CORE_IMAGE_PARAMS = \
$(BOOTIMAGE_RPRC_NAME)@$(BOOTIMAGE_CORE_ID_r5fss0-0) \
MULTI_CORE_IMAGE_PARAMS_XIP = \
$(BOOTIMAGE_RPRC_NAME_XIP)@$(BOOTIMAGE_CORE_ID_r5fss0-0) \
all:
ifeq ($(CCS_IDE_MODE),cloud)
# No post build steps
else
@echo Boot image: am243x:r5fss0-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:r5fss0-0:freertos:ti-arm-clang $(BOOTIMAGE_NAME) Done !!!
@echo .
ifeq ($(DEVICE_TYPE),HS)
@echo Boot image: am243x:r5fss0-0:freertos:ti-arm-clang $(BOOTIMAGE_NAME).hs Done !!!
@echo .
else
@echo Boot image: am243x:r5fss0-0:freertos:ti-arm-clang $(BOOTIMAGE_NAME).hs_fs Done !!!
@echo .
endif
endif

View File

@ -1,107 +0,0 @@
#
# Auto generated makefile
#
# Below variables need to be defined outside this file or via command line
# - MCU_PLUS_SDK_PATH
# - PROFILE
# - CG_TOOL_ROOT
# - OUTNAME
# - CCS_INSTALL_DIR
# - CCS_IDE_MODE
CCS_PATH=$(CCS_INSTALL_DIR)
include $(MCU_PLUS_SDK_PATH)/imports.mak
include $(MCU_PLUS_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 $(MCU_PLUS_SDK_PATH)/tools/boot/signing/x509CertificateGen.ps1
else
BOOTIMAGE_CERT_GEN_CMD=$(MCU_PLUS_SDK_PATH)/tools/boot/signing/x509CertificateGen.sh
endif
BOOTIMAGE_TEMP_OUT_FILE=$(PROFILE)/temp_stdout_$(PROFILE).txt
BOOTIMAGE_CORE_ID_a53ss0-0 = 0
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) $(MCU_PLUS_SDK_PATH)/tools/boot/multicoreImageGen/multicoreImageGen.js
OUTRPRC_CMD = $(CCS_NODE) $(MCU_PLUS_SDK_PATH)/tools/boot/out2rprc/elf2rprc.js
APP_IMAGE_SIGN_CMD = $(MCU_PLUS_SDK_PATH)/tools/boot/signing/appimage_x509_cert_gen.py
ifeq ($(OS),Windows_NT)
XIPGEN_CMD=$(MCU_PLUS_SDK_PATH)/tools/boot/xipGen/xipGen.exe
else
XIPGEN_CMD=$(MCU_PLUS_SDK_PATH)/tools/boot/xipGen/xipGen.out
endif
MULTI_CORE_IMAGE_PARAMS = \
$(BOOTIMAGE_RPRC_NAME)@$(BOOTIMAGE_CORE_ID_r5fss0-0) \
MULTI_CORE_IMAGE_PARAMS_XIP = \
$(BOOTIMAGE_RPRC_NAME_XIP)@$(BOOTIMAGE_CORE_ID_r5fss0-0) \
all:
ifeq ($(CCS_IDE_MODE),cloud)
# No post build steps
else
@echo Boot image: am64x:r5fss0-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: am64x:r5fss0-0:freertos:ti-arm-clang $(BOOTIMAGE_NAME) Done !!!
@echo .
ifeq ($(DEVICE_TYPE),HS)
@echo Boot image: am64x:r5fss0-0:freertos:ti-arm-clang $(BOOTIMAGE_NAME).hs Done !!!
@echo .
else
@echo Boot image: am64x:r5fss0-0:freertos:ti-arm-clang $(BOOTIMAGE_NAME).hs_fs Done !!!
@echo .
endif
endif

View File

@ -1,106 +0,0 @@
#
# Auto generated makefile
#
# Below variables need to be defined outside this file or via command line
# - MCU_PLUS_SDK_PATH
# - PROFILE
# - CG_TOOL_ROOT
# - OUTNAME
# - CCS_INSTALL_DIR
# - CCS_IDE_MODE
CCS_PATH=$(CCS_INSTALL_DIR)
include $(MCU_PLUS_SDK_PATH)/imports.mak
include $(MCU_PLUS_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 $(MCU_PLUS_SDK_PATH)/tools/boot/signing/x509CertificateGen.ps1
else
BOOTIMAGE_CERT_GEN_CMD=$(MCU_PLUS_SDK_PATH)/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) $(MCU_PLUS_SDK_PATH)/tools/boot/multicoreImageGen/multicoreImageGen.js
OUTRPRC_CMD = $(CCS_NODE) $(MCU_PLUS_SDK_PATH)/tools/boot/out2rprc/elf2rprc.js
APP_IMAGE_SIGN_CMD = $(MCU_PLUS_SDK_PATH)/tools/boot/signing/appimage_x509_cert_gen.py
ifeq ($(OS),Windows_NT)
XIPGEN_CMD=$(MCU_PLUS_SDK_PATH)/tools/boot/xipGen/xipGen.exe
else
XIPGEN_CMD=$(MCU_PLUS_SDK_PATH)/tools/boot/xipGen/xipGen.out
endif
MULTI_CORE_IMAGE_PARAMS = \
$(BOOTIMAGE_RPRC_NAME)@$(BOOTIMAGE_CORE_ID_r5fss0-0) \
MULTI_CORE_IMAGE_PARAMS_XIP = \
$(BOOTIMAGE_RPRC_NAME_XIP)@$(BOOTIMAGE_CORE_ID_r5fss0-0) \
all:
ifeq ($(CCS_IDE_MODE),cloud)
# No post build steps
else
@echo Boot image: am243x:r5fss0-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:r5fss0-0:freertos:ti-arm-clang $(BOOTIMAGE_NAME) Done !!!
@echo .
ifeq ($(DEVICE_TYPE),HS)
@echo Boot image: am243x:r5fss0-0:freertos:ti-arm-clang $(BOOTIMAGE_NAME).hs Done !!!
@echo .
else
@echo Boot image: am243x:r5fss0-0:freertos:ti-arm-clang $(BOOTIMAGE_NAME).hs_fs Done !!!
@echo .
endif
endif

View File

@ -1,107 +0,0 @@
#
# Auto generated makefile
#
# Below variables need to be defined outside this file or via command line
# - MCU_PLUS_SDK_PATH
# - PROFILE
# - CG_TOOL_ROOT
# - OUTNAME
# - CCS_INSTALL_DIR
# - CCS_IDE_MODE
CCS_PATH=$(CCS_INSTALL_DIR)
include $(MCU_PLUS_SDK_PATH)/imports.mak
include $(MCU_PLUS_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 $(MCU_PLUS_SDK_PATH)/tools/boot/signing/x509CertificateGen.ps1
else
BOOTIMAGE_CERT_GEN_CMD=$(MCU_PLUS_SDK_PATH)/tools/boot/signing/x509CertificateGen.sh
endif
BOOTIMAGE_TEMP_OUT_FILE=$(PROFILE)/temp_stdout_$(PROFILE).txt
BOOTIMAGE_CORE_ID_a53ss0-0 = 0
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) $(MCU_PLUS_SDK_PATH)/tools/boot/multicoreImageGen/multicoreImageGen.js
OUTRPRC_CMD = $(CCS_NODE) $(MCU_PLUS_SDK_PATH)/tools/boot/out2rprc/elf2rprc.js
APP_IMAGE_SIGN_CMD = $(MCU_PLUS_SDK_PATH)/tools/boot/signing/appimage_x509_cert_gen.py
ifeq ($(OS),Windows_NT)
XIPGEN_CMD=$(MCU_PLUS_SDK_PATH)/tools/boot/xipGen/xipGen.exe
else
XIPGEN_CMD=$(MCU_PLUS_SDK_PATH)/tools/boot/xipGen/xipGen.out
endif
MULTI_CORE_IMAGE_PARAMS = \
$(BOOTIMAGE_RPRC_NAME)@$(BOOTIMAGE_CORE_ID_r5fss0-0) \
MULTI_CORE_IMAGE_PARAMS_XIP = \
$(BOOTIMAGE_RPRC_NAME_XIP)@$(BOOTIMAGE_CORE_ID_r5fss0-0) \
all:
ifeq ($(CCS_IDE_MODE),cloud)
# No post build steps
else
@echo Boot image: am64x:r5fss0-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: am64x:r5fss0-0:freertos:ti-arm-clang $(BOOTIMAGE_NAME) Done !!!
@echo .
ifeq ($(DEVICE_TYPE),HS)
@echo Boot image: am64x:r5fss0-0:freertos:ti-arm-clang $(BOOTIMAGE_NAME).hs Done !!!
@echo .
else
@echo Boot image: am64x:r5fss0-0:freertos:ti-arm-clang $(BOOTIMAGE_NAME).hs_fs Done !!!
@echo .
endif
endif

View File

@ -1,106 +0,0 @@
#
# Auto generated makefile
#
# Below variables need to be defined outside this file or via command line
# - MCU_PLUS_SDK_PATH
# - PROFILE
# - CG_TOOL_ROOT
# - OUTNAME
# - CCS_INSTALL_DIR
# - CCS_IDE_MODE
CCS_PATH=$(CCS_INSTALL_DIR)
include $(MCU_PLUS_SDK_PATH)/imports.mak
include $(MCU_PLUS_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 $(MCU_PLUS_SDK_PATH)/tools/boot/signing/x509CertificateGen.ps1
else
BOOTIMAGE_CERT_GEN_CMD=$(MCU_PLUS_SDK_PATH)/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) $(MCU_PLUS_SDK_PATH)/tools/boot/multicoreImageGen/multicoreImageGen.js
OUTRPRC_CMD = $(CCS_NODE) $(MCU_PLUS_SDK_PATH)/tools/boot/out2rprc/elf2rprc.js
APP_IMAGE_SIGN_CMD = $(MCU_PLUS_SDK_PATH)/tools/boot/signing/appimage_x509_cert_gen.py
ifeq ($(OS),Windows_NT)
XIPGEN_CMD=$(MCU_PLUS_SDK_PATH)/tools/boot/xipGen/xipGen.exe
else
XIPGEN_CMD=$(MCU_PLUS_SDK_PATH)/tools/boot/xipGen/xipGen.out
endif
MULTI_CORE_IMAGE_PARAMS = \
$(BOOTIMAGE_RPRC_NAME)@$(BOOTIMAGE_CORE_ID_r5fss0-0) \
MULTI_CORE_IMAGE_PARAMS_XIP = \
$(BOOTIMAGE_RPRC_NAME_XIP)@$(BOOTIMAGE_CORE_ID_r5fss0-0) \
all:
ifeq ($(CCS_IDE_MODE),cloud)
# No post build steps
else
@echo Boot image: am243x:r5fss0-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:r5fss0-0:freertos:ti-arm-clang $(BOOTIMAGE_NAME) Done !!!
@echo .
ifeq ($(DEVICE_TYPE),HS)
@echo Boot image: am243x:r5fss0-0:freertos:ti-arm-clang $(BOOTIMAGE_NAME).hs Done !!!
@echo .
else
@echo Boot image: am243x:r5fss0-0:freertos:ti-arm-clang $(BOOTIMAGE_NAME).hs_fs Done !!!
@echo .
endif
endif

View File

@ -1,107 +0,0 @@
#
# Auto generated makefile
#
# Below variables need to be defined outside this file or via command line
# - MCU_PLUS_SDK_PATH
# - PROFILE
# - CG_TOOL_ROOT
# - OUTNAME
# - CCS_INSTALL_DIR
# - CCS_IDE_MODE
CCS_PATH=$(CCS_INSTALL_DIR)
include $(MCU_PLUS_SDK_PATH)/imports.mak
include $(MCU_PLUS_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 $(MCU_PLUS_SDK_PATH)/tools/boot/signing/x509CertificateGen.ps1
else
BOOTIMAGE_CERT_GEN_CMD=$(MCU_PLUS_SDK_PATH)/tools/boot/signing/x509CertificateGen.sh
endif
BOOTIMAGE_TEMP_OUT_FILE=$(PROFILE)/temp_stdout_$(PROFILE).txt
BOOTIMAGE_CORE_ID_a53ss0-0 = 0
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) $(MCU_PLUS_SDK_PATH)/tools/boot/multicoreImageGen/multicoreImageGen.js
OUTRPRC_CMD = $(CCS_NODE) $(MCU_PLUS_SDK_PATH)/tools/boot/out2rprc/elf2rprc.js
APP_IMAGE_SIGN_CMD = $(MCU_PLUS_SDK_PATH)/tools/boot/signing/appimage_x509_cert_gen.py
ifeq ($(OS),Windows_NT)
XIPGEN_CMD=$(MCU_PLUS_SDK_PATH)/tools/boot/xipGen/xipGen.exe
else
XIPGEN_CMD=$(MCU_PLUS_SDK_PATH)/tools/boot/xipGen/xipGen.out
endif
MULTI_CORE_IMAGE_PARAMS = \
$(BOOTIMAGE_RPRC_NAME)@$(BOOTIMAGE_CORE_ID_r5fss0-0) \
MULTI_CORE_IMAGE_PARAMS_XIP = \
$(BOOTIMAGE_RPRC_NAME_XIP)@$(BOOTIMAGE_CORE_ID_r5fss0-0) \
all:
ifeq ($(CCS_IDE_MODE),cloud)
# No post build steps
else
@echo Boot image: am64x:r5fss0-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: am64x:r5fss0-0:freertos:ti-arm-clang $(BOOTIMAGE_NAME) Done !!!
@echo .
ifeq ($(DEVICE_TYPE),HS)
@echo Boot image: am64x:r5fss0-0:freertos:ti-arm-clang $(BOOTIMAGE_NAME).hs Done !!!
@echo .
else
@echo Boot image: am64x:r5fss0-0:freertos:ti-arm-clang $(BOOTIMAGE_NAME).hs_fs Done !!!
@echo .
endif
endif

View File

@ -1,106 +0,0 @@
#
# Auto generated makefile
#
# Below variables need to be defined outside this file or via command line
# - MCU_PLUS_SDK_PATH
# - PROFILE
# - CG_TOOL_ROOT
# - OUTNAME
# - CCS_INSTALL_DIR
# - CCS_IDE_MODE
CCS_PATH=$(CCS_INSTALL_DIR)
include $(MCU_PLUS_SDK_PATH)/imports.mak
include $(MCU_PLUS_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 $(MCU_PLUS_SDK_PATH)/tools/boot/signing/x509CertificateGen.ps1
else
BOOTIMAGE_CERT_GEN_CMD=$(MCU_PLUS_SDK_PATH)/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) $(MCU_PLUS_SDK_PATH)/tools/boot/multicoreImageGen/multicoreImageGen.js
OUTRPRC_CMD = $(CCS_NODE) $(MCU_PLUS_SDK_PATH)/tools/boot/out2rprc/elf2rprc.js
APP_IMAGE_SIGN_CMD = $(MCU_PLUS_SDK_PATH)/tools/boot/signing/appimage_x509_cert_gen.py
ifeq ($(OS),Windows_NT)
XIPGEN_CMD=$(MCU_PLUS_SDK_PATH)/tools/boot/xipGen/xipGen.exe
else
XIPGEN_CMD=$(MCU_PLUS_SDK_PATH)/tools/boot/xipGen/xipGen.out
endif
MULTI_CORE_IMAGE_PARAMS = \
$(BOOTIMAGE_RPRC_NAME)@$(BOOTIMAGE_CORE_ID_r5fss0-0) \
MULTI_CORE_IMAGE_PARAMS_XIP = \
$(BOOTIMAGE_RPRC_NAME_XIP)@$(BOOTIMAGE_CORE_ID_r5fss0-0) \
all:
ifeq ($(CCS_IDE_MODE),cloud)
# No post build steps
else
@echo Boot image: am243x:r5fss0-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:r5fss0-0:freertos:ti-arm-clang $(BOOTIMAGE_NAME) Done !!!
@echo .
ifeq ($(DEVICE_TYPE),HS)
@echo Boot image: am243x:r5fss0-0:freertos:ti-arm-clang $(BOOTIMAGE_NAME).hs Done !!!
@echo .
else
@echo Boot image: am243x:r5fss0-0:freertos:ti-arm-clang $(BOOTIMAGE_NAME).hs_fs Done !!!
@echo .
endif
endif

View File

@ -1,106 +0,0 @@
#
# Auto generated makefile
#
# Below variables need to be defined outside this file or via command line
# - MCU_PLUS_SDK_PATH
# - PROFILE
# - CG_TOOL_ROOT
# - OUTNAME
# - CCS_INSTALL_DIR
# - CCS_IDE_MODE
CCS_PATH=$(CCS_INSTALL_DIR)
include $(MCU_PLUS_SDK_PATH)/imports.mak
include $(MCU_PLUS_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 $(MCU_PLUS_SDK_PATH)/tools/boot/signing/x509CertificateGen.ps1
else
BOOTIMAGE_CERT_GEN_CMD=$(MCU_PLUS_SDK_PATH)/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) $(MCU_PLUS_SDK_PATH)/tools/boot/multicoreImageGen/multicoreImageGen.js
OUTRPRC_CMD = $(CCS_NODE) $(MCU_PLUS_SDK_PATH)/tools/boot/out2rprc/elf2rprc.js
APP_IMAGE_SIGN_CMD = $(MCU_PLUS_SDK_PATH)/tools/boot/signing/appimage_x509_cert_gen.py
ifeq ($(OS),Windows_NT)
XIPGEN_CMD=$(MCU_PLUS_SDK_PATH)/tools/boot/xipGen/xipGen.exe
else
XIPGEN_CMD=$(MCU_PLUS_SDK_PATH)/tools/boot/xipGen/xipGen.out
endif
MULTI_CORE_IMAGE_PARAMS = \
$(BOOTIMAGE_RPRC_NAME)@$(BOOTIMAGE_CORE_ID_r5fss0-0) \
MULTI_CORE_IMAGE_PARAMS_XIP = \
$(BOOTIMAGE_RPRC_NAME_XIP)@$(BOOTIMAGE_CORE_ID_r5fss0-0) \
all:
ifeq ($(CCS_IDE_MODE),cloud)
# No post build steps
else
@echo Boot image: am243x:r5fss0-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:r5fss0-0:freertos:ti-arm-clang $(BOOTIMAGE_NAME) Done !!!
@echo .
ifeq ($(DEVICE_TYPE),HS)
@echo Boot image: am243x:r5fss0-0:freertos:ti-arm-clang $(BOOTIMAGE_NAME).hs Done !!!
@echo .
else
@echo Boot image: am243x:r5fss0-0:freertos:ti-arm-clang $(BOOTIMAGE_NAME).hs_fs Done !!!
@echo .
endif
endif

View File

@ -1,107 +0,0 @@
#
# Auto generated makefile
#
# Below variables need to be defined outside this file or via command line
# - MCU_PLUS_SDK_PATH
# - PROFILE
# - CG_TOOL_ROOT
# - OUTNAME
# - CCS_INSTALL_DIR
# - CCS_IDE_MODE
CCS_PATH=$(CCS_INSTALL_DIR)
include $(MCU_PLUS_SDK_PATH)/imports.mak
include $(MCU_PLUS_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 $(MCU_PLUS_SDK_PATH)/tools/boot/signing/x509CertificateGen.ps1
else
BOOTIMAGE_CERT_GEN_CMD=$(MCU_PLUS_SDK_PATH)/tools/boot/signing/x509CertificateGen.sh
endif
BOOTIMAGE_TEMP_OUT_FILE=$(PROFILE)/temp_stdout_$(PROFILE).txt
BOOTIMAGE_CORE_ID_a53ss0-0 = 0
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) $(MCU_PLUS_SDK_PATH)/tools/boot/multicoreImageGen/multicoreImageGen.js
OUTRPRC_CMD = $(CCS_NODE) $(MCU_PLUS_SDK_PATH)/tools/boot/out2rprc/elf2rprc.js
APP_IMAGE_SIGN_CMD = $(MCU_PLUS_SDK_PATH)/tools/boot/signing/appimage_x509_cert_gen.py
ifeq ($(OS),Windows_NT)
XIPGEN_CMD=$(MCU_PLUS_SDK_PATH)/tools/boot/xipGen/xipGen.exe
else
XIPGEN_CMD=$(MCU_PLUS_SDK_PATH)/tools/boot/xipGen/xipGen.out
endif
MULTI_CORE_IMAGE_PARAMS = \
$(BOOTIMAGE_RPRC_NAME)@$(BOOTIMAGE_CORE_ID_r5fss0-0) \
MULTI_CORE_IMAGE_PARAMS_XIP = \
$(BOOTIMAGE_RPRC_NAME_XIP)@$(BOOTIMAGE_CORE_ID_r5fss0-0) \
all:
ifeq ($(CCS_IDE_MODE),cloud)
# No post build steps
else
@echo Boot image: am64x:r5fss0-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: am64x:r5fss0-0:freertos:ti-arm-clang $(BOOTIMAGE_NAME) Done !!!
@echo .
ifeq ($(DEVICE_TYPE),HS)
@echo Boot image: am64x:r5fss0-0:freertos:ti-arm-clang $(BOOTIMAGE_NAME).hs Done !!!
@echo .
else
@echo Boot image: am64x:r5fss0-0:freertos:ti-arm-clang $(BOOTIMAGE_NAME).hs_fs Done !!!
@echo .
endif
endif

View File

@ -47,7 +47,7 @@
#include <drivers/hw_include/hw_types.h> #include <drivers/hw_include/hw_types.h>
#include "ti_drivers_open_close.h" #include "ti_drivers_open_close.h"
#include "ti_board_open_close.h" #include "ti_board_open_close.h"
#include <motor_control/position_sense/endat/include/endat_drv.h> #include <position_sense/endat/include/endat_drv.h>
#if PRU_ICSSGx_PRU_SLICE #if PRU_ICSSGx_PRU_SLICE
#define PRUICSS_PRUx PRUICSS_PRU1 #define PRUICSS_PRUx PRUICSS_PRU1
#define PRUICSS_TXPRUx PRUICSS_TX_PRU1 #define PRUICSS_TXPRUx PRUICSS_TX_PRU1
@ -60,23 +60,23 @@
#define PRUICSS_SLICEx PRU_ICSSGx_PRU_SLICE #define PRUICSS_SLICEx PRU_ICSSGx_PRU_SLICE
#if CONFIG_ENDAT0_MODE == ENDAT_MODE_MULTI_CHANNEL_SINGLE_PRU #if CONFIG_ENDAT0_MODE == ENDAT_MODE_MULTI_CHANNEL_SINGLE_PRU
#include <motor_control/position_sense/endat/firmware/endat_master_multi_bin.h> #include <position_sense/endat/firmware/endat_master_multi_bin.h>
#endif #endif
#if (CONFIG_ENDAT0_CHANNEL0) && (CONFIG_ENDAT0_MODE == ENDAT_MODE_MULTI_CHANNEL_MULTI_PRU) #if (CONFIG_ENDAT0_CHANNEL0) && (CONFIG_ENDAT0_MODE == ENDAT_MODE_MULTI_CHANNEL_MULTI_PRU)
#include <motor_control/position_sense/endat/firmware/endat_master_multi_RTU_bin.h> #include <position_sense/endat/firmware/endat_master_multi_RTU_bin.h>
#endif #endif
#if (CONFIG_ENDAT0_CHANNEL1) && (CONFIG_ENDAT0_MODE == ENDAT_MODE_MULTI_CHANNEL_MULTI_PRU) #if (CONFIG_ENDAT0_CHANNEL1) && (CONFIG_ENDAT0_MODE == ENDAT_MODE_MULTI_CHANNEL_MULTI_PRU)
#include <motor_control/position_sense/endat/firmware/endat_master_multi_PRU_bin.h> #include <position_sense/endat/firmware/endat_master_multi_PRU_bin.h>
#endif #endif
#if (CONFIG_ENDAT0_CHANNEL2) && (CONFIG_ENDAT0_MODE == ENDAT_MODE_MULTI_CHANNEL_MULTI_PRU) #if (CONFIG_ENDAT0_CHANNEL2) && (CONFIG_ENDAT0_MODE == ENDAT_MODE_MULTI_CHANNEL_MULTI_PRU)
#include <motor_control/position_sense/endat/firmware/endat_master_multi_TXPRU_bin.h> #include <position_sense/endat/firmware/endat_master_multi_TXPRU_bin.h>
#endif #endif
#if CONFIG_ENDAT0_MODE == ENDAT_MODE_SINGLE_CHANNEL_SINGLE_PRU #if CONFIG_ENDAT0_MODE == ENDAT_MODE_SINGLE_CHANNEL_SINGLE_PRU
#include <motor_control/position_sense/endat/firmware/endat_master_bin.h> #include <position_sense/endat/firmware/endat_master_bin.h>
#endif #endif

View File

@ -21,18 +21,18 @@ const filedirs = {
const libdirs_freertos = { const libdirs_freertos = {
common: [ common: [
"${MCU_PLUS_SDK_PATH}/source/kernel/freertos/lib", "${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/lib",
"${MCU_PLUS_SDK_PATH}/source/drivers/lib", "${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/drivers/lib",
"${MCU_PLUS_SDK_PATH}/source/board/lib", "${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/board/lib",
"${MOTOR_CONTROL_SDK_PATH}/source/motor_control/position_sense/endat/lib", "${MOTOR_CONTROL_SDK_PATH}/source/position_sense/endat/lib",
], ],
}; };
const includes_freertos_r5f = { const includes_freertos_r5f = {
common: [ common: [
"${MCU_PLUS_SDK_PATH}/source/kernel/freertos/FreeRTOS-Kernel/include", "${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/FreeRTOS-Kernel/include",
"${MCU_PLUS_SDK_PATH}/source/kernel/freertos/portable/TI_ARM_CLANG/ARM_CR5F", "${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/portable/TI_ARM_CLANG/ARM_CR5F",
"${MCU_PLUS_SDK_PATH}/source/kernel/freertos/config/am243x/r5f", "${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/config/am243x/r5f",
], ],
}; };

View File

@ -21,18 +21,18 @@ const filedirs = {
const libdirs_freertos = { const libdirs_freertos = {
common: [ common: [
"${MCU_PLUS_SDK_PATH}/source/kernel/freertos/lib", "${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/lib",
"${MCU_PLUS_SDK_PATH}/source/drivers/lib", "${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/drivers/lib",
"${MCU_PLUS_SDK_PATH}/source/board/lib", "${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/board/lib",
"${MOTOR_CONTROL_SDK_PATH}/source/motor_control/position_sense/endat/lib", "${MOTOR_CONTROL_SDK_PATH}/source/position_sense/endat/lib",
], ],
}; };
const includes_freertos_r5f = { const includes_freertos_r5f = {
common: [ common: [
"${MCU_PLUS_SDK_PATH}/source/kernel/freertos/FreeRTOS-Kernel/include", "${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/FreeRTOS-Kernel/include",
"${MCU_PLUS_SDK_PATH}/source/kernel/freertos/portable/TI_ARM_CLANG/ARM_CR5F", "${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/portable/TI_ARM_CLANG/ARM_CR5F",
"${MCU_PLUS_SDK_PATH}/source/kernel/freertos/config/am64x/r5f", "${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/config/am64x/r5f",
], ],
}; };

View File

@ -22,7 +22,7 @@ const mpu_armv75 = mpu_armv7.addInstance();
const mpu_armv76 = mpu_armv7.addInstance(); const mpu_armv76 = mpu_armv7.addInstance();
const timer = scripting.addModule("/kernel/dpl/timer", {}, false); const timer = scripting.addModule("/kernel/dpl/timer", {}, false);
const timer1 = timer.addInstance(); const timer1 = timer.addInstance();
const endat = scripting.addModule("/motor_control/position_sense/endat", {}, false); const endat = scripting.addModule("/position_sense/endat", {}, false);
const endat1 = endat.addInstance(); const endat1 = endat.addInstance();
/** /**

View File

@ -12,14 +12,14 @@
<project <project
title="Endat Diagnostic Multi Channel Load Share" title="Endat Diagnostic Multi Channel Load Share"
name = "endat_diagnostic_multi_channel_load_share_am243x-evm_r5fss0-0_freertos_ti-arm-clang" name = "endat_diagnostic_multi_channel_load_share_am243x-evm_r5fss0-0_freertos_ti-arm-clang"
products="sysconfig;com.ti.MOTOR_CONTROL_SDK_AMXXX;com.ti.MCU_PLUS_SDK_AMXXX" products="sysconfig;com.ti.MOTOR_CONTROL_SDK_AMXXX;"
configurations=" configurations="
Debug, Debug,
Release, Release,
" "
connection="TIXDS110_Connection.xml" connection="TIXDS110_Connection.xml"
toolChain="TICLANG" toolChain="TICLANG"
cgtVersion="2.1.2" cgtVersion="2.1.3"
device="Cortex R.AM2434_ALV" device="Cortex R.AM2434_ALV"
deviceCore="MAIN_PULSAR_Cortex_R5_0_0" deviceCore="MAIN_PULSAR_Cortex_R5_0_0"
ignoreDefaultDeviceSettings="true" ignoreDefaultDeviceSettings="true"
@ -30,11 +30,11 @@
compilerBuildOptions=" compilerBuildOptions="
-I${CG_TOOL_ROOT}/include/c -I${CG_TOOL_ROOT}/include/c
-I${MCU_PLUS_SDK_PATH}/source -I${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source
-I${MOTOR_CONTROL_SDK_PATH}/source -I${MOTOR_CONTROL_SDK_PATH}/source
-I${MCU_PLUS_SDK_PATH}/source/kernel/freertos/FreeRTOS-Kernel/include -I${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/FreeRTOS-Kernel/include
-I${MCU_PLUS_SDK_PATH}/source/kernel/freertos/portable/TI_ARM_CLANG/ARM_CR5F -I${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/portable/TI_ARM_CLANG/ARM_CR5F
-I${MCU_PLUS_SDK_PATH}/source/kernel/freertos/config/am243x/r5f -I${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/config/am243x/r5f
-mcpu=cortex-r5 -mcpu=cortex-r5
-mfloat-abi=hard -mfloat-abi=hard
-mfpu=vfpv3-d16 -mfpu=vfpv3-d16
@ -48,10 +48,10 @@
-DSOC_AM243X -DSOC_AM243X
" "
linkerBuildOptions=" linkerBuildOptions="
-i${MCU_PLUS_SDK_PATH}/source/kernel/freertos/lib -i${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/lib
-i${MCU_PLUS_SDK_PATH}/source/drivers/lib -i${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/drivers/lib
-i${MCU_PLUS_SDK_PATH}/source/board/lib -i${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/board/lib
-i${MOTOR_CONTROL_SDK_PATH}/source/motor_control/position_sense/endat/lib -i${MOTOR_CONTROL_SDK_PATH}/source/position_sense/endat/lib
-i${CG_TOOL_ROOT}/lib -i${CG_TOOL_ROOT}/lib
-m=endat_diagnostic_multi_channel_load_share.${ConfigName}.map -m=endat_diagnostic_multi_channel_load_share.${ConfigName}.map
--diag_suppress=10063 --diag_suppress=10063
@ -59,7 +59,7 @@
--reread_libs --reread_libs
" "
postBuildStep="$(MAKE) -C ${CCS_PROJECT_DIR} -f makefile_ccs_bootimage_gen OUTNAME=${BuildArtifactFileBaseName} PROFILE=${ConfigName} MCU_PLUS_SDK_PATH=${MCU_PLUS_SDK_PATH} CG_TOOL_ROOT=${CG_TOOL_ROOT} CCS_INSTALL_DIR=${CCS_INSTALL_DIR} CCS_IDE_MODE=${CCS_IDE_MODE} DEVICE=am243x" 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" enableSysConfigTool="true"
sysConfigBuildOptions=" sysConfigBuildOptions="
@ -94,7 +94,6 @@
-llibsysbm.a -llibsysbm.a
" "
></configuration> ></configuration>
<pathVariable name="MCU_PLUS_SDK_PATH" path="${COM_TI_MCU_PLUS_SDK_AMXXX_INSTALL_DIR}" scope="project" />
<pathVariable name="MOTOR_CONTROL_SDK_PATH" path="${COM_TI_MOTOR_CONTROL_SDK_AMXXX_INSTALL_DIR}" scope="project" /> <pathVariable name="MOTOR_CONTROL_SDK_PATH" path="${COM_TI_MOTOR_CONTROL_SDK_AMXXX_INSTALL_DIR}" scope="project" />
<file path="../../../../endat_diagnostic.c" openOnCreation="false" excludeFromBuild="false" action="copy"> <file path="../../../../endat_diagnostic.c" openOnCreation="false" excludeFromBuild="false" action="copy">
</file> </file>

View File

@ -55,11 +55,11 @@ FILES_PATH_common = \
INCLUDES_common := \ INCLUDES_common := \
-I${CG_TOOL_ROOT}/include/c \ -I${CG_TOOL_ROOT}/include/c \
-I${MCU_PLUS_SDK_PATH}/source \ -I${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source \
-I${MOTOR_CONTROL_SDK_PATH}/source \ -I${MOTOR_CONTROL_SDK_PATH}/source \
-I${MCU_PLUS_SDK_PATH}/source/kernel/freertos/FreeRTOS-Kernel/include \ -I${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/FreeRTOS-Kernel/include \
-I${MCU_PLUS_SDK_PATH}/source/kernel/freertos/portable/TI_ARM_CLANG/ARM_CR5F \ -I${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/portable/TI_ARM_CLANG/ARM_CR5F \
-I${MCU_PLUS_SDK_PATH}/source/kernel/freertos/config/am243x/r5f \ -I${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/config/am243x/r5f \
-Igenerated \ -Igenerated \
DEFINES_common := \ DEFINES_common := \
@ -99,10 +99,10 @@ LNK_FILES_common = \
linker.cmd \ linker.cmd \
LIBS_PATH_common = \ LIBS_PATH_common = \
-Wl,-i${MCU_PLUS_SDK_PATH}/source/kernel/freertos/lib \ -Wl,-i${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/lib \
-Wl,-i${MCU_PLUS_SDK_PATH}/source/drivers/lib \ -Wl,-i${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/drivers/lib \
-Wl,-i${MCU_PLUS_SDK_PATH}/source/board/lib \ -Wl,-i${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/board/lib \
-Wl,-i${MOTOR_CONTROL_SDK_PATH}/source/motor_control/position_sense/endat/lib \ -Wl,-i${MOTOR_CONTROL_SDK_PATH}/source/position_sense/endat/lib \
-Wl,-i${CG_TOOL_ROOT}/lib \ -Wl,-i${CG_TOOL_ROOT}/lib \
LIBS_common = \ LIBS_common = \
@ -128,10 +128,10 @@ LIBS_NAME = \
libsysbm.a \ libsysbm.a \
LIBS_PATH_NAME = \ LIBS_PATH_NAME = \
${MCU_PLUS_SDK_PATH}/source/kernel/freertos/lib \ ${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/lib \
${MCU_PLUS_SDK_PATH}/source/drivers/lib \ ${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/drivers/lib \
${MCU_PLUS_SDK_PATH}/source/board/lib \ ${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/board/lib \
${MOTOR_CONTROL_SDK_PATH}/source/motor_control/position_sense/endat/lib \ ${MOTOR_CONTROL_SDK_PATH}/source/position_sense/endat/lib \
${CG_TOOL_ROOT}/lib \ ${CG_TOOL_ROOT}/lib \
FILES := $(FILES_common) $(FILES_$(PROFILE)) FILES := $(FILES_common) $(FILES_$(PROFILE))
@ -227,10 +227,10 @@ $(SYSCFG_GEN_FILES): syscfg
syscfg: ../example.syscfg syscfg: ../example.syscfg
@echo Generating SysConfig files ... @echo Generating SysConfig files ...
$(SYSCFG_NODE) $(SYSCFG_CLI_PATH)/dist/cli.js --product $(SYSCFG_MCUPLUSSDKPRODUCT) --product $(SYSCFG_SDKPRODUCT) --context r5fss0-0 --part ALV --package ALV --output generated/ ../example.syscfg $(SYSCFG_NODE) $(SYSCFG_CLI_PATH)/dist/cli.js --product $(SYSCFG_SDKPRODUCT) --context r5fss0-0 --part ALV --package ALV --output generated/ ../example.syscfg
syscfg-gui: syscfg-gui:
$(SYSCFG_NWJS) $(SYSCFG_PATH) --product $(SYSCFG_MCUPLUSSDKPRODUCT) --product $(SYSCFG_SDKPRODUCT) --device AM243x_ALV_beta --context r5fss0-0 --part ALV --package ALV --output generated/ ../example.syscfg $(SYSCFG_NWJS) $(SYSCFG_PATH) --product $(SYSCFG_SDKPRODUCT) --device AM243x_ALV_beta --context r5fss0-0 --part ALV --package ALV --output generated/ ../example.syscfg
# #
# Generation of boot image which can be loaded by Secondary Boot Loader (SBL) # Generation of boot image which can be loaded by Secondary Boot Loader (SBL)
@ -239,9 +239,9 @@ ifeq ($(OS),Windows_NT)
EXE_EXT=.exe EXE_EXT=.exe
endif endif
ifeq ($(OS),Windows_NT) ifeq ($(OS),Windows_NT)
BOOTIMAGE_CERT_GEN_CMD=powershell -executionpolicy unrestricted -command $(MCU_PLUS_SDK_PATH)/tools/boot/signing/x509CertificateGen.ps1 BOOTIMAGE_CERT_GEN_CMD=powershell -executionpolicy unrestricted -command $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/signing/x509CertificateGen.ps1
else else
BOOTIMAGE_CERT_GEN_CMD=$(MCU_PLUS_SDK_PATH)/tools/boot/signing/x509CertificateGen.sh BOOTIMAGE_CERT_GEN_CMD=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/signing/x509CertificateGen.sh
endif endif
BOOTIMAGE_TEMP_OUT_FILE=temp_stdout_$(PROFILE).txt BOOTIMAGE_TEMP_OUT_FILE=temp_stdout_$(PROFILE).txt
@ -255,14 +255,14 @@ BOOTIMAGE_CORE_ID_m4fss0-0 = 14
SBL_RUN_ADDRESS=0x70000000 SBL_RUN_ADDRESS=0x70000000
SBL_DEV_ID=55 SBL_DEV_ID=55
MULTI_CORE_IMAGE_GEN = $(SYSCFG_NODE) $(MCU_PLUS_SDK_PATH)/tools/boot/multicoreImageGen/multicoreImageGen.js MULTI_CORE_IMAGE_GEN = $(SYSCFG_NODE) $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/multicoreImageGen/multicoreImageGen.js
OUTRPRC_CMD = $(SYSCFG_NODE) $(MCU_PLUS_SDK_PATH)/tools/boot/out2rprc/elf2rprc.js OUTRPRC_CMD = $(SYSCFG_NODE) $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/out2rprc/elf2rprc.js
APP_IMAGE_SIGN_CMD = $(MCU_PLUS_SDK_PATH)/tools/boot/signing/appimage_x509_cert_gen.py APP_IMAGE_SIGN_CMD = $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/signing/appimage_x509_cert_gen.py
ifeq ($(OS),Windows_NT) ifeq ($(OS),Windows_NT)
XIPGEN_CMD=$(MCU_PLUS_SDK_PATH)/tools/boot/xipGen/xipGen.exe XIPGEN_CMD=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/xipGen/xipGen.exe
else else
XIPGEN_CMD=$(MCU_PLUS_SDK_PATH)/tools/boot/xipGen/xipGen.out XIPGEN_CMD=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/xipGen/xipGen.out
endif endif
MULTI_CORE_IMAGE_PARAMS = \ MULTI_CORE_IMAGE_PARAMS = \

View File

@ -3,7 +3,7 @@
# #
# Below variables need to be defined outside this file or via command line # Below variables need to be defined outside this file or via command line
# - MCU_PLUS_SDK_PATH # - MOTOR_CONTROL_SDK_PATH
# - PROFILE # - PROFILE
# - CG_TOOL_ROOT # - CG_TOOL_ROOT
# - OUTNAME # - OUTNAME
@ -11,8 +11,8 @@
# - CCS_IDE_MODE # - CCS_IDE_MODE
CCS_PATH=$(CCS_INSTALL_DIR) CCS_PATH=$(CCS_INSTALL_DIR)
include $(MCU_PLUS_SDK_PATH)/imports.mak include ${MOTOR_CONTROL_SDK_PATH}/imports.mak
include $(MCU_PLUS_SDK_PATH)/devconfig/devconfig.mak include ${MOTOR_CONTROL_SDK_PATH}/devconfig/devconfig.mak
STRIP=$(CG_TOOL_ROOT)/bin/tiarmstrip STRIP=$(CG_TOOL_ROOT)/bin/tiarmstrip
OBJCOPY=$(CG_TOOL_ROOT)/bin/tiarmobjcopy OBJCOPY=$(CG_TOOL_ROOT)/bin/tiarmobjcopy
@ -38,9 +38,9 @@ ifeq ($(OS),Windows_NT)
EXE_EXT=.exe EXE_EXT=.exe
endif endif
ifeq ($(OS),Windows_NT) ifeq ($(OS),Windows_NT)
BOOTIMAGE_CERT_GEN_CMD=powershell -executionpolicy unrestricted -command $(MCU_PLUS_SDK_PATH)/tools/boot/signing/x509CertificateGen.ps1 BOOTIMAGE_CERT_GEN_CMD=powershell -executionpolicy unrestricted -command $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/signing/x509CertificateGen.ps1
else else
BOOTIMAGE_CERT_GEN_CMD=$(MCU_PLUS_SDK_PATH)/tools/boot/signing/x509CertificateGen.sh BOOTIMAGE_CERT_GEN_CMD=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/signing/x509CertificateGen.sh
endif endif
BOOTIMAGE_TEMP_OUT_FILE=$(PROFILE)/temp_stdout_$(PROFILE).txt BOOTIMAGE_TEMP_OUT_FILE=$(PROFILE)/temp_stdout_$(PROFILE).txt
@ -52,14 +52,14 @@ BOOTIMAGE_CORE_ID_m4fss0-0 = 14
SBL_RUN_ADDRESS=0x70000000 SBL_RUN_ADDRESS=0x70000000
SBL_DEV_ID=55 SBL_DEV_ID=55
MULTI_CORE_IMAGE_GEN = $(CCS_NODE) $(MCU_PLUS_SDK_PATH)/tools/boot/multicoreImageGen/multicoreImageGen.js MULTI_CORE_IMAGE_GEN = $(CCS_NODE) $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/multicoreImageGen/multicoreImageGen.js
OUTRPRC_CMD = $(CCS_NODE) $(MCU_PLUS_SDK_PATH)/tools/boot/out2rprc/elf2rprc.js OUTRPRC_CMD = $(CCS_NODE) $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/out2rprc/elf2rprc.js
APP_IMAGE_SIGN_CMD = $(MCU_PLUS_SDK_PATH)/tools/boot/signing/appimage_x509_cert_gen.py APP_IMAGE_SIGN_CMD = $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/signing/appimage_x509_cert_gen.py
ifeq ($(OS),Windows_NT) ifeq ($(OS),Windows_NT)
XIPGEN_CMD=$(MCU_PLUS_SDK_PATH)/tools/boot/xipGen/xipGen.exe XIPGEN_CMD=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/xipGen/xipGen.exe
else else
XIPGEN_CMD=$(MCU_PLUS_SDK_PATH)/tools/boot/xipGen/xipGen.out XIPGEN_CMD=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/xipGen/xipGen.out
endif endif
MULTI_CORE_IMAGE_PARAMS = \ MULTI_CORE_IMAGE_PARAMS = \

View File

@ -22,7 +22,7 @@ const mpu_armv75 = mpu_armv7.addInstance();
const mpu_armv76 = mpu_armv7.addInstance(); const mpu_armv76 = mpu_armv7.addInstance();
const timer = scripting.addModule("/kernel/dpl/timer", {}, false); const timer = scripting.addModule("/kernel/dpl/timer", {}, false);
const timer1 = timer.addInstance(); const timer1 = timer.addInstance();
const endat = scripting.addModule("/motor_control/position_sense/endat", {}, false); const endat = scripting.addModule("/position_sense/endat", {}, false);
const endat1 = endat.addInstance(); const endat1 = endat.addInstance();
/** /**

View File

@ -12,14 +12,14 @@
<project <project
title="Endat Diagnostic Multi Channel Load Share" title="Endat Diagnostic Multi Channel Load Share"
name = "endat_diagnostic_multi_channel_load_share_am64x-evm_r5fss0-0_freertos_ti-arm-clang" name = "endat_diagnostic_multi_channel_load_share_am64x-evm_r5fss0-0_freertos_ti-arm-clang"
products="sysconfig;com.ti.MOTOR_CONTROL_SDK_AMXXX;com.ti.MCU_PLUS_SDK_AMXXX" products="sysconfig;com.ti.MOTOR_CONTROL_SDK_AMXXX;"
configurations=" configurations="
Debug, Debug,
Release, Release,
" "
connection="TIXDS110_Connection.xml" connection="TIXDS110_Connection.xml"
toolChain="TICLANG" toolChain="TICLANG"
cgtVersion="2.1.2" cgtVersion="2.1.3"
device="Cortex R.AM64x" device="Cortex R.AM64x"
deviceCore="MAIN_PULSAR_Cortex_R5_0_0" deviceCore="MAIN_PULSAR_Cortex_R5_0_0"
ignoreDefaultDeviceSettings="true" ignoreDefaultDeviceSettings="true"
@ -30,11 +30,11 @@
compilerBuildOptions=" compilerBuildOptions="
-I${CG_TOOL_ROOT}/include/c -I${CG_TOOL_ROOT}/include/c
-I${MCU_PLUS_SDK_PATH}/source -I${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source
-I${MOTOR_CONTROL_SDK_PATH}/source -I${MOTOR_CONTROL_SDK_PATH}/source
-I${MCU_PLUS_SDK_PATH}/source/kernel/freertos/FreeRTOS-Kernel/include -I${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/FreeRTOS-Kernel/include
-I${MCU_PLUS_SDK_PATH}/source/kernel/freertos/portable/TI_ARM_CLANG/ARM_CR5F -I${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/portable/TI_ARM_CLANG/ARM_CR5F
-I${MCU_PLUS_SDK_PATH}/source/kernel/freertos/config/am64x/r5f -I${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/config/am64x/r5f
-mcpu=cortex-r5 -mcpu=cortex-r5
-mfloat-abi=hard -mfloat-abi=hard
-mfpu=vfpv3-d16 -mfpu=vfpv3-d16
@ -48,10 +48,10 @@
-DSOC_AM64X -DSOC_AM64X
" "
linkerBuildOptions=" linkerBuildOptions="
-i${MCU_PLUS_SDK_PATH}/source/kernel/freertos/lib -i${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/lib
-i${MCU_PLUS_SDK_PATH}/source/drivers/lib -i${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/drivers/lib
-i${MCU_PLUS_SDK_PATH}/source/board/lib -i${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/board/lib
-i${MOTOR_CONTROL_SDK_PATH}/source/motor_control/position_sense/endat/lib -i${MOTOR_CONTROL_SDK_PATH}/source/position_sense/endat/lib
-i${CG_TOOL_ROOT}/lib -i${CG_TOOL_ROOT}/lib
-m=endat_diagnostic_multi_channel_load_share.${ConfigName}.map -m=endat_diagnostic_multi_channel_load_share.${ConfigName}.map
--diag_suppress=10063 --diag_suppress=10063
@ -59,7 +59,7 @@
--reread_libs --reread_libs
" "
postBuildStep="$(MAKE) -C ${CCS_PROJECT_DIR} -f makefile_ccs_bootimage_gen OUTNAME=${BuildArtifactFileBaseName} PROFILE=${ConfigName} MCU_PLUS_SDK_PATH=${MCU_PLUS_SDK_PATH} CG_TOOL_ROOT=${CG_TOOL_ROOT} CCS_INSTALL_DIR=${CCS_INSTALL_DIR} CCS_IDE_MODE=${CCS_IDE_MODE} DEVICE=am64x" 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=am64x"
enableSysConfigTool="true" enableSysConfigTool="true"
sysConfigBuildOptions=" sysConfigBuildOptions="
@ -94,7 +94,6 @@
-llibsysbm.a -llibsysbm.a
" "
></configuration> ></configuration>
<pathVariable name="MCU_PLUS_SDK_PATH" path="${COM_TI_MCU_PLUS_SDK_AMXXX_INSTALL_DIR}" scope="project" />
<pathVariable name="MOTOR_CONTROL_SDK_PATH" path="${COM_TI_MOTOR_CONTROL_SDK_AMXXX_INSTALL_DIR}" scope="project" /> <pathVariable name="MOTOR_CONTROL_SDK_PATH" path="${COM_TI_MOTOR_CONTROL_SDK_AMXXX_INSTALL_DIR}" scope="project" />
<file path="../../../../endat_diagnostic.c" openOnCreation="false" excludeFromBuild="false" action="copy"> <file path="../../../../endat_diagnostic.c" openOnCreation="false" excludeFromBuild="false" action="copy">
</file> </file>

View File

@ -55,11 +55,11 @@ FILES_PATH_common = \
INCLUDES_common := \ INCLUDES_common := \
-I${CG_TOOL_ROOT}/include/c \ -I${CG_TOOL_ROOT}/include/c \
-I${MCU_PLUS_SDK_PATH}/source \ -I${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source \
-I${MOTOR_CONTROL_SDK_PATH}/source \ -I${MOTOR_CONTROL_SDK_PATH}/source \
-I${MCU_PLUS_SDK_PATH}/source/kernel/freertos/FreeRTOS-Kernel/include \ -I${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/FreeRTOS-Kernel/include \
-I${MCU_PLUS_SDK_PATH}/source/kernel/freertos/portable/TI_ARM_CLANG/ARM_CR5F \ -I${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/portable/TI_ARM_CLANG/ARM_CR5F \
-I${MCU_PLUS_SDK_PATH}/source/kernel/freertos/config/am64x/r5f \ -I${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/config/am64x/r5f \
-Igenerated \ -Igenerated \
DEFINES_common := \ DEFINES_common := \
@ -99,10 +99,10 @@ LNK_FILES_common = \
linker.cmd \ linker.cmd \
LIBS_PATH_common = \ LIBS_PATH_common = \
-Wl,-i${MCU_PLUS_SDK_PATH}/source/kernel/freertos/lib \ -Wl,-i${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/lib \
-Wl,-i${MCU_PLUS_SDK_PATH}/source/drivers/lib \ -Wl,-i${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/drivers/lib \
-Wl,-i${MCU_PLUS_SDK_PATH}/source/board/lib \ -Wl,-i${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/board/lib \
-Wl,-i${MOTOR_CONTROL_SDK_PATH}/source/motor_control/position_sense/endat/lib \ -Wl,-i${MOTOR_CONTROL_SDK_PATH}/source/position_sense/endat/lib \
-Wl,-i${CG_TOOL_ROOT}/lib \ -Wl,-i${CG_TOOL_ROOT}/lib \
LIBS_common = \ LIBS_common = \
@ -128,10 +128,10 @@ LIBS_NAME = \
libsysbm.a \ libsysbm.a \
LIBS_PATH_NAME = \ LIBS_PATH_NAME = \
${MCU_PLUS_SDK_PATH}/source/kernel/freertos/lib \ ${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/lib \
${MCU_PLUS_SDK_PATH}/source/drivers/lib \ ${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/drivers/lib \
${MCU_PLUS_SDK_PATH}/source/board/lib \ ${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/board/lib \
${MOTOR_CONTROL_SDK_PATH}/source/motor_control/position_sense/endat/lib \ ${MOTOR_CONTROL_SDK_PATH}/source/position_sense/endat/lib \
${CG_TOOL_ROOT}/lib \ ${CG_TOOL_ROOT}/lib \
FILES := $(FILES_common) $(FILES_$(PROFILE)) FILES := $(FILES_common) $(FILES_$(PROFILE))
@ -227,10 +227,10 @@ $(SYSCFG_GEN_FILES): syscfg
syscfg: ../example.syscfg syscfg: ../example.syscfg
@echo Generating SysConfig files ... @echo Generating SysConfig files ...
$(SYSCFG_NODE) $(SYSCFG_CLI_PATH)/dist/cli.js --product $(SYSCFG_MCUPLUSSDKPRODUCT) --product $(SYSCFG_SDKPRODUCT) --context r5fss0-0 --part Default --package ALV --output generated/ ../example.syscfg $(SYSCFG_NODE) $(SYSCFG_CLI_PATH)/dist/cli.js --product $(SYSCFG_SDKPRODUCT) --context r5fss0-0 --part Default --package ALV --output generated/ ../example.syscfg
syscfg-gui: syscfg-gui:
$(SYSCFG_NWJS) $(SYSCFG_PATH) --product $(SYSCFG_MCUPLUSSDKPRODUCT) --product $(SYSCFG_SDKPRODUCT) --device AM64x_beta --context r5fss0-0 --part Default --package ALV --output generated/ ../example.syscfg $(SYSCFG_NWJS) $(SYSCFG_PATH) --product $(SYSCFG_SDKPRODUCT) --device AM64x --context r5fss0-0 --part Default --package ALV --output generated/ ../example.syscfg
# #
# Generation of boot image which can be loaded by Secondary Boot Loader (SBL) # Generation of boot image which can be loaded by Secondary Boot Loader (SBL)
@ -239,9 +239,9 @@ ifeq ($(OS),Windows_NT)
EXE_EXT=.exe EXE_EXT=.exe
endif endif
ifeq ($(OS),Windows_NT) ifeq ($(OS),Windows_NT)
BOOTIMAGE_CERT_GEN_CMD=powershell -executionpolicy unrestricted -command $(MCU_PLUS_SDK_PATH)/tools/boot/signing/x509CertificateGen.ps1 BOOTIMAGE_CERT_GEN_CMD=powershell -executionpolicy unrestricted -command $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/signing/x509CertificateGen.ps1
else else
BOOTIMAGE_CERT_GEN_CMD=$(MCU_PLUS_SDK_PATH)/tools/boot/signing/x509CertificateGen.sh BOOTIMAGE_CERT_GEN_CMD=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/signing/x509CertificateGen.sh
endif endif
BOOTIMAGE_TEMP_OUT_FILE=temp_stdout_$(PROFILE).txt BOOTIMAGE_TEMP_OUT_FILE=temp_stdout_$(PROFILE).txt
@ -256,14 +256,14 @@ BOOTIMAGE_CORE_ID_m4fss0-0 = 14
SBL_RUN_ADDRESS=0x70000000 SBL_RUN_ADDRESS=0x70000000
SBL_DEV_ID=55 SBL_DEV_ID=55
MULTI_CORE_IMAGE_GEN = $(SYSCFG_NODE) $(MCU_PLUS_SDK_PATH)/tools/boot/multicoreImageGen/multicoreImageGen.js MULTI_CORE_IMAGE_GEN = $(SYSCFG_NODE) $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/multicoreImageGen/multicoreImageGen.js
OUTRPRC_CMD = $(SYSCFG_NODE) $(MCU_PLUS_SDK_PATH)/tools/boot/out2rprc/elf2rprc.js OUTRPRC_CMD = $(SYSCFG_NODE) $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/out2rprc/elf2rprc.js
APP_IMAGE_SIGN_CMD = $(MCU_PLUS_SDK_PATH)/tools/boot/signing/appimage_x509_cert_gen.py APP_IMAGE_SIGN_CMD = $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/signing/appimage_x509_cert_gen.py
ifeq ($(OS),Windows_NT) ifeq ($(OS),Windows_NT)
XIPGEN_CMD=$(MCU_PLUS_SDK_PATH)/tools/boot/xipGen/xipGen.exe XIPGEN_CMD=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/xipGen/xipGen.exe
else else
XIPGEN_CMD=$(MCU_PLUS_SDK_PATH)/tools/boot/xipGen/xipGen.out XIPGEN_CMD=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/xipGen/xipGen.out
endif endif
MULTI_CORE_IMAGE_PARAMS = \ MULTI_CORE_IMAGE_PARAMS = \

View File

@ -3,7 +3,7 @@
# #
# Below variables need to be defined outside this file or via command line # Below variables need to be defined outside this file or via command line
# - MCU_PLUS_SDK_PATH # - MOTOR_CONTROL_SDK_PATH
# - PROFILE # - PROFILE
# - CG_TOOL_ROOT # - CG_TOOL_ROOT
# - OUTNAME # - OUTNAME
@ -11,8 +11,8 @@
# - CCS_IDE_MODE # - CCS_IDE_MODE
CCS_PATH=$(CCS_INSTALL_DIR) CCS_PATH=$(CCS_INSTALL_DIR)
include $(MCU_PLUS_SDK_PATH)/imports.mak include ${MOTOR_CONTROL_SDK_PATH}/imports.mak
include $(MCU_PLUS_SDK_PATH)/devconfig/devconfig.mak include ${MOTOR_CONTROL_SDK_PATH}/devconfig/devconfig.mak
STRIP=$(CG_TOOL_ROOT)/bin/tiarmstrip STRIP=$(CG_TOOL_ROOT)/bin/tiarmstrip
OBJCOPY=$(CG_TOOL_ROOT)/bin/tiarmobjcopy OBJCOPY=$(CG_TOOL_ROOT)/bin/tiarmobjcopy
@ -38,9 +38,9 @@ ifeq ($(OS),Windows_NT)
EXE_EXT=.exe EXE_EXT=.exe
endif endif
ifeq ($(OS),Windows_NT) ifeq ($(OS),Windows_NT)
BOOTIMAGE_CERT_GEN_CMD=powershell -executionpolicy unrestricted -command $(MCU_PLUS_SDK_PATH)/tools/boot/signing/x509CertificateGen.ps1 BOOTIMAGE_CERT_GEN_CMD=powershell -executionpolicy unrestricted -command $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/signing/x509CertificateGen.ps1
else else
BOOTIMAGE_CERT_GEN_CMD=$(MCU_PLUS_SDK_PATH)/tools/boot/signing/x509CertificateGen.sh BOOTIMAGE_CERT_GEN_CMD=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/signing/x509CertificateGen.sh
endif endif
BOOTIMAGE_TEMP_OUT_FILE=$(PROFILE)/temp_stdout_$(PROFILE).txt BOOTIMAGE_TEMP_OUT_FILE=$(PROFILE)/temp_stdout_$(PROFILE).txt
@ -53,14 +53,14 @@ BOOTIMAGE_CORE_ID_m4fss0-0 = 14
SBL_RUN_ADDRESS=0x70000000 SBL_RUN_ADDRESS=0x70000000
SBL_DEV_ID=55 SBL_DEV_ID=55
MULTI_CORE_IMAGE_GEN = $(CCS_NODE) $(MCU_PLUS_SDK_PATH)/tools/boot/multicoreImageGen/multicoreImageGen.js MULTI_CORE_IMAGE_GEN = $(CCS_NODE) $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/multicoreImageGen/multicoreImageGen.js
OUTRPRC_CMD = $(CCS_NODE) $(MCU_PLUS_SDK_PATH)/tools/boot/out2rprc/elf2rprc.js OUTRPRC_CMD = $(CCS_NODE) $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/out2rprc/elf2rprc.js
APP_IMAGE_SIGN_CMD = $(MCU_PLUS_SDK_PATH)/tools/boot/signing/appimage_x509_cert_gen.py APP_IMAGE_SIGN_CMD = $(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/signing/appimage_x509_cert_gen.py
ifeq ($(OS),Windows_NT) ifeq ($(OS),Windows_NT)
XIPGEN_CMD=$(MCU_PLUS_SDK_PATH)/tools/boot/xipGen/xipGen.exe XIPGEN_CMD=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/xipGen/xipGen.exe
else else
XIPGEN_CMD=$(MCU_PLUS_SDK_PATH)/tools/boot/xipGen/xipGen.out XIPGEN_CMD=$(MOTOR_CONTROL_SDK_PATH)/mcu_plus_sdk/tools/boot/xipGen/xipGen.out
endif endif
MULTI_CORE_IMAGE_PARAMS = \ MULTI_CORE_IMAGE_PARAMS = \

View File

@ -21,18 +21,18 @@ const filedirs = {
const libdirs_freertos = { const libdirs_freertos = {
common: [ common: [
"${MCU_PLUS_SDK_PATH}/source/kernel/freertos/lib", "${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/lib",
"${MCU_PLUS_SDK_PATH}/source/drivers/lib", "${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/drivers/lib",
"${MCU_PLUS_SDK_PATH}/source/board/lib", "${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/board/lib",
"${MOTOR_CONTROL_SDK_PATH}/source/motor_control/position_sense/endat/lib", "${MOTOR_CONTROL_SDK_PATH}/source/position_sense/endat/lib",
], ],
}; };
const includes_freertos_r5f = { const includes_freertos_r5f = {
common: [ common: [
"${MCU_PLUS_SDK_PATH}/source/kernel/freertos/FreeRTOS-Kernel/include", "${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/FreeRTOS-Kernel/include",
"${MCU_PLUS_SDK_PATH}/source/kernel/freertos/portable/TI_ARM_CLANG/ARM_CR5F", "${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/portable/TI_ARM_CLANG/ARM_CR5F",
"${MCU_PLUS_SDK_PATH}/source/kernel/freertos/config/am243x/r5f", "${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/config/am243x/r5f",
], ],
}; };

View File

@ -21,18 +21,18 @@ const filedirs = {
const libdirs_freertos = { const libdirs_freertos = {
common: [ common: [
"${MCU_PLUS_SDK_PATH}/source/kernel/freertos/lib", "${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/lib",
"${MCU_PLUS_SDK_PATH}/source/drivers/lib", "${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/drivers/lib",
"${MCU_PLUS_SDK_PATH}/source/board/lib", "${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/board/lib",
"${MOTOR_CONTROL_SDK_PATH}/source/motor_control/position_sense/endat/lib", "${MOTOR_CONTROL_SDK_PATH}/source/position_sense/endat/lib",
], ],
}; };
const includes_freertos_r5f = { const includes_freertos_r5f = {
common: [ common: [
"${MCU_PLUS_SDK_PATH}/source/kernel/freertos/FreeRTOS-Kernel/include", "${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/FreeRTOS-Kernel/include",
"${MCU_PLUS_SDK_PATH}/source/kernel/freertos/portable/TI_ARM_CLANG/ARM_CR5F", "${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/portable/TI_ARM_CLANG/ARM_CR5F",
"${MCU_PLUS_SDK_PATH}/source/kernel/freertos/config/am64x/r5f", "${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/config/am64x/r5f",
], ],
}; };

View File

@ -22,7 +22,7 @@ const mpu_armv75 = mpu_armv7.addInstance();
const mpu_armv76 = mpu_armv7.addInstance(); const mpu_armv76 = mpu_armv7.addInstance();
const timer = scripting.addModule("/kernel/dpl/timer", {}, false); const timer = scripting.addModule("/kernel/dpl/timer", {}, false);
const timer1 = timer.addInstance(); const timer1 = timer.addInstance();
const endat = scripting.addModule("/motor_control/position_sense/endat", {}, false); const endat = scripting.addModule("/position_sense/endat", {}, false);
const endat1 = endat.addInstance(); const endat1 = endat.addInstance();
/** /**

View File

@ -12,14 +12,14 @@
<project <project
title="Endat Diagnostic Multi Channel Single Pru" title="Endat Diagnostic Multi Channel Single Pru"
name = "endat_diagnostic_multi_channel_single_pru_am243x-evm_r5fss0-0_freertos_ti-arm-clang" name = "endat_diagnostic_multi_channel_single_pru_am243x-evm_r5fss0-0_freertos_ti-arm-clang"
products="sysconfig;com.ti.MOTOR_CONTROL_SDK_AMXXX;com.ti.MCU_PLUS_SDK_AMXXX" products="sysconfig;com.ti.MOTOR_CONTROL_SDK_AMXXX;"
configurations=" configurations="
Debug, Debug,
Release, Release,
" "
connection="TIXDS110_Connection.xml" connection="TIXDS110_Connection.xml"
toolChain="TICLANG" toolChain="TICLANG"
cgtVersion="2.1.2" cgtVersion="2.1.3"
device="Cortex R.AM2434_ALV" device="Cortex R.AM2434_ALV"
deviceCore="MAIN_PULSAR_Cortex_R5_0_0" deviceCore="MAIN_PULSAR_Cortex_R5_0_0"
ignoreDefaultDeviceSettings="true" ignoreDefaultDeviceSettings="true"
@ -30,11 +30,11 @@
compilerBuildOptions=" compilerBuildOptions="
-I${CG_TOOL_ROOT}/include/c -I${CG_TOOL_ROOT}/include/c
-I${MCU_PLUS_SDK_PATH}/source -I${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source
-I${MOTOR_CONTROL_SDK_PATH}/source -I${MOTOR_CONTROL_SDK_PATH}/source
-I${MCU_PLUS_SDK_PATH}/source/kernel/freertos/FreeRTOS-Kernel/include -I${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/FreeRTOS-Kernel/include
-I${MCU_PLUS_SDK_PATH}/source/kernel/freertos/portable/TI_ARM_CLANG/ARM_CR5F -I${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/portable/TI_ARM_CLANG/ARM_CR5F
-I${MCU_PLUS_SDK_PATH}/source/kernel/freertos/config/am243x/r5f -I${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/config/am243x/r5f
-mcpu=cortex-r5 -mcpu=cortex-r5
-mfloat-abi=hard -mfloat-abi=hard
-mfpu=vfpv3-d16 -mfpu=vfpv3-d16
@ -48,10 +48,10 @@
-DSOC_AM243X -DSOC_AM243X
" "
linkerBuildOptions=" linkerBuildOptions="
-i${MCU_PLUS_SDK_PATH}/source/kernel/freertos/lib -i${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/kernel/freertos/lib
-i${MCU_PLUS_SDK_PATH}/source/drivers/lib -i${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/drivers/lib
-i${MCU_PLUS_SDK_PATH}/source/board/lib -i${MOTOR_CONTROL_SDK_PATH}/mcu_plus_sdk/source/board/lib
-i${MOTOR_CONTROL_SDK_PATH}/source/motor_control/position_sense/endat/lib -i${MOTOR_CONTROL_SDK_PATH}/source/position_sense/endat/lib
-i${CG_TOOL_ROOT}/lib -i${CG_TOOL_ROOT}/lib
-m=endat_diagnostic_multi_channel_single_pru.${ConfigName}.map -m=endat_diagnostic_multi_channel_single_pru.${ConfigName}.map
--diag_suppress=10063 --diag_suppress=10063
@ -59,7 +59,7 @@
--reread_libs --reread_libs
" "
postBuildStep="$(MAKE) -C ${CCS_PROJECT_DIR} -f makefile_ccs_bootimage_gen OUTNAME=${BuildArtifactFileBaseName} PROFILE=${ConfigName} MCU_PLUS_SDK_PATH=${MCU_PLUS_SDK_PATH} CG_TOOL_ROOT=${CG_TOOL_ROOT} CCS_INSTALL_DIR=${CCS_INSTALL_DIR} CCS_IDE_MODE=${CCS_IDE_MODE} DEVICE=am243x" 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" enableSysConfigTool="true"
sysConfigBuildOptions=" sysConfigBuildOptions="
@ -94,7 +94,6 @@
-llibsysbm.a -llibsysbm.a
" "
></configuration> ></configuration>
<pathVariable name="MCU_PLUS_SDK_PATH" path="${COM_TI_MCU_PLUS_SDK_AMXXX_INSTALL_DIR}" scope="project" />
<pathVariable name="MOTOR_CONTROL_SDK_PATH" path="${COM_TI_MOTOR_CONTROL_SDK_AMXXX_INSTALL_DIR}" scope="project" /> <pathVariable name="MOTOR_CONTROL_SDK_PATH" path="${COM_TI_MOTOR_CONTROL_SDK_AMXXX_INSTALL_DIR}" scope="project" />
<file path="../../../../endat_diagnostic.c" openOnCreation="false" excludeFromBuild="false" action="copy"> <file path="../../../../endat_diagnostic.c" openOnCreation="false" excludeFromBuild="false" action="copy">
</file> </file>

Some files were not shown because too many files have changed in this diff Show More