Why can't I set more than 2 Breakpoints?? "No Free Resources" for simplest program!!

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Why can't I set more than 2 Breakpoints?? "No Free Resources" for simplest program!!

1,857 Views
pIx
Contributor I
HI

I am using Codewarrior v4.5 and use the Debugger window to set Breakpoints. My MCU is HCS12DP512.

If I set more than 2 breakpoints, I get the message "No free resources to set BreakPoint"... even for the simplest programs. Please help on what can be done. Its really painfull to do any sort of debugging with just 2 breakpoints.

Thanks,
Sujith
Labels (1)
0 Kudos
3 Replies

529 Views
mjbcswitzerland
Specialist V

Hi Sujith

If you are debugging in FLASH this about the maximum number possible in the DBM module on the chip (some of the HCS12 should also do 3).

If more are required it will be necessary to either run the code from RAM, which may require special hardware. The next step is to use an emulator which are less popular nowadays since the BDM hardware has made them in most cases redundant and they do cost a lot of money.

Another possibility is to develop with a simulator. There is one built into the CW but it will only allow debugging quite simple programs and will not be very useful for complete applications.

If this is a serious issue for you you can also look at the uTasker operating system with real-time application simulator. It allows almost all code to be developed and tested on the PC and so debugging on the target is restricted to special cases. On teh PC there are no limits to break point and there are various other advantages sich as stack integrity monitoring and such things which are not really possible on the target.

It is designed for the NE64, specifically for embedded IP projects but could also be used for other HCS12 devices. See the following to get an idea about it
http://forums.freescale.com/freescale/board/message?board.id=16BITCOMM&message.id=897
It also simulates the Freescale Coldfire (M5223X) but has also be used for other ColdFire types. Maybe it could help you.

Regards

Mark Butcher
www.mjbc.ch / www.uTasker.com

0 Kudos

529 Views
pIx
Contributor I
Thanks for the reply. I didn't know that the Full chip simulation will jump into interrupt routines etc.. (when nitiated from within the MCU) and so will use that as a prelude to hardware debugging.

Thanks again.
0 Kudos

529 Views
imajeff
Contributor III
I've had several problems with debugging in simulators. That's why I like the idea of expandsion RAM for my Adapt9S12 board. Except I look now and one is only available for the E128 :smileysad:

http://www.technologicalarts.ca/
0 Kudos