This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

how to modify a custom board after creation

Hello, Support

I am new to Nordic and try to follow the tutorial video here https://www.nordicsemi.com/Products/Development-tools/nRF-Connect-for-VS-Code/Tutorials

Just created a board and build, but later I need to add a few things to my board - like LED or a button. is there a way I modify the board already created and rebuild? or do I have to create a new one? 

I am using VS and SDK version of v1.9.0.

Regards!

Ping

Parents
  • Hello, Priyanka

    Thanks for reply, I am only trying the blinky sample, try to do it on a custom board - the Fanstel one, I copied the gpio-leds and aliases part into the device tree file *.dts when I created the board, and build seems fine, but it doesn't run. When I debug it, the device_get_binding() function returns 0,   what else do I need to do in order to run that on my custom board please. I created the board under myMroject folder. And use VS Code for IDE. 

    Regards! I am sorry to bother you, I am new to Zephyr and Nordic. 

    Ping

  • Hi,

    No problem at all Slight smile. This could be because you have not created a device struct. Details regarding this has also been covered in the Tutorial that I have linked earlier. You could take a look at the Board Porting Guide and also at the Device Driver Model.

    -Priyanka

Reply Children
  • Thanks, where shall I create a device struct please? is it the .yaml file I need to create? could you please give an example? it is just for the blinky example, hope that is not complicated. I am sorry, it is seem snot easy as i use VS code IDE, not directly form command line.

    Regards!

    Ping

Related