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

  • Hi,

     

    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?

    Unfortunately, we do not have an example of a basic baremetal application for nRF5340.

    That being said, we do provide a standalone package with startup files and system files (erratas implementations etc) which is named "nRF MDK":

    https://www.nordicsemi.com/Products/Development-tools/nRF-MDK/Download?lang=en#infotabs

     

    You will find startup files for all nRF5-series and nRF9160 in the above .zip file.

     

    Kind regards,

    Håkon

  • 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?

  • 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?

     

Related