This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Can ARM DS-5 debugger debug 2-core with different images via FVP?

I am trying to develop an app that requires the communication between two cores. My question is, I have built two different images for two different cores (Cortex-M3 and Cortex-M4)  in axf format. I also have FVP model that includes two cores (Cortex-M3 and Cortex-M4).  My question is if I can use DS-5 debugger to run the two images (axf file) and debug them after I import the FVP model to DS-5?

Thank you for your input in advance.

Parents
  • Hi Shulan

    Sorry for late reply - you may have already resolved this.

    You are right that we don't yet have a mechanism to simultaneously start both connections, but I've hacked together a pseudo solution for this in the past.

    In your code for Core0, just after main, have a while loop waiting for an (shared) address to be written to (by Core1). Load this code and go, it will be stuck in this while loop.

    Then in your code for Core1, again just after main, write to the above shared address - from there both CPUs will continue on from that point.

    Note that the FVPs are not timing accurate, so you will never be able to accurately model cycle for cycle behavior with these models.

    Regards

    Ronan

Reply
  • Hi Shulan

    Sorry for late reply - you may have already resolved this.

    You are right that we don't yet have a mechanism to simultaneously start both connections, but I've hacked together a pseudo solution for this in the past.

    In your code for Core0, just after main, have a while loop waiting for an (shared) address to be written to (by Core1). Load this code and go, it will be stuck in this while loop.

    Then in your code for Core1, again just after main, write to the above shared address - from there both CPUs will continue on from that point.

    Note that the FVPs are not timing accurate, so you will never be able to accurately model cycle for cycle behavior with these models.

    Regards

    Ronan

Children