Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add basic source files for MCU H503xB+H563xI + configuration for Nucleo H503RB+H563ZI #294

Merged
merged 16 commits into from
Jul 11, 2024

Conversation

JohnK1987
Copy link
Member

Summary of changes

This PR brings two new MCUs and targets to new STM32H5 family but currently just in a demo state (Blinky led and Console debug) - https://github.com/mbed-ce/mbed-os/discussions/177

Impact of changes

New targets based on new family STM32H5

Migration actions required

N/A

Documentation

Not necessary in this state


Pull request type

[x] Patch update (Bug fix / Target update / Docs update / Test update / Refactor)
[] Feature update (New feature / Functionality change / New API)
[] Major update (Breaking change E.g. Return code change / API behaviour change)

Test results

How I wrote in the discussion i made GreenTea (old one) test where most of test were passed but unfortunately is a time ago and i can not find the log.
I also made old CI test with old test shield but there were no success and used driver files (Mostly copy pasted and modified files from STM32H7 family) are not included in this PR.

[] No Tests required for this change (E.g docs only update)
[] Covered by existing mbed-os tests (Greentea or Unittest)
[X] Tests / results supplied as part of this PR

@JohnK1987
Copy link
Member Author

@multiplemonomials can you tell me from where I can get data for cmsis_mcu_descriptions.json5 file please?

targets/targets.json5 Outdated Show resolved Hide resolved
targets/targets.json5 Outdated Show resolved Hide resolved
targets/targets.json5 Outdated Show resolved Hide resolved
targets/targets.json5 Outdated Show resolved Hide resolved
targets/upload_method_cfg/NUCLEO_H503RB.cmake Outdated Show resolved Hide resolved
@multiplemonomials
Copy link
Collaborator

@JohnK1987 you can use:

cd mbed-os/tools/python
python -m mbed_tools.cli.main cmsis-mcu-descr fetch-missing

That should download the info for you and print the entries for you to add to the JSON file.

@JohnK1987
Copy link
Member Author

@JohnK1987 you can use:

cd mbed-os/tools/python
python -m mbed_tools.cli.main cmsis-mcu-descr fetch-missing

That should download the info for you and print the entries for you to add to the JSON file.

Errors:

No module named 'cmsis_pack_manager'
No module named 'humanize'

PS C:\MbedCE\MbedCE_H5_NEw\mbed-os\tools\python> python -m mbed_tools.cli.main cmsis-mcu-descr fetch-missing
INFO: Scanning targets.json5 for used MCU names...
INFO: Scanning cmsis_mcu_descriptions.json for missing MCUs...
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\MbedCE\MbedCE_H5_NEw\mbed-os\tools\python\mbed_tools\cli\main.py", line 86, in <module>
    cli()
  File "C:\Users\user\AppData\Roaming\Python\Python312\site-packages\click\core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\user\AppData\Roaming\Python\Python312\site-packages\click\core.py", line 1078, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "C:\MbedCE\MbedCE_H5_NEw\mbed-os\tools\python\mbed_tools\cli\main.py", line 38, in invoke
    super().invoke(context)
  File "C:\Users\user\AppData\Roaming\Python\Python312\site-packages\click\core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\user\AppData\Roaming\Python\Python312\site-packages\click\core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\user\AppData\Roaming\Python\Python312\site-packages\click\core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\user\AppData\Roaming\Python\Python312\site-packages\click\core.py", line 783, in invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\MbedCE\MbedCE_H5_NEw\mbed-os\tools\python\mbed_tools\cli\cmsis_mcu_descr.py", line 179, in fetch_missing
    cmsis_cache = open_cmsis_cache()
                  ^^^^^^^^^^^^^^^^^^
  File "C:\MbedCE\MbedCE_H5_NEw\mbed-os\tools\python\mbed_tools\cli\cmsis_mcu_descr.py", line 59, in open_cmsis_cache
    raise RuntimeError("CMSIS device descriptor cache does not exist!  Run 'python -m mbed_tools.cli.main cmsis-mcu-descr reload-cache' to populate it!")
RuntimeError: CMSIS device descriptor cache does not exist!  Run 'python -m mbed_tools.cli.main cmsis-mcu-descr reload-cache' to populate it!

After I fixed these errors i received the result, thank you.

@JohnK1987
Copy link
Member Author

JohnK1987 commented Jul 10, 2024

Here is the result of GT test

