-
Hello @mbed-ce/developers, I'm trying to learn something new and prepare Blackpill-F411CE (for more just Dut) as a regular target. So I ran Greentea with result below
Ok, I want to debug Greentea mbed-hal-reset-reason now. I followed Debugging-Failing-Greentea-Tests and it seems to be clear to me. However my knowledge seem to be not enough anyway. If I understand correctly how it does, then according to log below the Host wants to restart the DUT, then wait for its boot and than expect the confirmation of reconnection.
If my understanding above is correct, then how the reset from Host side to Dut side is performed please? I found my test keep failing because the reset of the Dut is not performed, but when I do it manually in correct time then the test continue.
Any hints? Thank you Edit:
Edit2: Edit3: BR, Jan |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 24 replies
-
Hi Jan, |
Beta Was this translation helpful? Give feedback.
-
@multiplemonomials any hints? |
Beta Was this translation helpful? Give feedback.
-
Try the sequence hold boot button, press reset, release boot button.
… Am 17.12.2022 um 17:14 schrieb JohnK1987 ***@***.***>:
Hmm, I do not understand what happened. Blackpill had an issue time to time and I was not able connect to it. I thought it was about bad contact of wires between Blackpill and ST-Link. But I am not able to connect to it anymore... MCU seems to be dead.
BR, Jan
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are on a team that was mentioned.
|
Beta Was this translation helpful? Give feedback.
-
I'm trying to run the greentea tests with a custom target. As a startpoint I have used the mbed-ce-hello-world project and added the custom target, that works. But I can't compile the mbed-os tests with this target. This is my CMakeLists.txt: #
# Mbed CE Hello World Project
#
cmake_minimum_required(VERSION 3.19)
cmake_policy(VERSION 3.19)
# Initialize Mbed OS build system.
# Note: This block must be before the project() call.
set(MBED_APP_JSON_PATH mbed_app.json)
set(CUSTOM_TARGETS_JSON_PATH custom_targets/custom_targets.json) # If you need a custom target, use this line to specify the custom_targets.json
set(MBED_ENABLE_OS_INTERNAL_TESTS TRUE)
set(MBED_BUILD_GREENTEA_TESTS TRUE)
set(MBED_GREENTEA_SERIAL_PORT "/dev/ttyACM0")
set(STM32CUBE_UPLOAD_ENABLED TRUE)
set(UPLOAD_METHOD "STM32CUBE")
set(CMAKE_BUILD_TYPE "Develop")
set(MBED_TARGET "WEACT_F411CE")
set(MBED_ENABLE_TESTING TRUE)
include(mbed-os/tools/cmake/app.cmake) # Load Mbed CE toolchain file and basic build system
# If you need any custom upload method configuration for your target, do that here
add_subdirectory(custom_targets)
add_subdirectory(mbed-os) # Load Mbed OS build targets. Must be added before any other subdirectories
project(MbedCEHelloWorld)
# add_executable(HelloWorld main.cpp)
# target_link_libraries(HelloWorld mbed-os) # Can also link to mbed-baremetal here
# mbed_set_post_build(HelloWorld HelloWorld stm32f411xe.ld) # Must call this for each target to set up bin file creation, code upload, etc
mbed_finalize_build() The tests are compiling, but linking fails. it works when I disable this if(): We need something to set 'standalone' when used in test project. And the tests are not yet running with |
Beta Was this translation helpful? Give feedback.
@multiplemonomials any hints?