Dockerfile:
FROM python:3.7-alpine
RUN mkdir /app
ADD requirements.txt /app
RUN pip install -r /app/requirements.txt
ADD app.py /app
| h2:Adafruit_nRF52_Bootloader jude$ git status | |
| On branch master | |
| Your branch is up to date with 'origin/master'. | |
| Changes not staged for commit: | |
| (use "git add <file>..." to update what will be committed) | |
| (use "git checkout -- <file>..." to discard changes in working directory) | |
| modified: Makefile | |
| modified: src/main.c |
| # diff diff ~/developer/em/nRF5_SDK_15.3.0_59ac345/examples/ant/ant_plus/ant_bsc/bsc_tx/pca10040/s212/armgcc/ant_bsc_tx_gcc_nrf52.ld ~/developer/em/bia/src/ant_bsc_tx_gcc_nrf52.ld | |
| 8,9c8,9 | |
| < FLASH (rx) : ORIGIN = 0x12000, LENGTH = 0x6e000 | |
| < RAM (rwx) : ORIGIN = 0x20000b80, LENGTH = 0xf480 | |
| --- | |
| > FLASH (rx) : ORIGIN = 0x00031000, LENGTH = 0x000F4000-0x00031000 | |
| > RAM (rwx) : ORIGIN = 0x20002000, LENGTH = 0xf480 |
| UF2 Bootloader 0.2.10-4-g79fe6cc-dirty lib/nrfx (v1.1.0-1-g096e770) lib/tinyusb (legacy-755-g55874813) s340 6.1.1 | |
| Model: SparkFun Pro nRF52840 Mini | |
| Board-ID: SparkFun-Pro-nRF52840-Mini | |
| Bootloader: s340 6.1.1 | |
| Date: Jul 12 2019 |
| $ tree lib/softdevice/s340_nrf52_6.1.1/ | |
| lib/softdevice/s340_nrf52_6.1.1/ | |
| ├── s340_nrf52_6.1.1_API | |
| │ └── include (all header files must be under here) | |
| └── s340_nrf52_6.1.1_softdevice.hex |
| diff --git a/Makefile b/Makefile | |
| index 6dbaf98..4acd319 100644 | |
| --- a/Makefile | |
| +++ b/Makefile | |
| @@ -104,7 +104,7 @@ ifneq ($(IS_52832),) | |
| SD_NAME = s132 | |
| DFU_DEV_REV = 0xADAF | |
| else | |
| -SD_NAME = s140 | |
| +SD_NAME = s340 |
| diff --git a/src/main.c b/src/main.c | |
| index 8ac1dba..2e43f49 100644 | |
| --- a/src/main.c | |
| +++ b/src/main.c | |
| @@ -301,7 +301,7 @@ static uint32_t softdev_init(bool init_softdevice) | |
| .accuracy = NRF_CLOCK_LF_ACCURACY_250_PPM | |
| }; | |
| - APP_ERROR_CHECK( sd_softdevice_enable(&clock_cfg, app_error_fault_handler) ); | |
| + APP_ERROR_CHECK( sd_softdevice_enable(&clock_cfg, app_error_fault_handler, ANT_LICENSE_KEY) ); |
Dockerfile:
FROM python:3.7-alpine
RUN mkdir /app
ADD requirements.txt /app
RUN pip install -r /app/requirements.txt
ADD app.py /app
| http server as client | |
| when client listen path: '/github' as request | |
| state = request.query_params['state'] # cli generated | |
| redirect_url = 'https://login.asyncyapp.com/github/oauth_success' | |
| request redirect url: 'https://github.com/login/oauth/authorize' query: {'scope': 'user:email', 'state': state, 'client_id': app.secrets.github_client_id, 'redirect_uri': redirect_url} | |
| # Postback URL for the GH oauth, initiated via the CLI | |
| # The URL should look something like this - https://login.asyncyapp.com/github/oauth_success | |
| when client listen path:'/github/oauth_success' as request | |
| state = request.query_params['state'] # cli generated |
| asd |
| -Xmx2048m | |
| -Xss256k | |
| -XX:+UseG1GC | |
| -XX:InitiatingHeapOccupancyPercent=65 | |
| -XX:G1HeapRegionSize=16m | |
| -XX:MaxGCPauseMillis=100 |