<?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>Can&amp;#39;t override bsp.h</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/67265/can-t-override-bsp-h</link><description>I would like to add events for button release and button long push to my application. I also want to keep the SDK folder unmodified for easy upgrades. 
 To do this I copied bsp.h to my project directory and added BSP_EVENT_KEY_0_RELEASE to the enum. I</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 30 Oct 2020 09:55:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/67265/can-t-override-bsp-h" /><item><title>RE: Can't override bsp.h</title><link>https://devzone.nordicsemi.com/thread/277766?ContentTypeID=1</link><pubDate>Fri, 30 Oct 2020 09:55:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb9a275c-66c5-4aa6-940c-bcb213441a67</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;Can you please post the whole project in a zip, or at least a simplified project which reproduce the issue?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't override bsp.h</title><link>https://devzone.nordicsemi.com/thread/277719?ContentTypeID=1</link><pubDate>Fri, 30 Oct 2020 06:40:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ded9b8a1-6cf1-470f-829a-71948cdfd555</guid><dc:creator>qualry</dc:creator><description>&lt;p&gt;I am using SDK 17 with linux. I just tested in SDK 16 and in windows and got the same unfortunate result.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't override bsp.h</title><link>https://devzone.nordicsemi.com/thread/277578?ContentTypeID=1</link><pubDate>Thu, 29 Oct 2020 11:12:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8088dd4a-754d-42b1-86a5-d8a44faea60d</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;Which SDK are you using? I was testing using SDK 16&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't override bsp.h</title><link>https://devzone.nordicsemi.com/thread/277213?ContentTypeID=1</link><pubDate>Tue, 27 Oct 2020 17:11:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b17a6f9-0a1d-40cd-92a9-c0ec81ff0466</guid><dc:creator>qualry</dc:creator><description>&lt;p&gt;Just tried that. No success placing the path before or after the bsp folder:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;Before:
