Thanks for the reply. Yes, I built the Nordic FFT already using Segger IDE along with the UART and SAADC examples. Had to use Segger Studio Arm 5.42a because most of their examples are 4 years old or older and Segger since changed to v8, merged two hardware IDEs into one, along with Nordic SDK changed as well so their latest SDKs are not backwards compatible.
Using the old Segger version 5.42a, I compiled the Nordic FFT example for a PCA10059 dongle fine. I had to change memory allocation in Segger IDE from PCA10056 to PCA10059, because its smaller and requires different memory addresses and Nordic did not have the example for the PCA10059 dongle.
But then realized that I cannot interface with it, because as of a few years now they moved to using their idiotic NRF-LOG, NRF_LOG_RAW print statements and the putty serial that was advised by Nordic did not work at all. My python is quite lacking.
And the Nordic CONFIG.h file has 4000 lines which I had to review/change at every example, since each example required a different enabling. And their libraries were also scattered around each example. Finally I noticed that they have a template project that has all the libraries included.
Then I bought a PCA10056 52840 DK and tried to merge the UART, FFT, and SAADC examples. But there is no auto-merge feature (at least not without a workaround in Segger) so must “add existing project” to current project and then by hand transfer the codes in the proper places, etc.
During testing a preliminary merged code with my J-Link Edu Mini and NRF Desktop Connect → Programmer the SDK board got bricked where even with Segger’s various tools were not able to repair. I opened a ticket with Nordic Dev Zone and waiting since all their usual fixes did not work.
I did ChatGPT also and tried the various codes, ArduinoFFT and arm-math versions, but the ones I found are too slow and wonky. I also transferred the Nordic FFT into Arduino into arm.math and compiled ok finally, but could not get the any results to Serial out, because I was not able to figure out how to translate the NRF_LOG forms into a Arduino IDE language. I also do not trust that the Arduino IDE takes advantage of the native Nordic codes to make the nRF52’s ADC run at max 200Khz and FFT at 4096 samples that can read/process a 10us burst sine wave.
I have a working FFT code in Arduino IDE using Teensy 4, but that’s an overkill at 600Mhz CPU and also eats 100mA. That’s why my original board was the XIAO 52840 and still want to use it.
Until my Nordic 52840 SDK is not working, I am stuck with the Nordic 52840 dongle, if I want to use the Nordic FFT example.
What I would appreciate help with is:
1. an example of the Nordic FFT that has UART added to it, or some other way to read AIN0 (A0) and feed that into the Nordic FFT example.
OR
2. Assist with “translating” the Nordic NRF_LOG into Arduino IDE print so I can do a Serial.print of the FFT results.