Am facing problem while receiving file from PC as YMODEM protocol
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-02-27 11:42 PM
Am facing problem while receiving file from PC as YMODEM protocol, Am just using ymodem.c an d ymodem.h file fromIAP library i have modified the code, but am not receiving Header packet only(SOH or STX), please help as soon as possible am struck here, currently am not writing data into flash as of now i just commented to verify the data first.
We are using STM32L431 MCU
please find the following code
- Labels:
-
STM32L4 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-02-28 01:55 AM
Please any one faced same issue please reply as soon as possible, am not even getting first byte as SOH i have verified by step execution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-02-28 08:24 AM
Are you saying that you never receive ANY bytes? Or only that you never receive the SOH byte (but can receive other data)? You don't show your UART configuration code, and you don't say if this is custom hardware of one of ST's NUCLEO/DISCO boards (or some other commercial board). Have you verified that your UART works at all? Strip out the YModem code and just echo incoming UART data back out the UART. Does that work? If not, you've got UART config issues or hardware issues.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-02-28 08:41 AM
Perhaps you can use winmerge or diff and figure out how to unfsk the code?
Code needs to be sending a periodic character, usually a 'C' or whatever, to indicate it is waiting for the source to initiate the transfer.
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-02-28 02:02 PM
Do you use Teraterm?
-
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-03-01 09:12 PM
Hi Bob,
UART is working fie because first i have verified normal UART Rx TX operation from terminal, Am using custom design board not any dev or Nucleo board
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-03-01 09:12 PM
UART is working fine
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-03-01 09:12 PM
I have tried with both Teraterm and Hyper terminal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-03-02 05:20 AM
AFAIK, Teraterm has a bug in Ymodem protocol. I could not make Ymodem examples provided by ST to work as is.
But you seem to have a more low-level issue.
-- pa
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-03-02 05:26 AM
Hi Pavel,
Am working on Hyper terminal also but still am facing the issue.
You mentioned about low level, in low level i have used HAL_Libraries those working fine for normal UART rx tx
