-
Notifications
You must be signed in to change notification settings - Fork 3k
ARMCC serial fails to connect properly with pc serial application #6075
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
Comments
@kjbracey-arm https://jira.arm.com/browse/IOTMORF-2064 |
@kjbracey-arm this relevant only for debug mode |
Looking at it, this code seems like it may always be unreliable. I've never seen anyone successfully use While waiting for input, you will be consuming 100% of CPU time, spinning on checking the serial port. Now, I guess that may be actually make the read responsive enough without interrupt handling IF you have no other threads. This could be ultimately timing related, but the ARMCC debug build is the only one slow enough to hit it? I would suggest you change to using Things to check:
|
@kjbracey-arm
|
@TaniaMirzin Is this issue still valid? The referenced jira issue seems to be closed and there has been no progress here. Shall we close? |
@0xc0170 Yes.Thank you. |
Note: This is just a template, so feel free to use/remove the unnecessary things
Description
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.
The text was updated successfully, but these errors were encountered: