EmbeddedRelated.com
Memfault Beyond the Launch

HC12 s file generation

Started by Ming Jiang in 68HC1222 years ago 5 replies

Hello All, I burned a s2 file with metrowerks tool and tried to flash program it into the micro using P&E PROG12Z programmer. I...

Hello All, I burned a s2 file with metrowerks tool and tried to flash program it into the micro using P&E PROG12Z programmer. I realized that I need to use an app called SRecCvt from Motorola to convert my s2 file into a linear s file first. Could anybody please tell me the command line that I hav


Motorola linear vs paged S records

Started by Karoly Molnar in 68HC1221 years ago 2 replies

Hi All, I am implementing a boot loader for the HCS12 processor family. I use the linear memory layout that is mentioned in the...

Hi All, I am implementing a boot loader for the HCS12 processor family. I use the linear memory layout that is mentioned in the AN2153 App. Note. (This is the format that is used by P&E Micro's Flash programmer and Cosmic's compiler and it is now supported by Metrowerks as


Re: Codewarrior programming EEPROM in S12DG128

Started by Jonathan Masters in 68HC1219 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 68HC1221 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


ETBL

Started by Bob White in 68HC1221 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


Start12.c source code problem

Started by Mike in 68HC1219 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 .


CAN trouble on MC9212DP256B board

Started by Ashwin in 68HC1218 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 /*


Metrowerks HC12 Compiler

Started by bkohan_2000 in 68HC1219 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 68HC1221 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


CodeWarrior type cast objptr->funcptr

Started by Karsten Obenaus in 68HC1221 years ago 2 replies

We're using the Metrowerks Codewarrior for HC12 IDE and have encountered a problem with the compiler and type casting from an object...

We're using the Metrowerks Codewarrior for HC12 IDE and have encountered a problem with the compiler and type casting from an object pointer to a function pointer. Any help would be greatly appreciated. We'd like to use the HCS12 SGF NVM Standard Software Driver in our current


Reading data on Hyperterminal via serial connector P1

Started by Ashwin in 68HC1218 years ago 7 replies

I want to be able to view some data on an output device. I saw an example in the Metrowerks CodeWarrior and it outputs to the SCIO. I tried...

I want to be able to view some data on an output device. I saw an example in the Metrowerks CodeWarrior and it outputs to the SCIO. I tried doing that and I am able to see data on the transmit pin of the Serial connector (P1). How do I get that to talk with my computer's hyperterminal, so that I can see the data on the screen and not on the scope? The hyperterminal keeps saying "Unable t...


hc12 IRQ interrupt - help please

Started by cristian_d27 in 68HC1221 years ago 5 replies

For several days I've been trying to use the irq interrupt (low voltage on port e pin 1) without any success. I'm using metrowerks ...

For several days I've been trying to use the irq interrupt (low voltage on port e pin 1) without any success. I'm using metrowerks code warrior and a dbug12 board. How could I set the hc12 so that it executes my service routine when that pin goes low?. I have tried many methods (


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...


Codewarrior 3 and C++

Started by Daniel Lundin in 68HC1220 years ago 7 replies

Two questions: First: Will Codewarrior 3 for HCS12 support full ANSI C++ ? I'm using 1.2, and it didn't support the full...

Two questions: First: Will Codewarrior 3 for HCS12 support full ANSI C++ ? I'm using 1.2, and it didn't support the full standard, even though Metrowerks said it had "Full ANSI C++ draft". After testing the compiler and reading some help files, it appears th


Bugs or feature in Code Warrior Xgate stuff ?

Started by Kim Lux in 68HC1218 years ago 3 replies

I am running the Metrowerks Code Warrior xgate command line compiler and assembler in Eclipse. I've got the following issues: ...

I am running the Metrowerks Code Warrior xgate command line compiler and assembler in Eclipse. I've got the following issues: 1) The following instruction won't assemble with axgate.exe: TFR R6,PC Gives: ERROR A22005: Number or type of operands mismatch. Compiler listing gives 06fa, which is TFR R6, PC, according to the F


Bootloader HCS12

Started by tipet20002000 in 68HC1221 years ago 2 replies

Hello, Does anybody know how can I run application from RAM with metrowerks? I've done a bootloader in C for MC9S12A128 and...

Hello, Does anybody know how can I run application from RAM with metrowerks? I've done a bootloader in C for MC9S12A128 and a program with Builder C++ to download code from PC to HCS12 via RS485. I can download code into block 1, but to download code into block


Problems programing flash on M68KIT912DP256 with BDM Multilink/Metrowerks

Started by djsimpson100 in 68HC1222 years ago 3 replies

Hi all, I am having problems programming the flash on the MC9S912DP256. I am using Codewarrior HC12 V1.2 and the P&E BDM...

Hi all, I am having problems programming the flash on the MC9S912DP256. I am using Codewarrior HC12 V1.2 and the P&E BDM Multilink which came with the Motorola M68KIT912DP256. If I load the Fibo Flash example, the debugger stalls at at the 60% mark in execu


How to convert my *.abs to *.s19 file

Started by uripeled2000 in 68HC1221 years ago 2 replies

Hi I am developing software for the MC9S12DG256BCPV using the 9s12256 model 112 utility board and the Metrowerks CodeWarrior V2...

Hi I am developing software for the MC9S12DG256BCPV using the 9s12256 model 112 utility board and the Metrowerks CodeWarrior V2 after make I get DG256B_ProcessorExpert_P&E.abs. How to convert this file into *.s19 file in order to be able to download it to my utility Boar


CodeWarrior 6.1 debugger | HC9S12E128 breakpoints don't work

Started by Tim Perry in 68HC1220 years ago 1 reply

Environment: Windows XP Metrowerks Code Warrior Dev Studio 3.1 Real-Time Debugger 6.1 uController: HC9S12E128 Language: C &...

Environment: Windows XP Metrowerks Code Warrior Dev Studio 3.1 Real-Time Debugger 6.1 uController: HC9S12E128 Language: C & C++ Problem: I get the message "Cannot set hardware breakpoint at address " on all lines of code.


Banked Program - JSR and CALL in the same code

Started by Killingsworth, Steve in 68HC1220 years ago 4 replies

I have code that was configured to run in FLAT mode (SMALL memory model) on a DG128A using Metrowerks CodeWarrior. I am...

I have code that was configured to run in FLAT mode (SMALL memory model) on a DG128A using Metrowerks CodeWarrior. I am trying to convert it to run in BANKED mode and have run into a problem. I have some legacy in-line asm code that is not tolerant to the CALL/RTC



Memfault Beyond the Launch