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

How to run ble_app_hrs project?

Hello, I have major problem trying to debug/run ble_app_hrs example. The thing is that when I enter debug mode the code is stuck here:


0x000001B4 4908      LDR      r1,[pc,#32]  ; @0x000001D8
0x000001B6 68C9      LDR      r1,[r1,#0x0C]
0x000001B8 2900      CMP      r1,#0x00
0x000001BA D0FB      BEQ      0x000001B4

it doesn't even get to this timers_init();:


int main(void)
{
    uint32_t err_code;

    timers_init();

I really don't know what's the problem. I assume that it's hidden in startup or system files, but since I'm a beginner it's had to find solution. Could you help me, please?

I also tried to load built example from nRFgo Studio, but when I push "Button 0" LED0 doesn't start blinking, LED0 and LED1 are OFF.

P.S. I'm using Keil uVision 4

Parents
  • Yes, it looks like the chip is going to sleep immidately.

    Regarding your other question, post it as a new one so it gets more attention. Also, I think it has been answered before, that Nordic don't have docs right now on the matter, and even then I don't think you will get something for "total beginners". I guess you should learn how structs and pointers work to at least get the basic knowledge. Then you need to go step by step through the main function and look at the initializations that is being done.

    Regardless, the proximity example works, so that is good to know. I went through all the project settings and couldn't see anything particular that should make a difference that causes these problems. Lets hope someone has an answer for this :)

Reply
  • Yes, it looks like the chip is going to sleep immidately.

    Regarding your other question, post it as a new one so it gets more attention. Also, I think it has been answered before, that Nordic don't have docs right now on the matter, and even then I don't think you will get something for "total beginners". I guess you should learn how structs and pointers work to at least get the basic knowledge. Then you need to go step by step through the main function and look at the initializations that is being done.

    Regardless, the proximity example works, so that is good to know. I went through all the project settings and couldn't see anything particular that should make a difference that causes these problems. Lets hope someone has an answer for this :)

Children
No Data
Related