Problem with configuration of NRF CONNECT SDK

Hi,

I am following the course "nRF Connect SDK Fundamentals" and am almost at a standstill when it comes to progress.

I am still struggling with lesson 1 and lesson 2. I have managed to define a customer board with i2c, buttons and leds, but when I want to test the board with some of the nrfx examples, nothing works.

There is something in the setup that I don't understand at all.
If I select the example "blinky" from folder: nrf/samples/zephyr/basic/blinky, I get lot of errors when I add the build configuration with my card. If I use the PCA10056 card, I get generated and built without errors, but no main.c file is generated.

If I select the blinky example from folder: zephyr/samples/basic/blinky, it works with my board (the board is tested with app developed by using nRF5 SDK) and PCA10056 without errors or warnings.

I think the problem is tied to configuration of the SDK, but I can't figure out what is wrong.

Does someone have an idea of what could be wrong?

BR, Svein

Parents
  • Hi Svein,

    There are two blinky samples, and according to the Fundamentals course, you are supposed to work with the zephyr/samples/basic/blinky sample and I can see that this works well for you.

    but no main.c file is generated.

    That's expected, because when you build a sample, no main file will be generated. A main.c file is something that you need to include in the project file before building. When you create an application from the blinky sample, the main.c file should be copied from the sample directory to your application directory.

    Since the other sample you are trying, nrf/samples/zephyr/basic/blinky, is an nrf-specific sample, you might need to include some additional configs, or requirements maybe. You might be able to find out what you need to do by analysing the error that you get. For custom board development with nRF Connect SDK, you can also go through the  DevAcademy Lesson 3 

    -Priyanka

Reply
  • Hi Svein,

    There are two blinky samples, and according to the Fundamentals course, you are supposed to work with the zephyr/samples/basic/blinky sample and I can see that this works well for you.

    but no main.c file is generated.

    That's expected, because when you build a sample, no main file will be generated. A main.c file is something that you need to include in the project file before building. When you create an application from the blinky sample, the main.c file should be copied from the sample directory to your application directory.

    Since the other sample you are trying, nrf/samples/zephyr/basic/blinky, is an nrf-specific sample, you might need to include some additional configs, or requirements maybe. You might be able to find out what you need to do by analysing the error that you get. For custom board development with nRF Connect SDK, you can also go through the  DevAcademy Lesson 3 

    -Priyanka

Children
No Data
Related