RPMsg in thingy53 with Segger J-Link mini Edu Not showing the messages in the console

Hi,

I stay trying this project github.com/.../rpmsg_playground
based on this video: www.youtube.com/watch
(openAMP/RPMsg in nordic thingy:53(nrf5340 dk)

Everything compiles and flashes OK, but the RPMsg messages from the Cores don't come out in the Console. I've used JLinkExe, JLinkExe -if SWD
(Both with h and g option combined after connect and speed) and also combined with JLinkRTTClient opened in another terminal

I stay using JLINK MINI EDU By SEGGER

Notes:

1) i stay using zephyr 3.3 and NCS

2) In github link I have several photos (like the one below) that demonstrate my issue:

https://github.com/neuberfran/rpmsg_playground/blob/main/photo04.png

3) I already did a blink led on this board now (using Zephyr 3.3) and it worked. Then I used the command: nrfjprog --eraseall to clean up.

How to solve?

?

Parents Reply
  • @

    1) First of all thanks for the interest

    2) Yesterday I redid my project (but now in windows 11 and not in Ubuntu 20.04). But the result is the same

    3) Do you have a thingy53? Why not clone my github project and try to replicate it on your machine?

    1) Answering again, I want the result of the video below (In Portuguese) in One hour, twenty minutes and forty-seven seconds

    www.youtube.com/watch

    Note that with one hour, twenty-five minutes and twenty-six seconds the speaker opens the jlinkrttclient and the messages start to appear and that is my current goal

    2) After my lunch I will try  a simple sample that only logs via RTT or USB first

Children
  • Hi,

    https://www.youtube.com/watch?v=mXcwJprm_Ds

    As the video above, I was successful but not the way I would like. I had to change the original project code and I don't know why. I had to comment out the line k_sem_take(&bound_sem, K_FOREVER); (in two places) in cpuappNet's main.c code:

    https://gist.github.com/neuberfran/482feff176d5b28cb8710497bf20cd97

    I want to know if there is a way to work, keeping the k_sem_take(&bound_sem, K_FOREVER);???

  • Hello Neuber,

    Sorry about you having to wait for this long. 

    neuberfran said:
    After my lunch I will try  a simple sample that only logs via RTT or USB first

    I think Sigurd saw that you wanted to try something more after lunch, and put you on hold, expecting you to get back to him after this was tested. Sigurd is unfortunately OOO now, so I will take your case while he is away. 

    As I do not speak Portuguese, it is a bit difficult for me to understand what is being done in the video and what the example in it is based on. My understanding is that you've had issues getting the log from the netcore of a 53? 

    neuberfran said:
    As the video above, I was successful but not the way I would like. I had to change the original project code and I don't know why. I had to comment out the line k_sem_take(&bound_sem, K_FOREVER); (in two places) in cpuappNet's main.c code:

    First of all, it would be preferable to base what you are trying to do on a sample made by Nordic or Zephyr, so that we know how it should work. If this sample is made by the guy in the video you linked me to, it might be that commenting out that line was something you actually needed to do, it was just not mentioned in the video. We do not know for a fact that this project should work after all. It is easier to figure out how to do something, than to debug an entire project that you do not know. 

    Though with that said, I guess we can give it a try. 

    Did you copy the project made in the video, or did you just try to follow along on some steps mentioned in it? If so, could it be that you've skipped a step?

    Are you sure that you are using the same NCS versions etc., that they are using in that video? I see that you say that you are using NCS 2.1, but also zephyr 3.3. This confuses me a bit, as 3.1.99 is what is supposed to be used with NCS 2.1. Could you expand on this part?

    Regards,
    Elfving

  • "My understanding is that you've had issues getting the log from the netcore of a 53?"

    Thanks for taking this case. In reality, it is now more in-depth learning of traffic lights. Really, I haven't had good logs on this project. I don't know if due to misuse (or use in this case) of USB_CDC. I'm using RTT just like the original video. But (logs) shouldn't be a problem,
    because I invested in a SEGGER Edu Mini.

    "Did you copy the project made in the video, or did you just try to follow along on some steps mentioned in it? If so, could it be that you've skipped a step?"

    1) Yes
    2) More or less. The file below is the only one that raised a doubt

    https://github.com/neuberfran/rpmsg_playground/blob/main/aci/CMakeLists.txt


    https://postimg.cc/Xr0ttqjZ

    As you can see in the image above, if I change line 4 (for example) to: SOURCE_DIR ${CMAKE_CURRENT_LIST_DIR}/..../cpunet I don't get any errors. this is intriguing


    Finally, I would like you to prove to me that I only need to comment this line now, because my project is newer than the one in the video and in the video the author used an older version of ncs and zephyr
    If that's the case, of course, there's no problem and there's nothing you can do about it.

    The project is on my github if you stay trying do in your 53

    Tks

  • neuberfran said:
    As you can see in the image above, if I change line 4 (for example) to: SOURCE_DIR ${CMAKE_CURRENT_LIST_DIR}/..../cpunet I don't get any errors. this is intriguing

    Maybe I am overlooking something obvious, but I am not really seeing the difference between the image and the github link.

    Are you saying that when you added a few more dots it worked? Or that when you've commented it out it works?

    neuberfran said:
    because my project is newer than the one in the video and in the video the author used an older version of ncs and zephyr
    If that's the case, of course, there's no problem and there's nothing you can do about it.

    I guess you could downgrade to the NCS & Zephyr version that they used. Do you know which one that could be?

    Regards,

    Elfving

  • https://postimg.cc/9DB0cDKR

    Yes. I make changes to this line or another in this file and the compilation does not show any error(s)

    I guess you could downgrade to the NCS & Zephyr version that they used. Do you know which one that could be?

    I don't know which version was used in the video

Related