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

dumping code in NRF52832

hiii friends,

i have developed new board using nRF52832 xxAA. i am dumping code in this using nrf52 DK and it is working fine but when i am removing power from this and reconnect power it is not working. but at same time if i dump simple LED program, then i am not getting this problem means after removing and reconnect power it is working fine.

now i see code is dumped correctly but every time it needs nrfgo studio to turn on the board. i.e. simply i open nrfgo studio and click on segger and my board starts.

why every time it needs this process after removing power.

what might be the problem. can any one help me with this.

  • thank you sir this problem is solved. some power issue were there that has been sovled.

  • so how about posting a 10 line answer which explains what the problem was so the next person with a similar issue can find it and solve it. "some power issue" doesn't really tell anyone what you found. If you can spell it out in more detail it helps the next guy.

  • @Rahul I agree with RK. It would be very useful if you could post a more detailed solution to help other people that have a similar problem in the future. Just post it as an answer because people have a tendency not to read the comments & only focus on the answer :)

  • sure sir, once i got confidence what actually happens then i will definitely elaborate in answer. for now it is like i have two supply one through USB and another is battery. i was trying through battery and then i tried through USB and it is working. i am checking what actually happens when i get proper solution, i will definitely post answer. Thank you sir

  • i have given small delay in mpu section and now it is not stuck when power is on and off.

    void mpu_setup(void) {

    nrf_delay_ms(25);

    ret_code_t ret_code;
    // Initiate MPU driver
    ret_code = mpu_init();
    APP_ERROR_CHECK(ret_code); // Check for errors in return value
    
    // Setup and configure the MPU with intial values
    mpu_config_t p_mpu_config = MPU_DEFAULT_CONFIG(); // Load default values
    p_mpu_config.smplrt_div = 19;   // Change sampelrate. Sample Rate = Gyroscope Output Rate / (1 + SMPLRT_DIV). 19 gives a sample rate of 50Hz
    p_mpu_config.accel_config.afs_sel = AFS_2G; // Set accelerometer full scale range to 2G
    ret_code = mpu_config(&p_mpu_config); // Configure the MPU with above values
    APP_ERROR_CHECK(ret_code); // Check for errors in return value 
    

    }

Related