<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Migrating sdk5 ANT Broadcast TX Example from nRF52832 to nRF52840</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/113580/migrating-sdk5-ant-broadcast-tx-example-from-nrf52832-to-nrf52840</link><description>Hi, 
 
 After successfully compiling and flashing both the blinky example and the ble_app_hrs on my nRF52840 I ran into an issue with ANT Broadcast TX example. The example is written for the nRF52832 so I changed the make file and the rom and ram in the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 05 Aug 2024 08:46:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/113580/migrating-sdk5-ant-broadcast-tx-example-from-nrf52832-to-nrf52840" /><item><title>RE: Migrating sdk5 ANT Broadcast TX Example from nRF52832 to nRF52840</title><link>https://devzone.nordicsemi.com/thread/496920?ContentTypeID=1</link><pubDate>Mon, 05 Aug 2024 08:46:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f95ab45f-b912-4ff3-a24d-c7b4d5f41ca8</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;If you search in the example folder for S340 you can find some examples are setup to use S340:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/3487.pastedimage1722847601510v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Also from the release notes of the nRF5 SDK:&lt;/p&gt;
&lt;pre&gt;The following toolchains/devices have been used for testing and verification:
 
 - ARM: MDK-ARM version 5.25   
 - GCC: GCC ARM Embedded 9.2020-q2.major
 - IAR: IAR Workbench 7.80.4
 - SES: SES 5.42a&lt;/pre&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating sdk5 ANT Broadcast TX Example from nRF52832 to nRF52840</title><link>https://devzone.nordicsemi.com/thread/496728?ContentTypeID=1</link><pubDate>Thu, 01 Aug 2024 21:57:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:efa90a85-c402-4f05-87e2-060dbd8e2691</guid><dc:creator>Amanda Kinley</dc:creator><description>&lt;p&gt;I plan to use ant only, however this is good to know. I do not believe that I am including ble libraries in my code.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I do not see any S340 ant examples in the sdk.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Do you have any other suggestions to try to get it to flash? Does my linker file look correct for the 52840?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you for your help!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating sdk5 ANT Broadcast TX Example from nRF52832 to nRF52840</title><link>https://devzone.nordicsemi.com/thread/496682?ContentTypeID=1</link><pubDate>Thu, 01 Aug 2024 16:01:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:766d2d1d-ef7f-4d87-ac37-4add8604d253</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hello again,&lt;/p&gt;
