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

Baremetal Application Example and CPU setup source files.

Hi there, 

We are looking for an example application for the nRF5340 DK that runs a very basic baremetal application. All sample applications seems to be using the Zephyr OS. Could you please point me to such an application?

We are planning on using a different real time embedded framework than Zephyr. We thus require all the essential source files that sets up the CPU prior to the main function executing. Where can I find these files? We want to include these files directly in the IDE so that we have full control over it and can edit it if ever necessary?

Regards,

Frikkie

Parents
  • Is there a specific reason that there are no baremetal example applications available? Possible to add this in future? 

    The problem with this nRF MDK is that it containt a lot of startup files, but unfortunately no documentation/guidelines are given on which files to use?

    Is it still possible to use the nRF Connect SDK when the Zephyr OS is not uses?

Reply
  • Is there a specific reason that there are no baremetal example applications available? Possible to add this in future? 

    The problem with this nRF MDK is that it containt a lot of startup files, but unfortunately no documentation/guidelines are given on which files to use?

    Is it still possible to use the nRF Connect SDK when the Zephyr OS is not uses?

Children
  • Hi,

     

    Frikkie Badenhorst said:

    Is there a specific reason that there are no baremetal example applications available? Possible to add this in future? 

    The problem with this nRF MDK is that it containt a lot of startup files, but unfortunately no documentation/guidelines are given on which files to use?

    This is a supporting low-level device library, including register definitions, chip capability definitions, and startup scrips and system files (errata workarounds), which is meant to plug into a SDK, like NCS.

    You need to include the startup asm file and system .c file for your chosen device.

     

    Frikkie Badenhorst said:
    Is it still possible to use the nRF Connect SDK when the Zephyr OS is not uses?

    nRF Connect SDK has a direct dependency on Zephyr RTOS. Simple examples will still include the zephyr OS, although it will not look like it from an application point of view. Please see samples like zephyr/samples/hello_world.

     

    Kind regards,

    Håkon

  • Thanks Håkon.

    It would still be nice to have a baremetal example application for reference.

  • Hi Håkon,

    We are still new to the Nordic SDK and products and will thus have some more simple questions:

    nRF Connect SDK has a direct dependency on Zephyr RTOS. Simple examples will still include the zephyr OS, although it will not look like it from an application point of view. Please see samples like zephyr/samples/hello_world.

    We are playing around with the examples on the VS Code extension. However we want to exclude the Zephyr OS completely from the project, but this does not seem to be possible? We try to remove 

    find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE}) from cmakelists.txt, but just get a whole bunch of issues? Could you please advise how we can develop without using the Zephyr OS?

     

  • Hi Håkon,

    Are there any update on this?

    Maybe some more context on what we want to achieve:

    We want to get our existing application ported to the nRF5340 application core. Our current application uses a different real time embedded framework than the Zephyr OS (which we also want to use on the 5340 application core), hence we want to get a baremetal application running first so that we can start implementing the other OS.

    When it comes to the network core, like bluetooth and 802.15.4 stacks, we will use the existing Zephyr RTOS.

    Hence in summary, the network core will be running the Zephyr RTOS and the application core will be running the Zephyr RTOS as the bluetooth or other stacks may require.

    Is this even a possibility?

    Please advise ASAP.

    Thanks

    Frikkie

  • Hi Frikkie,

     

    As mentioned, we do not have any bare metal implementation examples for nRF5340. As mentioned, we do supply the startup and system files, through the nRF MDK delivery available on our website, but you will have to include Zephyr OS in your project if you use NCS.

     

    If you want to setup a bare metal example, you have to do this from scratch.

     

    Kind regards,

    Håkon

Related