&amp;#39;/usr/bin/arm-none-eabi-gcc&amp;#39; -x assembler-with-cpp -MP -MD -c -o _build/nrf52840_xxaa/gcc_startup_nrf52840.S.o ../../../../../../modules/nrfx/mdk/gcc_startup_nrf52840.S -g3 -mcpu=cortex-m4 -mthumb -mabi=aapcs -mfloat-abi=hard -mfpu=fpv4-sp-d16 -DAPP_TIMER_V2 -DAPP_TIMER_V2_RTC1_ENABLED -DBOARD_PCA10056 -DCONFIG_GPIO_AS_PINRESET -DFLOAT_ABI_HARD -DNRF52840_XXAA -DNRF_SD_BLE_API_VERSION=7 -DS140 -DSOFTDEVICE_PRESENT -D__HEAP_SIZE=8192 -D__STACK_SIZE=8192 -I../../../../../../components/nfc/ndef/generic/message -I../../../../../../components/nfc/t2t_lib -I../../../../../../components/nfc/t4t_parser/hl_detection_procedure -I../../../../../../components/ble/ble_services/ble_ancs_c -I../../../../../../components/ble/ble_services/ble_ias_c -I../../../../../../components/libraries/pwm -I../../../../../../components/libraries/usbd/class/cdc/acm -I../../../../../../components/libraries/usbd/class/hid/generic -I../../../../../../components/libraries/usbd/class/msc -I../../../../../../components/libraries/usbd/class/hid -I../../../../../../modules/nrfx/hal -I../../../../../../components/nfc/ndef/conn_hand_parser/le_oob_rec_parser -I../../../../../../components/libraries/log -I../../../../../../components/ble/ble_services/ble_gls -I../../../../../../components/libraries/fstorage -I../../../../../../components/nfc/ndef/text -I../../../../../../components/libraries/mutex -I../../../../../../components/libraries/gfx -I../../../../../../components/libraries/bootloader/ble_dfu -I../../../../../../components/nfc/ndef/connection_handover/common -I../../../../../../components/libraries/fifo -I../../../../../../components/boards -I../../../../../../components/nfc/ndef/generic/record -I../../../../../../components/nfc/t4t_parser/cc_file -I../../../../../../components/ble/ble_advertising -I../../../../../../external/utf_converter -I../../../../../../components/ble/ble_services/ble_bas_c -I../../../../../../modules/nrfx/drivers/include -I../../../../../../components/libraries/experimental_task_manager -I../../../../../../components/ble/ble_services/ble_hrs_c -I../../../../../../components/softdevice/s140/headers/nrf52 -I../../../../../../components/nfc/ndef/connection_handover/le_oob_rec -I../../../../../../components/libraries/queue -I../../../../../../components/libraries/pwr_mgmt -I../../../../../../components/ble/ble_dtm -I../../../../../../components/toolchain/cmsis/include -I../../../../../../components/ble/ble_services/ble_rscs_c -I../../../../../../components/ble/common -I../../../../../../components/ble/ble_services/ble_lls -I../../../../../../components/nfc/platform -I../../.. -I../../../../../../components/libraries/bsp -I../../../../../../components/nfc/ndef/connection_handover/ac_rec -I../../../../../../components/ble/ble_services/ble_bas -I../../../../../../components/libraries/mpu -I../../../../../../components/libraries/experimental_section_vars -I../../../../../../components/ble/ble_services/ble_ans_c -I../../../../../../components/libraries/slip -I../../../../../../components/libraries/delay -I../../../../../../components/libraries/csense_drv -I../../../../../../components/libraries/memobj -I../../../../../../components/ble/ble_services/ble_nus_c -I../../../../../../components/softdevice/common -I../../../../../../components/ble/ble_services/ble_ias -I../../../../../../components/libraries/usbd/class/hid/mouse -I../../../../../../components/libraries/low_power_pwm -I../../../../../../components/nfc/ndef/conn_hand_parser/ble_oob_advdata_parser -I../../../../../../components/ble/ble_services/ble_dfu -I../../../../../../external/fprintf -I../../../../../../components/libraries/svc -I../../../../../../components/libraries/atomic -I../../../../../../components -I../../../../../../components/libraries/scheduler -I../../../../../../components/libraries/cli -I../../../../../../components/ble/ble_services/ble_lbs -I../../../../../../components/ble/ble_services/ble_hts -I../../../../../../components/ble/ble_services/ble_cts_c -I../../../../../../components/libraries/crc16 -I../../../../../../components/nfc/t4t_parser/apdu -I../../../../../../components/libraries/util -I../config -I../../../../../../components/libraries/usbd/class/cdc -I../../../../../../components/libraries/csense -I../../../../../../components/libraries/balloc -I../../../../../../components/libraries/ecc -I../../../../../../components/libraries/hardfault -I../../../../../../components/ble/ble_services/ble_cscs -I../../../../../../components/libraries/uart -I../../../../../../components/libraries/hci -I../../../../../../components/libraries/usbd/class/hid/kbd -I../../../../../../components/libraries/timer -I../../../../../../components/softdevice/s140/headers -I../../../../../../integration/nrfx -I../../../../../../components/nfc/t4t_parser/tlv -I../../../../../../components/libraries/sortlist -I../../../../../../components/libraries/spi_mngr -I../../../../../../components/libraries/led_softblink -I../../../../../../components/nfc/ndef/conn_hand_parser -I../../../../../../components/libraries/sdcard -I../../../../../../components/nfc/ndef/parser/record -I../../../../../../modules/nrfx/mdk -I../../../../../../components/ble/ble_link_ctx_manager -I../../../../../../components/ble/ble_services/ble_nus -I../../../../../../components/libraries/twi_mngr -I../../../../../../components/ble/ble_services/ble_hids -I../../../../../../components/libraries/strerror -I../../../../../../components/libraries/crc32 -I../../../../../../components/nfc/ndef/connection_handover/ble_oob_advdata -I../../../../../../components/nfc/t2t_parser -I../../../../../../components/nfc/ndef/connection_handover/ble_pair_msg -I../../../../../../components/libraries/usbd/class/audio -I../../../../../../components/nfc/t4t_lib -I../../../../../../components/ble/peer_manager -I../../../../../../components/libraries/mem_manager -I../../../../../../components/libraries/ringbuf -I../../../../../../components/ble/ble_services/ble_tps -I../../../../../../components/nfc/ndef/parser/message -I../../../../../../components/ble/ble_services/ble_dis -I../../../../../../components/nfc/ndef/uri -I../../../../../../components/ble/nrf_ble_gatt -I../../../../../../components/ble/nrf_ble_qwr -I../../../../../../components/libraries/gpiote -I../../../../../../components/libraries/button -I../../../../../../modules/nrfx -I../../../../../../components/libraries/twi_sensor -I../../../../../../integration/nrfx/legacy -I../../../../../../components/libraries/usbd -I../../../../../../components/nfc/ndef/connection_handover/ep_oob_rec -I../../../../../../external/segger_rtt -I../../../../../../components/libraries/atomic_fifo -I../../../../../../components/ble/ble_services/ble_lbs_c -I../../../../../../components/nfc/ndef/connection_handover/ble_pair_lib -I../../../../../../components/libraries/crypto -I../../../../../../components/ble/ble_racp -I../../../../../../components/libraries/fds -I../../../../../../components/nfc/ndef/launchapp -I../../../../../../components/libraries/atomic_flags -I../../../../../../components/ble/ble_services/ble_hrs -I../../../../../../components/ble/ble_services/ble_rscs -I../../../../../../components/nfc/ndef/connection_handover/hs_rec -I../../../../../../components/nfc/ndef/conn_hand_parser/ac_rec_parser -I../../../../../../components/libraries/stack_guard -I../../../../../../components/libraries/log/src

