Description
Note: This is just a template, so feel free to use/remove the unnecessary things
Description
- Type: Bug
- Priority: Major
ARMCC serial in debug mode fails to connect properly with pc serial application
Target
K64F
Toolchain:
ARM
Toolchain version:
DS-5_v5.25.0/ARMCompiler5.06u3
mbed-cli version:
1.2.0
mbed-os sha:
caeaa49 5.7.4
Expected behavior
The device application reads and send all data via Serial.
Actual behavior
The application stuck and fails to send data to windows application.
Reproduce steps
(These steps placed infactory-configurator-client-example-internal repository branch restore_armcc_serial in README.rd)
To clone the Factory Client repository -
git clone git@github.com:ARMmbed/factory-configurator-client-example-internal
Use branch:
restore_armcc_serial
Prepare all libraries for restore process:
cd devenv\internal-scripts
python switch-repos.py master-dev
Compile serial application from for GCC_ARM and for ARM:
cd ../../
./build-mbed-os.sh --toolchain=ARM --platform=K64F --iface=FCE_SERIAL_INTERFACE
or
cd ../../
./build-mbed-os.sh --toolchain=GCC_ARM --platform=K64F --iface=FCE_SERIAL_INTERFACE
this will comiple the simple application source/factory_client_example.cpp
Run the application
Copy source/fce_serial_tester.py python script to windows.
Copy compiled application image to your K64F device.
Reset the device.
Run python scritp :
python fce_serial_tester.py --port COM8
Change COM8 to your active COM number.
Expected behavior for all toolchains:
The python application should inject message (1913 bytes) to the device by Serial connection.
Device reads all 1913 bytes using Serial object and send the data back to serial.
The python application reads first 500 bytes that was sent by the device and prints it.
Actual behavior:
For GCC_ARM the application acts as expected.
For ARM the application fails to connect back with python script and the scripts failes to read and print any data from device.