Hey folks,
Hope this query goes to the right place.
I am having issue when trying to minor-customize the TI's RPMSG example https://git.ti.com/cgit/rpmsg/ti-rpmsg-char/tree/ and run it on AM62 platform.
General descriptions:
1. The pre-built executable rpmsg-char-simple (/usr/bin/rpmsg_char_simple, as part of AM62x dev sdk I guess?) works nomally on the board.
2. As an initial step to customize the rpmsg tool for our own application, I cloned the ti-rpmsg-char repo (link above), make minor modifications, just some printfs for now. (So I guess you don't need my exact scripts to repeat what I see here - just a few printf lines added to https://git.ti.com/cgit/rpmsg/ti-rpmsg-char/tree/examples/rpmsg_char_simple.c)
3. Follow the steps at section 4 (Build) at https://git.ti.com/cgit/rpmsg/ti-rpmsg-char/about/, built the local repo of ti-rpmsg-char for AM62 platform with corresponding compiler (I am using v8 Compiler : gcc-arm-9.2-2019.12-x86_64-aarch64-none-linux-gnu), and ran the generated executable 'rpmsg-char-simple' under the AM62's linux terminal.
4. The executable is able to run on AM62, and print messages I added during initialization as expected; but fails in the line of calling 'rpmsg_char_open' API function. The error message is
So, to verify, I added some printfs before the rpmsg_char_open function call,
which gives me
As the screen output shows, the 'remote_endpt' argument no matter by default (14) or mannually set, is not equal to RPMSG_ADDR_ANY (-1), but after going into to rpmsg_char_open function call, the condition remote_endpt==RPMSG_ADDR_ANY(which is -1) weirdly get met, and throw the error.
What could be the reason for this error?
Thanks for your time. Please don't hesitate to et me know if any further information I can provide to clarify.
Regards,
Wei