diff --git a/bsp/imxrt/imxrt1050-evk/.config b/bsp/imxrt/imxrt1050-evk/.config index 59dd2aa52c62c9711fd9d2a6a73af6108fd85a5a..ba6c3d19ad3050bd3a55acd91447cc2b074b4afc 100644 --- a/bsp/imxrt/imxrt1050-evk/.config +++ b/bsp/imxrt/imxrt1050-evk/.config @@ -43,7 +43,7 @@ CONFIG_RT_USING_MESSAGEQUEUE=y # # Memory Management # -# CONFIG_RT_USING_MEMPOOL is not set +CONFIG_RT_USING_MEMPOOL=y CONFIG_RT_USING_MEMHEAP=y # CONFIG_RT_USING_NOHEAP is not set # CONFIG_RT_USING_SMALL_MEM is not set @@ -62,6 +62,7 @@ CONFIG_RT_CONSOLEBUF_SIZE=128 CONFIG_RT_CONSOLE_DEVICE_NAME="uart1" CONFIG_ARCH_ARM=y CONFIG_ARCH_ARM_CORTEX_M=y +CONFIG_ARCH_ARM_CORTEX_FPU=y CONFIG_ARCH_ARM_CORTEX_M7=y # @@ -164,9 +165,13 @@ CONFIG_RT_USING_SPI=y # CONFIG_RT_USING_ENC28J60 is not set # CONFIG_RT_USING_SPI_WIFI is not set # CONFIG_RT_USING_WDT is not set -# CONFIG_RT_USING_WIFI is not set # CONFIG_RT_USING_AUDIO is not set +# +# Using WiFi +# +# CONFIG_RT_USING_WIFI is not set + # # Using USB # @@ -357,17 +362,20 @@ CONFIG_LWIP_NETIF_LOOPBACK=0 # CONFIG_PKG_USING_SQLITE is not set # CONFIG_PKG_USING_RTI is not set # CONFIG_PKG_USING_LITTLEVGL2RTT is not set +# CONFIG_PKG_USING_CMSIS is not set +# CONFIG_PKG_USING_CMSIS_LATEST_VERSION is not set +# CONFIG_PKG_USING_CMSIS_V500 is not set +# CONFIG_PKG_USING_DFS_YAFFS is not set # # peripheral libraries and drivers # -# CONFIG_PKG_USING_STM32F4_HAL is not set -# CONFIG_PKG_USING_STM32F4_DRIVERS is not set # CONFIG_PKG_USING_REALTEK_AMEBA is not set # CONFIG_PKG_USING_SHT2X is not set # CONFIG_PKG_USING_AHT10 is not set # CONFIG_PKG_USING_AP3216C is not set # CONFIG_PKG_USING_STM32_SDIO is not set +# CONFIG_PKG_USING_ICM20608 is not set # # miscellaneous packages diff --git a/bsp/imxrt/imxrt1050-evk/Kconfig b/bsp/imxrt/imxrt1050-evk/Kconfig index 91342639670115be0c873c3393a9fe8851796431..6a9e202469a5247fa5ff3236d85df457b045b0e3 100644 --- a/bsp/imxrt/imxrt1050-evk/Kconfig +++ b/bsp/imxrt/imxrt1050-evk/Kconfig @@ -21,6 +21,7 @@ source "$PKGS_DIR/Kconfig" config SOC_IMXRT1052 bool select ARCH_ARM_CORTEX_M7 + select ARCH_ARM_CORTEX_FPU default y config BOARD_USING_HYPERFLASH diff --git a/bsp/imxrt/imxrt1050-evk/project.uvoptx b/bsp/imxrt/imxrt1050-evk/project.uvoptx index 4e514052938d62572a2798a36ba53095bd710c1c..b6a82eb3b4dead4076da34e30764bb5775907e3c 100644 --- a/bsp/imxrt/imxrt1050-evk/project.uvoptx +++ b/bsp/imxrt/imxrt1050-evk/project.uvoptx @@ -498,6 +498,18 @@ 0 0 0 + ..\..\..\src\mempool.c + mempool.c + 0 + 0 + + + 4 + 26 + 1 + 0 + 0 + 0 ..\..\..\src\object.c object.c 0 @@ -505,7 +517,7 @@ 4 - 26 + 27 1 0 0 @@ -517,7 +529,7 @@ 4 - 27 + 28 1 0 0 @@ -529,7 +541,7 @@ 4 - 28 + 29 1 0 0 @@ -541,7 +553,7 @@ 4 - 29 + 30 1 0 0 @@ -561,7 +573,7 @@ 0 5 - 30 + 31 1 0 0 @@ -573,7 +585,7 @@ 5 - 31 + 32 2 0 0 @@ -585,7 +597,7 @@ 5 - 32 + 33 1 0 0 @@ -597,7 +609,7 @@ 5 - 33 + 34 1 0 0 @@ -609,7 +621,7 @@ 5 - 34 + 35 1 0 0 @@ -629,7 +641,7 @@ 0 6 - 35 + 36 1 0 0 @@ -641,7 +653,7 @@ 6 - 36 + 37 1 0 0 @@ -653,7 +665,7 @@ 6 - 37 + 38 1 0 0 @@ -665,7 +677,7 @@ 6 - 38 + 39 1 0 0 @@ -677,7 +689,7 @@ 6 - 39 + 40 1 0 0 @@ -689,7 +701,7 @@ 6 - 40 + 41 1 0 0 @@ -701,7 +713,7 @@ 6 - 41 + 42 1 0 0 @@ -713,7 +725,7 @@ 6 - 42 + 43 1 0 0 @@ -725,7 +737,7 @@ 6 - 43 + 44 1 0 0 @@ -737,7 +749,7 @@ 6 - 44 + 45 1 0 0 @@ -757,7 +769,7 @@ 0 7 - 45 + 46 1 0 0 @@ -769,7 +781,7 @@ 7 - 46 + 47 1 0 0 @@ -781,7 +793,7 @@ 7 - 47 + 48 1 0 0 @@ -793,7 +805,7 @@ 7 - 48 + 49 1 0 0 @@ -805,7 +817,7 @@ 7 - 49 + 50 1 0 0 @@ -817,7 +829,7 @@ 7 - 50 + 51 1 0 0 @@ -829,7 +841,7 @@ 7 - 51 + 52 1 0 0 @@ -841,7 +853,7 @@ 7 - 52 + 53 1 0 0 @@ -853,7 +865,7 @@ 7 - 53 + 54 1 0 0 @@ -865,7 +877,7 @@ 7 - 54 + 55 1 0 0 @@ -877,7 +889,7 @@ 7 - 55 + 56 1 0 0 @@ -889,7 +901,7 @@ 7 - 56 + 57 1 0 0 @@ -901,7 +913,7 @@ 7 - 57 + 58 1 0 0 @@ -913,7 +925,7 @@ 7 - 58 + 59 1 0 0 @@ -925,7 +937,7 @@ 7 - 59 + 60 1 0 0 @@ -937,7 +949,7 @@ 7 - 60 + 61 1 0 0 @@ -949,7 +961,7 @@ 7 - 61 + 62 1 0 0 @@ -961,7 +973,7 @@ 7 - 62 + 63 1 0 0 @@ -973,7 +985,7 @@ 7 - 63 + 64 1 0 0 @@ -985,7 +997,7 @@ 7 - 64 + 65 1 0 0 @@ -997,7 +1009,7 @@ 7 - 65 + 66 1 0 0 @@ -1009,7 +1021,7 @@ 7 - 66 + 67 1 0 0 @@ -1029,7 +1041,7 @@ 0 8 - 67 + 68 1 0 0 @@ -1041,7 +1053,7 @@ 8 - 68 + 69 1 0 0 @@ -1053,7 +1065,7 @@ 8 - 69 + 70 1 0 0 @@ -1065,7 +1077,7 @@ 8 - 70 + 71 1 0 0 @@ -1077,7 +1089,7 @@ 8 - 71 + 72 1 0 0 @@ -1089,7 +1101,7 @@ 8 - 72 + 73 1 0 0 @@ -1109,7 +1121,7 @@ 0 9 - 73 + 74 1 0 0 @@ -1121,7 +1133,7 @@ 9 - 74 + 75 1 0 0 @@ -1133,7 +1145,7 @@ 9 - 75 + 76 1 0 0 @@ -1145,7 +1157,7 @@ 9 - 76 + 77 1 0 0 @@ -1157,7 +1169,7 @@ 9 - 77 + 78 1 0 0 @@ -1177,7 +1189,7 @@ 0 10 - 78 + 79 1 0 0 @@ -1189,7 +1201,7 @@ 10 - 79 + 80 1 0 0 @@ -1201,7 +1213,7 @@ 10 - 80 + 81 1 0 0 @@ -1213,7 +1225,7 @@ 10 - 81 + 82 1 0 0 @@ -1225,7 +1237,7 @@ 10 - 82 + 83 1 0 0 @@ -1237,7 +1249,7 @@ 10 - 83 + 84 1 0 0 @@ -1249,7 +1261,7 @@ 10 - 84 + 85 1 0 0 @@ -1261,7 +1273,7 @@ 10 - 85 + 86 1 0 0 @@ -1273,7 +1285,7 @@ 10 - 86 + 87 1 0 0 @@ -1285,7 +1297,7 @@ 10 - 87 + 88 1 0 0 @@ -1297,7 +1309,7 @@ 10 - 88 + 89 1 0 0 @@ -1309,7 +1321,7 @@ 10 - 89 + 90 1 0 0 @@ -1321,7 +1333,7 @@ 10 - 90 + 91 1 0 0 @@ -1341,7 +1353,7 @@ 0 11 - 91 + 92 1 0 0 @@ -1353,7 +1365,7 @@ 11 - 92 + 93 1 0 0 @@ -1365,7 +1377,7 @@ 11 - 93 + 94 1 0 0 @@ -1377,7 +1389,7 @@ 11 - 94 + 95 1 0 0 @@ -1389,7 +1401,7 @@ 11 - 95 + 96 1 0 0 @@ -1401,7 +1413,7 @@ 11 - 96 + 97 1 0 0 @@ -1413,7 +1425,7 @@ 11 - 97 + 98 1 0 0 @@ -1425,7 +1437,7 @@ 11 - 98 + 99 1 0 0 @@ -1437,7 +1449,7 @@ 11 - 99 + 100 1 0 0 @@ -1449,7 +1461,7 @@ 11 - 100 + 101 1 0 0 @@ -1461,7 +1473,7 @@ 11 - 101 + 102 1 0 0 @@ -1473,7 +1485,7 @@ 11 - 102 + 103 1 0 0 @@ -1485,7 +1497,7 @@ 11 - 103 + 104 1 0 0 @@ -1497,7 +1509,7 @@ 11 - 104 + 105 1 0 0 @@ -1509,7 +1521,7 @@ 11 - 105 + 106 1 0 0 @@ -1521,7 +1533,7 @@ 11 - 106 + 107 1 0 0 @@ -1533,7 +1545,7 @@ 11 - 107 + 108 1 0 0 @@ -1545,7 +1557,7 @@ 11 - 108 + 109 1 0 0 @@ -1557,7 +1569,7 @@ 11 - 109 + 110 1 0 0 @@ -1569,7 +1581,7 @@ 11 - 110 + 111 1 0 0 @@ -1581,7 +1593,7 @@ 11 - 111 + 112 1 0 0 @@ -1593,7 +1605,7 @@ 11 - 112 + 113 1 0 0 @@ -1605,7 +1617,7 @@ 11 - 113 + 114 1 0 0 @@ -1617,7 +1629,7 @@ 11 - 114 + 115 1 0 0 @@ -1629,7 +1641,7 @@ 11 - 115 + 116 1 0 0 @@ -1641,7 +1653,7 @@ 11 - 116 + 117 1 0 0 @@ -1653,7 +1665,7 @@ 11 - 117 + 118 1 0 0 @@ -1665,7 +1677,7 @@ 11 - 118 + 119 1 0 0 @@ -1677,7 +1689,7 @@ 11 - 119 + 120 1 0 0 @@ -1689,7 +1701,7 @@ 11 - 120 + 121 1 0 0 @@ -1701,7 +1713,7 @@ 11 - 121 + 122 1 0 0 @@ -1713,7 +1725,7 @@ 11 - 122 + 123 1 0 0 @@ -1725,7 +1737,7 @@ 11 - 123 + 124 1 0 0 @@ -1737,7 +1749,7 @@ 11 - 124 + 125 1 0 0 @@ -1749,7 +1761,7 @@ 11 - 125 + 126 1 0 0 @@ -1761,7 +1773,7 @@ 11 - 126 + 127 1 0 0 @@ -1781,7 +1793,7 @@ 0 12 - 127 + 128 1 0 0 @@ -1793,7 +1805,7 @@ 12 - 128 + 129 1 0 0 @@ -1805,7 +1817,7 @@ 12 - 129 + 130 1 0 0 @@ -1817,7 +1829,7 @@ 12 - 130 + 131 1 0 0 @@ -1829,7 +1841,7 @@ 12 - 131 + 132 1 0 0 @@ -1841,7 +1853,7 @@ 12 - 132 + 133 1 0 0 @@ -1853,7 +1865,7 @@ 12 - 133 + 134 1 0 0 @@ -1865,7 +1877,7 @@ 12 - 134 + 135 1 0 0 @@ -1877,7 +1889,7 @@ 12 - 135 + 136 1 0 0 @@ -1889,7 +1901,7 @@ 12 - 136 + 137 1 0 0 @@ -1901,7 +1913,7 @@ 12 - 137 + 138 1 0 0 @@ -1913,7 +1925,7 @@ 12 - 138 + 139 1 0 0 @@ -1925,7 +1937,7 @@ 12 - 139 + 140 1 0 0 @@ -1937,7 +1949,7 @@ 12 - 140 + 141 1 0 0 @@ -1949,7 +1961,7 @@ 12 - 141 + 142 1 0 0 @@ -1961,7 +1973,7 @@ 12 - 142 + 143 1 0 0 @@ -1973,7 +1985,7 @@ 12 - 143 + 144 1 0 0 @@ -1985,7 +1997,7 @@ 12 - 144 + 145 1 0 0 @@ -1997,7 +2009,7 @@ 12 - 145 + 146 1 0 0 @@ -2009,7 +2021,7 @@ 12 - 146 + 147 1 0 0 @@ -2021,7 +2033,7 @@ 12 - 147 + 148 1 0 0 @@ -2033,7 +2045,7 @@ 12 - 148 + 149 1 0 0 @@ -2045,7 +2057,7 @@ 12 - 149 + 150 1 0 0 @@ -2057,7 +2069,7 @@ 12 - 150 + 151 1 0 0 @@ -2069,7 +2081,7 @@ 12 - 151 + 152 1 0 0 @@ -2081,7 +2093,7 @@ 12 - 152 + 153 1 0 0 @@ -2093,7 +2105,7 @@ 12 - 153 + 154 1 0 0 @@ -2105,7 +2117,7 @@ 12 - 154 + 155 1 0 0 @@ -2117,7 +2129,7 @@ 12 - 155 + 156 1 0 0 @@ -2129,7 +2141,7 @@ 12 - 156 + 157 1 0 0 @@ -2141,7 +2153,7 @@ 12 - 157 + 158 1 0 0 @@ -2153,7 +2165,7 @@ 12 - 158 + 159 1 0 0 @@ -2165,7 +2177,7 @@ 12 - 159 + 160 1 0 0 @@ -2177,7 +2189,7 @@ 12 - 160 + 161 1 0 0 @@ -2189,7 +2201,7 @@ 12 - 161 + 162 1 0 0 @@ -2201,7 +2213,7 @@ 12 - 162 + 163 1 0 0 @@ -2213,7 +2225,7 @@ 12 - 163 + 164 1 0 0 @@ -2225,7 +2237,7 @@ 12 - 164 + 165 1 0 0 @@ -2237,7 +2249,7 @@ 12 - 165 + 166 1 0 0 @@ -2249,7 +2261,7 @@ 12 - 166 + 167 1 0 0 @@ -2261,7 +2273,7 @@ 12 - 167 + 168 1 0 0 @@ -2273,7 +2285,7 @@ 12 - 168 + 169 1 0 0 @@ -2285,7 +2297,7 @@ 12 - 169 + 170 1 0 0 @@ -2297,7 +2309,7 @@ 12 - 170 + 171 1 0 0 @@ -2309,7 +2321,7 @@ 12 - 171 + 172 1 0 0 @@ -2321,7 +2333,7 @@ 12 - 172 + 173 1 0 0 @@ -2333,7 +2345,7 @@ 12 - 173 + 174 1 0 0 @@ -2345,7 +2357,7 @@ 12 - 174 + 175 1 0 0 @@ -2357,7 +2369,7 @@ 12 - 175 + 176 1 0 0 @@ -2369,7 +2381,7 @@ 12 - 176 + 177 1 0 0 @@ -2381,7 +2393,7 @@ 12 - 177 + 178 1 0 0 @@ -2393,7 +2405,7 @@ 12 - 178 + 179 1 0 0 @@ -2405,7 +2417,7 @@ 12 - 179 + 180 1 0 0 @@ -2417,7 +2429,7 @@ 12 - 180 + 181 1 0 0 @@ -2429,7 +2441,7 @@ 12 - 181 + 182 1 0 0 @@ -2441,7 +2453,7 @@ 12 - 182 + 183 1 0 0 @@ -2453,7 +2465,7 @@ 12 - 183 + 184 1 0 0 @@ -2465,7 +2477,7 @@ 12 - 184 + 185 1 0 0 @@ -2477,7 +2489,7 @@ 12 - 185 + 186 1 0 0 @@ -2489,7 +2501,7 @@ 12 - 186 + 187 1 0 0 @@ -2501,7 +2513,7 @@ 12 - 187 + 188 2 0 0 diff --git a/bsp/imxrt/imxrt1050-evk/project.uvprojx b/bsp/imxrt/imxrt1050-evk/project.uvprojx index 0edb6985f6fd01ddfb8ffb5efb240b104d9dc1a0..5aa2a861c95c1d70fe96c922c846281abe0b1903 100644 --- a/bsp/imxrt/imxrt1050-evk/project.uvprojx +++ b/bsp/imxrt/imxrt1050-evk/project.uvprojx @@ -514,6 +514,11 @@ 1 ..\..\..\src\memheap.c + + mempool.c + 1 + ..\..\..\src\mempool.c + object.c 1 diff --git a/bsp/imxrt/imxrt1050-evk/rtconfig.h b/bsp/imxrt/imxrt1050-evk/rtconfig.h index 8e90cbededf9cc78fe832d6cfda6b1822015949c..b5e68cdab947bde1b54876e96450c93ec1955153 100644 --- a/bsp/imxrt/imxrt1050-evk/rtconfig.h +++ b/bsp/imxrt/imxrt1050-evk/rtconfig.h @@ -27,6 +27,7 @@ /* Memory Management */ +#define RT_USING_MEMPOOL #define RT_USING_MEMHEAP #define RT_USING_MEMHEAP_AS_HEAP #define RT_USING_HEAP @@ -39,6 +40,7 @@ #define RT_CONSOLE_DEVICE_NAME "uart1" #define ARCH_ARM #define ARCH_ARM_CORTEX_M +#define ARCH_ARM_CORTEX_FPU #define ARCH_ARM_CORTEX_M7 /* RT-Thread Components */ @@ -107,6 +109,9 @@ #define RT_MMCSD_MAX_PARTITION 16 #define RT_USING_SPI +/* Using WiFi */ + + /* Using USB */ diff --git a/libcpu/Kconfig b/libcpu/Kconfig index 1c63f114caf5e3cba0cb1fde4c41a2edb6f45470..0a280d4b5cb2be2ae4cdb372471ff8298ec9f26e 100644 --- a/libcpu/Kconfig +++ b/libcpu/Kconfig @@ -5,6 +5,9 @@ config ARCH_ARM_CORTEX_M bool select ARCH_ARM +config ARCH_ARM_CORTEX_FPU + bool + config ARCH_ARM_CORTEX_M0 bool select ARCH_ARM_CORTEX_M diff --git a/tools/keil.py b/tools/keil.py index deeb569a023ea6c7edc715328aa6486fe8d1b5fb..48aec80a41ef8f1a1e2f3c7017d1fe0612c2baec 100644 --- a/tools/keil.py +++ b/tools/keil.py @@ -191,7 +191,7 @@ def MDK45Project(tree, target, script): group_tree = MDK4AddGroup(ProjectFiles, groups, group['name'], group['src'], project_path) # for local CPPPATH/CPPDEFINES - if (group_tree != None) and (group.has_key('LOCAL_CPPPATH') or group.has_key('LOCAL_CCFLAGS')): + if (group_tree != None) and (group.has_key('LOCAL_CPPPATH') or group.has_key('LOCAL_CCFLAGS') or group.has_key('LOCAL_CPPDEFINES')): GroupOption = SubElement(group_tree, 'GroupOption') GroupArmAds = SubElement(GroupOption, 'GroupArmAds') Cads = SubElement(GroupArmAds, 'Cads')