EmbeddedRelated.com
Memfault Beyond the Launch

CodeWarrior Startup Initialization with BDM

Started by eric_cina in 68HC1219 years ago 10 replies

Hi, I'm trying to figure out how to initialize a register (MODE located at 0x0B) when I load my code through the debugger. In other...

Hi, I'm trying to figure out how to initialize a register (MODE located at 0x0B) when I load my code through the debugger. In other words I need to set this register but I do not want to change my code to do it. How can I do this? Do I need to use startup.cmd? If so, what are the commands to do it? Thanks in advance. Eric


Hi-wave/True-time debugger for HCS12X

Started by joshcurtz in 68HC1219 years ago 3 replies

Gilles/anyone who can answer, I've been using CodeWarrior for the HCS12X v 4.1 for about 6 months or so and I've occasionally had...

Gilles/anyone who can answer, I've been using CodeWarrior for the HCS12X v 4.1 for about 6 months or so and I've occasionally had questions that it seems the documentation couldn't address. Maybe it's just that I don't know where to look for the documentation but the Metrowerks website seems to be lacking documentation for the HCS12X products. Anyways, sin


Illegal Breakpoint

Started by Ming Jiang in 68HC1222 years ago 1 reply

Hello all, I am having a problem with my MC9S12DP256 eval board. Hopefully somebody can help me out. I set my target in ICD-12...

Hello all, I am having a problem with my MC9S12DP256 eval board. Hopefully somebody can help me out. I set my target in ICD-12 debugger mode. Most times I ran my code by hitting F5 (Start/Continue), suddenly it would stop on its own. and I saw the bottom message changed from RUNNING to ILLEGAL_BP. I


Inlining functions with CodeWarrior

Started by galenpatrickogrady in 68HC1219 years ago 1 reply

I'm trying to implement some functions as inline with CodeWarrior 2.0. I've tried the #pragma INLINE method with the -Oi compiler flag was ...

I'm trying to implement some functions as inline with CodeWarrior 2.0. I've tried the #pragma INLINE method with the -Oi compiler flag was well as the inlne keyword and compiled as C++. In all circumstances the code is not placed inline, there is still the original function call. I have verified this with the debugger. I'm quite sure that I have met


Lock out

Started by theobee00 in 68HC1221 years ago 4 replies

Hi All I got a bit of a strange one. Got a T board hooked via POD12 to a NoIce debugger. After modifying the Serial...

Hi All I got a bit of a strange one. Got a T board hooked via POD12 to a NoIce debugger. After modifying the Serial monitor for operation on the DP256B (only took a week:-)loaded the S19 file from the Motorola assembler (using MCUez shell) via the NoIce Load command.


Simulator/Debugger HCS12 Code warrior

Started by Rajasree A.N in 68HC1220 years ago 2 replies

Clear DayPlease guide me through some documentations for usng the components in code warrior simulator. Thanks, Rajasree ...

Clear DayPlease guide me through some documentations for usng the components in code warrior simulator. Thanks, Rajasree


Help with I2C hardware on the HC12

Started by thamiral in 68HC1220 years ago