Greentea result for Nucleo-H503RB
PS C:\MbedCE\MbedCE_H5_NEw\mbed-os\BUILD_STM32H503RB_GT> ctest . --output-on-failure
Test project C:/MbedCE/MbedCE_H5_NEw/mbed-os/BUILD_STM32H503RB_GT
        Start   1: test-mbed-drivers-buffered-serial
  1/106 Test   #1: test-mbed-drivers-buffered-serial .....................   Passed   33.21 sec
        Start   2: test-mbed-drivers-c-strings
  2/106 Test   #2: test-mbed-drivers-c-strings ...........................   Passed    5.05 sec
        Start   3: test-mbed-drivers-crc
  3/106 Test   #3: test-mbed-drivers-crc .................................   Passed    5.06 sec
        Start   4: test-mbed-drivers-dev-null
  4/106 Test   #4: test-mbed-drivers-dev-null ............................   Passed    6.98 sec
        Start   5: test-mbed-drivers-echo
  5/106 Test   #5: test-mbed-drivers-echo ................................   Passed    5.35 sec
        Start   6: test-mbed-drivers-flashiap
  6/106 Test   #6: test-mbed-drivers-flashiap ............................***Skipped   0.02 sec
        Start   7: test-mbed-drivers-generic-tests
  7/106 Test   #7: test-mbed-drivers-generic-tests .......................   Passed    5.06 sec
        Start   8: test-mbed-drivers-lp-ticker
  8/106 Test   #8: test-mbed-drivers-lp-ticker ...........................***Skipped   0.01 sec
        Start   9: test-mbed-drivers-lp-timeout
  9/106 Test   #9: test-mbed-drivers-lp-timeout ..........................***Skipped   0.01 sec
        Start  10: test-mbed-drivers-lp-timer
 10/106 Test  #10: test-mbed-drivers-lp-timer ............................***Skipped   0.01 sec
        Start  11: test-mbed-drivers-mem-trace
 11/106 Test  #11: test-mbed-drivers-mem-trace ...........................***Skipped   0.01 sec
        Start  12: test-mbed-drivers-race-test
 12/106 Test  #12: test-mbed-drivers-race-test ...........................   Passed    6.06 sec
        Start  13: test-mbed-drivers-reset-reason
 13/106 Test  #13: test-mbed-drivers-reset-reason ........................   Passed    8.42 sec
        Start  14: test-mbed-drivers-sleep-lock
 14/106 Test  #14: test-mbed-drivers-sleep-lock ..........................   Passed    4.97 sec
        Start  15: test-mbed-drivers-stl-features
 15/106 Test  #15: test-mbed-drivers-stl-features ........................   Passed    5.03 sec
        Start  16: test-mbed-drivers-ticker
 16/106 Test  #16: test-mbed-drivers-ticker ..............................   Passed   21.20 sec
        Start  17: test-mbed-drivers-timerevent
 17/106 Test  #17: test-mbed-drivers-timerevent ..........................   Passed    5.52 sec
        Start  18: test-mbed-drivers-unbuffered-serial
 18/106 Test  #18: test-mbed-drivers-unbuffered-serial ...................   Passed    4.96 sec
        Start  19: test-mbed-drivers-watchdog
 19/106 Test  #19: test-mbed-drivers-watchdog ............................***Skipped   0.01 sec
        Start  20: test-mbed-drivers-watchdog-reset
 20/106 Test  #20: test-mbed-drivers-watchdog-reset ......................***Skipped   0.02 sec
        Start  21: test-mbed-usb-device-basic
 21/106 Test  #21: test-mbed-usb-device-basic ............................***Skipped   0.01 sec
        Start  22: test-mbed-usb-device-hid
 22/106 Test  #22: test-mbed-usb-device-hid ..............................***Skipped   0.01 sec
        Start  23: test-mbed-usb-device-msd
 23/106 Test  #23: test-mbed-usb-device-msd ..............................***Skipped   0.01 sec
        Start  24: test-mbed-usb-device-serial
 24/106 Test  #24: test-mbed-usb-device-serial ...........................***Skipped   0.01 sec
        Start  25: test-mbed-hal-common-tickers
 25/106 Test  #25: test-mbed-hal-common-tickers ..........................   Passed    5.25 sec
        Start  26: test-mbed-hal-common-tickers-freq
 26/106 Test  #26: test-mbed-hal-common-tickers-freq .....................   Passed   11.70 sec
        Start  27: test-mbed-hal-crc
 27/106 Test  #27: test-mbed-hal-crc .....................................***Skipped   0.01 sec
        Start  28: test-mbed-hal-critical-section
 28/106 Test  #28: test-mbed-hal-critical-section ........................   Passed    5.01 sec
        Start  29: test-mbed-hal-flash-functional-tests
 29/106 Test  #29: test-mbed-hal-flash-functional-tests ..................***Skipped   0.01 sec
        Start  30: test-mbed-hal-lp-ticker
 30/106 Test  #30: test-mbed-hal-lp-ticker ...............................***Skipped   0.01 sec
        Start  31: test-mbed-hal-minimum-requirements
 31/106 Test  #31: test-mbed-hal-minimum-requirements ....................   Passed    4.94 sec
        Start  32: test-mbed-hal-mpu
 32/106 Test  #32: test-mbed-hal-mpu .....................................   Passed    4.89 sec
        Start  33: test-mbed-hal-ospi
 33/106 Test  #33: test-mbed-hal-ospi ....................................***Skipped   0.01 sec
        Start  34: test-mbed-hal-pinmap
 34/106 Test  #34: test-mbed-hal-pinmap ..................................***Failed    1.10 sec
