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

Porting example about twi and HID keyboard

Hi, all.

I want data read from gyro sensor through i2c, and then send it through bluetooth equipment.(PC or iPhone and so on) My development environment is like below.

  • chip : nRf51822
  • example version : nRF_Example 10.0.0
  • pack version : check the attached file(pack_list.PNG)
  • Applied "RTT source" for debugging. have no uart port on the board. : devzone.nordicsemi.com/.../

At first, i did test like below.

  • [ble_app_hids_keyboard] : operation check completed.
  • [twi_sensor] : operation check completed
  • [twi_master_using_app_twi] operation check completed
  • [ble_app_hids_keyboard + twi_sensor] : operation check completed
  • [ble_app_hids_keyboard + twi_master_using_app_twi] : Error occured => I want this feature.

Source build is ok. But when excute the program, it does not working. I guess the problem is for "rtc_config()" function, but it is not sure.

main function is consist of like below: image description

Plseas kindly comment for resolving this issue.

Parents
  • By project files I meant all the .c and .h files you use in addition to the files you posted. The reason I want those is that it will make it much easier and faster for me if I can compile your code myself and navigate around your project and debug it. The more information and specific details you can provide the faster you will get help. "Error occured => I want this feature", for example, tells me little to nothing. Especially when I don't have any files to debug on. So:

    1. Why do you suspect rtc_config() is causing the issue?
    2. Can you provide me with more details about the occurring error?
    3. Are you able to debug you code yourself, maybe using the APP_ERROR_CHECK() macro like described here?
    4. Can you provide the rest of you code?
Reply
  • By project files I meant all the .c and .h files you use in addition to the files you posted. The reason I want those is that it will make it much easier and faster for me if I can compile your code myself and navigate around your project and debug it. The more information and specific details you can provide the faster you will get help. "Error occured => I want this feature", for example, tells me little to nothing. Especially when I don't have any files to debug on. So:

    1. Why do you suspect rtc_config() is causing the issue?
    2. Can you provide me with more details about the occurring error?
    3. Are you able to debug you code yourself, maybe using the APP_ERROR_CHECK() macro like described here?
    4. Can you provide the rest of you code?
Children
No Data
Related