Tracing application on target

Started by K.N.Mahesh in 68HC1213 years ago 4 replies

Hi, I use Metrowerks Codewarrior v3.1 to develop and debug application for DJ128B over ICD-12 interface. The target...

Hi, I use Metrowerks Codewarrior v3.1 to develop and debug application for DJ128B over ICD-12 interface. The target connects to the host over P&E USB Multilink. I have a requirement to measure throughput of the application in normal run. In order to


Problem with PORT P, HC9S12E128

Started by ymliao in 68HC1214 years ago 2 replies

Hi! I am using an Adapt9s12e128 from Technological Arts without BDM. I am trying to use PORT Q as outputs to control LEDs....

Hi! I am using an Adapt9s12e128 from Technological Arts without BDM. I am trying to use PORT Q as outputs to control LEDs. PMF is disabled. However, I am having some problem with bit 6 of this port. If I set every bit in this port(Q6-Q0) to 1, with Metrowerks' r


Re: HELP

Started by ra in 68HC1214 years ago 1 reply

Hello Yel, For what ever my own initial experience may be worth: the P & E USB HCS12 Multilink (ca 200$) with the free trial...

Hello Yel, For what ever my own initial experience may be worth: the P & E USB HCS12 Multilink (ca 200$) with the free trial edition (max 12 kB code) of Metrowerks Codewarrior HCs12 Version 3 is a good way to get started if funds are limited. (the download version obtained from the Me


listing file options

Started by Dave Sivertsen in 68HC1212 years ago 14 replies

When I have ported past Motorola projects, I have used asm12, and cleaned up post port by using a listing option which shows where symbols ...

When I have ported past Motorola projects, I have used asm12, and cleaned up post port by using a listing option which shows where symbols are defined and referenced (compile switch). Unused symbols (variables or labels) have no references listed. Now I am in Metrowerks with a ported, absolute assembly program, and although there are many switches, I can't fi


Re: Codewarrior programming EEPROM in S12DG128

Started by Jonathan Masters in 68HC1213 years ago 17 replies

Gilles, Cheers for your service. I had been critical overnight of the Metrowerks service pages, but as usual this forum has proved worth...

Gilles, Cheers for your service. I had been critical overnight of the Metrowerks service pages, but as usual this forum has proved worth its weight. The algorithm plugged in a ran nicely. My alternate solution from last post last night didn't work and I had resorted to copying the table with a runtime function into EEPROM when it detected the


HC12 Inline Assembler & CW V1.2

Started by bitjockey1 in 68HC1215 years ago 3 replies

Hello, Iam trying to port Gordon Doughmans' bootloader for the B32 into the Metrowerks compiler V1.2 so I can program an 912D60A...

Hello, Iam trying to port Gordon Doughmans' bootloader for the B32 into the Metrowerks compiler V1.2 so I can program an 912D60A from the serial port. If I use any of the directives in the program I get an Ignore Directive warning C12062. The help file for the compiler does


9s12ne64 or derivative, write to flash, help!

Started by ericshufro in 68HC1213 years ago 2 replies

I am using metrowerks and have reserver non banked flash from $4000- $4200, so no code lives there. I would like to erase the 512...

I am using metrowerks and have reserver non banked flash from $4000- $4200, so no code lives there. I would like to erase the 512 bytes there (i believe you have to erase 512b at a time), and then write data from a buffer into the region. I am having crashing problems


ETBL

Started by Bob White in 68HC1215 years ago 3 replies

I'm using Metrowerks CodeWarrior for HC12. The HC12 has a couple of cool new instructions for interpolation, TBL and ETBL. Is there...

I'm using Metrowerks CodeWarrior for HC12. The HC12 has a couple of cool new instructions for interpolation, TBL and ETBL. Is there some way that the compiler will use these instructions, or do I have to roll my own? I looked in the "manuals", to no avail. Thanks, Bob White


const objects in flash with Metrowerks Compiler

Started by djsimpson100 in 68HC1215 years ago 4 replies

Hi, I want to have a structure array point to another structure array, and both structures reside in flash on an HC12. A...

Hi, I want to have a structure array point to another structure array, and both structures reside in flash on an HC12. A (very) simplified example is shown below. /* * Test.c */ struct s1 { int i1; int i2; }; str


Single stepping executes timer interrupt

Started by in 68HC1215 years ago 8 replies

Hello, What is wrong if the RTI interrupt gets executed whenever I singlestep with a P&E Multilink and metrowerks codewarrior ...

Hello, What is wrong if the RTI interrupt gets executed whenever I singlestep with a P&E Multilink and metrowerks codewarrior special edition (2.something). I can set breakpoints and run to them but whenever I singlestep from here the timer interrupt is exe


DWARF oops

Started by Bob White in 68HC1216 years ago 11 replies

Woops, I forgot. Motorola Metrowerks CodeWarrior for HC12. I made a C function to setup my control registers (called...

Woops, I forgot. Motorola Metrowerks CodeWarrior for HC12. I made a C function to setup my control registers (called port_setup.c) in its own file and added it to a project. I get a linker error message L1923 that says the file ..."\ram_application\objectcode\port_setup.c.o has


Dev Systems

Started by Bruce McMillan in 68HC1215 years ago 1 reply

Hi. I have > a motorola eval board EVB912DP256 (with D-Bug12 loaded) > a P&E BDM multilink (using Metrowerks or NoICE) > my...

Hi. I have > a motorola eval board EVB912DP256 (with D-Bug12 loaded) > a P&E BDM multilink (using Metrowerks or NoICE) > my target system ('DP256) - 4MHz crystal, 16MHz bus speed I can control my target with the EVB(as pod) - no problem. I can control the E


Problem programming flash on M68EVB912B32

Started by markalnori in 68HC1214 years ago 3 replies

Hello, This is a frustratingly simple problem. I'm trying to program the flash on the M68EVB912B32 with user code via an S...

Hello, This is a frustratingly simple problem. I'm trying to program the flash on the M68EVB912B32 with user code via an S Record generated by Metrowerks CodeWarrior IDE. So far, no luck. This is what happens. The S-Record looks something like this (erased long ends t


Start12.c source code problem

Started by Mike in 68HC1213 years ago 3 replies

Hi all, I've been working with the 9S12E128 MCU and have found an interesting problem when using metrowerks code warrior. ...

Hi all, I've been working with the 9S12E128 MCU and have found an interesting problem when using metrowerks code warrior. On my program execution, an illegal breakpoint would be performed and execution would stop. After investigating I found the following .


How do I get Code to Flash using TBDML?

Started by Stefan Stenzel in 68HC1213 years ago

Hello, Subject says it all, I have a prototype of my hardware with a 64-pin UF32, interfaced to a TBDML hardware, using metrowerks...

Hello, Subject says it all, I have a prototype of my hardware with a 64-pin UF32, interfaced to a TBDML hardware, using metrowerks tools, now I can't figure out how to get my code into flash. Of course I could RTFM, write a loader and a flash programmer, but I am somewhat in a hurry and I assume this is a problem that has been solved a thousand times befor


CAN trouble on MC9212DP256B board

Started by Ashwin in 68HC1212 years ago 14 replies

I am trying to communicate with another development board running at 40MHz. I want to light up the LED0 of PORT B if the code enters the receive...

I am trying to communicate with another development board running at 40MHz. I want to light up the LED0 of PORT B if the code enters the receive ISR to start with and would like to store and display the received data somehow on the motorola board. It is not happening. Any suggestions? This is the snippet of the ISR. I am compiling it using Metrowerks Code Warrior. #include /*


timer interrupt - abs_address ; abs_address

Started by koby_bens in 68HC1214 years ago

hi everyone! i am trying to make timer interrupt i found example which include abs_address interrupt_handler but but the compiler...

hi everyone! i am trying to make timer interrupt i found example which include abs_address interrupt_handler but but the compiler canwt handle them (c4201 pragmaabs_address was not handled,i am using metrowerks codewarrior), i need to see an example that work on codewarrior


Newbie questions

Started by mortisgr in 68HC1212 years ago

Hello all, I have these newbie questions if can someone spent some time answering them it would be very nice. ->What is the difference...

Hello all, I have these newbie questions if can someone spent some time answering them it would be very nice. ->What is the difference between small, banked and long memory model? ->When I use true time Simulator(Metrowerks) I cannot alter any memory positions nor my program can. If for example alters a variable of mine the proper position becomes red highlighted(until next order) a


Metrowerks HC12 Compiler

Started by bkohan_2000 in 68HC1213 years ago 2 replies

I have noticed a weird thing. My startup code looks like this: #pragma CODE_SEG FLSH_ROM #pragma NO_FRAME void...

I have noticed a weird thing. My startup code looks like this: #pragma CODE_SEG FLSH_ROM #pragma NO_FRAME void a_reset(void) { unsigned int *int_ee_location; // write to mapping registers once asm { clra staa INITRG ; control regs a


EEPROM write simulation with Codewarrior

Started by in 68HC1215 years ago 2 replies

Hello, Is it possible to simulate EEPROM writing with the simulator in Metrowerks Codewarrior V2.0 (special edition)? ...

Hello, Is it possible to simulate EEPROM writing with the simulator in Metrowerks Codewarrior V2.0 (special edition)? I use code generated by processor expert to write the EEPROM and when the function WriteSector() checks the CBEIF flag in ESTAT the memo