&lt;p&gt;I was not aware of that, likely that table is the more correct one then in this case yes, but from your description I get the sense you want both ANT and BLE functionaliy, so be aware that S212 is only for ANT.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating sdk5 ANT Broadcast TX Example from nRF52832 to nRF52840</title><link>https://devzone.nordicsemi.com/thread/496673?ContentTypeID=1</link><pubDate>Thu, 01 Aug 2024 15:34:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3fcf0b88-8ee7-49d1-967e-80c126564c4a</guid><dc:creator>Amanda Kinley</dc:creator><description>&lt;p&gt;Hi, thank you for your quick reply. I will give that a try, but from my understanding the latest release of the ant 212 softdevice should work with the nrf52840.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;table style="font-weight:400;"&gt;
&lt;tbody style="font-style:inherit;font-weight:inherit;"&gt;
&lt;tr style="font-style:inherit;font-weight:inherit;"&gt;
&lt;td style="font-style:inherit;font-weight:inherit;"&gt;&amp;nbsp;&lt;/td&gt;
&lt;td style="font-style:inherit;font-weight:inherit;"&gt;&lt;b&gt;&lt;strong style="font-style:inherit;"&gt;S212&lt;/strong&gt;&lt;/b&gt;&lt;/td&gt;
&lt;td style="font-style:inherit;font-weight:inherit;"&gt;&lt;b&gt;&lt;strong style="font-style:inherit;"&gt;S312&lt;/strong&gt;&lt;/b&gt;&lt;/td&gt;
&lt;td style="font-style:inherit;font-weight:inherit;"&gt;&lt;b&gt;&lt;strong style="font-style:inherit;"&gt;S313&lt;/strong&gt;&lt;/b&gt;&lt;/td&gt;
&lt;td style="font-style:inherit;font-weight:inherit;"&gt;&lt;b&gt;&lt;strong style="font-style:inherit;"&gt;S332&lt;/strong&gt;&lt;/b&gt;&lt;/td&gt;
&lt;td style="font-style:inherit;font-weight:inherit;"&gt;&lt;b&gt;&lt;strong style="font-style:inherit;"&gt;S340&lt;/strong&gt;&lt;/b&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr style="font-style:inherit;font-weight:inherit;"&gt;
&lt;td style="font-style:inherit;font-weight:inherit;"&gt;&lt;b&gt;&lt;strong style="font-style:inherit;"&gt;nRF52805&lt;/strong&gt;&lt;/b&gt;&lt;/td&gt;
&lt;td style="font-style:inherit;font-weight:inherit;"&gt;X&lt;/td&gt;
&lt;td style="font-style:inherit;font-weight:inherit;"&gt;X&lt;/td&gt;
&lt;td style="font-style:inherit;font-weight:inherit;"&gt;&amp;nbsp;&lt;/td&gt;
&lt;td style="font-style:inherit;font-weight:inherit;"&gt;&amp;nbsp;&lt;/td&gt;
&lt;td style="font-style:inherit;font-weight:inherit;"&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr style="font-style:inherit;font-weight:inherit;"&gt;
&lt;td style="font-style:inherit;font-weight:inherit;"&gt;&lt;b&gt;&lt;strong style="font-style:inherit;"&gt;nRF52810&lt;/strong&gt;&lt;/b&gt;&lt;/td&gt;
&lt;td style="font-style:inherit;font-weight:inherit;"&gt;X&lt;/td&gt;
&lt;td style="font-style:inherit;font-weight:inherit;"&gt;X&lt;/td&gt;
&lt;td style="font-style:inherit;font-weight:inherit;"&gt;X&lt;/td&gt;
&lt;td style="font-style:inherit;font-weight:inherit;"&gt;&amp;nbsp;&lt;/td&gt;
&lt;td style="font-style:inherit;font-weight:inherit;"&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr style="font-style:inherit;font-weight:inherit;"&gt;
&lt;td style="font-style:inherit;font-weight:inherit;"&gt;&lt;b&gt;&lt;strong style="font-style:inherit;"&gt;nRF52811&lt;/strong&gt;&lt;/b&gt;&lt;/td&gt;
&lt;td style="font-style:inherit;font-weight:inherit;"&gt;X&lt;/td&gt;
&lt;td style="font-style:inherit;font-weight:inherit;"&gt;X&lt;/td&gt;
&lt;td style="font-style:inherit;font-weight:inherit;"&gt;X&lt;/td&gt;
&lt;td style="font-style:inherit;font-weight:inherit;"&gt;&amp;nbsp;&lt;/td&gt;
&lt;td style="font-style:inherit;font-weight:inherit;"&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr style="font-style:inherit;font-weight:inherit;"&gt;
&lt;td style="font-style:inherit;font-weight:inherit;"&gt;&lt;b&gt;&lt;strong style="font-style:inherit;"&gt;nRF52820&lt;/strong&gt;&lt;/b&gt;&lt;/td&gt;
&lt;td style="font-style:inherit;font-weight:inherit;"&gt;X&lt;/td&gt;
&lt;td style="font-style:inherit;font-weight:inherit;"&gt;X&lt;/td&gt;
&lt;td style="font-style:inherit;font-weight:inherit;"&gt;&amp;nbsp;&lt;/td&gt;
&lt;td style="font-style:inherit;font-weight:inherit;"&gt;&amp;nbsp;&lt;/td&gt;
&lt;td style="font-style:inherit;font-weight:inherit;"&gt;X&lt;/td&gt;
&lt;/tr&gt;
&lt;tr style="font-style:inherit;font-weight:inherit;"&gt;
&lt;td style="font-style:inherit;font-weight:inherit;"&gt;&lt;b&gt;&lt;strong style="font-style:inherit;"&gt;nRF52832&lt;/strong&gt;&lt;/b&gt;&lt;/td&gt;
&lt;td style="font-style:inherit;font-weight:inherit;"&gt;X&lt;/td&gt;
&lt;td style="font-style:inherit;font-weight:inherit;"&gt;X&lt;/td&gt;
&lt;td style="font-style:inherit;font-weight:inherit;"&gt;X&lt;/td&gt;
&lt;td style="font-style:inherit;font-weight:inherit;"&gt;X&lt;/td&gt;
&lt;td style="font-style:inherit;font-weight:inherit;"&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr style="font-style:inherit;font-weight:inherit;"&gt;
&lt;td style="font-style:inherit;font-weight:inherit;"&gt;&lt;b&gt;&lt;strong style="font-style:inherit;"&gt;nRF52833&lt;/strong&gt;&lt;/b&gt;&lt;/td&gt;
&lt;td style="font-style:inherit;font-weight:inherit;"&gt;X&lt;/td&gt;
&lt;td style="font-style:inherit;font-weight:inherit;"&gt;&amp;nbsp;&lt;/td&gt;
&lt;td style="font-style:inherit;font-weight:inherit;"&gt;X&lt;/td&gt;
&lt;td style="font-style:inherit;font-weight:inherit;"&gt;&amp;nbsp;&lt;/td&gt;
&lt;td style="font-style:inherit;font-weight:inherit;"&gt;X&lt;/td&gt;
&lt;/tr&gt;
&lt;tr style="font-style:inherit;font-weight:inherit;"&gt;
&lt;td style="font-style:inherit;font-weight:inherit;"&gt;&lt;b&gt;&lt;strong style="font-style:inherit;"&gt;nRF52840&lt;/strong&gt;&lt;/b&gt;&lt;/td&gt;
&lt;td style="font-style:inherit;font-weight:inherit;"&gt;X&lt;/td&gt;
&lt;td style="font-style:inherit;font-weight:inherit;"&gt;&amp;nbsp;&lt;/td&gt;
&lt;td style="font-style:inherit;font-weight:inherit;"&gt;X&lt;/td&gt;
&lt;td style="font-style:inherit;font-weight:inherit;"&gt;&amp;nbsp;&lt;/td&gt;
&lt;td style="font-style:inherit;font-weight:inherit;"&gt;X&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;This table is copied from thisisant.com&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating sdk5 ANT Broadcast TX Example from nRF52832 to nRF52840</title><link>https://devzone.nordicsemi.com/thread/496643?ContentTypeID=1</link><pubDate>Thu, 01 Aug 2024 13:18:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:44478dea-f82b-4516-adad-4c864097c043</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;If you search in examples\ant or examples\multiprotocol you should find some example project for s340. The easiest may be just to use one of those as start project, and copy the main.c you already have into one of those (and include paths and source files you may have included). Normally it should only be (as you indicate) update flash, ram and path to the softdevice header files. (The S212 is not intended to be used with the nRF52840, here are the softdevices that can be used with the nRF52840: &lt;a href="https://infocenter.nordicsemi.com/topic/comp_matrix_nrf52840/COMP/nrf52840/nRF52840_ic_rev_sdk_sd_comp_matrix.html"&gt;https://infocenter.nordicsemi.com/topic/comp_matrix_nrf52840/COMP/nrf52840/nRF52840_ic_rev_sdk_sd_comp_matrix.html&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating sdk5 ANT Broadcast TX Example from nRF52832 to nRF52840</title><link>https://devzone.nordicsemi.com/thread/496495?ContentTypeID=1</link><pubDate>Thu, 01 Aug 2024 03:54:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dea95730-a982-4342-9f80-90d569d5f156</guid><dc:creator>Amanda Kinley</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/* Linker script to configure memory regions. */

