cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to set breakpoint using Keil

Vu.Andy
Associate III
Posted on June 28, 2016 at 00:33

I am fairly new to Keil and HAL libraries.  First I use Cube to generate a project for the CAN project.  I notice that I cannot set a breakpoint on any function that is not explicitly called in main.C.  Well there are a lot of interrupt functions that are called indirectly so how can I set a breakpoint to an interrupt function.

Specifically, I am trying to set a breakpoint for function HAL_CAN_RxCpltCallback(), but Keil won't let me do that.  Is it a Keil issue or Cube?  By the way, I am using a non-commercial version of Keil so I don't know if that is the case.

EDIT: Well I thought I tried to use a UART example for the Nucleo board because the interrupt structure is similar.  For this project, I was able to set a break point for HAL_UART_RxCpltCallback() which is similar to the CAN example.  So I am not sure why on certain project, a breakpoint is possible.  Is it a Cube issue?

Nevermind ...  I found out what the problem might be.
1 REPLY 1
slimen
Senior
Posted on June 28, 2016 at 11:46

Hi,

I don't think that this issue is related to Keil or Cube ! It can be problem in option setting?

Regards