EmbeddedRelated.com
The 2024 Embedded Online Conference

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


CodeWarrior Assembler (structures)

Started by Michael Huslig in 68HC1220 years ago 2 replies

Hi all, The special edition version of the CodeWarrior assembler has STRUCT/ENDSTRUCT directives. One can define a...

Hi all, The special edition version of the CodeWarrior assembler has STRUCT/ENDSTRUCT directives. One can define a structure: dataStruct: STRUCT var1: ds.b 1 var2: ds.w 1 ENDSTRUCT To create an instance of a structure:


Codewarrior - Link Error L1119: Vector allocated at absolute adress...

Started by johnpititto1976 in 68HC1220 years ago 3 replies

Hi All, I developing some field upgradable software using codewarrior v1.2. I have defined the vectors in the prm file as; ...

Hi All, I developing some field upgradable software using codewarrior v1.2. I have defined the vectors in the prm file as; INIT BootStart //First routine that is called VECTOR 2 _Startup VECTOR 7 RTI_Service VECTOR 6 IRQ_Service VECTOR 20 SCI0_Serv


Codewarrior & flash data problem

Started by Jordi Costa in 68HC1221 years ago 2 replies

I sent this question days ago and I don't receive any answer. Now I will try to explain the problem better. I'm new in HCS12...

I sent this question days ago and I don't receive any answer. Now I will try to explain the problem better. I'm new in HCS12 programming and after successful tests with Codewarrior Processor Expert using SPI, SCI, timers, etc., now I'm trying to store some data in flash. I thought that C


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


how to avoid erasing eeprom with Codewarrior 3

Started by ra in 68HC1221 years ago 2 replies

Hello Has anyone figured out how to avoid having Codewarrior 3 erase the eeprom every time one flashes the code with the ICD-12...

Hello Has anyone figured out how to avoid having Codewarrior 3 erase the eeprom every time one flashes the code with the ICD-12 target module? With version 2, one could achieve this by editing "P&E_ICD_erase_unsecure_hcs12.cmd", but with version 3 there is a new mech


Sample code in C using codewarrior for I2C Driver MC9S12DP256

Started by dafnapeld in 68HC1220 years ago 2 replies

Hi Please anyone can show me a sample code in C using Codewarrior for reading and writing using I2C interface for MC9S12DP256...

Hi Please anyone can show me a sample code in C using Codewarrior for reading and writing using I2C interface for MC9S12DP256 Micro Thank you Uri


Error in c program / Dragon 12 plus /68hcs12

Started by narendra pipaliya in 68HC1214 years ago 1 reply

Hello, I am doing my graduate project using Dragon 12 Plus kit. I have written C Progrm in codewarrior for my project. I got error like...

Hello, I am doing my graduate project using Dragon 12 Plus kit. I have written C Progrm in codewarrior for my project. I got error like TMSK1 is not declared. should I need to use any header file for staus register? It would most if anybody explain how to load program into 68hcs12 microcontroller with codewarrior? Thanking you, Narendra ------------------------------------ ...


BDM for Metrowerks Codewarrior 2.0

Started by ra in 68HC1221 years ago 3 replies

Hello Has anyone succeeded in getting Metrowerks Codewarrior 2.0 to debug an hcs12 board with a self-made BDM consisting of a...

