cancel
Showing results for 
Search instead for 
Did you mean: 

IAR V7..30 for arm Debug can't stop the target

landlde
Associate II
Posted on January 11, 2015 at 13:30

When I debug the usb of stm32f103, using ST firmware library and st-link .

Will appear the following questions:

I want to suspend operation, but the IAR will be prompted to me that ''Target is running,Failed to stop the target''!!

If I delete the code:

 /*

NVIC_InitStructure.NVIC_IRQChannel = USB_LP_CAN1_RX0_IRQn;

  NVIC_InitStructure.NVIC_IRQChannelPreemptionPriority = 6;

  NVIC_InitStructure.NVIC_IRQChannelSubPriority = 7;

  NVIC_InitStructure.NVIC_IRQChannelCmd = ENABLE;

  NVIC_Init(&NVIC_InitStructure);

  

  NVIC_InitStructure.NVIC_IRQChannel = USBWakeUp_IRQn;

  NVIC_InitStructure.NVIC_IRQChannelPreemptionPriority = 5;

  NVIC_InitStructure.NVIC_IRQCha */

There is no problem for debug

Why ???   (

My English ability is very poor, but I tried my best to in the description

)0690X00000602zUQAQ.png
4 REPLIES 4
Posted on January 11, 2015 at 15:09

Is the chip going into a low power mode?

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
landlde
Associate II
Posted on January 11, 2015 at 15:18

I didn't set the low power mode。

Is affected the debug registers when setting USB interrupt?

Where I find for a long time always can't find the problem.

I tried to use the STM32 ST - LINK Utility for debug, the dialog will appear:“Can't run core while booting form FLASH memory and read out protection is activated�?

Posted on January 11, 2015 at 15:33

You need to comment out any code putting the device into low power mode.

It's going to be hard to debug USB by stopping it in a debugger, it has real-time requirements which it will fail to meet while waiting for you to respond.
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
landlde
Associate II
Posted on January 11, 2015 at 15:38

oh,

I will probably understand.

When a USB into pending state, STM32 into low power mode, is it?