Hello,
I am currently developing a driver for the ADS1293 from Texas Instruments.
As there is no suitable API for a "EKG AD-Converter" i am not using any overlay API like the Sensor Api.
I am referencing the ADXL372 Interrupt Driven Driver as a Base for processing incoming Data via a Driver internal Thread.
My Problem as stated in the Title is that i cannot allocate a Buffer for a Pipe in the Driver internal Thread.
Im trying to Initialise a Pipe using the:
int k_pipe_alloc_init(struct k_pipe *pipe, size_t size)
Function.
It Returns the -ENOMEM Error indicating that it cannot Allocate Memory for the Pipe
This problem also extends to allocating a Buffer on the Thread stack like so:
uint8_t isr_rx_buf [10];
The Project Config i use is
Im building for a Costum Board Target based on the NRF53 specifically for the nrf5340_cpuapp_ns target
Any Help or Insight on how Kernel Threads and Stacks work in Zephyr would be greatly appreciated
The relevant Driver Snippets can be found here: ads1293_sample.rar
Please note that the Code is unoptimized and filled with LOG_DBG calls as i dont know exactly why it crashes.