TLDR; How do I access GPIO and other peripherals via SEGGER IDE without using Zephyr when creating a new project as "New > New Project > Nordic A C/C++ Executable". Please don't say "read the beginner guide" or "see the online documentation" because it has done nothing but confuse me.
Hi,
I have finally gotten the nRF5340 DK to connect and accept new programs using the SEGGER IDE (the Visual Studio Code implementation is extremely confusing and poorly laid out).
While I understand that the Zephyr RTOS will be advantageous in the long run, I am instead more interested in programming the chip like a PIC, AVR, or STM32.
Thus, my first goal is to get an LED to blink using the HAL and NOT via Zephyr. I have seen other examples that use functions such as nrf_gio_cfg etc but I have no clue what files need to be included to make that work. Online examples of using these functions return "include file not found" or "unknown functions" which means that whatever those examples online were included, my project does not have.
I tried to create a project based on the peripheral templates, but that included loads of Zephyr libraries which is not what I want. I don't want to use Zephyr or any other supporting systems as they overcomplicate the programming process, and I want to write a series of tutorials on the nRF53 that make it much easier to use. For example, this is what I want for the nRF:
#include <nrf_gpio>
set_pin_mode(13, OUTPUT);
write_pin(13, HIGH);
I don't want to have 20 lines of setup codes with structs and other complicated messes (essentially, the most basic way to interact with the various peripherals including UART, I2C etc.)
All the best,
Robin