diff options
Diffstat (limited to 'examples/imx7d_sdb_m4/demo_apps/hello_world/armgcc')
-rw-r--r-- | examples/imx7d_sdb_m4/demo_apps/hello_world/armgcc/CMakeLists.txt | 24 | ||||
-rw-r--r--[-rwxr-xr-x] | examples/imx7d_sdb_m4/demo_apps/hello_world/armgcc/build_all.bat | 0 | ||||
-rw-r--r--[-rwxr-xr-x] | examples/imx7d_sdb_m4/demo_apps/hello_world/armgcc/build_debug.bat | 0 | ||||
-rw-r--r--[-rwxr-xr-x] | examples/imx7d_sdb_m4/demo_apps/hello_world/armgcc/build_release.bat | 0 | ||||
-rw-r--r--[-rwxr-xr-x] | examples/imx7d_sdb_m4/demo_apps/hello_world/armgcc/clean.bat | 0 |
5 files changed, 15 insertions, 9 deletions
diff --git a/examples/imx7d_sdb_m4/demo_apps/hello_world/armgcc/CMakeLists.txt b/examples/imx7d_sdb_m4/demo_apps/hello_world/armgcc/CMakeLists.txt index 6066a4b..7b23972 100644 --- a/examples/imx7d_sdb_m4/demo_apps/hello_world/armgcc/CMakeLists.txt +++ b/examples/imx7d_sdb_m4/demo_apps/hello_world/armgcc/CMakeLists.txt @@ -28,37 +28,38 @@ set(CMAKE_EXE_LINKER_FLAGS_DEBUG "${CMAKE_EXE_LINKER_FLAGS_DEBUG} -T${ProjDirPat set(CMAKE_EXE_LINKER_FLAGS_RELEASE "${CMAKE_EXE_LINKER_FLAGS_RELEASE} -T${ProjDirPath}/../../../../../platform/devices/MCIMX7D/linker/gcc/MCIMX7D_M4_tcm.ld -static") # DEBUG ASM FLAGS -SET(CMAKE_ASM_FLAGS_DEBUG "${CMAKE_ASM_FLAGS_DEBUG} -g -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -mthumb -Wall -fno-common -ffunction-sections -fdata-sections -ffreestanding -fno-builtin -Os -mapcs -std=gnu99") +SET(CMAKE_ASM_FLAGS_DEBUG "${CMAKE_ASM_FLAGS_DEBUG} -g -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -mthumb -Wall -fno-common -ffunction-sections -fdata-sections -ffreestanding -fno-builtin -mapcs -std=gnu99") # DEBUG C FLAGS -SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -g -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -mthumb -MMD -MP -Wall -fno-common -ffunction-sections -fdata-sections -ffreestanding -fno-builtin -Os -mapcs -std=gnu99") +SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -g -O0 -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -mthumb -MMD -MP -Wall -fno-common -ffunction-sections -fdata-sections -ffreestanding -fno-builtin -mapcs -std=gnu99") # DEBUG LD FLAGS -SET(CMAKE_EXE_LINKER_FLAGS_DEBUG "${CMAKE_EXE_LINKER_FLAGS_DEBUG} -g -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 --specs=nano.specs -lm -Wall -fno-common -ffunction-sections -fdata-sections -ffreestanding -fno-builtin -Os -mthumb -mapcs -Xlinker --gc-sections -Xlinker -static -Xlinker -z -Xlinker muldefs -Xlinker --defsym=__stack_size__=0x400 -Xlinker --defsym=__heap_size__=0x200") +SET(CMAKE_EXE_LINKER_FLAGS_DEBUG "${CMAKE_EXE_LINKER_FLAGS_DEBUG} -g -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 --specs=nano.specs -lm -Wall -fno-common -ffunction-sections -fdata-sections -ffreestanding -fno-builtin -Os -mthumb -mapcs -Xlinker --gc-sections -Xlinker -static -Xlinker -z -Xlinker muldefs") # RELEASE ASM FLAGS -SET(CMAKE_ASM_FLAGS_RELEASE "${CMAKE_ASM_FLAGS_RELEASE} -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -mthumb -Wall -fno-common -ffunction-sections -fdata-sections -ffreestanding -fno-builtin -Os -mapcs -std=gnu99") +SET(CMAKE_ASM_FLAGS_RELEASE "${CMAKE_ASM_FLAGS_RELEASE} -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -mthumb -Wall -fno-common -ffunction-sections -fdata-sections -ffreestanding -fno-builtin -mapcs -std=gnu99") # RELEASE C FLAGS -SET(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -mthumb -MMD -MP -Wall -fno-common -ffunction-sections -fdata-sections -ffreestanding -fno-builtin -Os -mapcs -std=gnu99") +SET(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -Os -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -mthumb -MMD -MP -Wall -fno-common -ffunction-sections -fdata-sections -ffreestanding -fno-builtin -mapcs -std=gnu99") # RELEASE LD FLAGS -SET(CMAKE_EXE_LINKER_FLAGS_RELEASE "${CMAKE_EXE_LINKER_FLAGS_RELEASE} -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 --specs=nano.specs -lm -Wall -fno-common -ffunction-sections -fdata-sections -ffreestanding -fno-builtin -Os -mthumb -mapcs -Xlinker --gc-sections -Xlinker -static -Xlinker -z -Xlinker muldefs -Xlinker --defsym=__stack_size__=0x400 -Xlinker --defsym=__heap_size__=0x200") +SET(CMAKE_EXE_LINKER_FLAGS_RELEASE "${CMAKE_EXE_LINKER_FLAGS_RELEASE} -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 --specs=nano.specs -lm -Wall -fno-common -ffunction-sections -fdata-sections -ffreestanding -fno-builtin -Os -mthumb -mapcs -Xlinker --gc-sections -Xlinker -static -Xlinker -z -Xlinker muldefs") # ASM MACRO SET(CMAKE_ASM_FLAGS_DEBUG "${CMAKE_ASM_FLAGS_DEBUG} -D__DEBUG") # C MACRO SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -D__DEBUG") -SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -DCPU_IMX7D_M4") +SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -DCPU_MCIMX7D_M4") SET(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -D__NDEBUG") -SET(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -DCPU_IMX7D_M4") +SET(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -DCPU_MCIMX7D_M4") # CXX MACRO # INCLUDE_DIRECTORIES IF(CMAKE_BUILD_TYPE MATCHES Debug) INCLUDE_DIRECTORIES(${ProjDirPath}/../../..) + INCLUDE_DIRECTORIES(${ProjDirPath}/..) INCLUDE_DIRECTORIES(${ProjDirPath}/../../../../../rtos/FreeRTOS/Source/portable/GCC/ARM_CM4F) INCLUDE_DIRECTORIES(${ProjDirPath}/../../../../../platform/CMSIS/Include) INCLUDE_DIRECTORIES(${ProjDirPath}/../../../../../platform/devices) @@ -68,8 +69,10 @@ IF(CMAKE_BUILD_TYPE MATCHES Debug) INCLUDE_DIRECTORIES(${ProjDirPath}/../../../../../rtos/FreeRTOS/Source/include) INCLUDE_DIRECTORIES(${ProjDirPath}/../../../../../platform/utilities/inc) INCLUDE_DIRECTORIES(${ProjDirPath}/../../..) + INCLUDE_DIRECTORIES(${ProjDirPath}/..) ELSEIF(CMAKE_BUILD_TYPE MATCHES Release) INCLUDE_DIRECTORIES(${ProjDirPath}/../../..) + INCLUDE_DIRECTORIES(${ProjDirPath}/..) INCLUDE_DIRECTORIES(${ProjDirPath}/../../../../../rtos/FreeRTOS/Source/portable/GCC/ARM_CM4F) INCLUDE_DIRECTORIES(${ProjDirPath}/../../../../../platform/CMSIS/Include) INCLUDE_DIRECTORIES(${ProjDirPath}/../../../../../platform/devices) @@ -79,6 +82,7 @@ ELSEIF(CMAKE_BUILD_TYPE MATCHES Release) INCLUDE_DIRECTORIES(${ProjDirPath}/../../../../../rtos/FreeRTOS/Source/include) INCLUDE_DIRECTORIES(${ProjDirPath}/../../../../../platform/utilities/inc) INCLUDE_DIRECTORIES(${ProjDirPath}/../../..) + INCLUDE_DIRECTORIES(${ProjDirPath}/..) ENDIF() # ADD_EXECUTABLE @@ -87,7 +91,7 @@ ADD_EXECUTABLE(hello_world "${ProjDirPath}/../../../../../rtos/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h" "${ProjDirPath}/../../../../../platform/devices/MCIMX7D/startup/gcc/startup_MCIMX7D_M4.S" "${ProjDirPath}/../../../../../rtos/FreeRTOS/Source/portable/MemMang/heap_2.c" - "${ProjDirPath}/../../../FreeRTOSConfig.h" + "${ProjDirPath}/../FreeRTOSConfig.h" "${ProjDirPath}/../main.c" "${ProjDirPath}/../../../../../platform/drivers/src/uart_imx.c" "${ProjDirPath}/../../../../../platform/drivers/inc/uart_imx.h" @@ -105,6 +109,7 @@ ADD_EXECUTABLE(hello_world "${ProjDirPath}/../../../../../rtos/FreeRTOS/Source/include/timers.h" "${ProjDirPath}/../../../../../platform/drivers/inc/ccm_analog_imx7d.h" "${ProjDirPath}/../../../../../platform/drivers/inc/ccm_imx7d.h" + "${ProjDirPath}/../../../../../platform/drivers/inc/lmem.h" "${ProjDirPath}/../../../../../platform/drivers/inc/rdc.h" "${ProjDirPath}/../../../../../platform/drivers/inc/rdc_defs_imx7d.h" "${ProjDirPath}/../../../../../platform/drivers/inc/wdog_imx.h" @@ -116,6 +121,7 @@ ADD_EXECUTABLE(hello_world "${ProjDirPath}/../../../../../rtos/FreeRTOS/Source/timers.c" "${ProjDirPath}/../../../../../platform/drivers/src/ccm_analog_imx7d.c" "${ProjDirPath}/../../../../../platform/drivers/src/ccm_imx7d.c" + "${ProjDirPath}/../../../../../platform/drivers/src/lmem.c" "${ProjDirPath}/../../../../../platform/drivers/src/rdc.c" "${ProjDirPath}/../../../../../platform/drivers/src/wdog_imx.c" "${ProjDirPath}/../../../../../platform/utilities/src/debug_console_imx.c" diff --git a/examples/imx7d_sdb_m4/demo_apps/hello_world/armgcc/build_all.bat b/examples/imx7d_sdb_m4/demo_apps/hello_world/armgcc/build_all.bat index 6d41d86..6d41d86 100755..100644 --- a/examples/imx7d_sdb_m4/demo_apps/hello_world/armgcc/build_all.bat +++ b/examples/imx7d_sdb_m4/demo_apps/hello_world/armgcc/build_all.bat diff --git a/examples/imx7d_sdb_m4/demo_apps/hello_world/armgcc/build_debug.bat b/examples/imx7d_sdb_m4/demo_apps/hello_world/armgcc/build_debug.bat index bf3b902..bf3b902 100755..100644 --- a/examples/imx7d_sdb_m4/demo_apps/hello_world/armgcc/build_debug.bat +++ b/examples/imx7d_sdb_m4/demo_apps/hello_world/armgcc/build_debug.bat diff --git a/examples/imx7d_sdb_m4/demo_apps/hello_world/armgcc/build_release.bat b/examples/imx7d_sdb_m4/demo_apps/hello_world/armgcc/build_release.bat index e229a83..e229a83 100755..100644 --- a/examples/imx7d_sdb_m4/demo_apps/hello_world/armgcc/build_release.bat +++ b/examples/imx7d_sdb_m4/demo_apps/hello_world/armgcc/build_release.bat diff --git a/examples/imx7d_sdb_m4/demo_apps/hello_world/armgcc/clean.bat b/examples/imx7d_sdb_m4/demo_apps/hello_world/armgcc/clean.bat index ffea088..ffea088 100755..100644 --- a/examples/imx7d_sdb_m4/demo_apps/hello_world/armgcc/clean.bat +++ b/examples/imx7d_sdb_m4/demo_apps/hello_world/armgcc/clean.bat |