This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

HOW TO DEBUG APPLICATION WITH BOOTLOADER USING SEGER IDE.

Hi,

  • In need to debug my application using segger IDE when there is bootloader already present in nrf52832 chip . 
  • The sdk we are using is SDK 15.3
  • Bootloader:- "secure_bootloader_ble_s132_pca10040.hex" (:- not debug version)
  • Application:- "ble_hid_mouse"  with our on modification and DFU_OTA feature is also included in it.
  • Every thing is working fine.
  • IDE:- SEGGER

Problem is

When there is Softdevice + bootloder +application in nrf52832 chip the cursor movement is showing some unwanted jumping so to fix these we need to find the x and y co-ordinate when these is happening .

If there is only softdevice + application no such  issues are happening.

To solve these

We need to debug the application when there is bootloader present in nrf52832 chip .

For that

By referring similar tickets facing these issue  .I generate a hex by merging bootloader  hex and bootloader setting  hex  (were bootloader setting hex is generated with the application we are trying to program to chip  )

Then using nrfjprog i programmed the bootloader +bootloader setting hex to nrf52832 chip .

Then using segger IDE i tried to program the  application hex to  nrf52832 chip by pressing "Bulid and Debug"  option  from " Build " 

After that when i start debug an error is showing .look below screen shot

I think these issue is due to the erase operation is happening before downloading the hex to  nrf52832 chip while pressing "Bulid and Debug"  option .

I need to debug the application when there is bootloder present please help me to find a solution for these its major issue to us .

please reply as soon as you can possible.

Parents
  • Look the screen shot below 

    I take the memory layout of nrf52832 chip before and after flashing the "Application hex" with segger IDE . 

    BEFORE(ie now there is only SD+BL+BLS)

    AFTER (ie now i flashed the application using segger ide)

    Did you notice the variation in softdevice start address in both . 

    I think that while i programming through segger ide . BOOTLODER section which is overlapping with softdevice section is deleting . what's why i getting the "No bootloader was found  " error.

    Is there any solution for these.

Reply
  • Look the screen shot below 

    I take the memory layout of nrf52832 chip before and after flashing the "Application hex" with segger IDE . 

    BEFORE(ie now there is only SD+BL+BLS)

    AFTER (ie now i flashed the application using segger ide)

    Did you notice the variation in softdevice start address in both . 

    I think that while i programming through segger ide . BOOTLODER section which is overlapping with softdevice section is deleting . what's why i getting the "No bootloader was found  " error.

    Is there any solution for these.

Children
No Data
Related