Date: Fri, 29 Mar 2024 13:07:28 +0000 (UTC) Message-ID: <1583255425.1.1711717648087@a270b65cec58> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_0_359991583.1711717648071" ------=_Part_0_359991583.1711717648071 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
https://www.=
segger.com/downloads/embedded-studio/
https://ww=
w.nordicsemi.com/Products/Development-software/nRF5-SDK/Download#infotabs=
a>
Download the SEGGER Embedded Studio for ARM. Use v5.70a (don=E2=80=99t u= se v6.xx as it leads to compilation errors).
Download the nRF SDK. v17.1.0 should work. You do not need any of the So= ftDevices files, so feel free to uncheck them.
Download the configure_nRF_to_low_VDD.zip
file attached abo=
ve and unzip it.
Move the nRF SDK to your desired parent directory, e.g. ~/Document=
s/nRF5_SDK_17.1.0_ddde560
.
Create a MyProjects
directory under nRF5_SDK_17.1.0_d=
dde560/examples
. Copy the unzipped configure_nRF_to_low_VDD directory into the
MyProjects
directory. The directory st=
ructure look look as follows:
nRF5_S= DK_17.1.0_ddde560/ examples/ MyProjects/ configure_nRF_to_low_VDD/ pca10056/ blinky.eww main.c uicr_config.h
Open the nRF5_SDK_17.1.0_ddde560/examples/MyProjects/configure_nRF=
_to_low_VDD/pca10056/blank/ses/EVA6_1_8v-REG0_test.emProject
project=
with SEGGER Embedded Studio.
IMPORTANT: Connect the nRF to the computer with two mic= ro USB cables, but do not have SCuM connected to the nRF. You need flash th= e nRF firmware first. Make sure that the nRF power source switch is set to = VDD.
In SEGGER Embedded Studio, compile the project and use J-Link to flash t= he nRF.
Compile the project by clicking on Build > Build EVA6_1_8v-REG0=
_test
.
Connect to J-Link by clicking on Target > Connect J-Link
=
. The shortcut on Windows is CTRL+T, C
.
Flash the nRF board by clicking on Target > Download EVA6_1_8v-=
REG0_test
. The shortcut on Windows is Ctrl+T, L
.
Move the nRF power source switch from VDD to USB. The nRF chip and all L= EDs should be off.
Configure the switches on the nRF as follows. Assume that the nRF is hor= izontal with the micro USB ports on the left and on the bottom.
Set the switch in the top right to DEFAULT.
Set the switch in the center left (the nRF power source) to USB.
Set the switch in the bottom left corner (power) to ON.
The nRF should be turned on again, but the LEDs should be dimmer. Confir= m that the output voltage VDD is at 1.8V.
Clone Fil=E2=80=99s repository found at https://github.com/filmak/SCuM-programm=
er/tree/develop_12 and check out the develop_12
branch.
Open the SCuM-programmer/scum-programmer/scum-programmer.emProject=
project with SEGGER Embedded Studio. Afterwards, restart the SEGGER=
Embedded Studio. Upon restarting, SEGGER will warn you of missing packages=
, including, but not limited to, CMSIS 5 CMSIS-CORE Support Package and SEG=
GER C++ Library Package [ARMv7E-M]. Install these packages.
In SEGGER Embedded Studio, compile the project and use J-Link to flash t= he nRF. After flashing the nRF board, the LEDs marked LED1, LED2, LED3, and= LED4 in the top right will blink in a circular pattern.
If you see an error that the core_cm4.h
file cannot be foun=
d, restart SEGGER Embedded Studio as you may be missing some packages.
If the LEDs are all blinking simultaneously, try setting the switch in t= he bottom left corner (power) to OFF and back to ON.
Clone Fil=E2=80=99s repository found at https://github.com/filmak/SCuM-programm=
er/tree/develop_12 and check out the develop_12
branch.
To bootload (after completing the wiring setups below), run the followin=
g command: python3 test_bootload.py
. You will need to manuall=
y change the COM port and the path to the binary file.
If you run into errors when importing serial
, run pip=
install pyserial
or conda install pyserial
.
On Mac, change the COM port to the nRF=E2=80=99s serial port, e.g.,
For some reason, some USB-C dongles do not like transmitting large binar= ies at once (even though UART packets carry one byte at a time). The workar= ound is to chop up the binary into multiple smaller byte chunks (e.g., 32 b= ytes) before writing them to the serial interface.
GND =E2=86=92 GND
5V =E2=86=92 EXT_BAT
P0.28 =E2=86=92 3WB_CLK
P0.29 =E2=86=92 3WB_DATA
P0.30 =E2=86=92 3WB_EN
P0.31 =E2=86=92 HRESET
1.8V =E2=86=92 VBAT
1.1V =E2=86=92 VDDD
EXT_VBAT =E2=86=92 1.1V_IN
VBAT =E2=86=92 VDDIO
VDDD =E2=86=92 BTSRC_SEL
UART from SCuM can pass through the nRF serial connection, but there are= still minor problems that need to be fixed in the setup. For now, it=E2=80= =99s easiest to use a USB UART device. The one found here works well. Any serial device must be configured to 1.8V to pr= operly work with SCuM. You can use any serial monitor (set to 19200 baud), = such as the one built into the Arduino IDE.
GND =E2=86=92 GND
RXD (UART RX) =E2=86=92 RsTx
If SCuM fails to boot with the 5V supply from the nRF, it may be due to = the external 1.1V and 1.8V regulators on Sulu. We have had success with mul= tiple boards by doing the following:
Disconnect the 5V =E2=86=92 EXT_BAT connection from nRF =E2=86=92 Sulu.<= /p>
Disconnect the 1.8V =E2=86=92 VBAT, 1.1V =E2=86=92 VDDD, and EXT_VBAT = =E2=86=92 1.1V_IN headers from Sulu.
Connect the VDD =E2=86=92 VBAT from nRF =E2=86=92 Sulu.
Try booting SCuM now.