SEARCH_DIR(.)
GROUP(-lgcc -lc -lnosys)

MEMORY
{
  FLASH (rx) : ORIGIN = 0x12000, LENGTH = 0xEE000
  RAM (rwx) :  ORIGIN = 0x20000b80, LENGTH = 0x3F480
}

SECTIONS
{
}

SECTIONS
{
  . = ALIGN(4);
  .mem_section_dummy_ram :
  {
  }
  .log_dynamic_data :
  {
    PROVIDE(__start_log_dynamic_data = .);
    KEEP(*(SORT(.log_dynamic_data*)))
    PROVIDE(__stop_log_dynamic_data = .);
  } &amp;gt; RAM
  .log_filter_data :
  {
    PROVIDE(__start_log_filter_data = .);
    KEEP(*(SORT(.log_filter_data*)))
    PROVIDE(__stop_log_filter_data = .);
  } &amp;gt; RAM

} INSERT AFTER .data;

SECTIONS
{
  .mem_section_dummy_rom :
  {
  }
  .pwr_mgmt_data :
  {
    PROVIDE(__start_pwr_mgmt_data = .);
    KEEP(*(SORT(.pwr_mgmt_data*)))
    PROVIDE(__stop_pwr_mgmt_data = .);
  } &amp;gt; FLASH
  .sdh_ant_observers :
  {
    PROVIDE(__start_sdh_ant_observers = .);
    KEEP(*(SORT(.sdh_ant_observers*)))
    PROVIDE(__stop_sdh_ant_observers = .);
  } &amp;gt; FLASH
  .log_const_data :
  {
    PROVIDE(__start_log_const_data = .);
    KEEP(*(SORT(.log_const_data*)))
    PROVIDE(__stop_log_const_data = .);
  } &amp;gt; FLASH
  .sdh_req_observers :
  {
    PROVIDE(__start_sdh_req_observers = .);
    KEEP(*(SORT(.sdh_req_observers*)))
    PROVIDE(__stop_sdh_req_observers = .);
  } &amp;gt; FLASH
  .sdh_state_observers :
  {
    PROVIDE(__start_sdh_state_observers = .);
    KEEP(*(SORT(.sdh_state_observers*)))
    PROVIDE(__stop_sdh_state_observers = .);
  } &amp;gt; FLASH
  .sdh_stack_observers :
  {
    PROVIDE(__start_sdh_stack_observers = .);
    KEEP(*(SORT(.sdh_stack_observers*)))
    PROVIDE(__stop_sdh_stack_observers = .);
  } &amp;gt; FLASH
  .log_backends :
  {
    PROVIDE(__start_log_backends = .);
    KEEP(*(SORT(.log_backends*)))
    PROVIDE(__stop_log_backends = .);
  } &amp;gt; FLASH
    .nrf_balloc :
  {
    PROVIDE(__start_nrf_balloc = .);
    KEEP(*(.nrf_balloc))
    PROVIDE(__stop_nrf_balloc = .);
  } &amp;gt; FLASH

} INSERT AFTER .text


