This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Tips for CMSIS-DSP simulation?

Hi All,

This may not be 100% nRF-related, but:

I have a set of algorithms that are written with Keil uVision 5 for nRF52840 using the CMSIS-DSP library. Now, I would need to simulate the exact output of these algorithms using an x86 computer. The optimal situation would be, that I could make test runs where I could route data from an input file to the algorithms, and write the output to another file. 

One solution could be to try to modify the CMSIS-DSP library so that it would compile for x86. Then the whole project could be made to compile on x86. I have done something like this in the history, but it is a lot of work, and not as good a proof for a working algorithm than running a real processor simulator with a real ARM binary.

Any tips for the easiest way forward? I think the need is quite common?

Parents
  • Hi, 

    It might be common to do this, but we don't seem to get that many support requests related to simulation. So not sure what the best approach would be unfortunately. Maybe it would be easiest to just run the test on the 52840 and use the UART interface to send the input file and receive resulting output file using realterm or similar as client. It should be possible to use Qemu (https://www.qemu.org/) to emulate the M4 on a x86 if that's preferred.  

Reply
  • Hi, 

    It might be common to do this, but we don't seem to get that many support requests related to simulation. So not sure what the best approach would be unfortunately. Maybe it would be easiest to just run the test on the 52840 and use the UART interface to send the input file and receive resulting output file using realterm or similar as client. It should be possible to use Qemu (https://www.qemu.org/) to emulate the M4 on a x86 if that's preferred.  

Children
No Data
Related