This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
I tried to run RPMsg userspace example program as described in Processor Linux SDK but I am not able to receive the message as a string. I am able to read the incoming message as hex but not as a string.
Source Code of application: git.ti.com/.../ti-rpmsg-char
Log:
root@am64xx-evm:/temp/rpmsg# ./rpmsg -r 2
Created endpt device rpmsg-char-2-1926, fd = 3 port = 1024
Exchanging 100 messages with rpmsg device ti.ipc4.ping-pong on rproc id 2 ...
Sending message #0: hello there 0!
Receiving message #0:
Sending message #1: hello there 1!
Receiving message #1:
Sending message #2: hello there 2!
Receiving message #2:
Sending message #3: hello there 3!
Receiving message #3:
Sending message #4: hello there 4!
Receiving message #4:
Sending message #5: hello there 5!
Receiving message #5:
Sending message #6: hello there 6!
Receiving message #6:
Sending message #7: hello there 7!
Receiving message #7:
Sending message #8: hello there 8!
Receiving message #8:
Sending message #9: hello there 9!
Receiving message #9:
Sending message #10: hello there 10!
Receiving message #10:
Sending message #11: hello there 11!
Receiving message #11:
Sending message #12: hello there 12!
Receiving message #12:
Sending message #13: hello there 13!
Receiving message #13:
Sending message #14: hello there 14!
Receiving message #14:
Sending message #15: hello there 15!
Receiving message #15:
Sending message #16: hello there 16!
Receiving message #16:
Sending message #17: hello there 17!
Receiving message #17:
Sending message #18: hello there 18!
Receiving message #18:
Sending message #19: hello there 19!
Receiving message #19:
Sending message #20: hello there 20!
Receiving message #20:
Sending message #21: hello there 21!
Receiving message #21:
Sending message #22: hello there 22!
Receiving message #22:
Sending message #23: hello there 23!
Receiving message #23:
Sending message #24: hello there 24!
Receiving message #24:
Sending message #25: hello there 25!
Receiving message #25:
Sending message #26: hello there 26!
Receiving message #26:
Sending message #27: hello there 27!
Receiving message #27:
Sending message #28: hello there 28!
Receiving message #28:
Sending message #29: hello there 29!
Receiving message #29:
Sending message #30: hello there 30!
Receiving message #30:
Sending message #31: hello there 31!
Receiving message #31:
Sending message #32: hello there 32!
Receiving message #32:
Sending message #33: hello there 33!
Receiving message #33:
Sending message #34: hello there 34!
Receiving message #34:
Sending message #35: hello there 35!
Receiving message #35:
Sending message #36: hello there 36!
Receiving message #36:
Sending message #37: hello there 37!
Receiving message #37:
Sending message #38: hello there 38!
Receiving message #38:
Sending message #39: hello there 39!
Receiving message #39:
Sending message #40: hello there 40!
Receiving message #40:
Sending message #41: hello there 41!
Receiving message #41:
Sending message #42: hello there 42!
Receiving message #42:
Sending message #43: hello there 43!
Receiving message #43:
Sending message #44: hello there 44!
Receiving message #44:
Sending message #45: hello there 45!
Receiving message #45:
Sending message #46: hello there 46!
Receiving message #46:
Sending message #47: hello there 47!
Receiving message #47:
Sending message #48: hello there 48!
Receiving message #48:
Sending message #49: hello there 49!
Receiving message #49:
Sending message #50: hello there 50!
Receiving message #50:
Sending message #51: hello there 51!
Receiving message #51:
Sending message #52: hello there 52!
Receiving message #52:
Sending message #53: hello there 53!
Receiving message #53:
Sending message #54: hello there 54!
Receiving message #54:
Sending message #55: hello there 55!
Receiving message #55:
Sending message #56: hello there 56!
Receiving message #56:
Sending message #57: hello there 57!
Receiving message #57:
Sending message #58: hello there 58!
Receiving message #58:
Sending message #59: hello there 59!
Receiving message #59:
Sending message #60: hello there 60!
Receiving message #60:
Sending message #61: hello there 61!
Receiving message #61:
Sending message #62: hello there 62!
Receiving message #62:
Sending message #63: hello there 63!
Receiving message #63:
Sending message #64: hello there 64!
Receiving message #64:
Sending message #65: hello there 65!
Receiving message #65:
Sending message #66: hello there 66!
Receiving message #66:
Sending message #67: hello there 67!
Receiving message #67:
Sending message #68: hello there 68!
Receiving message #68:
Sending message #69: hello there 69!
Receiving message #69:
Sending message #70: hello there 70!
Receiving message #70:
Sending message #71: hello there 71!
Receiving message #71:
Sending message #72: hello there 72!
Receiving message #72:
Sending message #73: hello there 73!
Receiving message #73:
Sending message #74: hello there 74!
Receiving message #74:
Sending message #75: hello there 75!
Receiving message #75:
Sending message #76: hello there 76!
Receiving message #76:
Sending message #77: hello there 77!
Receiving message #77:
Sending message #78: hello there 78!
Receiving message #78:
Sending message #79: hello there 79!
Receiving message #79:
Sending message #80: hello there 80!
Receiving message #80:
Sending message #81: hello there 81!
Receiving message #81:
Sending message #82: hello there 82!
Receiving message #82:
Sending message #83: hello there 83!
Receiving message #83:
Sending message #84: hello there 84!
Receiving message #84:
Sending message #85: hello there 85!
Receiving message #85:
Sending message #86: hello there 86!
Receiving message #86:
Sending message #87: hello there 87!
Receiving message #87:
Sending message #88: hello there 88!
Receiving message #88:
Sending message #89: hello there 89!
Receiving message #89:
Sending message #90: hello there 90!
Receiving message #90:
Sending message #91: hello there 91!
Receiving message #91:
Sending message #92: hello there 92!
Receiving message #92:
Sending message #93: hello there 93!
Receiving message #93:
Sending message #94: hello there 94!
Receiving message #94:
Sending message #95: hello there 95!
Receiving message #95:
Sending message #96: hello there 96!
Receiving message #96:
Sending message #97: hello there 97!
Receiving message #97:
Sending message #98: hello there 98!
Receiving message #98:
Sending message #99: hello there 99!
Receiving message #99:
Communicated 100 messages successfully on rpmsg-char-2-1926
TEST STATUS: PASSED
Thanks
Himansu
Hello Himansu,
First, are you able to get a known good state working?
i.e., when you run the out of the box rpmsg_char_simple example, does it work?
https://software-dl.ti.com/processor-sdk-linux/esd/AM64X/08_01_00_39/exports/docs/linux/Foundational_Components_IPC64x.html#rpmsg-examples
(note that you do not actually need to build anything to run the initial example, since rpmsg_char_simple is packaged in the default filesystem image in /usr/bin).
Once the prebuilt example is working, are you able to just build the rpmsg_char_simple example following the steps above?
Once the default example build is working, what changes are you making to the example?
Regards,
Nick