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

BOOT_MODE

Hi

Development Environment : windows 7- keil ARM SDK 5 - Arm Debugger Programmer(Waveshare) - nRF51822 EVK from Waveshare

What is the boot_PIN or Boot_Mode PIN

I want to develop Board Test Functionality using Boot pin

When the BOOT_MODE pin is pulled low at power up, the device will enter board test mode. In this
mode the device will not execute the main state machine, instead waiting for text commands on the
UART interface. Commands will be required for the following:

Flash memory test
Radio TX continuous tone on a given channel

Battery ADC Read

Can you give me the right direction on this.

how I can achieve this functionality.

Thanks,

Hardik

  • Hi,

    I am not familiar with the terms "boot mode" or "boot pin", but it sounds to me like you just want to check if a GPIO is pressed during (power-on) reset, and make a decision based on that. This should be straight forward: Just configure a pin as GPIO input and read it in the start of your application (the pin must still be asserted when the application starts up in this case, but that should not be a problem). Then enter test mode where you accept UART commands and do the various tests you have implemented. The SDK does not have any single example that match your requirement, but you should find most of the pieces you need in the hardware peripheral examples.

Related