-
Notifications
You must be signed in to change notification settings - Fork 10
Arduino Notes
Charles R. Portwood II edited this page Nov 9, 2021
·
1 revision
Arduino code can be compiled to run. Please note that no support can or will be provided if your application runs Arduino code.
The following page comprises collective notes from individuals who have had had success getting Arduino code to run are listed as follows. At a high level, you'll need to package your code for the appropriate soft device, adjust the linker settings, then flash with nrfjprog.
Adjust linker settings:
FLASH (rx) : ORIGIN = 0x27000, LENGTH = 0xc9000
RAM (rwx) : ORIGIN = 0x20002280, LENGTH = 0x3dd80
uicr_bootloader_start_address (r) : ORIGIN = 0x00000FF8, LENGTH = 0x4
Packaging
nrfutil pkg generate --hw-version 52 --application-version 1 --application ~/application.hex --sd-req 0xCA --key-file /path/to/private.pem app_dfu_package.zip
Arduino BLE won't work. Use another bootloader, or re-write your application with the nRF SDK.