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

After power turn off and on. Chip is not working

Hi 

I made a custom board. (using nrRF52832) 

At frist, I tested my code on 52DK(PCCA10040). It is worked.

And then I tested my code on custom board.
I changed my code in <sdk_config.h>.
Because my custom board haven`t optional 32kHz crystal.

// <h> Clock - SoftDevice clock configuration
// <o> NRF_SDH_CLOCK_LF_SRC - SoftDevice clock source.


#define NRF_SDH_CLOCK_LF_SRC 0

#define NRF_SDH_CLOCK_LF_RC_CTIV 16

#define NRF_SDH_CLOCK_LF_RC_TEMP_CTIV 2

#define NRF_SDH_CLOCK_LF_XTAL_ACCURACY 7

I used my custom board well.
(mpu6050 sensor(accel,gyro) + BLE)

But, Now my board is not working.

When <Build and Run> click in SES, it is works.
Sending for sensor value to BLE.

After <Build and Run>, I disconnected the j-link. and I connected power supply to 3V.
But It not works. Why?

(When connected to a power supply, the current shows that 0.008A is being applied. But Bluetooth is not advertised.

I found that there were a lot of problems with custom board such as Uart or Log. Therefore, they were all disabled.)

Let me know what part of what I'm missing.

Thank you for reading.

ps.  I used download to 52Dk board. 

*Additional information*

I have a another computer(laptop).
and I have saved code in the laptop before problem.

So, I try the download for my custom board. but, problem is the same.

When I Debug or <Build and run>, It is sending the value to BLE.

but, When a custom boards turn off and on, it is not works.(switch on/off)

I think.. maybe sensor has broken?

so, I have 15 custom board. (spare)
I try other.

but, still not working.

Why?

Even....

Custom boards that previously downloaded code work well when powered on.

However, when I put the code back in, it doesn't work the same way.

I don`t know what I wrong ....

please help me. 

  • Hi

    What SDK version are you using? Assuming you're using SDK v.15.3.0, please change the following defines in your sdk_config file to the following:

    #define NRFX_CLOCK_CONFIG_LF_SRC 0
    
    #define CLOCK_CONFIG_LF_SRC 0
    
    #define CLOCK_CONFIG_LF_CAL_ENABLED 1
    Best regards,
    Simon
  • Hi Simon. 

    I used SDK v.14.2 . When I use version 15.3, I will consider your advice.

    Thank you Simon. But I haven't solved it yet.

    Best regards,

    Han 

  • Hi

    For SDK v.14.2, please change #define CLOCK_CONFIG_LF_SRC to 0 in your sdk_config.h file and see if that helps. You can also try comparing the Release and Debug configuration in SES to see if there are any differences apart from optimization level and pre-processor flags, also, check if the flash_placement.xml file is the same for Release and Debug.

    Best regards,

    Simon

  • Hi Simon,

    #define CLOCK_CONFIG_LF_SRC 0 

    I've already done it.

    but 

    The following is a difference in configuration.

    Debug configuration

    "BOARD_PCA10040;CONFIG_GPIO_AS_PINRESET;FLOAT_ABI_HARD;INITIALIZE_USER_SECTIONS;NO_VTOR_CONFIG;NRF52;NRF52832_XXAA;NRF52_PAN_74;NRF_SD_BLE_API_VERSION=5;S132;SOFTDEVICE_PRESENT;MPU_USES_TWI;MPU60x0" from project in Common configuration
    "DEBUG; DEBUG_NRF" from solution in Debug configuration

    Release configuration

    "BOARD_PCA10040;CONFIG_GPIO_AS_PINRESET;FLOAT_ABI_HARD;INITIALIZE_USER_SECTIONS;NO_VTOR_CONFIG;NRF52;NRF52832_XXAA;NRF52_PAN_74;NRF_SD_BLE_API_VERSION=5;S132;SOFTDEVICE_PRESENT;MPU_USES_TWI;MPU60x0" from project in Common configuration
    "NDEBUG" from solution in Release configuration

    and 

    Debugging level 

    Debug configuration- > Debugging level 3 

    Release configuration- > Debugging level  None

    and 

    Optimization level

    Debug configuration- > None

    Release configuration- > Optimize For Size

    How should I change it? 

    and I don`t understand pre-processor flags.. I cann`t find it .

    I was really frustrated, but I'm glad I could talk about this.

    Thank you for leaving me a reply.

    Best regards, 

    Han

  • Hi

    These settings seem correct. What were the last changes you made to your application code? There must have been something that causes the devices to not work with the power supply. Also, what exactly is this power supply, and how do you connect it to the custom boards? Are you able to power your DK with this power supply using the External supply pins on header P21?

    Best regards,

    Simon

Related