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

How to wire I2C for NRF 51822 with MPU 9250.What SDK should I use?

nRF5_SDK_11.0.0_89a8197 - with MPU.7zthis is how my nRF go studio looks with example blinky and works well. nRF5_SDK_11.0.0_89a8197 - Copy.7zI am trying to wire NRF 51822 over I2C with MPU 9250. If I should use the GPIO's where should I initialize the Pins . What SDK should I use?

  • The nRF51-chip on the PCA20006 have less RAM than the one on the PCA10028. So you have to adjust for that in Keil, "Options for target.."-> Target. Try to set the IRAM1 Size to 0x1F80, so that the total RAM sum up to 16kB.

  • I tried like you suggested. I also referred to here and tried other options aswell but no luck. Could you please try compiling and loading it in your system and let me know if anything is wrong with the code. I have added a comment below if it helps in any way. It says flash download success but doesn't do anything.


  • DLL: V5.10n, compiled Feb 19 2016 18:39:11 Firmware: J-Link OB-SAM3U128-V2-NordicSemi compiled Sep 26 2016 11:30:32 Hardware: V1.00 S/N : 682936269

    • JLink Info: Found SWD-DP with ID 0x0BB11477
    • JLink Info: Found Cortex-M0 r0p0, Little endian.
    • JLink Info: FPUnit: 4 code (BP) slots and 0 literal slots
    • JLink Info: CoreSight components:
    • JLink Info: ROMTbl 0 @ F0000000
    • JLink Info: ROMTbl 0 [0]: F00FF000, CID: B105100D, PID: 000BB471 ROM Table
    • JLink Info: ROMTbl 1 @ E00FF000
    • JLink Info: ROMTbl 1 [0]: FFF0F000, CID: B105E00D, PID: 000BB008 SCS
    • JLink Info: ROMTbl 1 [1]: FFF02000, CID: B105E00D, PID: 000BB00A DWT
    • JLink Info: ROMTbl 1 [2]: FFF03000, CID: B105E00D, PID: 000BB00B FPB
    • JLink Info: ROMTbl 0 [1]: 00002000, CID: B105900D, PID: 000BB9A3 ??? ROMTableAddr = 0xF0000000

    Target info:

    Device: nRF51422_xxAC VTarget = 3.300V State of Pins: TCK: 0, TDI: 1, TDO: 1, TMS: 1, TRES: 1, TRST: 1 Hardware-Breakpoints: 4 Software-Breakpoints: 8192 Watchpoints: 2 JTAG speed: 1000 kHz

    Erase Done. Programming Done. Verify OK. Application running ... Flash Load finished at 14:10:45

  • I tested the example in the folder: SDK_folder\examples\nrf5-mpu-examples-master\nrf5-ble-mpu-simple\pca10028\s130\arm5_no_packs\twi.

    After opening the example I changed the IRAM1 size to 0x1F80, and flashed the example. I used SoftDevice S130 v2.0.1.

    The beacon kit started advertising, and showed up as N/A(nRF Beacon) in nRFConnect mobile app.

  • My NRFgo studio has softdevice in Region1. Is that wrong? I have attached the picture of my go studio in the main question. I will try again anyway. Please let me know the starting address and size of ur ROM1 and RAM1 so that I can replicate the same.

Related