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

NR52/SDK PC Emulator

Hi,


We have released multiple products with the NRF52832 chip with SDK's ranging from 10.x to 14.x, quite successful so far.

However, one part that is lacking in my opinion is a PC build/emulator of the firmware that can run test scenarios at PC speeds and without the hassle of trying to run the production firmware on the actual product through very many possible scenarios for integration testing. (although the latter method is superior to a PC simulation in accuracy and relibality, but can cost long time=$$$)

This is how I can imagine the above-mentioned PC build:

- Emulate all NRF52 peripheral/inputs, such as ADC channels, GPIO inputs, timers, etc.

- Inputs such as ADC would be read from an input timestamped file, which determines what value each channel is reading at what time (e.g. uptime reference). 

- NRF52 outputs: I imagine emulating a e.g. PWM signal output would be difficult (It's possible though with a DAC board). But perhaps just visualized or dumped into a timestamped CSV file which states the state of each output at the time of change.

- BLE operation could be emulated with a BLE dongle, but again that may be too complicated, so let's say BLE not required for now.

- It would be great if FreeRTOS is included, as we do use it in all of production firmwares. This way the multitasking/signalling between tasks (queues, semaphores, mutex, etc.) would be tested too.

- All of the above compiled into a executable with CSV files as inputs/outputs and ran on windows via CMD given the arguments.

I did quite a bit of searching and found no related posts. Hopefully I am not crazy Smiley

I imagine other developers running into the same question, any insight or leads to how I can compile our firmware to run on PC would be appreciated.

Thank you all and happy holidays,

Farhang

Related