Wednesday, October 18th 2017, 1:52am UTC+2

You are not logged in.

  • Login
  • Register

godmode

Beginner

Date of registration: Oct 11th 2017

Posts: 1

1

Thursday, October 12th 2017, 3:39pm

Change register on action (run, stop, breakpoint) hook

Is it possible to execute a script on specific action like breakpoint, stop and run?
I'm writting soft for nRF52832 using Nordic Semiconductor nRF52 SDK.
The chip is programmed with so called softdevice a closed-source software which uses interrupts and co-exists with my appliacation.
Every time I need to break I need to change register PRIMASK (Cortex-M4) to 1 to suppress interrupts just before the breakpoint.
That is the only way to debug without hardfault - one step after the breakpoint.

So is it possible in Segger Embedded Studio to configure a hook to execute change in a register on a breakpoint?

SEGGER - Nino

Super Moderator

Date of registration: Jan 2nd 2017

Posts: 211

2

Yesterday, 10:43am

Hello Maciej,

Sorry for the delay in response.
Thank you for your inquiry.

Quoted

Is it possible to execute a script on specific action like breakpoint, stop and run?

This is currently not possible.

Quoted

I'm writting soft for nRF52832 using Nordic Semiconductor nRF52 SDK.
The chip is programmed with so called softdevice a closed-source software which uses interrupts and co-exists with my appliacation.
Every time I need to break I need to change register PRIMASK (Cortex-M4) to 1 to suppress interrupts just before the breakpoint.
That is the only way to debug without hardfault - one step after the breakpoint.

In such a case you can use the monitor debug mode that Nordic devices support.
More information can be found here: https://www.segger.com/products/debug-pr…mode-debugging/

Best regards,
Nino