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

nRF51 code exported from mBed to Keil - Problems with SoftDevice

Hello,

I developed a program for nRF51-DK with mBed. The program uses the S130 V1.0.0 SoftDevice and it works great, when compiled with mBed. Recently I tried to export it to uVision 5: it compiles OK, but it doesn't run past the SoftDevice initialization.

Specifically:

  • If I have it run, it crashes upon SoftDevice initialization and the debugger reports an "Hard Fault";
  • If I single step the program with the debugger, I'm able to have the program run past BLE initialization but it then crashes once the first timer is created and the "Hard Fault" is displayed (the problem might be related to interrupt handling?)

The procedure and the Keil options that I'm using are the following:

  • I erase the board with nRFgo Studio and I load the SoftDevice S130 V1.0.0
  • Keil is set up to use nRF51822_xxAA, Xtal (MHz) set to 16.0
  • IROM1 settings: Start at 0x1C000, Size 0x25000
  • IRAM1: Start at 0x20002800, Size 0x4000

Thanks for any help!

Parents Reply Children
Related