Bringup
Open the editor
Microcontroller with real firmwareBMD-340-A-Rbmd340

u-blox BMD-340 (nRF52840)

Bluetooth module, nRF52840 – runs real firmware (Zephyr ELF / Intel HEX) on the Cortex-M4 emulator. Pins = pad numbers.

P0.25P0.26P0.27P0.28/AIN4 *P0.29/AIN5 *P0.30/AIN6 *P0.31/AIN7 *P0.00/XL1P0.01/XL2P0.02/AIN0 *P0.03/AIN1 *P0.04/AIN2P0.05/AIN3P0.06P0.07/TRACECLKP0.08P0.09/NFC1 *P0.10/NFC2 *P0.11P0.12P0.13P0.14P0.15P0.16P0.17P0.21P0.19P0.20P0.18/RESETP0.22P0.23P0.24SWCLKSWDIOP1.05 *P1.06 *P1.07 *P1.08P1.09P1.10 *P1.11 *P1.00/SWOP1.01 *P1.02 *P1.03 *P1.04 *P1.12 *P1.13 *P1.14 *P1.15 *VCCHVBUSUSB_D-USB_D+VCCGNDGNDGNDGNDGNDGNDGNDGNDGNDGNDGNDGNDGNDBMD-340-A-R
Schematic symbol

Key data

Category
ICs
Simulation model
Microcontroller with real firmware
Manufacturer part number
BMD-340-A-R
Reference prefix
M
Pins
68
Land pattern
BMD-340_UBLOX_LGA68

Notes

The firmware runs on an emulated CPU core, instruction by instruction. Peripherals that the model implements (GPIO, timers, UART, SPI, I²C, ADC and others, see the description) act on the pins of the circuit, so the analog parts around the chip see the same voltages and timing as on a real board.

  • Right-click the part and choose "Open in code editor" to write and compile its code; "Serial monitor" shows its UART output.
  • In the inspector you can load a demo firmware or your own ELF / Intel HEX / BIN file instead.
  • GPIO pins are real circuit pins: an LED on an output needs a series resistor, an input needs a defined level (pull-up or pull-down).
  • The debugger in the code view stops at breakpoints and shows registers, variables and the call stack.

Simulation model

An emulated CPU core runs the firmware binary instruction by instruction. The GPIO pins are pins of the analog circuit: outputs drive through a driver resistance, inputs read the voltage with thresholds.

Device
nrf52840
CPU core
ARM Cortex-M4F
Emulator
ARM Cortex-M emulator
Firmware
Bare-metal C (arm-none-eabi-gcc) or a Zephyr project in the code view, or your own ELF / Intel HEX / BIN file
Flash / RAM for firmware
1 MB / 256 KB
Supply pins
17 / 1
Mapped GPIO pins
48

Pins 68

simulatedreal chip onlyPin functions from the emulator and the datasheet.

