Wirepas SDK
SDK Environment setup

As a prerequisite for this guide, you must be able to successfully build one of the provided application example from the SDK.

This page contains following sections:

Installation of SDK Environment

To ease the management of SDK environement, Wirepas maintains a docker image with all the required dependencies installed.

For more information to use it, please read guidance from Wirepas Helpdesk.

It is also possible to install requirement in your native environement but it is not described here. Requirement are listed in Github SDK main page under Requirement section.

Flashing devices

Checkout flashing guidance from Wirepas Helpdesk.

Resources on EFR32

Following chip variants (at SubG only) are supported:

  • EFR32MG13P733F512GM48
  • EFR32FG23B020F512IM48-C
  • EFR32FG23B020F512IM40-C
  • EFR32FG23A020F512GM48-C
  • EFR32FG23A020F512GM40-C
  • EFR32ZG23B020F512IM48-C
  • EFR32ZG23B020F512IM40-C
  • EFR32ZG23A020F512GM48-C
  • EFR32ZG23A020F512GM40-C

This page contains following sections:

Flash Memory available for application on EFR32

As stated in description of memory partitioning, the available flash memory for application is limited by size of the memory area that is used commonly for application and also scratchpad image. If application size is too large, there is possibility that large scratchpad image will override application image. The default maximum size of the application has been set so that it is always safe to use scratchpad image that will contain both firmware and application.

The recommended maximum size of flash memory for an application, according to processor type is following:

efr32xg13pxxxf51240kB
efr32xg23xxxxf51240kB

RAM Memory available for application on EFR32

Allocated RAM memory for application, by the processor is following:

efr32xg13pxxxf51216kB
efr32xg23xxxxf51212kB

Peripherals accessible by stack only

Some peripherals are used by the Wirepas Mesh stack and cannot be used by the application.

PeripheralAssociated interrupt (from chip vendor files)
TIMER0TIMER0_IRQn
RTCCRTCC_IRQn
WDOG0WDOG0_IRQn
CMUCMU_IRQn
CRYPTO0CRYPTO0_IRQn

All the internal interrupt of cortex M are handled by the stack directly (NMI, HardFault,...)

Peripherals shared between the stack and the application

True Random Number Generator TRNG is available for application to use within App_init function. After App_init returns, this peripheral is reserved for Wirepas Mesh stack and all initializations done in App_init may be overwritten. Application may also take the control of RNG/TRNG by initializing the peripheral in scheduled task after App_init has returned and after Wirepas Mesh stack has started. Do note that initialization must not take place within interrupt context as interrupt could be served before this peripheral is released from Wirepas Mesh stack usage.

Peripherals available for the application

All the other peripherals not listed above are free to be used by the application.

Resources on TI CC13x4

The following chip variants are supported:

  • CC1354P10
  • CC1354R10
  • CC1314R10

This page contains the following sections:

Flash memory available for application on TI CC13x4

As stated in description of memory partitioning, the available flash memory for application is limited by size of the memory area that is used commonly for application and also scratchpad image. If application size is too large, there is possibility that large scratchpad image will override application image. The default maximum size of the application has been set so that it is always safe to use scratchpad image that will contain both firmware and application.

The recommended maximum size of flash memory for an application, according to device type:

DeviceFlash memory
CC1354P10256 kB
CC1354R10256 kB
CC1314R10256 kB

RAM available for application on TI CC13x4

Allocated RAM for application, by device type:

DeviceRAM
CC1354P10128 kB
CC1354R10128 kB
CC1314R10128 kB

Peripherals accessible by stack only

Some peripherals are used by the Wirepas Mesh stack and cannot be used by the application.

PeripheralAssociated interrupts (from chip vendor files)
RadioRFC_CPE_0_IRQn, RFC_CPE_1_IRQn, RFC_HW_COMB_IRQn, RFC_CMD_ACK_IRQn
PKAPKA_IRQ_IRQn
AON RTCAON_RTC_COMB_IRQn
WatchdogWDT_IRQ_IRQn
GPT0GPT0A_IRQn, GPT0B_IRQn
CRYPTOCRYPTO_RESULT_AVAIL_IRQ_IRQn
TRNGTRNG_IRQ_IRQn
AUX combined eventAUX_COMB_IRQn
Combined event from oscillator controlOSC_COMB_IRQn

All the internal interrupts of Cortex-M are handled by the stack directly (NMI, Hard Fault...)

Peripherals available for the application

All the other peripherals not listed above are free to be used by the application.

Related Material

[3] WP-RM-108 - OTAP Reference Manual

[4] https://github.com/wirepas/wm-sdk/blob/master/source/reference_apps/dualmcu_app/api/DualMcuAPI.md