Hi
The compiling of standard TWI sensor example is giving me an error with SES.
Please find attached a snapshot of the issue.
Need your help ASAP. Thanks
Chandra
Hi
The compiling of standard TWI sensor example is giving me an error with SES.
Please find attached a snapshot of the issue.
Need your help ASAP. Thanks
Chandra
Hi,
Looks like you have changed something in the example, most likely the sdk_config.h file. What did you change?
If you intended to use the example without modifications, please download the SDK again and extract a clean copy to your PC.
Best regards,
Jørgen
Hi Jorgen
No changes. I opened the default example using NRF52 SDK 15.2.0 using SES compiler and had an error on the initialization of TWI_INSTANCE.
Let me know next steps. I am using Windows 7 (x64).
Best
Chanrda
The unmodified example does not generate any compile errors (I just tested this). Please try with a fresh copy of the SDK.
Hi Jorgen
Thanks for the info. Yes, with a fresh copy it is working.
If I change sdk_config.h for one example, will it affect other examples also. In the previous case, I changed sdk_config.h for another example and this one got messed up without any changes on the current sdk.h.
Also, what is the difference between TWIM_ and TWI_.
One final question:
1. For a standard BT example (like say BLE_APP_UART), if I want to add a TWI sensor, what is the procedure
2. Macros required (say TWI_ENABLED 1 or so)
3. Where to define them ? In Prj->Options->Preprocessor or sdk_config.h
Thanks,and Regards
Chandra
The sdk_config.h file is not shared between projects, only between different IDEs for one example/board. Drivers and libraries on the other hand, are shared between all examples in the SDK.
TWI is a legacy peripheral, included mainly for backwards compatibility with nRF51 series. It is deprecated in the nRF52 series, and TWIM peripheral should be used. TWIM peripheral support EasyDMA, allowing you to transfer and receive data on TWI without CPU usage. The data is transferred directly to/from RAM.
If the parameter say it is NRF_CONFIG macro, it should be placed in sdk_config.h. If the config is not already present in the sdk_config.h file of your project, I recommend copying the entire section related to that module from another example project's sdk_config.h file, e.g. the twi_sensor example.