PinNameFunctionsUse
6P0.25I/O pinButton 4 on the nRF52840 DK (to GND, pull-up)
7P0.26I/O pinI²C SDA on the Arduino header of the nRF52840 DK
8P0.27I/O pinI²C SCL on the Arduino header of the nRF52840 DK
9P0.28/AIN4 *I/O pinAIN4Analog input: potentiometer, sensor voltage (0 V … supply)
10P0.29/AIN5 *I/O pinAIN5Analog input: potentiometer, sensor voltage (0 V … supply)
11P0.30/AIN6 *I/O pinAIN6Analog input: potentiometer, sensor voltage (0 V … supply)
12P0.31/AIN7 *I/O pinAIN7Analog input: potentiometer, sensor voltage (0 V … supply)
13P0.00/XL1I/O pinXL132.768 kHz crystal (XL1/XL2) for the low-power clock, or GPIO
14P0.01/XL2I/O pinXL232.768 kHz crystal (XL1/XL2) for the low-power clock, or GPIO
15P0.02/AIN0 *I/O pinAIN0Analog input: potentiometer, sensor voltage (0 V … supply)
19P0.03/AIN1 *I/O pinAIN1Analog input: potentiometer, sensor voltage (0 V … supply)
20P0.04/AIN2I/O pinAIN2Analog input: potentiometer, sensor voltage (0 V … supply)
21P0.05/AIN3I/O pinAIN3Analog input: potentiometer, sensor voltage (0 V … supply)
22P0.06I/O pinUART0 TX on the nRF52840 DK (Zephyr console)
23P0.07/TRACECLKI/O pinTRACECLKGeneral-purpose I/O: LEDs (with series resistor), buttons (with pull-up)
24P0.08I/O pinUART0 RX on the nRF52840 DK (Zephyr console)
25P0.09/NFC1 *I/O pinNFC1NFC antenna (NFC1/NFC2); usable as GPIO after disabling NFC in UICR
26P0.10/NFC2 *I/O pinNFC2NFC antenna (NFC1/NFC2); usable as GPIO after disabling NFC in UICR
27P0.11I/O pinButton 1 on the nRF52840 DK (to GND, pull-up)
28P0.12I/O pinButton 2 on the nRF52840 DK (to GND, pull-up)
31P0.13I/O pinLED1 on the nRF52840 DK (active low)
32P0.14I/O pinLED2 on the nRF52840 DK (active low)
33P0.15I/O pinLED3 on the nRF52840 DK (active low)
34P0.16I/O pinLED4 on the nRF52840 DK (active low)
35P0.17I/O pinGeneral-purpose I/O: LEDs (with series resistor), buttons (with pull-up)
36P0.21I/O pinGeneral-purpose I/O: LEDs (with series resistor), buttons (with pull-up)
37P0.19I/O pinGeneral-purpose I/O: LEDs (with series resistor), buttons (with pull-up)
38P0.20I/O pinGeneral-purpose I/O: LEDs (with series resistor), buttons (with pull-up)
39P0.18/RESETI/O pinRESETPin reset when enabled in UICR (Zephyr default on the DK); otherwise GPIO
40P0.22I/O pinGeneral-purpose I/O: LEDs (with series resistor), buttons (with pull-up)
41P0.23I/O pinGeneral-purpose I/O: LEDs (with series resistor), buttons (with pull-up)
42P0.24I/O pinButton 3 on the nRF52840 DK (to GND, pull-up)
43SWCLKI/O pinSWCLKSWD debug: bring out to a header to flash the module
44SWDIOI/O pinSWDIOSWD debug: bring out to a header to flash the module
48P1.05 *I/O pinGeneral-purpose I/O: LEDs (with series resistor), buttons (with pull-up)
49P1.06 *I/O pinGeneral-purpose I/O: LEDs (with series resistor), buttons (with pull-up)
50P1.07 *I/O pinGeneral-purpose I/O: LEDs (with series resistor), buttons (with pull-up)
51P1.08I/O pinGeneral-purpose I/O: LEDs (with series resistor), buttons (with pull-up)
52P1.09I/O pinGeneral-purpose I/O: LEDs (with series resistor), buttons (with pull-up)
53P1.10 *I/O pinGeneral-purpose I/O: LEDs (with series resistor), buttons (with pull-up)
54P1.11 *I/O pinGeneral-purpose I/O: LEDs (with series resistor), buttons (with pull-up)
56P1.00/SWOI/O pinSWOGeneral-purpose I/O: LEDs (with series resistor), buttons (with pull-up)
57P1.01 *I/O pinGeneral-purpose I/O: LEDs (with series resistor), buttons (with pull-up)
58P1.02 *I/O pinGeneral-purpose I/O: LEDs (with series resistor), buttons (with pull-up)
59P1.03 *I/O pinGeneral-purpose I/O: LEDs (with series resistor), buttons (with pull-up)
60P1.04 *I/O pinGeneral-purpose I/O: LEDs (with series resistor), buttons (with pull-up)
61P1.12 *I/O pinGeneral-purpose I/O: LEDs (with series resistor), buttons (with pull-up)
62P1.13 *I/O pinSPI MOSI on the Arduino header of the nRF52840 DK
63P1.14 *I/O pinSPI MISO on the Arduino header of the nRF52840 DK
64P1.15 *I/O pinSPI SCK on the Arduino header of the nRF52840 DK
65VCCHSupply pinHigh-voltage supply input: tie to VCC for normal-voltage mode
66VBUSSupply pinVBUSUSB 5 V sense input (USB is not simulated)
67USB_D-I/O pinUSB_D-USB full-speed data (real chip only, not simulated)
68USB_D+I/O pinUSB_D+USB full-speed data (real chip only, not simulated)
17VCCSupply pinSupply 1.7–3.6 V (normal-voltage mode)
1GNDGround pinGround
2GNDGround pinGround
3GNDGround pinGround
4GNDGround pinGround
5GNDGround pinGround
16GNDGround pinGround
18GNDGround pinGround
29GNDGround pinGround
30GNDGround pinGround
45GNDGround pinGround
46GNDGround pinGround
47GNDGround pinGround
55GNDGround pinGround

PCB

Verified land patternBMD-340_UBLOX_LGA68