This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Segger can't find all sorts of files

For a moment I was thinking that I made it with Segger, I was thinking that after 3 days with Eclipse with no success, I managed to use the blinky example and flash it (!)

Then it started. I was trying to use the blue_hrs new project, or even a template project, I use the guide from here , which worked with blinky but with any other project is not compiling.

Here are all the strange errors :

image description

Also my preprocessor looks different from the guide in the ble example ( but not in the blinky-why?)

image description

After adding what the comment said here I get all of these errors : image description

Under user included directories I have this :

../../../../../../components/device $(PackagesDir)/CMSIS_4/CMSIS/Include ../../../config ../../../../../../components ../../../../../../components/ble/ble_advertising ../../../../../../components/ble/ble_dtm ../../../../../../components/ble/ble_racp ../../../../../../components/ble/ble_services/ble_ancs_c ../../../../../../components/ble/ble_services/ble_ans_c ../../../../../../components/ble/ble_services/ble_bas ../../../../../../components/ble/ble_services/ble_bas_c ../../../../../../components/ble/ble_services/ble_cscs ../../../../../../components/ble/ble_services/ble_cts_c ../../../../../../components/ble/ble_services/ble_dfu ../../../../../../components/ble/ble_services/ble_dis ../../../../../../components/ble/ble_services/ble_gls ../../../../../../components/ble/ble_services/ble_hids ../../../../../../components/ble/ble_services/ble_hrs ../../../../../../components/ble/ble_services/ble_hrs_c ../../../../../../components/ble/ble_services/ble_hts ../../../../../../components/ble/ble_services/ble_ias ../../../../../../components/ble/ble_services/ble_ias_c ../../../../../../components/ble/ble_services/ble_lbs ../../../../../../components/ble/ble_services/ble_lbs_c ../../../../../../components/ble/ble_services/ble_lls ../../../../../../components/ble/ble_services/ble_nus ../../../../../../components/ble/ble_services/ble_nus_c ../../../../../../components/ble/ble_services/ble_rscs ../../../../../../components/ble/ble_services/ble_rscs_c ../../../../../../components/ble/ble_services/ble_tps ../../../../../../components/ble/common ../../../../../../components/ble/nrf_ble_qwr ../../../../../../components/ble/peer_manager ../../../../../../components/boards ../../../../../../components/drivers_nrf/clock ../../../../../../components/drivers_nrf/common ../../../../../../components/drivers_nrf/comp ../../../../../../components/drivers_nrf/delay ../../../../../../components/drivers_nrf/gpiote ../../../../../../components/drivers_nrf/hal ../../../../../../components/drivers_nrf/i2s ../../../../../../components/drivers_nrf/lpcomp ../../../../../../components/drivers_nrf/pdm ../../../../../../components/drivers_nrf/power ../../../../../../components/drivers_nrf/ppi ../../../../../../components/drivers_nrf/pwm ../../../../../../components/drivers_nrf/qdec ../../../../../../components/drivers_nrf/rng ../../../../../../components/drivers_nrf/rtc ../../../../../../components/drivers_nrf/saadc ../../../../../../components/drivers_nrf/spi_master ../../../../../../components/drivers_nrf/spi_slave ../../../../../../components/drivers_nrf/swi ../../../../../../components/drivers_nrf/timer ../../../../../../components/drivers_nrf/twi_master ../../../../../../components/drivers_nrf/twis_slave ../../../../../../components/drivers_nrf/uart ../../../../../../components/drivers_nrf/usbd ../../../../../../components/drivers_nrf/wdt ../../../../../../components/libraries/bsp ../../../../../../components/libraries/button ../../../../../../components/libraries/crc16 ../../../../../../components/libraries/crc32 ../../../../../../components/libraries/csense ../../../../../../components/libraries/csense_drv ../../../../../../components/libraries/ecc ../../../../../../components/libraries/experimental_section_vars ../../../../../../components/libraries/fds ../../../../../../components/libraries/fstorage ../../../../../../components/libraries/gpiote ../../../../../../components/libraries/hardfault ../../../../../../components/libraries/hci ../../../../../../components/libraries/led_softblink ../../../../../../components/libraries/log ../../../../../../components/libraries/log/src ../../../../../../components/libraries/low_power_pwm ../../../../../../components/libraries/mem_manager ../../../../../../components/libraries/pwm ../../../../../../components/libraries/queue ../../../../../../components/libraries/scheduler ../../../../../../components/libraries/slip ../../../../../../components/libraries/strerror ../../../../../../components/libraries/timer ../../../../../../components/libraries/twi ../../../../../../components/libraries/uart ../../../../../../components/libraries/usbd ../../../../../../components/libraries/usbd/class/audio ../../../../../../components/libraries/usbd/class/cdc ../../../../../../components/libraries/usbd/class/cdc/acm ../../../../../../components/libraries/usbd/class/hid ../../../../../../components/libraries/usbd/class/hid/generic ../../../../../../components/libraries/usbd/class/hid/kbd ../../../../../../components/libraries/usbd/class/hid/mouse ../../../../../../components/libraries/usbd/class/msc ../../../../../../components/libraries/usbd/config ../../../../../../components/libraries/util ../../../../../../components/softdevice/common/softdevice_handler ../../../../../../components/softdevice/s132/headers ../../../../../../components/softdevice/s132/headers/nrf52 ../../../../../../components/toolchain ../../../../../../external/segger_rtt ../config

Here is the project file with all steps : project

  • Have you tried reading the error message? I don't see any strange error messages there, I see a nice big red X on exactly the line there's a problem .. let's see what it says

    Error: Device Must Be Defined
    

    The big red X error literally is on the right line in the header file and you can see that you only get there if neither NRF51 or two other defines are actually defined. So you need to set up some preprocessor definitions. That's in properties on the solution or the project or at quite a few levels, you need all those which were in the makefile.

    I would normally point out at this point that SES does a pretty good job of importing IAR files (it's on the File menu). However it does a pretty good job but it's rarely perfect and you normally have to exclude a file or two or tweak a couple of settings to get it to work. It's slightly worse at Nordic projects than it is at things like Atmel projects because the softdevice tends to need some hard to guess properties, but it's a good starting point.

    I applaud you for moving on from Eclipse, which I really hate, and trying SES, I know you're tired, but if you learn SES it's a great product and it will do whast you need, so stick at it.

  • I didn't have to do anything like that with the hrs example on SDK13. But I run it on Windows so maybe that is the case. I don't know if this works but I uploaded my project file for the hrs example. As I said I don't know if that works (but it's worth a try). link text

  • Thats a full answer that means nothing but arrogance. What do I take from it? what are the steps to remove the errors ? why they are not in the tutorial ? anyway I'v added the NRF52 device symbol to the preprocessor and now I have just 1 error , a different one , system_nrf52.h not found, which is amazing, first because I can see it together with the .c right in front of my face, and second, because the guide said you only need the system_nrf52.c , so Segger seems more and more like something from 1998 , and I am so tried, you have no idea how tired I am, and I haven't even wrote a single line of code . YAK !!!!

  • Starting with Nordic was my biggest mistake, buying 50 cheaps, dev kits, which I am going to put right in the garbage, because I hate it so much . Some companies still do not understand how to build tools for 2017 , and get over 1995 . GOD ! I HATE THEM !

  • Hi, Lola.

    From the picture you attached with the preprocessor definitions, it seems that you might have missed the

    • step editing the build configuration: Select Project -> Build Configurations... and under Public Configurations select flash_s132_nrf52_3.0.0_softdevice and delete it by clicking the - symbol in the upper right-hand corner of the pop-up window.

    Try doing this, and then include the device directory again.

Related