Bare Metal

Good morning.

I need to write an application without using any RF connectivity. I don t need and I don t want

the zephir. I see there are examples with SDK for everything I need. But there is no running project attached.

I have installed the command line tools and the VSCode. It works selecting a project and build. But all of them 

are zephir based. Is there a way to prepare a project without the zephir ?

In parallel what happens if with the project already prepared for zephir support I use the SDK bypassing the zephir

to initialize the hw??

Thank You

Pietro

  • Hi,

    Using the nRF Connect SDK (which is built on Zephyr) will make your life easier in a lot of ways.
    For example:

    • You will get access to our examples
    • You can easily use our drivers and libraries
    • Zephyr is an RTOS, giving you real time features such as scheduling
    • Our support team is familiar with the nRF Connect SDK, so you will get better support for the nRF Connect SDK (than just bare metal)

    An alternative which is more bare metal than the nRF Connect SDK would be the nRF5 SDK.
    See the nRF Connect SDK and nRF5 SDK statement for more information on this.

    So in short: I recommend using the nRF Connect SDK, and if that is not possible, I suggest the nRF5 SDK.

    There are some resources on how to work with the nRF chips bare metal, which I think you can find if you google "bare metal nordic semiconductor", but do not use this before you are certain that it is really what you want.

    Regards,
    Sigurd Hellesvik

  • Hi Sigurd

    I am very grateful for the follow up. I need an insight on a fundamental question.
    I see there is a support for the VScode as integrated development tool.
    For what I understand trying to use the procedure to setup the project with VSCode, the Zephir will be there without any option to exclude. 
    What is the option to use VSCode or something else, with the bare metal?
    If there is a video or procedure to prepare Eclipse or the Segger Embedded Studio tool to debug bare metal I
    would book the option to test before giving up the bare metal..

    I am hoping to stick to the bare metal with an IDE. If  it is not possible I will consider the Zephir.

    Thank You

    Pietro

  • Hi Sigurd

    I have downloaded the nRF5 SDK. Effectively I find the examples/peripherals I find the examples I need and the project I can open with the SEGGER tool. I am happy with this step.
    Can You describe the content of the s122nrf52800.zip ???
    Many heders begin with ble_..
    It could be a basic question but I am beginning ...
    Thank You

    Pietro

  • Sorry I am going on with testing

    I am using the SEGGER IDE. 

    Using the examples in the nRF5 SDK I always get the message

    2> C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 7.22/gcc/arm-none-eabi/bin/ld: error: .text section is larger than specified size
    2> C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 7.22/gcc/arm-none-eabi/bin/ld: error: .rodata section is larger than specified size

    Is there a known issue to be fixed??

    Thank You

    Pietro

  • pietrodcs said:
    What is the option to use VSCode or something else, with the bare metal?

    VS Code can be used as only a text editor, and then you can build for bare metal in other ways.
    The nRF Connect for VS Code extension has a set of features supporting developement for nRF Connect SDK with VS Code, but you can just not use this if you do not want the nRF Connect SDK.

    The same ise true for Segger Embedded Studio: It can be used as an text editor, but it has a set of features making it easier to use it for the nRF5 SDK.

    pietrodcs said:
    Can You describe the content of the s122nrf52800.zip ???

    This is a SoftDevice

    pietrodcs said:

    Sorry I am going on with testing

    I am using the SEGGER IDE. 

    Using the examples in the nRF5 SDK I always get the message

    2> C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 7.22/gcc/arm-none-eabi/bin/ld: error: .text section is larger than specified size
    2> C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 7.22/gcc/arm-none-eabi/bin/ld: error: .rodata section is larger than specified size

    Is there a known issue to be fixed??

    I suggest following Getting started with nRF5 SDK and SES (nRF51 & nRF52 Series) to learn how to do this.

    Btw, if you redecide and want to use the nRF Connect SDK( which use Zephyr), we have a really good getting started guide at https://academy.nordicsemi.com/

    Regards,
    Sigurd Hellesvik

Related