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

PTR5518 module doesn't work (nrf51822)

Hello,

I'm trying to program that module, but i can't do it correctly.

I'm using a program that works fine in nrf51 DK, but when I program this in ptr5518 my smartphone can't found it. What have I to keep in mind when programming a different module to nRF51 DK? Because even the advertising doesn't works...

Memory?

Thank you so much!

EDIT: Well, I had a memory problem, my configuration is:

IROM: Start 0x18000 Size 0x28000

IRAM: Start 0x20002000 Size 0x4000

But i have got a new problem, the program is resetting continuously. I have debugged and i seen that the resets occur when the app_timer_create is called, so I think the problem is the clock.

Any help???

Parents Reply
  • I have already tried it.

    I have put this:

    NRF_CLOCK -> XTALFREQ =  0 ; 
        NRF_CLOCK -> EVENTS_HFCLKSTARTED =  0 ; 
        NRF_CLOCK -> TASKS_HFCLKSTART =  1 ; 
        while  ( NRF_CLOCK -> EVENTS_HFCLKSTARTED ==  0 ); 
        SOFTDEVICE_HANDLER_INIT ( NRF_CLOCK_LFCLKSRC_RC_250_PPM_4000MS_CALIBRATION ,  false );
    

    instead of:

    SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_XTAL_20_PPM, NULL);
    

    But nothing happened...

    Thank you for your reply!

Children
No Data
Related