Closed lauleehong closed 3 years ago
@MarceloSalazar @chris-styles would you please help? Thanks!
@lauleehong can you please test on Windows and share the logs? We'd like to understand whether this is related to https://github.com/ARMmbed/mbed-os/issues/4301
The above greentea test was ran on Ubuntu 18.04 LTS
@trowbridgec
Thank you for raising this detailed GitHub issue. I am now notifying our internal issue triagers. Internal Jira reference: https://jira.arm.com/browse/IOTOSM-2147
Adding mbed-bootloader 4.7.0 to mbed 6.5.0 application would also cause SYNC_FAILED issue if we run greentea.
I've fixed this issue. If your using a mbed-bootloader in your application program, you have to remove all serial printouts in the bootloader code. The sync_fail by greentea happens when your program bootloader prints and sends the bootloader printouts to the host machine during greentea test (which wasn't expected those characters from the target board).
Thanks for sharing the solution and closing.
Description of defect
Having a project with PDMC 2.2.1 bootloader defined in mbed_app.json would cause greentea to fail with SYNC_FAIL issue. My workaround to get greentea working was to remove the bootloader definition in mbed_app.json.
Tagging @soleilplanet
Target(s) affected by this defect ?
Tested on NUCLEO_F767ZI
Toolchain(s) (name and version) displaying this defect ?
GCC-ARM Compiler 6 (gcc-arm-none-eabi-6-2017-q2-update)
What version of Mbed-os are you using (tag or sha) ?
mbed-os 5.14.2 (cf4f12a)
What version(s) of tools are you using. List all that apply (E.g. mbed-cli)
mbed-cli 1.10.2 mbed-greentea 1.7.4
How is this defect reproduced ?
Mbed-os >= 5.14.2 mbed_app.json with the following settings:
"target.features_add" : ["BOOTLOADER"], "target.bootloader_img" : "bootloader/mbed-bootloader-NUCLEO_F767ZI.bin", "target.header_offset" : "0x10000", "target.app_offset" : "0x10400"
where the bootloader used was provided in https://github.com/ARMmbed/pelion-ready-example/tree/master/bootloader