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

IAR + Debugging won't hit main

I am new to the Nordic Enviornment am having problem getting my first application running.

I am using IAR 7.40 with the nRF mbed dev board that has a nRF51422 on it. I have programmed the S110 SoftDevice on the board using the nRFgo Studio and am trying to run and debug the ble_app_uart example.

Everything compiles and downloads without warnings or errors. BUT for some reason it won't run to main on startup. When I pause the debugger...

The disassembly appears to be here: 0x164ca: 0xe7fd, B.N 0x164c8

Did I miss something in my setup?

Ryan

  • In Project Options - Debugger->Setup enable Run to main. In Debugger->Extra Options enable Use command line and add --drv_vector_table_base=0x0

  • those were already set, no luck...

  • I found the problem...

    when it was downloaded I clicked "No" when J-link asked if I wanted to pick the specific ARM device.

    Note to everyone else... make sure you say yes and select the proper Nordic Part or else it won't work!

    -Ryan

  • Go Project Options->C/C++ Compiler->Output and Check 'Generate output information'