After:
&amp;#39;/usr/bin/arm-none-eabi-gcc&amp;#39; -x assembler-with-cpp -MP -MD -c -o _build/nrf52840_xxaa/gcc_startup_nrf52840.S.o ../../../../../../modules/nrfx/mdk/gcc_startup_nrf52840.S -g3 -mcpu=cortex-m4 -mthumb -mabi=aapcs -mfloat-abi=hard -mfpu=fpv4-sp-d16 -DAPP_TIMER_V2 -DAPP_TIMER_V2_RTC1_ENABLED -DBOARD_PCA10056 -DCONFIG_GPIO_AS_PINRESET -DFLOAT_ABI_HARD -DNRF52840_XXAA -DNRF_SD_BLE_API_VERSION=7 -DS140 -DSOFTDEVICE_PRESENT -D__HEAP_SIZE=8192 -D__STACK_SIZE=8192 -I../../../../../../components/nfc/ndef/generic/message -I../../../../../../components/nfc/t2t_lib -I../../../../../../components/nfc/t4t_parser/hl_detection_procedure -I../../../../../../components/ble/ble_services/ble_ancs_c -I../../../../../../components/ble/ble_services/ble_ias_c -I../../../../../../components/libraries/pwm -I../../../../../../components/libraries/usbd/class/cdc/acm -I../../../../../../components/libraries/usbd/class/hid/generic -I../../../../../../components/libraries/usbd/class/msc -I../../../../../../components/libraries/usbd/class/hid -I../../../../../../modules/nrfx/hal -I../../../../../../components/nfc/ndef/conn_hand_parser/le_oob_rec_parser -I../../../../../../components/libraries/log -I../../../../../../components/ble/ble_services/ble_gls -I../../../../../../components/libraries/fstorage -I../../../../../../components/nfc/ndef/text -I../../../../../../components/libraries/mutex -I../../../../../../components/libraries/gfx -I../../../../../../components/libraries/bootloader/ble_dfu -I../../../../../../components/nfc/ndef/connection_handover/common -I../../../../../../components/libraries/fifo -I../../../../../../components/boards -I../../../../../../components/nfc/ndef/generic/record -I../../../../../../components/nfc/t4t_parser/cc_file -I../../../../../../components/ble/ble_advertising -I../../../../../../external/utf_converter -I../../../../../../components/ble/ble_services/ble_bas_c -I../../../../../../modules/nrfx/drivers/include -I../../../../../../components/libraries/experimental_task_manager -I../../../../../../components/ble/ble_services/ble_hrs_c -I../../../../../../components/softdevice/s140/headers/nrf52 -I../../../../../../components/nfc/ndef/connection_handover/le_oob_rec -I../../../../../../components/libraries/queue -I../../../../../../components/libraries/pwr_mgmt -I../../../../../../components/ble/ble_dtm -I../../../../../../components/toolchain/cmsis/include -I../../../../../../components/ble/ble_services/ble_rscs_c -I../../../../../../components/ble/common -I../../../../../../components/ble/ble_services/ble_lls -I../../../../../../components/nfc/platform -I../../../../../../components/libraries/bsp -I../../.. -I../../../../../../components/nfc/ndef/connection_handover/ac_rec -I../../../../../../components/ble/ble_services/ble_bas -I../../../../../../components/libraries/mpu -I../../../../../../components/libraries/experimental_section_vars -I../../../../../../components/ble/ble_services/ble_ans_c -I../../../../../../components/libraries/slip -I../../../../../../components/libraries/delay -I../../../../../../components/libraries/csense_drv -I../../../../../../components/libraries/memobj -I../../../../../../components/ble/ble_services/ble_nus_c -I../../../../../../components/softdevice/common -I../../../../../../components/ble/ble_services/ble_ias -I../../../../../../components/libraries/usbd/class/hid/mouse -I../../../../../../components/libraries/low_power_pwm -I../../../../../../components/nfc/ndef/conn_hand_parser/ble_oob_advdata_parser -I../../../../../../components/ble/ble_services/ble_dfu -I../../../../../../external/fprintf -I../../../../../../components/libraries/svc -I../../../../../../components/libraries/atomic -I../../../../../../components -I../../../../../../components/libraries/scheduler -I../../../../../../components/libraries/cli -I../../../../../../components/ble/ble_services/ble_lbs -I../../../../../../components/ble/ble_services/ble_hts -I../../../../../../components/ble/ble_services/ble_cts_c -I../../../../../../components/libraries/crc16 -I../../../../../../components/nfc/t4t_parser/apdu -I../../../../../../components/libraries/util -I../config -I../../../../../../components/libraries/usbd/class/cdc -I../../../../../../components/libraries/csense -I../../../../../../components/libraries/balloc -I../../../../../../components/libraries/ecc -I../../../../../../components/libraries/hardfault -I../../../../../../components/ble/ble_services/ble_cscs -I../../../../../../components/libraries/uart -I../../../../../../components/libraries/hci -I../../../../../../components/libraries/usbd/class/hid/kbd -I../../../../../../components/libraries/timer -I../../../../../../components/softdevice/s140/headers -I../../../../../../integration/nrfx -I../../../../../../components/nfc/t4t_parser/tlv -I../../../../../../components/libraries/sortlist -I../../../../../../components/libraries/spi_mngr -I../../../../../../components/libraries/led_softblink -I../../../../../../components/nfc/ndef/conn_hand_parser -I../../../../../../components/libraries/sdcard -I../../../../../../components/nfc/ndef/parser/record -I../../../../../../modules/nrfx/mdk -I../../../../../../components/ble/ble_link_ctx_manager -I../../../../../../components/ble/ble_services/ble_nus -I../../../../../../components/libraries/twi_mngr -I../../../../../../components/ble/ble_services/ble_hids -I../../../../../../components/libraries/strerror -I../../../../../../components/libraries/crc32 -I../../../../../../components/nfc/ndef/connection_handover/ble_oob_advdata -I../../../../../../components/nfc/t2t_parser -I../../../../../../components/nfc/ndef/connection_handover/ble_pair_msg -I../../../../../../components/libraries/usbd/class/audio -I../../../../../../components/nfc/t4t_lib -I../../../../../../components/ble/peer_manager -I../../../../../../components/libraries/mem_manager -I../../../../../../components/libraries/ringbuf -I../../../../../../components/ble/ble_services/ble_tps -I../../../../../../components/nfc/ndef/parser/message -I../../../../../../components/ble/ble_services/ble_dis -I../../../../../../components/nfc/ndef/uri -I../../../../../../components/ble/nrf_ble_gatt -I../../../../../../components/ble/nrf_ble_qwr -I../../../../../../components/libraries/gpiote -I../../../../../../components/libraries/button -I../../../../../../modules/nrfx -I../../../../../../components/libraries/twi_sensor -I../../../../../../integration/nrfx/legacy -I../../../../../../components/libraries/usbd -I../../../../../../components/nfc/ndef/connection_handover/ep_oob_rec -I../../../../../../external/segger_rtt -I../../../../../../components/libraries/atomic_fifo -I../../../../../../components/ble/ble_services/ble_lbs_c -I../../../../../../components/nfc/ndef/connection_handover/ble_pair_lib -I../../../../../../components/libraries/crypto -I../../../../../../components/ble/ble_racp -I../../../../../../components/libraries/fds -I../../../../../../components/nfc/ndef/launchapp -I../../../../../../components/libraries/atomic_flags -I../../../../../../components/ble/ble_services/ble_hrs -I../../../../../../components/ble/ble_services/ble_rscs -I../../../../../../components/nfc/ndef/connection_handover/hs_rec -I../../../../../../components/nfc/ndef/conn_hand_parser/ac_rec_parser -I../../../../../../components/libraries/stack_guard -I../../../../../../components/libraries/log/src&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't override bsp.h</title><link>https://devzone.nordicsemi.com/thread/277185?ContentTypeID=1</link><pubDate>Tue, 27 Oct 2020 15:05:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ca928b3-412d-4eea-9871-27908f35197e</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;Ok I see, thanks. I&amp;#39;m not sure what is wrong here. I tried doing the same here. Created a new folder where the main.c file is located. Copied the bsp.h file to this location. Made the modifications to the bsp_event_t enum, then I use this new enum value in main.&lt;/p&gt;
&lt;p&gt;If I add the path to INC_FOLDERS above the previous bsp path, it compiles just fine. If I add it after, the compilation fails.&lt;/p&gt;
&lt;p&gt;Can you try to run &amp;quot;make VERBOSE=1&amp;quot; to see if the include path is actually put in the right location?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't override bsp.h</title><link>https://devzone.nordicsemi.com/thread/276014?ContentTypeID=1</link><pubDate>Tue, 20 Oct 2020 17:01:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:006a0c81-bc5f-4139-8991-fc3e22503084</guid><dc:creator>qualry</dc:creator><description>&lt;p&gt;&amp;gt; I think you will have to remove the old bsp.h include path from the Makefile&lt;/p&gt;
&lt;p&gt;I can&amp;#39;t remove this path because there are other unmodified headers in this directory that need to be used (eg. bsp_btn_ble.h, bsp_config.h, bsp_cli.h).&lt;/p&gt;
&lt;p&gt;&amp;gt; Or you can rename the new bsp.h file.&lt;/p&gt;
&lt;p&gt;That won&amp;#39;t work because the header guards in the files will still be the same.&lt;/p&gt;
&lt;p&gt;&amp;gt; I think the question is why you want to edit the bsp.h file?&lt;/p&gt;
&lt;p&gt;Because I would like to add LONGPUSH events to the buttons in my application. The suggestion to edit bsp.h is made here:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/14494/button-release-and-button-press-event/55324#55324"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/14494/button-release-and-button-press-event/55324#55324&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;----&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I think maybe the paths for some header files are hardcoded in the sdk. For example, as a test, if I copy bsp_btn_ble.h to my project directory and modify the file my changes get compiled as expected unlike bsp.h.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't override bsp.h</title><link>https://devzone.nordicsemi.com/thread/275860?ContentTypeID=1</link><pubDate>Tue, 20 Oct 2020 10:50:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a486ed9-7ab7-4c15-b848-2026613f8f27</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;I think you will have to remove the old bsp.h include path from the Makefile. Or you can rename the new bsp.h file. I think the question is why you want to edit the bsp.h file?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>