Skip to content

Commit cf7d828

Browse files
Remove MBED platform. (project-chip#41281)
* Remove MBED platform. MBED is discontinued and has no maintainer: https://os.mbed.com/blog/entry/Important-Update-on-Mbed/ * Restyled by prettier-json * Restyled by prettier-markdown * Remove mbed dirs * Remove duplicated line. * Undo chip build version update: this fixes Cirque * Restyled by prettier-markdown * Remove one more MBED reference * Remove more mbed references. * Restyle * Remove mbed from targets test. --------- Co-authored-by: Restyled.io <[email protected]>
1 parent a718957 commit cf7d828

File tree

217 files changed

+57
-18521
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

217 files changed

+57
-18521
lines changed

.github/dependabot.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,6 @@ updates:
4141
- dependency-name: "third_party/libdatachannel/repo"
4242
- dependency-name: "third_party/libwebsockets/repo"
4343
- dependency-name: "third_party/lwip/repo"
44-
- dependency-name: "third_party/mbed-mcu-boot/repo"
45-
- dependency-name: "third_party/mbed-os-cypress-capsense-button/repo"
46-
- dependency-name: "third_party/mbed-os-posix-socket/repo"
4744
- dependency-name: "third_party/mbedtls/repo"
4845
- dependency-name: "third_party/mt793x_sdk/repo"
4946
- dependency-name: "third_party/mynewt-core/repo"

.github/workflows/lint.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ jobs:
8585
--skip-dir platform/FreeRTOS \
8686
--skip-dir platform/Infineon \
8787
--skip-dir platform/Linux \
88-
--skip-dir platform/mbed \
8988
--skip-dir platform/mt793x \
9089
--skip-dir platform/nxp \
9190
--skip-dir platform/OpenThread \

.gitmodules

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -78,21 +78,6 @@
7878
path = third_party/openthread/ot-ifx
7979
url = https://github.com/Infineon/ot-ifx-release.git
8080
platforms = infineon
81-
[submodule "third_party/mbed-os/repo"]
82-
path = third_party/mbed-os/repo
83-
url = https://github.com/ARMmbed/mbed-os.git
84-
branch = master
85-
platforms = mbed
86-
[submodule "third_party/mbed-os-posix-socket/repo"]
87-
path = third_party/mbed-os-posix-socket/repo
88-
url = https://github.com/ARMmbed/mbed-os-posix-socket.git
89-
branch = main
90-
platforms = mbed
91-
[submodule "mbed-os-cypress-capsense-button"]
92-
path = third_party/mbed-os-cypress-capsense-button/repo
93-
url = https://github.com/ARMmbed/mbed-os-cypress-capsense-button.git
94-
branch = main
95-
platforms = mbed
9681
[submodule "p6/abstraction-rtos"]
9782
path = third_party/infineon/psoc6/psoc6_sdk/libs/abstraction-rtos
9883
url = https://github.com/Infineon/abstraction-rtos
@@ -172,10 +157,6 @@
172157
[submodule "third_party/jsoncpp/repo"]
173158
path = third_party/jsoncpp/repo
174159
url = https://github.com/open-source-parsers/jsoncpp.git
175-
[submodule "third_party/mbed-mcu-boot/repo"]
176-
path = third_party/mbed-mcu-boot/repo
177-
url = https://github.com/ATmobica/mcuboot.git
178-
platforms = mbed
179160
[submodule "p6/serial-flash"]
180161
path = third_party/infineon/psoc6/psoc6_sdk/libs/serial-flash
181162
url = https://github.com/Infineon/serial-flash

.vscode/launch.json

Lines changed: 0 additions & 291 deletions
Original file line numberDiff line numberDiff line change
@@ -192,262 +192,6 @@
192192
}
193193
]
194194
},
195-
{
196-
"name": "Debug Mbed examples",
197-
"type": "cortex-debug",
198-
"request": "launch",
199-
"cwd": "${workspaceRoot}/examples/${input:mbedApp}/mbed",
200-
"executable": "./build-${input:mbedTarget}/${input:mbedDebugProfile}/chip-mbed-${input:mbedApp}-example.elf",
201-
"armToolchainPath": "${env:PW_ENVIRONMENT_ROOT}/cipd/packages/arm/bin/", // Pigweed environment bootstraping required
202-
"serverpath": "${env:OPENOCD_PATH}/bin/openocd",
203-
"servertype": "openocd",
204-
"searchDir": [
205-
"${workspaceRoot}/config/mbed/scripts",
206-
"${env:OPENOCD_PATH}/scripts"
207-
],
208-
"configFiles": ["${input:mbedTarget}.tcl"],
209-
"overrideLaunchCommands": [
210-
"-enable-pretty-printing",
211-
"monitor program {./build-${input:mbedTarget}/${input:mbedDebugProfile}/chip-mbed-${input:mbedApp}-example.hex}",
212-
"monitor reset run",
213-
"monitor sleep 200",
214-
"monitor psoc6 reset_halt sysresetreq"
215-
],
216-
"numberOfProcessors": 2,
217-
"targetProcessor": 1, // Set to 0 for the CM0+, set to 1 for the CM4
218-
"overrideRestartCommands": [
219-
"monitor reset init",
220-
"monitor reset run",
221-
"monitor sleep 200",
222-
"monitor psoc6 reset_halt sysresetreq"
223-
],
224-
"runToMain": true, // if true, program will halt at main. Not used for a restart
225-
"showDevDebugOutput": false // When set to true, displays output of GDB.
226-
},
227-
{
228-
"name": "Debug Mbed examples [remote]",
229-
"type": "cortex-debug",
230-
"request": "launch",
231-
"cwd": "${workspaceRoot}/examples/${input:mbedApp}/mbed",
232-
"executable": "./build-${input:mbedTarget}/${input:mbedDebugProfile}/chip-mbed-${input:mbedApp}-example.elf",
233-
"armToolchainPath": "${env:PW_ENVIRONMENT_ROOT}/cipd/packages/arm/bin/", // Pigweed environment bootstraping required
234-
"servertype": "external",
235-
"gdbTarget": "host.docker.internal:3334", //port 3333 for the CM0+, 3334 for the CM4
236-
"overrideLaunchCommands": [
237-
"-enable-pretty-printing",
238-
"monitor reset halt",
239-
"load ./build-${input:mbedTarget}/${input:mbedDebugProfile}/chip-mbed-${input:mbedApp}-example.hex",
240-
"monitor reset run",
241-
"monitor sleep 200",
242-
"monitor psoc6 reset_halt sysresetreq"
243-
],
244-
"overrideRestartCommands": [
245-
"monitor reset init",
246-
"monitor reset run",
247-
"monitor sleep 200",
248-
"monitor psoc6 reset_halt sysresetreq"
249-
],
250-
"runToMain": true, // if true, program will halt at main. Not used for a restart
251-
"showDevDebugOutput": false // When set to true, displays output of GDB.
252-
},
253-
{
254-
"name": "Flash Mbed examples",
255-
"type": "cortex-debug",
256-
"request": "launch",
257-
"cwd": "${workspaceRoot}/examples/${input:mbedApp}/mbed",
258-
"executable": "./build-${input:mbedTarget}/${input:mbedFlashProfile}/chip-mbed-${input:mbedApp}-example.elf",
259-
"armToolchainPath": "${env:PW_ENVIRONMENT_ROOT}/cipd/packages/arm/bin/", // Pigweed environment bootstraping required
260-
"serverpath": "${env:OPENOCD_PATH}/bin/openocd",
261-
"servertype": "openocd",
262-
"searchDir": [
263-
"${workspaceRoot}/config/mbed/scripts",
264-
"${env:OPENOCD_PATH}/scripts"
265-
],
266-
"configFiles": ["${input:mbedTarget}.tcl"],
267-
"overrideLaunchCommands": [
268-
"monitor reset halt",
269-
"monitor program {./build-${input:mbedTarget}/${input:mbedFlashProfile}/chip-mbed-${input:mbedApp}-example.hex}",
270-
"monitor reset run",
271-
"quit"
272-
],
273-
"numberOfProcessors": 2,
274-
"targetProcessor": 1, // Set to 0 for the CM0+, set to 1 for the CM4
275-
"showDevDebugOutput": false // When set to true, displays output of GDB.
276-
},
277-
{
278-
"name": "Flash Mbed examples [remote]",
279-
"type": "cortex-debug",
280-
"request": "launch",
281-
"cwd": "${workspaceRoot}/examples/${input:mbedApp}/mbed",
282-
"executable": "./build-${input:mbedTarget}/${input:mbedFlashProfile}/chip-mbed-${input:mbedApp}-example.elf",
283-
"armToolchainPath": "${env:PW_ENVIRONMENT_ROOT}/cipd/packages/arm/bin/", // Pigweed environment bootstraping required
284-
"servertype": "external",
285-
"gdbTarget": "host.docker.internal:3334", //port 3333 for the CM0+, 3334 for the CM4
286-
"overrideLaunchCommands": [
287-
"monitor reset halt",
288-
"load ./build-${input:mbedTarget}/${input:mbedFlashProfile}/chip-mbed-${input:mbedApp}-example.hex",
289-
"monitor reset run",
290-
"quit"
291-
],
292-
"showDevDebugOutput": false // When set to true, displays output of GDB.
293-
},
294-
{
295-
"name": "Debug Mbed unit tests",
296-
"type": "cortex-debug",
297-
"request": "launch",
298-
"cwd": "${workspaceRoot}/src/test_driver/mbed/unit_tests",
299-
"executable": "./build-${input:mbedTarget}/${input:mbedDebugProfile}/chip-mbed-unit-tests.elf",
300-
"armToolchainPath": "${env:PW_ENVIRONMENT_ROOT}/cipd/packages/arm/bin/", // Pigweed environment bootstraping required
301-
"servertype": "openocd",
302-
"serverpath": "${env:OPENOCD_PATH}/bin/openocd",
303-
"searchDir": [
304-
"${workspaceRoot}/config/mbed/scripts",
305-
"${env:OPENOCD_PATH}/scripts"
306-
],
307-
"configFiles": ["${input:mbedTarget}.tcl"],
308-
"overrideLaunchCommands": [
309-
"-enable-pretty-printing",
310-
"monitor program {./build-${input:mbedTarget}/${input:mbedDebugProfile}/chip-mbed-unit-tests.hex}",
311-
"monitor reset run",
312-
"monitor sleep 200",
313-
"monitor psoc6 reset_halt sysresetreq"
314-
],
315-
"numberOfProcessors": 2,
316-
"targetProcessor": 1, // Set to 0 for the CM0+, set to 1 for the CM4
317-
"overrideRestartCommands": [
318-
"monitor reset init",
319-
"monitor reset run",
320-
"monitor sleep 200",
321-
"monitor psoc6 reset_halt sysresetreq"
322-
],
323-
"runToMain": true, // if true, program will halt at main. Not used for a restart
324-
"showDevDebugOutput": false // When set to true, displays output of GDB.
325-
},
326-
{
327-
"name": "Debug Mbed unit tests [remote]",
328-
"type": "cortex-debug",
329-
"request": "launch",
330-
"cwd": "${workspaceRoot}/src/test_driver/mbed/unit_tests",
331-
"executable": "./build-${input:mbedTarget}/${input:mbedDebugProfile}/chip-mbed-unit-tests.elf",
332-
"armToolchainPath": "${env:PW_ENVIRONMENT_ROOT}/cipd/packages/arm/bin/", // Pigweed environment bootstraping required
333-
"servertype": "external",
334-
"gdbTarget": "host.docker.internal:3334", //port 3333 for the CM0+, 3334 for the CM4
335-
"overrideLaunchCommands": [
336-
"-enable-pretty-printing",
337-
"monitor reset halt",
338-
"load ./build-${input:mbedTarget}/${input:mbedDebugProfile}/chip-mbed-unit-tests.hex",
339-
"monitor reset run",
340-
"monitor sleep 200",
341-
"monitor psoc6 reset_halt sysresetreq"
342-
],
343-
"overrideRestartCommands": [
344-
"monitor reset init",
345-
"monitor reset run",
346-
"monitor sleep 200",
347-
"monitor psoc6 reset_halt sysresetreq"
348-
],
349-
"runToMain": true, // if true, program will halt at main. Not used for a restart
350-
"showDevDebugOutput": false // When set to true, displays output of GDB.
351-
},
352-
{
353-
"name": "Flash Mbed unit tests",
354-
"type": "cortex-debug",
355-
"request": "launch",
356-
"cwd": "${workspaceRoot}/src/test_driver/mbed//unit_tests",
357-
"executable": "./build-${input:mbedTarget}/${input:mbedFlashProfile}/chip-mbed-unit-tests.elf",
358-
"armToolchainPath": "${env:PW_ENVIRONMENT_ROOT}/cipd/packages/arm/bin/", // Pigweed environment bootstraping required
359-
"servertype": "openocd",
360-
"serverpath": "${env:OPENOCD_PATH}/bin/openocd",
361-
"searchDir": [
362-
"${workspaceRoot}/config/mbed/scripts",
363-
"${env:OPENOCD_PATH/scripts}"
364-
],
365-
"configFiles": ["${input:mbedTarget}.tcl"],
366-
"overrideLaunchCommands": [
367-
"monitor reset halt",
368-
"monitor program {./build-${input:mbedTarget}/${input:mbedFlashProfile}/chip-mbed-unit-tests.hex}",
369-
"monitor reset run",
370-
"quit"
371-
],
372-
"numberOfProcessors": 2,
373-
"targetProcessor": 1, // Set to 0 for the CM0+, set to 1 for the CM4
374-
"showDevDebugOutput": false // When set to true, displays output of GDB.
375-
},
376-
{
377-
"name": "Flash Mbed unit tests [remote]",
378-
"type": "cortex-debug",
379-
"request": "launch",
380-
"cwd": "${workspaceRoot}/src/test_driver/mbed/unit_tests",
381-
"executable": "./build-${input:mbedTarget}/${input:mbedFlashProfile}/chip-mbed-unit-tests.elf",
382-
"armToolchainPath": "${env:PW_ENVIRONMENT_ROOT}/cipd/packages/arm/bin/", // Pigweed environment bootstraping required
383-
"servertype": "external",
384-
"gdbTarget": "host.docker.internal:3334", //port 3333 for the CM0+, 3334 for the CM4
385-
"overrideLaunchCommands": [
386-
"monitor reset halt",
387-
"load ./build-${input:mbedTarget}/${input:mbedFlashProfile}/chip-mbed-unit-tests.hex",
388-
"monitor reset run",
389-
"quit"
390-
],
391-
"showDevDebugOutput": false // When set to true, displays output of GDB.
392-
},
393-
{
394-
"name": "Debug Mbed bootloader",
395-
"type": "cortex-debug",
396-
"request": "launch",
397-
"cwd": "${workspaceRoot}/examples/platform/mbed/bootloader",
398-
"executable": "./build-${input:mbedTarget}/${input:mbedDebugProfile}/chip-mbed-bootloader.elf",
399-
"armToolchainPath": "${env:PW_ENVIRONMENT_ROOT}/cipd/packages/arm/bin/", // Pigweed environment bootstraping required
400-
"servertype": "openocd",
401-
"serverpath": "${env:OPENOCD_PATH}/bin/openocd",
402-
"searchDir": [
403-
"${workspaceRoot}/config/mbed/scripts",
404-
"${env:OPENOCD_PATH}/scripts"
405-
],
406-
"configFiles": ["${input:mbedTarget}.tcl"],
407-
"overrideLaunchCommands": [
408-
"-enable-pretty-printing",
409-
"monitor program {./build-${input:mbedTarget}/${input:mbedDebugProfile}/chip-mbed-bootloader.hex}",
410-
"monitor reset run",
411-
"monitor sleep 200",
412-
"monitor psoc6 reset_halt sysresetreq"
413-
],
414-
"numberOfProcessors": 2,
415-
"targetProcessor": 1, // Set to 0 for the CM0+, set to 1 for the CM4
416-
"overrideRestartCommands": [
417-
"monitor reset init",
418-
"monitor reset run",
419-
"monitor sleep 200",
420-
"monitor psoc6 reset_halt sysresetreq"
421-
],
422-
"runToMain": true, // if true, program will halt at main. Not used for a restart
423-
"showDevDebugOutput": false // When set to true, displays output of GDB.
424-
},
425-
{
426-
"name": "Debug Mbed bootloader [remote]",
427-
"type": "cortex-debug",
428-
"request": "launch",
429-
"cwd": "${workspaceRoot}/examples/platform/mbed/bootloader",
430-
"executable": "./build-${input:mbedTarget}/${input:mbedDebugProfile}/chip-mbed-bootloader.elf",
431-
"armToolchainPath": "${env:PW_ENVIRONMENT_ROOT}/cipd/packages/arm/bin/", // Pigweed environment bootstraping required
432-
"servertype": "external",
433-
"gdbTarget": "host.docker.internal:3334", //port 3333 for the CM0+, 3334 for the CM4
434-
"overrideLaunchCommands": [
435-
"-enable-pretty-printing",
436-
"monitor reset halt",
437-
"load ./build-${input:mbedTarget}/${input:mbedDebugProfile}/chip-mbed-bootloader.hex",
438-
"monitor reset run",
439-
"monitor sleep 200",
440-
"monitor psoc6 reset_halt sysresetreq"
441-
],
442-
"overrideRestartCommands": [
443-
"monitor reset init",
444-
"monitor reset run",
445-
"monitor sleep 200",
446-
"monitor psoc6 reset_halt sysresetreq"
447-
],
448-
"runToMain": true, // if true, program will halt at main. Not used for a restart
449-
"showDevDebugOutput": false // When set to true, displays output of GDB.
450-
},
451195
{
452196
"name": "CHIP All Clusters App (Linux)",
453197
"type": "lldb",
@@ -572,41 +316,6 @@
572316
"command": "./out/${input:outPWFuzzTestLinux} --list_fuzz_tests | grep 'Fuzz test:' | awk -F ': ' '{print $2}'",
573317
"description": "Select the specific FuzzTest to fuzz continuously"
574318
}
575-
},
576-
{
577-
"type": "pickString",
578-
"id": "mbedDebugProfile",
579-
"description": "What mbed profile do you want to debug?",
580-
"options": ["debug", "develop"],
581-
"default": "debug"
582-
},
583-
{
584-
"type": "pickString",
585-
"id": "mbedFlashProfile",
586-
"description": "What mbed profile do you want to flash?",
587-
"options": ["release", "debug", "develop"],
588-
"default": "release"
589-
},
590-
{
591-
"type": "pickString",
592-
"id": "mbedApp",
593-
"description": "What mbed application do you want to use?",
594-
"options": [
595-
"lock-app",
596-
"lighting-app",
597-
"pigweed-app",
598-
"all-clusters-app",
599-
"shell",
600-
"ota-requestor-app"
601-
],
602-
"default": "lock-app"
603-
},
604-
{
605-
"type": "pickString",
606-
"id": "mbedTarget",
607-
"description": "What mbed target do you want to use?",
608-
"options": ["CY8CPROTO_062_4343W"],
609-
"default": "CY8CPROTO_062_4343W"
610319
}
611320
]
612321
}

0 commit comments

Comments
 (0)