I am working on a neuroengineering project using Visual Micro and Arduino 1.8 IDEs (blog.trask.dk). The project is pushing the limits for Nano BLE, so I plan to rely on low level mbed features for reaching optimal code.
For the purpose of enabling persistent storage, I was able to use the FlashIAPBlockDevice class by simply having the compiler define DEVICE_FLASH (along with some code similar to what is described here:Implementation of files read/write on flash memory. · Issue #16 · arduino/ArduinoCore-nRF528x-mbedos · GitHub ).
For the purpose of optimizing my algorithms, I thought I could then simply define MBED_CPU_STATS_ENABLED and I would then get access to the processor statistics via a call to mbed_stats_cpu_get, but the returned stats seem to all be zeros! ???
I must be missing something. Is there a way to enable low level mbed components required for our projects, or are we stuck with what was in the default build of mbed?