You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
imi415 71303a38e6
Added _xxAC version linker script.
2 years ago
config Enable Softdevice, This application is for xxAC now. 2 years ago
include Enable Softdevice, This application is for xxAC now. 2 years ago
src Enable Softdevice, This application is for xxAC now. 2 years ago
Makefile Enable Softdevice, This application is for xxAC now. 2 years ago
README.md Updated README, fixed typo, updated progress. 2 years ago
nrf51_xxaa.ld FreeRTOS demo, with task and timer. 2 years ago
nrf51_xxaa_softdevice.ld Enable Softdevice, This application is for xxAC now. 2 years ago
nrf51_xxac.ld FreeRTOS demo, with task and timer. 2 years ago
nrf51_xxac_softdevice.ld Added _xxAC version linker script. 2 years ago

README.md

NRF51822 AQI Sensor Test Program

*** NOTE: THIS APPLICATION IS FOR _xxAC VERSION ONLY NOW, DUE TO LACK OF SRAM ***

Work in progress:

  • LEDs and buttons
  • Power management
  • FreeRTOS
  • BLE API
  • Sensors

How to compile?

  • Edit Makefile and replace SDK_ROOT to your SDK installation directory.
  • Run make

How to flash?

  • Use OpenOCD:
openocd -f { YOUR_DEBUGGER_CONFIG } -f target/nrf51.cfg
  • If you are not using ST-LINKV2 nor CMSIS-DAP, try the following:
openocd { YOUR_DEBUGGER_CONFIG } -c 'set WORKAREASIZE 0' -f target/nrf51.cfg

Due to incompatible flash algorithm issue.

What if...?

  • My device is an _xxAC device(with 32KB RAM):
    • Replace linker script with nrf51_xxac.ld and re-compile.
    • Do nothing, if the program compiles for 16KB variant, it will run on 32KB devices without any problems.
  • Hardfault when using logger API:
    • Blame Nordic, they don't know how to write reentrant code.
    • Use SEGGER RTT logger API.

Boards supported:

  • Waveshare BLE-400 board, w/ NRF51822 module
  • Some strange AQI sensor board.

DFU support:

Currently there are NO DFU methods, DO NOT flash it without a debugger.