[1/2] Linking CXX executable hal\tests\TESTS\mbed_hal\pinmap\test-mbed-hal-pinmap.elf
FAILED: hal/tests/TESTS/mbed_hal/pinmap/test-mbed-hal-pinmap.elf
C:\Windows\system32\cmd.exe /C "C:\Windows\system32\cmd.exe /C "cd /D C:\MbedCE\MbedCE_H5_NEw\mbed-os\BUILD_STM32H503RB_GT\hal\tests\TESTS\mbed_hal\pinmap && "C:\Program Files\CMake\bin\cmake.exe" -E rename C:/MbedCE/MbedCE_H5_NEw/mbed-os/BUILD_STM32H503RB_GT/hal/tests/TESTS/mbed_hal/pinmap/test-mbed-hal-pinmap.elf.map C:/MbedCE/MbedCE_H5_NEw/mbed-os/BUILD_STM32H503RB_GT/hal/tests/TESTS/mbed_hal/pinmap/test-mbed-hal-pinmap.elf.map.old && cd C:\MbedCE\MbedCE_H5_NEw\mbed-os\BUILD_STM32H503RB_GT" && C:\ST\STM32CubeCLT\GNU-tools-for-STM32\bin\arm-none-eabi-g++.exe -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -fmessage-length=0 -fno-exceptions -ffunction-sections -fdata-sections -funsigned-char -fomit-frame-pointer -g3 -mthumb -mcpu=cortex-m33+nodsp+nofp -Wno-register -Wl,--start-group -lstdc++ -lsupc++ -lm -lc -lgcc -lnosys -Wl,--end-group -specs=nosys.specs -Wl,--cref    -Wl,-Map=C:/MbedCE/MbedCE_H5_NEw/mbed-os/BUILD_STM32H503RB_GT/hal/tests/TESTS/mbed_hal/pinmap/test-mbed-hal-pinmap.elf.map -Wl,--gc-sections -Wl,--wrap,main -Wl,--wrap,_malloc_r -Wl,--wrap,_free_r -Wl,--wrap,_realloc_r -Wl,--wrap,_memalign_r -Wl,--wrap,_calloc_r -Wl,--wrap,exit -Wl,--wrap,atexit -Wl,-n -Wl,--wrap,printf -Wl,--wrap,sprintf -Wl,--wrap,snprintf -Wl,--wrap,vprintf -Wl,--wrap,vsprintf -Wl,--wrap,vsnprintf -Wl,--wrap,fprintf -Wl,--wrap,vfprintf -T C:/MbedCE/MbedCE_H5_NEw/mbed-os/BUILD_STM32H503RB_GT/mbed-nucleo-h503rb.link_script.ld @CMakeFiles\test-mbed-hal-pinmap.rsp -o hal\tests\TESTS\mbed_hal\pinmap\test-mbed-hal-pinmap.elf  && C:\Windows\system32\cmd.exe /C "cd /D C:\MbedCE\MbedCE_H5_NEw\mbed-os\BUILD_STM32H503RB_GT\hal\tests\TESTS\mbed_hal\pinmap && arm-none-eabi-objcopy -O binary C:/MbedCE/MbedCE_H5_NEw/mbed-os/BUILD_STM32H503RB_GT/hal/tests/TESTS/mbed_hal/pinmap/test-mbed-hal-pinmap.elf C:/MbedCE/MbedCE_H5_NEw/mbed-os/BUILD_STM32H503RB_GT/hal/tests/TESTS/mbed_hal/pinmap/test-mbed-hal-pinmap.bin && "C:\Program Files\CMake\bin\cmake.exe" -E echo "-- built: C:/MbedCE/MbedCE_H5_NEw/mbed-os/BUILD_STM32H503RB_GT/hal/tests/TESTS/mbed_hal/pinmap/test-mbed-hal-pinmap.bin" && arm-none-eabi-objcopy -O ihex C:/MbedCE/MbedCE_H5_NEw/mbed-os/BUILD_STM32H503RB_GT/hal/tests/TESTS/mbed_hal/pinmap/test-mbed-hal-pinmap.elf C:/MbedCE/MbedCE_H5_NEw/mbed-os/BUILD_STM32H503RB_GT/hal/tests/TESTS/mbed_hal/pinmap/test-mbed-hal-pinmap.hex && "C:\Program Files\CMake\bin\cmake.exe" -E echo "-- built: C:/MbedCE/MbedCE_H5_NEw/mbed-os/BUILD_STM32H503RB_GT/hal/tests/TESTS/mbed_hal/pinmap/test-mbed-hal-pinmap.hex" && cd /D C:\MbedCE\MbedCE_H5_NEw\mbed-os\tools\python && C:\MbedCE\MbedCE_H5_NEw\mbed-os\venv\Scripts\python.exe -m memap.memap -t GCC_ARM C:/MbedCE/MbedCE_H5_NEw/mbed-os/BUILD_STM32H503RB_GT/hal/tests/TESTS/mbed_hal/pinmap/test-mbed-hal-pinmap.elf.map --depth 2""
C:/ST/STM32CubeCLT/GNU-tools-for-STM32/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: hal/tests/TESTS/mbed_hal/pinmap/CMakeFiles/test-mbed-hal-pinmap.dir/main.cpp.obj:(.rodata._ZL16pinmap_functions+0x0): undefined reference to `analogin_pinmap'
collect2.exe: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
CMake Error at mbed-run-greentea-test-mbed-hal-pinmap.cmake:5 (execute_process):
  execute_process failed command indexes:

    1: "Child return code: 1"




        Start  35: test-mbed-hal-qspi
 35/106 Test  #35: test-mbed-hal-qspi ....................................***Skipped   0.01 sec
        Start  36: test-mbed-hal-reset-reason
 36/106 Test  #36: test-mbed-hal-reset-reason ............................   Passed    8.38 sec
        Start  37: test-mbed-hal-rtc
 37/106 Test  #37: test-mbed-hal-rtc .....................................   Passed   42.26 sec
        Start  38: test-mbed-hal-rtc-reset
 38/106 Test  #38: test-mbed-hal-rtc-reset ...............................   Passed   10.06 sec
        Start  39: test-mbed-hal-rtc-time
 39/106 Test  #39: test-mbed-hal-rtc-time ................................   Passed    7.24 sec
        Start  40: test-mbed-hal-rtc-time-conv
 40/106 Test  #40: test-mbed-hal-rtc-time-conv ...........................   Passed   11.03 sec
        Start  41: test-mbed-hal-sleep
 41/106 Test  #41: test-mbed-hal-sleep ...................................   Passed    6.33 sec
        Start  42: test-mbed-hal-sleep-manager
 42/106 Test  #42: test-mbed-hal-sleep-manager ...........................   Passed    5.03 sec
        Start  43: test-mbed-hal-sleep-manager-racecondition
 43/106 Test  #43: test-mbed-hal-sleep-manager-racecondition .............   Passed   17.55 sec
        Start  44: test-mbed-hal-stack-size-unification
 44/106 Test  #44: test-mbed-hal-stack-size-unification ..................   Passed    4.92 sec
        Start  45: test-mbed-hal-ticker
 45/106 Test  #45: test-mbed-hal-ticker ..................................   Passed    6.65 sec
        Start  46: test-mbed-hal-trng
 46/106 Test  #46: test-mbed-hal-trng ....................................***Skipped   0.01 sec
        Start  47: test-mbed-hal-us-ticker
 47/106 Test  #47: test-mbed-hal-us-ticker ...............................   Passed    4.98 sec
        Start  48: test-mbed-hal-watchdog
 48/106 Test  #48: test-mbed-hal-watchdog ................................***Skipped   0.01 sec
        Start  49: test-mbed-hal-watchdog-reset
 49/106 Test  #49: test-mbed-hal-watchdog-reset ..........................***Skipped   0.01 sec
        Start  50: test-mbed-hal-watchdog-timing
 50/106 Test  #50: test-mbed-hal-watchdog-timing .........................***Skipped   0.01 sec
        Start  51: test-mbed-hal-verify-arduino-pinmap
 51/106 Test  #51: test-mbed-hal-verify-arduino-pinmap ...................***Skipped   0.01 sec
        Start  52: test-mbed-platform-mbed-functional-callback
 52/106 Test  #52: test-mbed-platform-mbed-functional-callback ...........   Passed    5.21 sec
        Start  53: test-mbed-platform-mbed-functional-callback-big
 53/106 Test  #53: test-mbed-platform-mbed-functional-callback-big .......   Passed    5.18 sec
        Start  54: test-mbed-platform-mbed-functional-callback-small
 54/106 Test  #54: test-mbed-platform-mbed-functional-callback-small .....   Passed    5.20 sec
        Start  55: test-mbed-platform-mbed-micro-attributes
 55/106 Test  #55: test-mbed-platform-mbed-micro-attributes ..............   Passed    5.32 sec
        Start  56: test-mbed-platform-mbed-micro-call-before-main
 56/106 Test  #56: test-mbed-platform-mbed-micro-call-before-main ........   Passed    5.04 sec
        Start  57: test-mbed-platform-mbed-micro-cpp
 57/106 Test  #57: test-mbed-platform-mbed-micro-cpp .....................   Passed    4.98 sec
        Start  58: test-mbed-platform-mbed-micro-div
 58/106 Test  #58: test-mbed-platform-mbed-micro-div .....................   Passed    4.91 sec
        Start  59: test-mbed-platform-mbed-micro-static-assert
 59/106 Test  #59: test-mbed-platform-mbed-micro-static-assert ...........   Passed    4.94 sec
        Start  60: test-mbed-platform-atomic
 60/106 Test  #60: test-mbed-platform-atomic .............................   Passed   12.11 sec
        Start  61: test-mbed-platform-circular-buffer
 61/106 Test  #61: test-mbed-platform-circular-buffer ....................   Passed    5.49 sec
        Start  62: test-mbed-platform-crash-reporting
 62/106 Test  #62: test-mbed-platform-crash-reporting ....................***Skipped   0.01 sec
        Start  63: test-mbed-platform-error-handling
 63/106 Test  #63: test-mbed-platform-error-handling .....................   Passed    5.02 sec
        Start  64: test-mbed-platform-filehandle
 64/106 Test  #64: test-mbed-platform-filehandle .........................   Passed    5.10 sec
        Start  65: test-mbed-platform-minimal-printf-compliance
 65/106 Test  #65: test-mbed-platform-minimal-printf-compliance ..........   Passed    5.54 sec
        Start  66: test-mbed-platform-sharedptr
 66/106 Test  #66: test-mbed-platform-sharedptr ..........................   Passed    4.97 sec
        Start  67: test-mbed-platform-singletonptr
 67/106 Test  #67: test-mbed-platform-singletonptr .......................   Passed    4.86 sec
        Start  68: test-mbed-platform-stream
 68/106 Test  #68: test-mbed-platform-stream .............................   Passed    5.05 sec
        Start  69: test-mbed-platform-system-reset
 69/106 Test  #69: test-mbed-platform-system-reset .......................   Passed    5.87 sec
        Start  70: test-mbed-platform-transaction
 70/106 Test  #70: test-mbed-platform-transaction ........................   Passed    4.96 sec
        Start  71: test-mbed-platform-wait-ns
 71/106 Test  #71: test-mbed-platform-wait-ns ............................   Passed    5.91 sec
        Start  72: test-mbed-platform-stats-cpu
 72/106 Test  #72: test-mbed-platform-stats-cpu ..........................***Skipped   0.01 sec
        Start  73: test-mbed-platform-stats-heap
 73/106 Test  #73: test-mbed-platform-stats-heap .........................***Skipped   0.01 sec
        Start  74: test-mbed-platform-stats-sys
 74/106 Test  #74: test-mbed-platform-stats-sys ..........................***Skipped   0.01 sec
        Start  75: test-mbed-platform-stats-thread
 75/106 Test  #75: test-mbed-platform-stats-thread .......................***Skipped   0.01 sec
        Start  76: test-mbed-rtos-basic
 76/106 Test  #76: test-mbed-rtos-basic ..................................   Passed   11.68 sec
        Start  77: test-mbed-rtos-condition-variable
 77/106 Test  #77: test-mbed-rtos-condition-variable .....................   Passed    5.06 sec
        Start  78: test-mbed-rtos-event-flags
 78/106 Test  #78: test-mbed-rtos-event-flags ............................   Passed    5.68 sec
        Start  79: test-mbed-rtos-heap-and-stack
 79/106 Test  #79: test-mbed-rtos-heap-and-stack .........................   Passed    5.04 sec
        Start  80: test-mbed-rtos-kernel-tick-count
 80/106 Test  #80: test-mbed-rtos-kernel-tick-count ......................   Passed    6.97 sec
        Start  81: test-mbed-rtos-mail
 81/106 Test  #81: test-mbed-rtos-mail ...................................   Passed    5.85 sec
        Start  82: test-mbed-rtos-malloc
 82/106 Test  #82: test-mbed-rtos-malloc .................................   Passed   25.13 sec
        Start  83: test-mbed-rtos-memorypool
 83/106 Test  #83: test-mbed-rtos-memorypool .............................   Passed    5.76 sec
        Start  84: test-mbed-rtos-mutex
 84/106 Test  #84: test-mbed-rtos-mutex ..................................   Passed    7.21 sec
        Start  85: test-mbed-rtos-queue
 85/106 Test  #85: test-mbed-rtos-queue ..................................   Passed    5.48 sec
        Start  86: test-mbed-rtos-semaphore
 86/106 Test  #86: test-mbed-rtos-semaphore ..............................   Passed    8.47 sec
        Start  87: test-mbed-rtos-signals
 87/106 Test  #87: test-mbed-rtos-signals ................................   Passed    6.07 sec
        Start  88: test-mbed-rtos-systimer
 88/106 Test  #88: test-mbed-rtos-systimer ...............................   Passed    5.19 sec
        Start  89: test-mbed-rtos-threads
 89/106 Test  #89: test-mbed-rtos-threads ................................   Passed    7.43 sec
        Start  90: test-mbed-storage-blockdevice-buffered_block_device
 90/106 Test  #90: test-mbed-storage-blockdevice-buffered_block_device ...   Passed    5.04 sec
        Start  91: test-mbed-storage-blockdevice-flashsim_block_device
 91/106 Test  #91: test-mbed-storage-blockdevice-flashsim_block_device ...   Passed    5.00 sec
        Start  92: test-mbed-storage-blockdevice-general_block_device
 92/106 Test  #92: test-mbed-storage-blockdevice-general_block_device ....   Passed    4.97 sec
        Start  93: test-mbed-storage-blockdevice-heap_block_device
 93/106 Test  #93: test-mbed-storage-blockdevice-heap_block_device .......   Passed    5.17 sec
        Start  94: test-mbed-storage-blockdevice-mbr_block_device
 94/106 Test  #94: test-mbed-storage-blockdevice-mbr_block_device ........   Passed    5.06 sec
        Start  95: test-mbed-storage-blockdevice-util_block_device
 95/106 Test  #95: test-mbed-storage-blockdevice-util_block_device .......   Passed    4.98 sec
        Start  96: test-mbed-connectivity-mbedtls-multi
 96/106 Test  #96: test-mbed-connectivity-mbedtls-multi ..................   Passed    5.08 sec
        Start  97: test-mbed-connectivity-mbedtls-sanity
 97/106 Test  #97: test-mbed-connectivity-mbedtls-sanity .................***Skipped   0.01 sec
        Start  98: test-mbed-connectivity-mbedtls-selftest
 98/106 Test  #98: test-mbed-connectivity-mbedtls-selftest ...............***Skipped   0.01 sec
        Start  99: test-mbed-connectivity-nfc-eeprom
 99/106 Test  #99: test-mbed-connectivity-nfc-eeprom .....................***Skipped   0.01 sec
        Start 100: test-mbed-connectivity-netsocket-dns
100/106 Test #100: test-mbed-connectivity-netsocket-dns ..................***Skipped   0.01 sec
        Start 101: test-mbed-connectivity-netsocket-nidd
101/106 Test #101: test-mbed-connectivity-netsocket-nidd .................***Skipped   0.01 sec
        Start 102: test-mbed-connectivity-netsocket-tcp
102/106 Test #102: test-mbed-connectivity-netsocket-tcp ..................***Skipped   0.01 sec
        Start 103: test-mbed-connectivity-netsocket-tls
103/106 Test #103: test-mbed-connectivity-netsocket-tls ..................***Skipped   0.01 sec
        Start 104: test-mbed-connectivity-netsocket-udp
104/106 Test #104: test-mbed-connectivity-netsocket-udp ..................***Skipped   0.01 sec
        Start 105: test-mbed-connectivity-netsocket-network-interface
105/106 Test #105: test-mbed-connectivity-netsocket-network-interface ....***Skipped   0.01 sec
        Start 106: test-mbed-device_key-functionality
106/106 Test #106: test-mbed-device_key-functionality ....................***Skipped   0.01 sec

99% tests passed, 1 tests failed out of 106

Total Test time (real) = 526.89 sec

The following tests did not run:
          6 - test-mbed-drivers-flashiap (Skipped)
          8 - test-mbed-drivers-lp-ticker (Skipped)
          9 - test-mbed-drivers-lp-timeout (Skipped)
         10 - test-mbed-drivers-lp-timer (Skipped)
         11 - test-mbed-drivers-mem-trace (Skipped)
         19 - test-mbed-drivers-watchdog (Skipped)
         20 - test-mbed-drivers-watchdog-reset (Skipped)
         21 - test-mbed-usb-device-basic (Skipped)
         22 - test-mbed-usb-device-hid (Skipped)
         23 - test-mbed-usb-device-msd (Skipped)
         24 - test-mbed-usb-device-serial (Skipped)
         27 - test-mbed-hal-crc (Skipped)
         29 - test-mbed-hal-flash-functional-tests (Skipped)
         30 - test-mbed-hal-lp-ticker (Skipped)
         33 - test-mbed-hal-ospi (Skipped)
         35 - test-mbed-hal-qspi (Skipped)
         46 - test-mbed-hal-trng (Skipped)
         48 - test-mbed-hal-watchdog (Skipped)
         49 - test-mbed-hal-watchdog-reset (Skipped)
         50 - test-mbed-hal-watchdog-timing (Skipped)
         51 - test-mbed-hal-verify-arduino-pinmap (Skipped)
         62 - test-mbed-platform-crash-reporting (Skipped)
         72 - test-mbed-platform-stats-cpu (Skipped)
         73 - test-mbed-platform-stats-heap (Skipped)
         74 - test-mbed-platform-stats-sys (Skipped)
         75 - test-mbed-platform-stats-thread (Skipped)
         97 - test-mbed-connectivity-mbedtls-sanity (Skipped)
         98 - test-mbed-connectivity-mbedtls-selftest (Skipped)
         99 - test-mbed-connectivity-nfc-eeprom (Skipped)
        100 - test-mbed-connectivity-netsocket-dns (Skipped)
        101 - test-mbed-connectivity-netsocket-nidd (Skipped)
        102 - test-mbed-connectivity-netsocket-tcp (Skipped)
        103 - test-mbed-connectivity-netsocket-tls (Skipped)
        104 - test-mbed-connectivity-netsocket-udp (Skipped)
        105 - test-mbed-connectivity-netsocket-network-interface (Skipped)
        106 - test-mbed-device_key-functionality (Skipped)

The following tests FAILED:
         34 - test-mbed-hal-pinmap (Failed)
Errors while running CTest
PS C:\MbedCE\MbedCE_H5_NEw\mbed-os\BUILD_STM32H503RB_GT>

After edit:
PS C:\MbedCE\MbedCE_H5_NEw\mbed-os\BUILD_STM32H503RB_GT> ctest . --output-on-failure                                                   
Test project C:/MbedCE/MbedCE_H5_NEw/mbed-os/BUILD_STM32H503RB_GT
        Start   1: test-mbed-drivers-buffered-serial
  1/106 Test   #1: test-mbed-drivers-buffered-serial .....................   Passed    4.25 sec
        Start   2: test-mbed-drivers-c-strings
  2/106 Test   #2: test-mbed-drivers-c-strings ...........................   Passed    3.54 sec
        Start   3: test-mbed-drivers-crc
  3/106 Test   #3: test-mbed-drivers-crc .................................   Passed    3.58 sec
        Start   4: test-mbed-drivers-dev-null
  4/106 Test   #4: test-mbed-drivers-dev-null ............................   Passed    5.43 sec
        Start   5: test-mbed-drivers-echo
  5/106 Test   #5: test-mbed-drivers-echo ................................   Passed    3.81 sec
        Start   6: test-mbed-drivers-flashiap
  6/106 Test   #6: test-mbed-drivers-flashiap ............................***Skipped   0.01 sec
        Start   7: test-mbed-drivers-generic-tests
  7/106 Test   #7: test-mbed-drivers-generic-tests .......................   Passed    3.48 sec
        Start   8: test-mbed-drivers-lp-ticker
  8/106 Test   #8: test-mbed-drivers-lp-ticker ...........................***Skipped   0.01 sec
        Start   9: test-mbed-drivers-lp-timeout
  9/106 Test   #9: test-mbed-drivers-lp-timeout ..........................***Skipped   0.01 sec
        Start  10: test-mbed-drivers-lp-timer
 10/106 Test  #10: test-mbed-drivers-lp-timer ............................***Skipped   0.01 sec
        Start  11: test-mbed-drivers-mem-trace
 11/106 Test  #11: test-mbed-drivers-mem-trace ...........................***Skipped   0.01 sec
        Start  12: test-mbed-drivers-race-test
 12/106 Test  #12: test-mbed-drivers-race-test ...........................   Passed    4.61 sec
        Start  13: test-mbed-drivers-reset-reason
 13/106 Test  #13: test-mbed-drivers-reset-reason ........................   Passed    7.05 sec
        Start  14: test-mbed-drivers-sleep-lock
 14/106 Test  #14: test-mbed-drivers-sleep-lock ..........................   Passed    3.51 sec
        Start  15: test-mbed-drivers-stl-features
 15/106 Test  #15: test-mbed-drivers-stl-features ........................   Passed    3.51 sec
        Start  16: test-mbed-drivers-ticker
 16/106 Test  #16: test-mbed-drivers-ticker ..............................   Passed   19.68 sec
        Start  17: test-mbed-drivers-timerevent
 17/106 Test  #17: test-mbed-drivers-timerevent ..........................   Passed    3.94 sec
        Start  18: test-mbed-drivers-unbuffered-serial
 18/106 Test  #18: test-mbed-drivers-unbuffered-serial ...................   Passed    3.46 sec
        Start  19: test-mbed-drivers-watchdog
 19/106 Test  #19: test-mbed-drivers-watchdog ............................***Skipped   0.01 sec
        Start  20: test-mbed-drivers-watchdog-reset
 20/106 Test  #20: test-mbed-drivers-watchdog-reset ......................***Skipped   0.01 sec
        Start  21: test-mbed-usb-device-basic
 21/106 Test  #21: test-mbed-usb-device-basic ............................***Skipped   0.01 sec
        Start  22: test-mbed-usb-device-hid
 22/106 Test  #22: test-mbed-usb-device-hid ..............................***Skipped   0.01 sec
        Start  23: test-mbed-usb-device-msd
 23/106 Test  #23: test-mbed-usb-device-msd ..............................***Skipped   0.01 sec
        Start  24: test-mbed-usb-device-serial
 24/106 Test  #24: test-mbed-usb-device-serial ...........................***Skipped   0.01 sec
        Start  25: test-mbed-hal-common-tickers
 25/106 Test  #25: test-mbed-hal-common-tickers ..........................   Passed    3.85 sec
        Start  26: test-mbed-hal-common-tickers-freq
 26/106 Test  #26: test-mbed-hal-common-tickers-freq .....................   Passed   10.31 sec
        Start  27: test-mbed-hal-crc
 27/106 Test  #27: test-mbed-hal-crc .....................................***Skipped   0.01 sec
        Start  28: test-mbed-hal-critical-section
 28/106 Test  #28: test-mbed-hal-critical-section ........................   Passed    3.50 sec
        Start  29: test-mbed-hal-flash-functional-tests
 29/106 Test  #29: test-mbed-hal-flash-functional-tests ..................***Skipped   0.01 sec
        Start  30: test-mbed-hal-lp-ticker
 30/106 Test  #30: test-mbed-hal-lp-ticker ...............................***Skipped   0.01 sec
        Start  31: test-mbed-hal-minimum-requirements
 31/106 Test  #31: test-mbed-hal-minimum-requirements ....................   Passed    3.63 sec
        Start  32: test-mbed-hal-mpu
 32/106 Test  #32: test-mbed-hal-mpu .....................................   Passed    3.41 sec
        Start  33: test-mbed-hal-ospi
 33/106 Test  #33: test-mbed-hal-ospi ....................................***Skipped   0.01 sec
        Start  34: test-mbed-hal-pinmap
 34/106 Test  #34: test-mbed-hal-pinmap ..................................   Passed    3.42 sec
        Start  35: test-mbed-hal-qspi
 35/106 Test  #35: test-mbed-hal-qspi ....................................***Skipped   0.01 sec
        Start  36: test-mbed-hal-reset-reason
 36/106 Test  #36: test-mbed-hal-reset-reason ............................   Passed    6.87 sec
        Start  37: test-mbed-hal-rtc
 37/106 Test  #37: test-mbed-hal-rtc .....................................   Passed   40.72 sec
        Start  38: test-mbed-hal-rtc-reset
 38/106 Test  #38: test-mbed-hal-rtc-reset ...............................   Passed    8.63 sec
        Start  39: test-mbed-hal-rtc-time
 39/106 Test  #39: test-mbed-hal-rtc-time ................................   Passed    5.65 sec
        Start  40: test-mbed-hal-rtc-time-conv
 40/106 Test  #40: test-mbed-hal-rtc-time-conv ...........................   Passed    9.65 sec
        Start  41: test-mbed-hal-sleep
 41/106 Test  #41: test-mbed-hal-sleep ...................................   Passed    4.92 sec
        Start  42: test-mbed-hal-sleep-manager
 42/106 Test  #42: test-mbed-hal-sleep-manager ...........................   Passed    3.48 sec
        Start  43: test-mbed-hal-sleep-manager-racecondition
 43/106 Test  #43: test-mbed-hal-sleep-manager-racecondition .............   Passed   16.03 sec
        Start  44: test-mbed-hal-stack-size-unification
 44/106 Test  #44: test-mbed-hal-stack-size-unification ..................   Passed    3.41 sec
        Start  45: test-mbed-hal-ticker
 45/106 Test  #45: test-mbed-hal-ticker ..................................   Passed    5.10 sec
        Start  46: test-mbed-hal-trng
 46/106 Test  #46: test-mbed-hal-trng ....................................***Skipped   0.01 sec
        Start  47: test-mbed-hal-us-ticker
 47/106 Test  #47: test-mbed-hal-us-ticker ...............................   Passed    3.43 sec
        Start  48: test-mbed-hal-watchdog
 48/106 Test  #48: test-mbed-hal-watchdog ................................***Skipped   0.01 sec
        Start  49: test-mbed-hal-watchdog-reset
 49/106 Test  #49: test-mbed-hal-watchdog-reset ..........................***Skipped   0.01 sec
        Start  50: test-mbed-hal-watchdog-timing
 50/106 Test  #50: test-mbed-hal-watchdog-timing .........................***Skipped   0.01 sec
        Start  51: test-mbed-hal-verify-arduino-pinmap
 51/106 Test  #51: test-mbed-hal-verify-arduino-pinmap ...................***Skipped   0.01 sec
        Start  52: test-mbed-platform-mbed-functional-callback
 52/106 Test  #52: test-mbed-platform-mbed-functional-callback ...........   Passed    3.60 sec
        Start  53: test-mbed-platform-mbed-functional-callback-big
 53/106 Test  #53: test-mbed-platform-mbed-functional-callback-big .......   Passed    3.60 sec
        Start  54: test-mbed-platform-mbed-functional-callback-small
 54/106 Test  #54: test-mbed-platform-mbed-functional-callback-small .....   Passed    3.55 sec
        Start  55: test-mbed-platform-mbed-micro-attributes
 55/106 Test  #55: test-mbed-platform-mbed-micro-attributes ..............   Passed    3.60 sec
        Start  56: test-mbed-platform-mbed-micro-call-before-main
 56/106 Test  #56: test-mbed-platform-mbed-micro-call-before-main ........   Passed    3.40 sec
        Start  57: test-mbed-platform-mbed-micro-cpp
 57/106 Test  #57: test-mbed-platform-mbed-micro-cpp .....................   Passed    3.41 sec
        Start  58: test-mbed-platform-mbed-micro-div
 58/106 Test  #58: test-mbed-platform-mbed-micro-div .....................   Passed    3.38 sec
        Start  59: test-mbed-platform-mbed-micro-static-assert
 59/106 Test  #59: test-mbed-platform-mbed-micro-static-assert ...........   Passed    3.37 sec
        Start  60: test-mbed-platform-atomic
 60/106 Test  #60: test-mbed-platform-atomic .............................   Passed   10.54 sec
        Start  61: test-mbed-platform-circular-buffer
 61/106 Test  #61: test-mbed-platform-circular-buffer ....................   Passed    4.04 sec
        Start  62: test-mbed-platform-crash-reporting
 62/106 Test  #62: test-mbed-platform-crash-reporting ....................***Skipped   0.01 sec
        Start  63: test-mbed-platform-error-handling
 63/106 Test  #63: test-mbed-platform-error-handling .....................   Passed    3.47 sec
        Start  64: test-mbed-platform-filehandle
 64/106 Test  #64: test-mbed-platform-filehandle .........................   Passed    3.59 sec
        Start  65: test-mbed-platform-minimal-printf-compliance
 65/106 Test  #65: test-mbed-platform-minimal-printf-compliance ..........   Passed    4.08 sec
        Start  66: test-mbed-platform-sharedptr
 66/106 Test  #66: test-mbed-platform-sharedptr ..........................   Passed    3.59 sec
        Start  67: test-mbed-platform-singletonptr
 67/106 Test  #67: test-mbed-platform-singletonptr .......................   Passed    3.49 sec
        Start  68: test-mbed-platform-stream
 68/106 Test  #68: test-mbed-platform-stream .............................   Passed    3.56 sec
        Start  69: test-mbed-platform-system-reset
 69/106 Test  #69: test-mbed-platform-system-reset .......................   Passed    4.42 sec
        Start  70: test-mbed-platform-transaction
 70/106 Test  #70: test-mbed-platform-transaction ........................   Passed    3.50 sec
        Start  71: test-mbed-platform-wait-ns
 71/106 Test  #71: test-mbed-platform-wait-ns ............................   Passed    4.42 sec
        Start  72: test-mbed-platform-stats-cpu
 72/106 Test  #72: test-mbed-platform-stats-cpu ..........................***Skipped   0.01 sec
        Start  73: test-mbed-platform-stats-heap
 73/106 Test  #73: test-mbed-platform-stats-heap .........................***Skipped   0.01 sec
        Start  74: test-mbed-platform-stats-sys
 74/106 Test  #74: test-mbed-platform-stats-sys ..........................***Skipped   0.01 sec
        Start  75: test-mbed-platform-stats-thread
 75/106 Test  #75: test-mbed-platform-stats-thread .......................***Skipped   0.01 sec
        Start  76: test-mbed-rtos-basic
 76/106 Test  #76: test-mbed-rtos-basic ..................................   Passed   10.13 sec
        Start  77: test-mbed-rtos-condition-variable
 77/106 Test  #77: test-mbed-rtos-condition-variable .....................   Passed    3.51 sec
        Start  78: test-mbed-rtos-event-flags
 78/106 Test  #78: test-mbed-rtos-event-flags ............................   Passed    4.15 sec
        Start  79: test-mbed-rtos-heap-and-stack
 79/106 Test  #79: test-mbed-rtos-heap-and-stack .........................   Passed    3.55 sec
        Start  80: test-mbed-rtos-kernel-tick-count
 80/106 Test  #80: test-mbed-rtos-kernel-tick-count ......................   Passed    5.47 sec
        Start  81: test-mbed-rtos-mail
 81/106 Test  #81: test-mbed-rtos-mail ...................................   Passed    4.33 sec
        Start  82: test-mbed-rtos-malloc
 82/106 Test  #82: test-mbed-rtos-malloc .................................   Passed   23.73 sec
        Start  83: test-mbed-rtos-memorypool
 83/106 Test  #83: test-mbed-rtos-memorypool .............................   Passed    4.33 sec
        Start  84: test-mbed-rtos-mutex
 84/106 Test  #84: test-mbed-rtos-mutex ..................................   Passed    5.72 sec
        Start  85: test-mbed-rtos-queue
 85/106 Test  #85: test-mbed-rtos-queue ..................................   Passed    4.02 sec
        Start  86: test-mbed-rtos-semaphore
 86/106 Test  #86: test-mbed-rtos-semaphore ..............................   Passed    7.03 sec
        Start  87: test-mbed-rtos-signals
 87/106 Test  #87: test-mbed-rtos-signals ................................   Passed    4.62 sec
        Start  88: test-mbed-rtos-systimer
 88/106 Test  #88: test-mbed-rtos-systimer ...............................   Passed    3.78 sec
        Start  89: test-mbed-rtos-threads
 89/106 Test  #89: test-mbed-rtos-threads ................................   Passed    5.95 sec
        Start  90: test-mbed-storage-blockdevice-buffered_block_device
 90/106 Test  #90: test-mbed-storage-blockdevice-buffered_block_device ...   Passed    5.57 sec
        Start  91: test-mbed-storage-blockdevice-flashsim_block_device
 91/106 Test  #91: test-mbed-storage-blockdevice-flashsim_block_device ...   Passed    5.95 sec
        Start  92: test-mbed-storage-blockdevice-general_block_device
 92/106 Test  #92: test-mbed-storage-blockdevice-general_block_device ....   Passed    6.58 sec
        Start  93: test-mbed-storage-blockdevice-heap_block_device
 93/106 Test  #93: test-mbed-storage-blockdevice-heap_block_device .......   Passed    6.30 sec
        Start  94: test-mbed-storage-blockdevice-mbr_block_device
 94/106 Test  #94: test-mbed-storage-blockdevice-mbr_block_device ........   Passed    6.19 sec
        Start  95: test-mbed-storage-blockdevice-util_block_device
 95/106 Test  #95: test-mbed-storage-blockdevice-util_block_device .......   Passed    6.25 sec
        Start  96: test-mbed-connectivity-mbedtls-multi
 96/106 Test  #96: test-mbed-connectivity-mbedtls-multi ..................   Passed    3.68 sec
        Start  97: test-mbed-connectivity-mbedtls-sanity
 97/106 Test  #97: test-mbed-connectivity-mbedtls-sanity .................***Skipped   0.01 sec
        Start  98: test-mbed-connectivity-mbedtls-selftest
 98/106 Test  #98: test-mbed-connectivity-mbedtls-selftest ...............***Skipped   0.01 sec
        Start  99: test-mbed-connectivity-nfc-eeprom
 99/106 Test  #99: test-mbed-connectivity-nfc-eeprom .....................***Skipped   0.01 sec
        Start 100: test-mbed-connectivity-netsocket-dns
100/106 Test #100: test-mbed-connectivity-netsocket-dns ..................***Skipped   0.01 sec
        Start 101: test-mbed-connectivity-netsocket-nidd
101/106 Test #101: test-mbed-connectivity-netsocket-nidd .................***Skipped   0.01 sec
        Start 102: test-mbed-connectivity-netsocket-tcp
102/106 Test #102: test-mbed-connectivity-netsocket-tcp ..................***Skipped   0.01 sec
        Start 103: test-mbed-connectivity-netsocket-tls
103/106 Test #103: test-mbed-connectivity-netsocket-tls ..................***Skipped   0.01 sec
        Start 104: test-mbed-connectivity-netsocket-udp
104/106 Test #104: test-mbed-connectivity-netsocket-udp ..................***Skipped   0.01 sec
        Start 105: test-mbed-connectivity-netsocket-network-interface
105/106 Test #105: test-mbed-connectivity-netsocket-network-interface ....***Skipped   0.01 sec
        Start 106: test-mbed-device_key-functionality
106/106 Test #106: test-mbed-device_key-functionality ....................***Skipped   0.01 sec

100% tests passed, 0 tests failed out of 106

Total Test time (real) = 416.23 sec

The following tests did not run:
          6 - test-mbed-drivers-flashiap (Skipped)
          8 - test-mbed-drivers-lp-ticker (Skipped)
          9 - test-mbed-drivers-lp-timeout (Skipped)
         10 - test-mbed-drivers-lp-timer (Skipped)
         11 - test-mbed-drivers-mem-trace (Skipped)
         19 - test-mbed-drivers-watchdog (Skipped)
         20 - test-mbed-drivers-watchdog-reset (Skipped)
         21 - test-mbed-usb-device-basic (Skipped)
         22 - test-mbed-usb-device-hid (Skipped)
         23 - test-mbed-usb-device-msd (Skipped)
         24 - test-mbed-usb-device-serial (Skipped)
         27 - test-mbed-hal-crc (Skipped)
         29 - test-mbed-hal-flash-functional-tests (Skipped)
         30 - test-mbed-hal-lp-ticker (Skipped)
         33 - test-mbed-hal-ospi (Skipped)
         35 - test-mbed-hal-qspi (Skipped)
         46 - test-mbed-hal-trng (Skipped)
         48 - test-mbed-hal-watchdog (Skipped)
         49 - test-mbed-hal-watchdog-reset (Skipped)
         50 - test-mbed-hal-watchdog-timing (Skipped)
         51 - test-mbed-hal-verify-arduino-pinmap (Skipped)
         62 - test-mbed-platform-crash-reporting (Skipped)
         72 - test-mbed-platform-stats-cpu (Skipped)
         73 - test-mbed-platform-stats-heap (Skipped)
         74 - test-mbed-platform-stats-sys (Skipped)
         75 - test-mbed-platform-stats-thread (Skipped)
         97 - test-mbed-connectivity-mbedtls-sanity (Skipped)
         98 - test-mbed-connectivity-mbedtls-selftest (Skipped)
         99 - test-mbed-connectivity-nfc-eeprom (Skipped)
        100 - test-mbed-connectivity-netsocket-dns (Skipped)
        101 - test-mbed-connectivity-netsocket-nidd (Skipped)
        102 - test-mbed-connectivity-netsocket-tcp (Skipped)
        103 - test-mbed-connectivity-netsocket-tls (Skipped)
        104 - test-mbed-connectivity-netsocket-udp (Skipped)
        105 - test-mbed-connectivity-netsocket-network-interface (Skipped)
        106 - test-mbed-device_key-functionality (Skipped)
PS C:\MbedCE\MbedCE_H5_NEw\mbed-os\BUILD_STM32H503RB_GT>

About the issue with the Serial API i found this. For some reason the issue is there when the printf is in the code. Maybe because same peripheral for two objects.

#include "mbed.h"
#define MAXIMUM_BUFFER_SIZE         32

DigitalOut led(LED1);

// Create a BufferedSerial object with a default baud rate.
BufferedSerial serial_port(USBTX, USBRX);

char buf[MAXIMUM_BUFFER_SIZE] = {0};                                        

int main(void)
{
    printf("Start..\n");
    
    while (1) {
        if (uint32_t num = serial_port.read(buf, sizeof(buf))) {
            // Toggle the LED.
            led = !led;
            // Echo the input back to the terminal.
            serial_port.write(buf, num);
        }
    }
} 

Result in console

// > Received from Mbed
// < Sended to Mbed

// with printf
> Start.. 
< test
< test
< test
< test

// without printf
> test
< test
> test
< test
< fsdfsdfsdfsdfsdfsdfsdfsdfsdfsdfsdfsdfsdf
> fsdfsdfsdfsdfsdfsdfsdfsdfsdfsdfsdfsdfsdf

@multiplemonomials
Copy link
Collaborator

Regarding the serial issue, you're correct, that isn't a legal usage of the serial class. You should only have one serial instance per hardware serial port, and Mbed auto-creates one on the USBTX/USBRX pins. If you need access to the serial object in code, and you can't use printf/scanf, then you have to use mbed_console_override() to pass in your own serial object.

@multiplemonomials multiplemonomials merged commit eb00129 into mbed-ce:master Jul 11, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants