Friday, December 15th 2017, 7:31am UTC+1

You are not logged in.

  • Login
  • Register

Dear visitor, welcome to SEGGER Forum. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

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: 460

2

Tuesday, October 17th 2017, 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