Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Putty Console Output for nRF52840DK Connected to Accelerometer

Hi,

My project involves an nRF52840 DK connected to an accelerometer on a breadboard, connecting to my Mac via USB-micro. 

I'm editing the twi_scanner SES project so that my accelerometer can communicate with the DK via the TWI protocol. I've been reading the MC6XX development guide and have successfully linked the accelerometer header and c files to my main project in SES. I've included a URL of the depository including the relevant header and c files, as well as the development guide that I used to configure the accelerometer: https://github.com/mcubemems/mCube_mc36xx_mcu_driver/commit/dac7f2563d96c4cf4832043f591efcd588406fb3#diff-e8ae2a21c5c57fe1152156108c92aad842f38a4e18b01ebb6ad72aa4760f65d9 

I'm stuck on how to initialise the accelerometer to be able to read the X, Y and Z values for it. When I build, connect J-Link, download the project and launch the program using Putty, the code outputs the following: 

I need this solved by today so any help would be appreciated, thanks! 

Related