creating generic BIST or other feature in zephyr ncs

hello Nordic

i am working with nrf52840 with ncs (on the process of moving to 1.8 currently 'v2.6.99-ncs1-1' )

i have several sensor drivers on my board and flash driver i want to build a bist (builtin self test) which will call for a test for each one of them, and will be generic, so if i make some changes on my board i would only have to update the device tree and not have to update the bist itself

i know there is a way to use the device tree to achieve such generality 

it would be great to get some ideas and directions

and if zephyr has something already builtin for bist of components it will also be great to know

hope to read from you soon

best regards

Ziv

Parents Reply
  • hi Sigurd

    my goal is to built a module that runs self tests of the drivers on my boards in a way that will be agnostic to changes in boards, meaning the only change i will do if i have a different sensor for example, on one of the boards, then i will only have to change the device tree and add the relevant driver in the driver layer.

    my idea is that the bist module go over a list of drivers in the device tree and call on some bist api that should be implemented on the driver level and should also be added somehow to the driver api .. this is the direction i was thinking of .. 

    but what i am looking for is to know if there is a more elegant way to achieve that in a different, maybe built in, method

    hope to read from you soon

    best regards

    Ziv

Children
Related