as show:What modifications are needed to run the example code ble_multilink_central for Nordic 52832 on 52833? Please provide a detailed explanation
as show:What modifications are needed to run the example code ble_multilink_central for Nordic 52832 on 52833? Please provide a detailed explanation
Hi,
Based on the example name I assume you are using then nRF5 SDK? If so, which toolchain/IDE are you using?
If you are using Segger Embedded Studio (which I would recomend), the simplest is to open the .emProject file in a text exitor and search for a few terms. I would recomend starting with the nRF52840 example project to avoid confusion as several files for the nrF52832 just use "nrf52" for historic reasons. But, if you start with the nRF52840 projectyou can do the following:
linker_section_placement_macros="FLASH_PH_START=0x0;FLASH_PH_SIZE=0x40000;RAM_PH_START=0x20000000;RAM_PH_SIZE=0x8000;FLASH_START=0x27000;FLASH_SIZE=0x19000;RAM_START=0x20002ae8;RAM_SIZE=0x5518"
You can of course also do the changes in the Segger Embedded Studio GUI, but that will be more error prone and take more time.
hi
I also tried using Segger Embedded Studio as you suggested and changed 52840 to 52833; But I encountered the following issue during compilation
Building 'ble_app_multilink_central_pca10100_s140' from solution 'ble_app_multilink_central_pca10100_s140' in configuration 'Debug'
Compiling 'main.c'
Compiling 'boards.c'
Compiling 'bsp.c'
Compiling 'bsp_btn_ble.c'
Assembling 'ses_startup_nrf52833.s'
Assembling 'ses_startup_nrf_common.s'
Compiling 'system_nrf52833.c'
Compiling 'ble_advdata.c'
Compiling 'ble_advertising.c'
Compiling 'ble_conn_state.c'
Compiling 'ble_db_discovery.c'
Compiling 'ble_srv_common.c'
Compiling 'nrf_ble_gatt.c'
Compiling 'nrf_ble_gq.c'
Compiling 'nrf_ble_scan.c'
Compiling 'ble_lbs_c.c'
Compiling 'nrf_drv_clock.c'
Compiling 'nrf_drv_uart.c'
Compiling 'nrfx_atomic.c'
Compiling 'nrfx_clock.c'
Compiling 'nrfx_gpiote.c'
Compiling 'nrfx_prs.c'
Compiling 'nrfx_uart.c'
Compiling 'nrfx_uarte.c'
Compiling 'app_button.c'
Compiling 'app_error.c'
Compiling 'app_error_handler_gcc.c'
Compiling 'app_error_weak.c'
Compiling 'app_scheduler.c'
Compiling 'app_timer2.c'
Compiling 'app_util_platform.c'
Compiling 'drv_rtc.c'
Compiling 'hardfault_implementation.c'
Compiling 'nrf_assert.c'
Compiling 'nrf_atfifo.c'
Compiling 'nrf_atflags.c'
Compiling 'nrf_atomic.c'
Compiling 'nrf_balloc.c'
Compiling 'nrf_fprintf.c'
Compiling 'nrf_fprintf_format.c'
Compiling 'nrf_memobj.c'
Compiling 'nrf_pwr_mgmt.c'
Compiling 'nrf_queue.c'
Compiling 'nrf_ringbuf.c'
Compiling 'nrf_section_iter.c'
Compiling 'nrf_sortlist.c'
Compiling 'nrf_strerror.c'
Compiling 'nrf_log_backend_rtt.c'
Compiling 'nrf_log_backend_serial.c'
Compiling 'nrf_log_backend_uart.c'
Compiling 'nrf_log_default_backends.c'
Compiling 'nrf_log_frontend.c'
Compiling 'nrf_log_str_formatter.c'
Compiling 'SEGGER_RTT.c'
Compiling 'SEGGER_RTT_printf.c'
Compiling 'nrf_sdh.c'
Compiling 'nrf_sdh_ble.c'
Compiling 'nrf_sdh_soc.c'
Assembling 'thumb_crt0.s'
Compiling 'utf.c'
Generating linker script 'ble_app_multilink_central_pca10100_s140.ld'
Linking 'ble_app_multilink_central_pca10100_s140.elf'
.reserved_ram is too large to fit in RAM1 memory segment
.data_run is too large to fit in RAM1 memory segment
.bss is too large to fit in RAM1 memory segment
section .heap overlaps absolute placed section .stack
section .reserved_ram VMA wraps around address space
section .stack VMA [20006000,20007fff] overlaps section .reserved_ram VMA [20000000,00022ae7]
Build failed, exit status 0x1
Build failed
Could you please help me solve this? Also, if I use Keil, it would be more convenient for such changes compared to Egger Embedded Studio?
hi
I also tried using Segger Embedded Studio as you suggested and changed 52840 to 52833; But I encountered the following issue during compilation
Building 'ble_app_multilink_central_pca10100_s140' from solution 'ble_app_multilink_central_pca10100_s140' in configuration 'Debug'
Compiling 'main.c'
Compiling 'boards.c'
Compiling 'bsp.c'
Compiling 'bsp_btn_ble.c'
Assembling 'ses_startup_nrf52833.s'
Assembling 'ses_startup_nrf_common.s'
Compiling 'system_nrf52833.c'
Compiling 'ble_advdata.c'
Compiling 'ble_advertising.c'
Compiling 'ble_conn_state.c'
Compiling 'ble_db_discovery.c'
Compiling 'ble_srv_common.c'
Compiling 'nrf_ble_gatt.c'
Compiling 'nrf_ble_gq.c'
Compiling 'nrf_ble_scan.c'
Compiling 'ble_lbs_c.c'
Compiling 'nrf_drv_clock.c'
Compiling 'nrf_drv_uart.c'
Compiling 'nrfx_atomic.c'
Compiling 'nrfx_clock.c'
Compiling 'nrfx_gpiote.c'
Compiling 'nrfx_prs.c'
Compiling 'nrfx_uart.c'
Compiling 'nrfx_uarte.c'
Compiling 'app_button.c'
Compiling 'app_error.c'
Compiling 'app_error_handler_gcc.c'
Compiling 'app_error_weak.c'
Compiling 'app_scheduler.c'
Compiling 'app_timer2.c'
Compiling 'app_util_platform.c'
Compiling 'drv_rtc.c'
Compiling 'hardfault_implementation.c'
Compiling 'nrf_assert.c'
Compiling 'nrf_atfifo.c'
Compiling 'nrf_atflags.c'
Compiling 'nrf_atomic.c'
Compiling 'nrf_balloc.c'
Compiling 'nrf_fprintf.c'
Compiling 'nrf_fprintf_format.c'
Compiling 'nrf_memobj.c'
Compiling 'nrf_pwr_mgmt.c'
Compiling 'nrf_queue.c'
Compiling 'nrf_ringbuf.c'
Compiling 'nrf_section_iter.c'
Compiling 'nrf_sortlist.c'
Compiling 'nrf_strerror.c'
Compiling 'nrf_log_backend_rtt.c'
Compiling 'nrf_log_backend_serial.c'
Compiling 'nrf_log_backend_uart.c'
Compiling 'nrf_log_default_backends.c'
Compiling 'nrf_log_frontend.c'
Compiling 'nrf_log_str_formatter.c'
Compiling 'SEGGER_RTT.c'
Compiling 'SEGGER_RTT_printf.c'
Compiling 'nrf_sdh.c'
Compiling 'nrf_sdh_ble.c'
Compiling 'nrf_sdh_soc.c'
Assembling 'thumb_crt0.s'
Compiling 'utf.c'
Generating linker script 'ble_app_multilink_central_pca10100_s140.ld'
Linking 'ble_app_multilink_central_pca10100_s140.elf'
.reserved_ram is too large to fit in RAM1 memory segment
.data_run is too large to fit in RAM1 memory segment
.bss is too large to fit in RAM1 memory segment
section .heap overlaps absolute placed section .stack
section .reserved_ram VMA wraps around address space
section .stack VMA [20006000,20007fff] overlaps section .reserved_ram VMA [20000000,00022ae7]
Build failed, exit status 0x1
Build failed
Could you please help me solve this? Also, if I use Keil, it would be more convenient for such changes compared to Egger Embedded Studio?