I am getting this SYNC_FAILED error when I run my customized test. It only happens on my NUCLEO-F091RC board and not on my disco-l475vg-iot01a board where it succeeds. Does this have to do something with memory?
mbed version- 1.10.4
mbed-os: 6.4.0
Here is the log when I run greentea tests on NUCLEO-F091RC board
Build successes:
NUCLEO_F091RC::GCC_ARM::MBED-BUILD
NUCLEO_F091RC::GCC_ARM::TESTS-LAB7-LCD-LED-TEST
[mbed] Exec "mbedgt --test-spec .\BUILD\tests\NUCLEO_F091RC\GCC_ARM\test_spec.json -n tests-lab7-lcd-led-test -V" in "C:\Users\naknai01\Documents\greentea tutorial\educheck\codegrader"
mbedgt: greentea test automation tool ver. 1.7.4
mbedgt: test specification file '.\BUILD\tests\NUCLEO_F091RC\GCC_ARM\test_spec.json' (specified with --test-spec option)
mbedgt: using '.\BUILD\tests\NUCLEO_F091RC\GCC_ARM\test_spec.json' from current directory!
mbedgt: detecting connected mbed-enabled devices...
mbedgt: detected 1 device
platform_name
platform_name_unique
serial_port
mount_point
target_id
NUCLEO_F091RC
NUCLEO_F091RC[0]
COM10
E:
075002216669702B592DE646
mbedgt: processing target 'NUCLEO_F091RC' toolchain 'GCC_ARM' compatible platforms... (note: switch set to --parallel 1)
platform_name
platform_name_unique
serial_port
mount_point
target_id
NUCLEO_F091RC
NUCLEO_F091RC[0]
COM10:9600
E:
075002216669702B592DE646
mbedgt: test case filter (specified with -n option)
tests-lab7-lcd-led-test
test filtered in 'tests-lab7-lcd-led-test'
mbedgt: running 1 test for platform 'NUCLEO_F091RC' and toolchain 'GCC_ARM'
use 1 instance of execution threads for testing
mbedgt: checking for 'host_tests' directory above image directory structure
found 'host_tests' directory in: 'TESTS\host_tests'
mbedgt: selecting test case observer...
calling mbedhtrun: mbedhtrun -m NUCLEO_F091RC -p COM10:9600 -f "BUILD/tests/NUCLEO_F091RC/GCC_ARM/TESTS/Lab7/lcd-led-test/lcd-led-test.bin" -e "TESTS\host_tests" -d E: -c default -t 075002216669702B592DE646 -r default -C 4 --sync 5 -P 60
mbedgt: mbed-host-test-runner: started
[1605001194.24][HTST][INF] host test executor ver. 0.0.15
[1605001194.24][HTST][INF] copy image onto target...
[1605001194.24][COPY][INF] Waiting up to 60 sec for '075002216669702B592DE646' mount point (current is 'E:')...
1 file(s) copied.
[1605001204.62][HTST][INF] starting host test process...
[1605001204.93][CONN][INF] starting connection process...
[1605001204.93][CONN][INF] notify event queue about extra 60 sec timeout for serial port pooling
[1605001204.93][CONN][INF] initializing serial port listener...
[1605001204.93][PLGN][INF] Waiting up to 60 sec for '075002216669702B592DE646' serial port (current is 'COM10')...
[1605001204.93][HTST][INF] setting timeout to: 60 sec
[1605001204.95][SERI][INF] serial(port=COM10, baudrate=9600, read_timeout=0.01, write_timeout=5)
[1605001204.95][SERI][INF] reset device using 'default' plugin...
[1605001205.20][SERI][INF] waiting 1.00 sec after reset
[1605001206.20][SERI][INF] wait for it...
[1605001206.23][SERI][TXD] mbedmbedmbedmbedmbedmbedmbedmbedmbedmbed
[1605001206.23][CONN][INF] sending up to 5 sync packets (specified with --sync=5)
[1605001206.23][CONN][INF] sending preamble '62e5d8fb-334d-46a0-9b7d-adbc172fdb50'
[1605001206.27][SERI][TXD] {{sync;62e5d8fb-334d-46a0-9b7d-adbc172fdb50}}
[1605001211.27][CONN][INF] Reset the part and send in new preamble...
[1605001211.27][SERI][INF] reset device using 'default' plugin...
[1605001211.53][SERI][INF] waiting 1.00 sec after reset
[1605001212.53][SERI][INF] wait for it...
[1605001212.53][CONN][INF] resending new preamble 'c93a5718-58ce-4f87-9ff0-aec542a4052e' after 5.00 sec
[1605001212.56][SERI][TXD] {{sync;c93a5718-58ce-4f87-9ff0-aec542a4052e}}
[1605001217.56][CONN][INF] Reset the part and send in new preamble...
[1605001217.56][SERI][INF] reset device using 'default' plugin...
[1605001217.81][SERI][INF] waiting 1.00 sec after reset
[1605001218.81][SERI][INF] wait for it...
[1605001218.81][CONN][INF] resending new preamble 'e91a243f-83a5-48f9-bce9-3cb8e9d49847' after 5.00 sec
[1605001218.85][SERI][TXD] {{sync;e91a243f-83a5-48f9-bce9-3cb8e9d49847}}
[1605001223.85][CONN][INF] Reset the part and send in new preamble...
[1605001223.85][SERI][INF] reset device using 'default' plugin...
[1605001224.10][SERI][INF] waiting 1.00 sec after reset
[1605001225.10][SERI][INF] wait for it...
[1605001225.10][CONN][INF] resending new preamble 'b88c9b5b-79cb-4e30-b1e7-54f745b83672' after 5.00 sec
[1605001225.13][SERI][TXD] {{sync;b88c9b5b-79cb-4e30-b1e7-54f745b83672}}
[1605001230.14][CONN][INF] Reset the part and send in new preamble...
[1605001230.14][SERI][INF] reset device using 'default' plugin...
[1605001230.39][SERI][INF] waiting 1.00 sec after reset
[1605001231.39][SERI][INF] wait for it...
[1605001231.39][CONN][INF] resending new preamble '3ab6180a-ac87-485e-b301-8778421d09f8' after 5.01 sec
[1605001231.42][SERI][TXD] {{sync;3ab6180a-ac87-485e-b301-8778421d09f8}}
[1605001231.44][HTST][ERR] None
[1605001231.44][HTST][WRN] stopped to consume events due to notify_sync_failed event
[1605001231.44][HTST][INF] exit_event_queue received
[1605001231.44][HTST][INF] test suite run finished after 26.51 sec...
[1605001231.47][HTST][INF] CONN exited with code: 0
[1605001231.47][HTST][INF] No events in queue
[1605001231.47][HTST][INF] host test result() call skipped, received: sync_failed
[1605001231.47][HTST][WRN] missing __exit event from DUT
[1605001231.47][HTST][INF] calling blocking teardown()
[1605001231.47][HTST][INF] teardown() finished
[1605001231.47][HTST][INF] {{result;sync_failed}}
mbedgt: retry mbedhtrun 1/1
mbedgt: ['mbedhtrun', '-m', 'NUCLEO_F091RC', '-p', 'COM10:9600', '-f', '"BUILD/tests/NUCLEO_F091RC/GCC_ARM/TESTS/Lab7/lcd-led-test/lcd-led-test.bin"', '-e', '"TESTS\host_tests"', '-d', 'E:', '-c', 'default', '-t', '075002216669702B592DE646', '-r', 'default', '-C', '4', '--sync', '5', '-P', '60'] failed after 1 count
mbedgt: checking for GCOV data...
mbedgt: mbed-host-test-runner: stopped and returned 'SYNC_FAILED'
mbedgt: test case summary event not found
no test case report present, assuming test suite to be a single test case!
test suite: tests-lab7-lcd-led-test
test case: tests-lab7-lcd-led-test
mbedgt: test on hardware with target id: 075002216669702B592DE646
mbedgt: test suite 'tests-lab7-lcd-led-test' ......................................................... SYNC_FAILED in 37.88 sec
test case: 'tests-lab7-lcd-led-test' ......................................................... ERROR in 37.88 sec
mbedgt: test case summary: 0 passes, 1 failure
mbedgt: all tests finished!
mbedgt: shuffle seed: 0.0206835755
mbedgt: test suite report:
Description
Issue request type
I am getting this SYNC_FAILED error when I run my customized test. It only happens on my NUCLEO-F091RC board and not on my disco-l475vg-iot01a board where it succeeds. Does this have to do something with memory?
mbed version- 1.10.4 mbed-os: 6.4.0
Here is the log when I run greentea tests on NUCLEO-F091RC board
Build successes:
mbedgt: test suite results: 1 SYNC_FAILED