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
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
Hi
Are you using one of the examples in the nRF5 SDK as a starting point?
If so, which one are you using?
The zip file you sent me contains source files only, but no projects files or make files.
Best regards
Torbjørn
Hi
Are you using one of the examples in the nRF5 SDK as a starting point?
If so, which one are you using?
The zip file you sent me contains source files only, but no projects files or make files.
Best regards
Torbjørn
Can I just dumb that c file in the twi sensor program by just copy pasting it
And including the .h file in the libraries
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
if i do that i am getting so much errors

can you just rectify how to make up with this
i just copied the twi sensor file and added the adxl375.c file
and that main.c file into application folder ,but error is comming
Hi
Are you able to zip the entire SDK folder, including your example, so that I can check how you have put it all together?
Best regards
Torbjørn
sorry for the delay,
inside the zip folder
example --> my_name --> twi_sensor_modified