Hello Has anyone succeeded in getting Metrowerks Codewarrior 2.0 to debug an hcs12 board with a self-made BDM consisting of a second hcs12 board running d-bug12? (this would sort of be equivalent to Technological Arts' microBDM12SX) The Metrowerks "True Ti


P&E HC12 Unsecure

Started by Bob Kohan in 68HC1221 years ago 2 replies

Has anyone else seen this problem? I installed and used the P&E HC12 Unsecure Utility. Now the CodeWarrior Debugger complains that it...

Has anyone else seen this problem? I installed and used the P&E HC12 Unsecure Utility. Now the CodeWarrior Debugger complains that it can not connect via ICD12 because some needed P&E DLLs are missing? Does the P&E install remove or replace some CodeWarrior DLLs? Thanks,


Codewarrior,C and large memory model

Started by Jordi Costa in 68HC1220 years ago 9 replies

I'm trying to generate some code in C for 12DG256 under Codewarrior. Memory model is large because software has to access a big amount...

I'm trying to generate some code in C for 12DG256 under Codewarrior. Memory model is large because software has to access a big amount of data in flash. Test is compiled with -CpPPAGE=0x30 -D_HCS12 -Ml options. At some point of the initialization process and inside PE_low_level_init(void) runni


Debuging with P&E USB MULTILINK & Codewarrior 3

Started by ra in 68HC1220 years ago 12 replies

Hello, While talking about P&E USB MULTILINK and debugging with ICD-12 in Codewarrior 3, would someone know a trick to...

Hello, While talking about P&E USB MULTILINK and debugging with ICD-12 in Codewarrior 3, would someone know a trick to facilitate stepping through "main" code without landing in interrupt driven background routines? (In C) For example, if there is a peri


undefined external references - Codewarrior/9S12E

Started by Tim Perry in 68HC1220 years ago 2 replies

Every thing was going along just fine until ??? Environment: CodeWarrior CW12_V3.0 Motorola 9S12E128 PE Beans I am...

Every thing was going along just fine until ??? Environment: CodeWarrior CW12_V3.0 Motorola 9S12E128 PE Beans I am getting the following undefined external references: _STORE_FAR_16 (ansibi.lib) _STORE_FAR_32 (ansibi.lib) _SET_PAGE (Start12.c.o)


Minidragon C code limit /Codewarrior serialmonitor

Started by jeff...@bendnet.com in 68HC1213 years ago 6 replies

Hello, I am using a Minidragon plus2 with mixed C & assembly as shown in the book: "Learning C by example" & have seemingly run into the max C...

Hello, I am using a Minidragon plus2 with mixed C & assembly as shown in the book: "Learning C by example" & have seemingly run into the max C code limit. Using special edition version of Codewarrior with serial monitor My C code is growing & now now during flash programming at approx 14210 bytes size the Hiwave debugger indicates: Link Error : L1102: Out of allocation space in segment R...


Duplicating an application with CodeWarrior and Processor Expert

Started by Robert L. Harris in 68HC1221 years ago 7 replies

We just completed a project using CodeWarrior and Processor Expert. Now we are starting a project for a sister product (95% the...

We just completed a project using CodeWarrior and Processor Expert. Now we are starting a project for a sister product (95% the same). I have tried several ways to make a copy of the original project but none of them "copy" or retain the PE stationary. Is there a way


CodeWarrior and BDM Problem

Started by eric_cina in 68HC1219 years ago 1 reply

Recently, when I try to load code onto my flash using the USB BDM and CodeWarrior, I get the following: "Error while loading diagnostics...

Recently, when I try to load code onto my flash using the USB BDM and CodeWarrior, I get the following: "Error while loading diagnostics algorithm to target system. The chip may be secured, or the derivative selected may be wrong." The chip is not secured and the derivative is ok. In order to no longer receive this message, I have to click ICD12->Debug Memory Map and then &q


s19 file and 3rd party programmers

Started by eric_cina in 68HC1218 years ago 3 replies

Hi all, I am using CodeWarrior and HC9S12A128 processor. I use s19 files created with from CodeWarrior with 3 byte addresses to download our...

Hi all, I am using CodeWarrior and HC9S12A128 processor. I use s19 files created with from CodeWarrior with 3 byte addresses to download our FW thru the serial port. This works fine. But now we are trying to get our 3rd party manufacture to program the A128 chips using these s19 files and they are failing. They use a BP Microsystems programmer and the chips come out blank as far as I c


Codewarrior - processor expert - Generate PRM file

Started by in 68HC1221 years ago

Hello, I am working on a project with a MC9S12A128B processor with Metrowerks Codewarrior and processor expert V2.00 ...

Hello, I am working on a project with a MC9S12A128B processor with Metrowerks Codewarrior and processor expert V2.00 (special edition). In order to declare variables and structures in EEPROM area I have added a new segment for the EEPROM in the .prm file


CodeWarrior warning :A12004 Value is truncated ...

Started by andr...@yahoo.co.uk in 68HC1212 years ago 1 reply

I'm wondering why I'm getting lots of these warnings - (A12004) Value is truncated to two bytes. ?? They are all indicated with a JSR...

I'm wondering why I'm getting lots of these warnings - (A12004) Value is truncated to two bytes. ?? They are all indicated with a JSR instruction. The code compiles and runs - but since I moved some of the routines into paged memory, rather then the non paged area - I get these warnings. Do I need to change a setting in CodeWarrior ? I know you have to be careful with JSR and paged memory...


Target hc12 Mathworks vs metrowerks codewarrior

Started by s12compact in 68HC1220 years ago 1 reply

Hello, I downloaded the CodeWarrior for the HCs12. I want to use it in combination with the target for the HC12 of...

Hello, I downloaded the CodeWarrior for the HCs12. I want to use it in combination with the target for the HC12 of Mathworks. The target works with version 1.2 or 2.0. The one I downloaded from www.metrowerks.com is version 3.1. Matlab doesn't recognize this v



The 2024 Embedded Online Conference