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

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

Reply Children
No Data
Related