Hello all, I am trying to interface my HC12 with an I2C EEPROM and I am having trouble performing a write to the EEPROM (Model...

Hello all, I am trying to interface my HC12 with an I2C EEPROM and I am having trouble performing a write to the EEPROM (Model No. M24C02) The worst part is that the in circuit debugger that I am using (ICD12Z from P&E) seems to be doing something really weird whe


Re: Metrowerks/Hiwave/PE-USB Very Slow

Started by John Hartman NoICE in 68HC1219 years ago 4 replies

>I use a combination of Metrowerks and PE-USB-ML Cable. >Lately I have noticed that response to run/stop and reset when debugging >are...

>I use a combination of Metrowerks and PE-USB-ML Cable. >Lately I have noticed that response to run/stop and reset when debugging >are very slow. I think that this has been happening for a while but now >it seems to happen at nearly every step. >When I say slow, sometimes it takes 20-25 seconds for the debugger to >stop my hardware!


Codewarrior HC12 V1.2 and USB Multilink ML-12 Rev C.

Started by "Guillermo F. Molina" in 68HC1217 years ago 2 replies

Hi all, Did anyone know if it is any chance to use the Hiwave debugger of the (old!) Codewarrior V1.2 with the new USB Multilink (ML-12 Rev....

Hi all, Did anyone know if it is any chance to use the Hiwave debugger of the (old!) Codewarrior V1.2 with the new USB Multilink (ML-12 Rev. C )? Thanks in advance. Best regards, G.Molina


bootloader for 9s12c128

Started by leoundmarion in 68HC1219 years ago 5 replies

Hello! I adadpted the bootloader described in AN2153. I didn't copy it into the RAM but put it into ROM at Adress C000 to D000. ...

Hello! I adadpted the bootloader described in AN2153. I didn't copy it into the RAM but put it into ROM at Adress C000 to D000. Then I wanted to write into the PAGED Area of the RAM (e.g. 388000) If I debug the Code with my BDM Debugger step by step everything works fine, but if I let it run, the Program Conunter crashes after setting


trouble with PLL on the HC12

Started by Chris in 68HC1213 years ago 13 replies

Hello; I am using an ICC12 compiler and NOICE debugger with a USB pod with an HC12 128kB chip running with a 16MHz crystal. My problem is that...

Hello; I am using an ICC12 compiler and NOICE debugger with a USB pod with an HC12 128kB chip running with a 16MHz crystal. My problem is that when I try to set the PLL up for about 40MHz, the code does not seem to work in the way it should and I can't get a LOCK - or even a TRACK signal. I have to turn off the PLLSEL bit before trying to set up the mult and divide registers and turning the...


Trigger A occurred on HCS12 & CW6.1

Started by AndreaT in 68HC1213 years ago

I'm very new to embedded systems programming and learning about scheduling. I am getting a Trigger A occurred in the command window of the...

I'm very new to embedded systems programming and learning about scheduling. I am getting a Trigger A occurred in the command window of the debugger when I hit RUN. When I step through the code it seems to reset? at asm cli at the end of the code. Please let me know if you all have any ideas. /* Started with Valvano Fixed Priority Scheduler. System should light two LEDs alternately every 500...


Using Terminal in Codewarrior - no serial port

Started by blewis999 in 68HC1218 years ago 2 replies

We are using CW and a 9sdg128B and need to I/O to a serial port... but have no phsyical serial port on the board. It seems like it should be...

We are using CW and a 9sdg128B and need to I/O to a serial port... but have no phsyical serial port on the board. It seems like it should be possible to use Terminal component in the Debugger, but it isn't obvious to me how to do so. The doc set says this component relates to the Abatron BDI... whatever that is. Has anyone any advice on how to do this please, or can it even be done? W...


PIFP Register - BSet Error

Started by Stefan Loos in 68HC1220 years ago 2 replies

Hi I?m new to this group. I?m from Germany so please excuse mistakes in my english. We encountered a strange behaviour...

Hi I?m new to this group. I?m from Germany so please excuse mistakes in my english. We encountered a strange behaviour modifiing bitwise the PIFP Register. We use cosmic debugger. The PIFP adress is declared as 0x25f afair (16Bit ext. adress?) The


Reset and wrong value in eeprom

Started by Pascal in 68HC1217 years ago 7 replies

Hello, I write some values in the eeprom of 9s12dt128. Before doing a hard reset (power off) if i read the content at 0x800 it is...

Hello, I write some values in the eeprom of 9s12dt128. Before doing a hard reset (power off) if i read the content at 0x800 it is correct. I do the hard reset and i follow this code with the debugger : for(;;) { /* forever: initialize the program; call the root-procedure */ if (!(_startupData.flags&STARTUP_FLAGS_NOT_INIT_SP)) { /* initialize the stack pointer */ ...


HC12D60A, EEprom and Flash programming

Started by bitjockey1 in 68HC1221 years ago 2 replies

Hello, I am using CW to develop and app using the HC12D60A MCU. I have settings in EEprom that I don't want overwritten when...

Hello, I am using CW to develop and app using the HC12D60A MCU. I have settings in EEprom that I don't want overwritten when the debugger is started. I have the section declared as "NO_INIT" in my flash.prm file, but the EEprom still gets initialized to FF's on


Programming 68HC912B32 Flash

Started by alienprey2000 in 68HC1221 years ago 1 reply

I have some simple code which is runing fine through Cosmic's ZAP debugger. I believe that ZAP actually programs the onboard flash...

I have some simple code which is runing fine through Cosmic's ZAP debugger. I believe that ZAP actually programs the onboard flash so I assumed that after it was programmed I would be able to power down, remove the BDM interface, power back up and the chip would run the code (def


DG128 locks up after 1 second

Started by mstrbelvedere in 68HC1221 years ago 6 replies

Hello, My program for the 912DG128 chip (using P&E's Dev-Dg128 development board) runs fine if I am running P&E's ICD12Z...

Hello, My program for the 912DG128 chip (using P&E's Dev-Dg128 development board) runs fine if I am running P&E's ICD12Z debugger, but locks up after 1 second every time if I run the chip by itself. I've stripped a lot of code out, and have rearranged things, and find


bulk erasing eeprom

Started by Anish in 68HC1221 years ago 6 replies

Hi I am trying to bulk erase the 768 Byte EEPROM in 6812b32. I have written an assembly code for erasing it. I can see thru the...

Hi I am trying to bulk erase the 768 Byte EEPROM in 6812b32. I have written an assembly code for erasing it. I can see thru the debugger that when my code executes the eeprom is erased and all contents are FF but when I reset my processor then eeprom contains my previous data.


Problem debugging firmware generated by Processor Expert

Started by cwching.rm in 68HC1219 years ago 7 replies

Hi all, I am using the M68KIT912DP256 development kit from Freescale to develop the firmware for MC9S12A64CPV microcontroller. I am using...

Hi all, I am using the M68KIT912DP256 development kit from Freescale to develop the firmware for MC9S12A64CPV microcontroller. I am using the Processor Expert within Metrowerks Codewarrior for HCS12 to build an initial startup project, with the target CPU of MC9S12DP256BCPV. As I tried to debug my firmware using the Hi-wave debugger, I experienced problem in setting breakpoints. I keep get...



Memfault Beyond the Launch