INCLUDE &amp;quot;nrf_common.ld&amp;quot;
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;MakeFile:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;PROJECT_NAME     := ant_broadcast_tx_pca10040_s212
TARGETS          := nrf52840_xxaa
OUTPUT_DIRECTORY := _build

SDK_ROOT := ../../../../../../..
PROJ_DIR := ../../..

$(OUTPUT_DIRECTORY)/nrf52840_xxaa.out: \
  LINKER_SCRIPT  := ant_broadcast_tx_gcc_nrf52.ld

# Source files common to all targets
SRC_FILES += \
  $(SDK_ROOT)/modules/nrfx/mdk/gcc_startup_nrf52840.S \
  $(SDK_ROOT)/components/libraries/log/src/nrf_log_backend_rtt.c \
  $(SDK_ROOT)/components/libraries/log/src/nrf_log_backend_serial.c \
  $(SDK_ROOT)/components/libraries/log/src/nrf_log_backend_uart.c \
  $(SDK_ROOT)/components/libraries/log/src/nrf_log_default_backends.c \
  $(SDK_ROOT)/components/libraries/log/src/nrf_log_frontend.c \
  $(SDK_ROOT)/components/libraries/log/src/nrf_log_str_formatter.c \
  $(SDK_ROOT)/components/boards/boards.c \
  $(SDK_ROOT)/components/libraries/button/app_button.c \
  $(SDK_ROOT)/components/libraries/util/app_error.c \
  $(SDK_ROOT)/components/libraries/util/app_error_handler_gcc.c \
  $(SDK_ROOT)/components/libraries/util/app_error_weak.c \
  $(SDK_ROOT)/components/libraries/scheduler/app_scheduler.c \
  $(SDK_ROOT)/components/libraries/timer/app_timer2.c \
  $(SDK_ROOT)/components/libraries/util/app_util_platform.c \
  $(SDK_ROOT)/components/libraries/timer/drv_rtc.c \
  $(SDK_ROOT)/components/libraries/hardfault/nrf52/handler/hardfault_handler_gcc.c \
  $(SDK_ROOT)/components/libraries/hardfault/hardfault_implementation.c \
  $(SDK_ROOT)/components/libraries/util/nrf_assert.c \
  $(SDK_ROOT)/components/libraries/atomic_fifo/nrf_atfifo.c \
  $(SDK_ROOT)/components/libraries/atomic/nrf_atomic.c \
  $(SDK_ROOT)/components/libraries/balloc/nrf_balloc.c \
  $(SDK_ROOT)/external/fprintf/nrf_fprintf.c \
  $(SDK_ROOT)/external/fprintf/nrf_fprintf_format.c \
  $(SDK_ROOT)/components/libraries/memobj/nrf_memobj.c \
  $(SDK_ROOT)/components/libraries/pwr_mgmt/nrf_pwr_mgmt.c \
  $(SDK_ROOT)/components/libraries/ringbuf/nrf_ringbuf.c \
  $(SDK_ROOT)/components/libraries/experimental_section_vars/nrf_section_iter.c \
  $(SDK_ROOT)/components/libraries/sortlist/nrf_sortlist.c \
  $(SDK_ROOT)/components/libraries/strerror/nrf_strerror.c \
  $(SDK_ROOT)/integration/nrfx/legacy/nrf_drv_uart.c \
  $(SDK_ROOT)/modules/nrfx/soc/nrfx_atomic.c \
  $(SDK_ROOT)/modules/nrfx/drivers/src/nrfx_gpiote.c \
  $(SDK_ROOT)/modules/nrfx/drivers/src/prs/nrfx_prs.c \
  $(SDK_ROOT)/modules/nrfx/drivers/src/nrfx_uart.c \
  $(SDK_ROOT)/modules/nrfx/drivers/src/nrfx_uarte.c \
  $(SDK_ROOT)/components/ant/ant_channel_config/ant_channel_config.c \
  $(SDK_ROOT)/components/libraries/bsp/bsp.c \
  $(PROJ_DIR)/main.c \
  $(SDK_ROOT)/external/segger_rtt/SEGGER_RTT.c \
  $(SDK_ROOT)/external/segger_rtt/SEGGER_RTT_Syscalls_GCC.c \
  $(SDK_ROOT)/external/segger_rtt/SEGGER_RTT_printf.c \
  $(SDK_ROOT)/modules/nrfx/mdk/system_nrf52840.c \
  $(SDK_ROOT)/components/softdevice/common/nrf_sdh.c \
  $(SDK_ROOT)/components/softdevice/common/nrf_sdh_ant.c \

