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

when i was interfacing with adxl375 with nrf52840 error

https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ADXL375_5F00_I2C.zip

i was using the code from above link 

my sdk is 16

when i run the code ,i get an error like

Output/twi_sensor_pca10056 Release/Obj/thumb_crt0.o: in function `memory_set':

undefined reference to `main'

what should i do to rectify this?please help me

Parents Reply
  • Hi 

    I would copy the entire example first, so you don't have to modify the original example. 

    You can make a separate sub folder in the examples folder for all your own projects, and as long as you keep it on the same level all the examples will work. 

    For example, you can copy the \examples\peripheral\twi_sensor project into \examples\YOUR_NAME\twi_sensor_modified. 

    Once you do that you can put your c and h files next to the main.c file for simplicity, there is no need to put them into the SDK libraries folder. 

    Best regards
    Torbjørn

Children
Related