I'm looking through the NRFX library and specifically the CONFIG_BSD_LIBRARY_TRACE_ENABLED feature and would like to know if it would be possible to redirect the trace output to a file on an SDHC card. Our device is going to be difficult to access and also tight on GPIO pins, but will have an SDHC card. We are already planning on capturing other types of debug information to the SDHC card, such as logging output, and I'm trying to evaluate how we might handle debugging more complicated modem issues in the field.
From a quick glance, I think I might just be able to provide new equivalents for trace_uart_init and bsd_os_trace_put. Unfortunately, I'm not as ertain about what is going on with trace_proxy_irq_handler and trace_task_create and whether I'm likely to run into an issue there. It looks to me like they're attaching a handler to a trace interrupt, and then having the interrupt handler call into bsd_os_trace_irq_handler in the NRFX library, which then presumably calls back out to bsd_os_trace_put. Are there any weird gotchas about the interrupt?
These look like they were meant to be re-writable handlers, but there's no information I can find about them in the NRFX or NCS documentation. I'm just trying to confirm I'm not mistaken before we lock down our schematic without a second UART and I end up struggling to debug this down the road.