# Include folders common to all targets
INC_FOLDERS += \
  $(SDK_ROOT)/external/fprintf \
  $(SDK_ROOT)/components/libraries/experimental_section_vars \
  $(SDK_ROOT)/components/libraries/hardfault/nrf52 \
  $(SDK_ROOT)/components/libraries/atomic_fifo \
  ../config \
  $(SDK_ROOT)/components/libraries/delay \
  $(SDK_ROOT)/components/libraries/hardfault \
  $(SDK_ROOT)/components/toolchain/cmsis/include \
  $(SDK_ROOT)/components/libraries/balloc \
  $(SDK_ROOT)/components/libraries/log \
  $(SDK_ROOT)/components/libraries/memobj \
  $(SDK_ROOT)/components/libraries/atomic \
  $(SDK_ROOT)/components \
  $(SDK_ROOT)/modules/nrfx/mdk \
  $(SDK_ROOT)/components/libraries/scheduler \
  $(SDK_ROOT)/components/libraries/strerror \
  $(SDK_ROOT)/integration/nrfx \
  $(SDK_ROOT)/modules/nrfx/drivers/include \
  $(SDK_ROOT)/components/softdevice/s212/headers/nrf52 \
  $(SDK_ROOT)/components/softdevice/s212/headers \
  $(SDK_ROOT)/components/libraries/ringbuf \
  $(SDK_ROOT)/components/softdevice/common \
  $(SDK_ROOT)/modules/nrfx \
  $(SDK_ROOT)/components/ant/ant_channel_config \
  $(SDK_ROOT)/components/libraries/log/src \
  $(SDK_ROOT)/external/segger_rtt \
  $(SDK_ROOT)/components/libraries/sortlist \
  $(SDK_ROOT)/modules/nrfx/hal \
  $(SDK_ROOT)/components/libraries/mutex \
  $(SDK_ROOT)/components/libraries/pwr_mgmt \
  $(SDK_ROOT)/components/libraries/bsp \
  $(SDK_ROOT)/components/boards \
  $(SDK_ROOT)/components/libraries/timer \
  $(SDK_ROOT)/components/libraries/button \
  $(SDK_ROOT)/integration/nrfx/legacy \
  $(SDK_ROOT)/components/libraries/util \

# Libraries common to all targets
LIB_FILES += \

# Optimization flags
OPT = -O3 -g3
# Uncomment the line below to enable link time optimization
#OPT += -flto

