<?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>Access to the peripheral registers in debug mode</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/39133/access-to-the-peripheral-registers-in-debug-mode</link><description>HI Im trying to reduce the power consumption of my nrf52840 based device. And now I need to read peripheral register in debug mode but cant do it.I guess it is enabling in project seting because In example projects I am able to see it. For instance saadc</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 03 Oct 2018 11:24:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/39133/access-to-the-peripheral-registers-in-debug-mode" /><item><title>RE: Access to the peripheral registers in debug mode</title><link>https://devzone.nordicsemi.com/thread/151396?ContentTypeID=1</link><pubDate>Wed, 03 Oct 2018 11:24:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d3dd7272-c83d-49d2-8060-bf5e8e46311f</guid><dc:creator>ssargsyan</dc:creator><description>&lt;p&gt;Thank you !!!&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Access to the peripheral registers in debug mode</title><link>https://devzone.nordicsemi.com/thread/151384?ContentTypeID=1</link><pubDate>Wed, 03 Oct 2018 10:59:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c0cf8626-adf5-429d-9f9e-587ab2286a65</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;You have do adjust the path in the line I suggested so that it matched your project file location relative to the file it points to (the path I pasted matched the location of BLE projects files in the SDK).&lt;/p&gt;
&lt;p&gt;Referring to the other paths in your project file (e.g.&amp;nbsp;debug_additional_load_file) it seems that it should be something like the following (but please correct yourself if it is not the case):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;      debug_register_definition_file=&amp;quot;../nrf5_sdk/nRF5_SDK_15.0.0/modules/nrfx/mdk/nrf52840.svd&amp;quot;&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Access to the peripheral registers in debug mode</title><link>https://devzone.nordicsemi.com/thread/151381?ContentTypeID=1</link><pubDate>Wed, 03 Oct 2018 10:42:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0926b62-5402-4023-a8ca-718d13503d17</guid><dc:creator>ssargsyan</dc:creator><description>&lt;p&gt;Einar,&lt;/p&gt;
&lt;p&gt;You are right in my project file I&amp;#39;m missing it but after when I add it. Again it does not show the registers.&lt;br /&gt;Can you check if there are more missing configurations&lt;/p&gt;
&lt;p&gt;&amp;lt;configuration&lt;br /&gt; Name=&amp;quot;Common&amp;quot;&lt;br /&gt; arm_architecture=&amp;quot;v7EM&amp;quot;&lt;br /&gt; arm_core_type=&amp;quot;Cortex-M4&amp;quot;&lt;br /&gt; arm_endian=&amp;quot;Little&amp;quot;&lt;br /&gt; arm_fp_abi=&amp;quot;Hard&amp;quot;&lt;br /&gt; arm_fpu_type=&amp;quot;FPv4-SP-D16&amp;quot;&lt;br /&gt; arm_linker_heap_size=&amp;quot;2048&amp;quot;&lt;br /&gt; arm_linker_process_stack_size=&amp;quot;0&amp;quot;&lt;br /&gt; arm_linker_stack_size=&amp;quot;1024&amp;quot;&lt;br /&gt; arm_linker_treat_warnings_as_errors=&amp;quot;No&amp;quot;&lt;br /&gt; arm_simulator_memory_simulation_parameter=&amp;quot;RWX 00000000,00100000,FFFFFFFF;RWX 20000000,00010000,CDCDCDCD&amp;quot;&lt;br /&gt; arm_target_device_name=&amp;quot;nrf52840_xxAA&amp;quot;&lt;br /&gt; arm_target_interface_type=&amp;quot;SWD&amp;quot;&lt;br /&gt; c_preprocessor_definitions=&amp;quot;NO_VTOR_CONFIG;CONFIG_APP_IN_CORE;NRF52_SERIES;NRF52840;NRF52840_XXAA;S140;SOFTDEVICE_PRESENT;NRF_SD_BLE_API_VERSION=6;BOARD_PCA10056;CONFIG_GPIO_AS_PINRESET&amp;quot;&lt;br /&gt; c_user_include_directories=&amp;quot;src/CloudGWCom;src/power_management;src/Parser;src/STM/include;../nrf5_sdk/nRF5_SDK_15.0.0/components/libraries/mem_manager;src/SensorDrivers;include;common/include;../nrf5_sdk/nRF5_SDK_15.0.0/components/libraries/experimental_log/src;../nrf5_sdk/nRF5_SDK_15.0.0/components/libraries/experimental_memobj;../nrf5_sdk/nRF5_SDK_15.0.0/components/libraries/balloc;../nrf5_sdk/nRF5_SDK_15.0.0/components/softdevice/s140/headers/nrf52/;../nrf5_sdk/nRF5_SDK_15.0.0/modules/nrfx;../nrf5_sdk/nRF5_SDK_15.0.0/modules/nrfx/mdk;../nrf5_sdk/nRF5_SDK_15.0.0/modules/nrfx/hal;../nrf5_sdk/nRF5_SDK_15.0.0/modules/nrfx/templates/nRF52840;../nrf5_sdk/nRF5_SDK_15.0.0/components/toolchain/cmsis/include;../nrf5_sdk/nRF5_SDK_15.0.0/components/toolchain/gcc;../nrf5_sdk/nRF5_SDK_15.0.0/components/toolchain/cmsis/dsp/GCC;../nrf5_sdk/nRF5_SDK_15.0.0/components/boards;../nrf5_sdk/nRF5_SDK_15.0.0/integration/nrfx;../nrf5_sdk/nRF5_SDK_15.0.0/components/libraries/log;../nrf5_sdk/nRF5_SDK_15.0.0/components/libraries/util;../nrf5_sdk/nRF5_SDK_15.0.0/components/libraries/delay;../nrf5_sdk/nRF5_SDK_15.0.0/components/libraries/timer;../nrf5_sdk/nRF5_SDK_15.0.0/modules/nrfx/drivers/include;../nrf5_sdk/nRF5_SDK_15.0.0/integration/nrfx/legacy;../nrf5_sdk/nRF5_SDK_15.0.0/components/libraries/timer;../nrf5_sdk/nRF5_SDK_15.0.0/components/libraries/uart;../nrf5_sdk/nRF5_SDK_15.0.0/components/libraries/bsp;../nrf5_sdk/nRF5_SDK_15.0.0/components/softdevice/common;../nrf5_sdk/nRF5_SDK_15.0.0/components/libraries/experimental_section_vars;../nrf5_sdk/nRF5_SDK_15.0.0/components/libraries/experimental_log;../nrf5_sdk/nRF5_SDK_15.0.0/components/libraries/strerror;../nrf5_sdk/nRF5_SDK_15.0.0/components/libraries/fstorage;../nrf5_sdk/nRF5_SDK_15.0.0/components/libraries/mutex;../nrf5_sdk/nRF5_SDK_15.0.0/components/libraries/serial;../nrf5_sdk/nRF5_SDK_15.0.0/components/libraries/queue;../nrf5_sdk/nRF5_SDK_15.0.0/components/libraries/atomic;../nrf5_sdk/nRF5_SDK_15.0.0/components/libraries/atomic_fifo;../nrf5_sdk/nRF5_SDK_15.0.0/external/cJSON;..//external/micro-ecc;../nrf5_sdk/nRF5_SDK_15.0.0/components/libraries/experimental_memobj;../nrf5_sdk/nRF5_SDK_15.0.0/components/libraries/balloc;../nrf5_sdk/nRF5_SDK_15.0.0/external/fprintf;../nrf5_sdk/nRF5_SDK_15.0.0/components/ble/common;../nrf5_sdk/nRF5_SDK_15.0.0/components/ble/ble_services/ble_lbs;../nrf5_sdk/nRF5_SDK_15.0.0/components/ble/nrf_ble_gatt;../nrf5_sdk/nRF5_SDK_15.0.0/components/ble/nrf_ble_qwr;../nrf5_sdk/nRF5_SDK_15.0.0/components/libraries/pwr_mgmt;../nrf5_sdk/nRF5_SDK_15.0.0/components/softdevice/s140/headers;../nrf5_sdk/nRF5_SDK_15.0.0/components/ble/ble_advertising;../nrf5_sdk/nRF5_SDK_15.0.0/components/ble/ble_services/ble_nus;../nrf5_sdk/nRF5_SDK_15.0.0/components/ble/ble_link_ctx_manager;../nrf5_sdk/nRF5_SDK_15.0.0/components/libraries/button;../nrf5_sdk/nRF5_SDK_15.0.0/components/libraries/atomic_flags;../nrf5_sdk/nRF5_SDK_15.0.0/components/libraries/fifo;&amp;quot;&lt;br /&gt; debug_additional_load_file=&amp;quot;../nrf5_sdk/nRF5_SDK_15.0.0/components/softdevice/s140/hex/s140_nrf52_6.0.0_softdevice.hex&amp;quot;&lt;br /&gt; debug_start_from_entry_point_symbol=&amp;quot;No&amp;quot;&lt;br /&gt; debug_target_connection=&amp;quot;J-Link&amp;quot;&lt;br /&gt; debug_register_definition_file=&amp;quot;../../../../../../modules/nrfx/mdk/nrf52840.svd&amp;quot;&lt;br /&gt; gcc_debugging_level=&amp;quot;Level 3&amp;quot; linker_output_format=&amp;quot;hex&amp;quot;&lt;br /&gt; macros=&amp;quot;CMSIS_CONFIG_TOOL=../../../../../../external_tools/cmsisconfig/CMSIS_Configuration_Wizard.jar&amp;quot;&lt;br /&gt; linker_printf_width_precision_supported=&amp;quot;Yes&amp;quot;&lt;br /&gt; linker_section_placement_file=&amp;quot;$(ProjectDir)/flash_placement.xml&amp;quot;&lt;br /&gt; linker_section_placement_macros=&amp;quot;FLASH_PH_START=0x0;FLASH_PH_SIZE=0x100000;RAM_PH_START=0x20000000;RAM_PH_SIZE=0x40000;FLASH_START=0x26000;FLASH_SIZE=0xf8000;RAM_START=0x200032c8;RAM_SIZE=0x3f000&amp;quot;&lt;br /&gt; linker_section_placements_segments=&amp;quot;FLASH RX 0x0 0x100000;RAM RWX 0x20000000 0x40000&amp;quot;&lt;br /&gt; project_directory=&amp;quot;&amp;quot;&lt;br /&gt; project_type=&amp;quot;Executable&amp;quot; /&amp;gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Access to the peripheral registers in debug mode</title><link>https://devzone.nordicsemi.com/thread/151368?ContentTypeID=1</link><pubDate>Wed, 03 Oct 2018 09:20:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4db6147c-574a-4bf1-9a3f-79db911b5798</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Your project is probably missing the&amp;nbsp;debug_register_definition_file. I am not sure how you set it in the SES GUI, but it should work to open the project file (.&lt;span&gt;emProject) in an editor&amp;nbsp;and adding the following line (you can compare with a example project file from the SDK):&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="xml"&gt;      debug_register_definition_file=&amp;quot;../../../../../../modules/nrfx/mdk/nrf52840.svd&amp;quot;&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Access to the peripheral registers in debug mode</title><link>https://devzone.nordicsemi.com/thread/151338?ContentTypeID=1</link><pubDate>Wed, 03 Oct 2018 07:10:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0787599-8bc9-4a2a-8372-e163305effd8</guid><dc:creator>ssargsyan</dc:creator><description>&lt;p&gt;&lt;img alt="This what I see in my project" src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/5732.Untitled.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>