# C flags common to all targets
CFLAGS += $(OPT)
CFLAGS += -DAPP_TIMER_V2
CFLAGS += -DAPP_TIMER_V2_RTC1_ENABLED
CFLAGS += -DBOARD_PCA10059
CFLAGS += -DCONFIG_GPIO_AS_PINRESET
CFLAGS += -DFLOAT_ABI_HARD
CFLAGS += -DNRF52840_XXAA
CFLAGS += -DNRF52_PAN_74
CFLAGS += -DS212
CFLAGS += -DSOFTDEVICE_PRESENT
CFLAGS += -mcpu=cortex-m4
CFLAGS += -mthumb -mabi=aapcs
CFLAGS += -Wall
CFLAGS += -mfloat-abi=hard -mfpu=fpv4-sp-d16
# keep every function in a separate section, this allows linker to discard unused ones
CFLAGS += -ffunction-sections -fdata-sections -fno-strict-aliasing
CFLAGS += -fno-builtin -fshort-enums
#CFLAGS += -DANT_LICENSE_KEY=&amp;quot;\&amp;quot;y\&amp;quot;&amp;quot;

# C++ flags common to all targets
CXXFLAGS += $(OPT)
# Assembler flags common to all targets
ASMFLAGS += -g3
ASMFLAGS += -mcpu=cortex-m4
ASMFLAGS += -mthumb -mabi=aapcs
ASMFLAGS += -mfloat-abi=hard -mfpu=fpv4-sp-d16
ASMFLAGS += -DAPP_TIMER_V2
ASMFLAGS += -DAPP_TIMER_V2_RTC1_ENABLED
ASMFLAGS += -DBOARD_PCA10059
ASMFLAGS += -DCONFIG_GPIO_AS_PINRESET
ASMFLAGS += -DFLOAT_ABI_HARD
ASMFLAGS += -DNRF52
ASMFLAGS += -DNRF52840_XXAA
ASMFLAGS += -DNRF52_PAN_74
ASMFLAGS += -DS212
ASMFLAGS += -DSOFTDEVICE_PRESENT

# Linker flags
LDFLAGS += $(OPT)
LDFLAGS += -mthumb -mabi=aapcs -L$(SDK_ROOT)/modules/nrfx/mdk -T$(LINKER_SCRIPT)
LDFLAGS += -mcpu=cortex-m4
LDFLAGS += -mfloat-abi=hard -mfpu=fpv4-sp-d16
# let linker dump unused sections
LDFLAGS += -Wl,--gc-sections
# use newlib in nano version
LDFLAGS += --specs=nano.specs

nrf52840_xxaa: CFLAGS += -D__HEAP_SIZE=8192
nrf52840_xxaa: CFLAGS += -D__STACK_SIZE=8192
nrf52840_xxaa: ASMFLAGS += -D__HEAP_SIZE=8192
nrf52840_xxaa: ASMFLAGS += -D__STACK_SIZE=8192

# Add standard libraries at the very end of the linker input, after all objects
# that may need symbols provided by these libraries.
LIB_FILES += -lc -lnosys -lm


.PHONY: default help

# Default target - first one defined
default: nrf52840_xxaa

# Print all targets that can be built
help:
	@echo following targets are available:
	@echo		nrf52840_xxaa
	@echo		sdk_config - starting external tool for editing sdk_config.h
	@echo		flash      - flashing binary

TEMPLATE_PATH := $(SDK_ROOT)/components/toolchain/gcc


include $(TEMPLATE_PATH)/Makefile.common

$(foreach target, $(TARGETS), $(call define_target, $(target)))

.PHONY: flash erase

# Flash the program
flash: default
	@echo Flashing: $(OUTPUT_DIRECTORY)/nrf52840_xxaa.hex
	nrfjprog -f nrf52 --program $(OUTPUT_DIRECTORY)/nrf52840_xxaa.hex --sectorerase
	nrfjprog -f nrf52 --reset

erase:
	nrfjprog -f nrf52 --eraseall

SDK_CONFIG_FILE := ../config/sdk_config.h
CMSIS_CONFIG_TOOL := $(SDK_ROOT)/external_tools/cmsisconfig/CMSIS_Configuration_Wizard.jar
sdk_config:
	java -jar $(CMSIS_CONFIG_TOOL) $(SDK_CONFIG_FILE)
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>