EmbeddedRelated.com
The 2024 Embedded Online Conference

length of S19 records

Started by Jordi Costa in 68HC1220 years ago 8 replies

What is the maximum expected data length for S19 records ? I found that program data records (S1, S2) are typically 32 data bytes...

What is the maximum expected data length for S19 records ? I found that program data records (S1, S2) are typically 32 data bytes long, while S0 record is including file path information (Codewarrior) and then could be very long. Regards, Jordi Costa


Flash MC9S12E via Serial Monitor Problem

Started by ymliao in 68HC1218 years ago 6 replies

Hi, I have been trying struggling for a week to flash micro via serial monitor without success. I really appreciate if anyone could give me...

Hi, I have been trying struggling for a week to flash micro via serial monitor without success. I really appreciate if anyone could give me some pointers. I've tried to use ubug12, hc12mem and CodeWarrior's True-Time Simulator and Real-Time Debugger, without much luck. The micro is MC9S12E128. My board is not an eval board, and there is no run/load switch. My project is created a...


Link Error:L1822 Symbol _FUFLOAT is undefined

Started by yurichew in 68HC1220 years ago 1 reply

hi to all, I'm a newbie to HC12 (MC9S12E128) MCU (about 4 months) and CodeWarrior.Recently i encounter some problems in my program.I want to...

hi to all, I'm a newbie to HC12 (MC9S12E128) MCU (about 4 months) and CodeWarrior.Recently i encounter some problems in my program.I want to use the sqrt function in my program but it end up with an error that _FUFLOAT is undefiened although i didn't declare it in my program.Below is the portion of my program problems occurs interrupt void ATD_ISR(void){ ATDCTL2_ASCIF=1; ATDSTAT1_CCF0=...


Programming all of the EEprom (HCS12A256) using CodeWarrior 2

Started by Robert L. Harris in 68HC1220 years ago 1 reply

The calibration tables have grown to exceed the 3k of EEprom normally visible with the "normal" mapping. Until now, default tables...

The calibration tables have grown to exceed the 3k of EEprom normally visible with the "normal" mapping. Until now, default tables have been placed between 0x400 and 0xfff and programming the chip with the default tables and the code was easy. (Default tables are inc


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


COSMIC ZAP debugger connecting to M68KIT912DP25eva board

Started by jo_wan_soo in 68HC1219 years ago 2 replies

We have recently purchased Freescale M68KIT912DP256 ev board for applicatoin development. By the request of the customer, we were asked ...

We have recently purchased Freescale M68KIT912DP256 ev board for applicatoin development. By the request of the customer, we were asked to use COSMIC/ZAP cross compiling tools instead of Metrowerk's Codewarrior for sw development. We were able to compile and link COSMIC's sample project file , however, when opening ZAP debugger to download the built .h12 fil


Doubt : Default value of Variables which are kept in NO_INIT location

Started by yadunandan kasu in 68HC1216 years ago 2 replies

hi everyone, can any one tell me the initial default value for the varibles which are placed in the NO_INIT location by modifying the...

hi everyone, can any one tell me the initial default value for the varibles which are placed in the NO_INIT location by modifying the .prm file. I am using Codewarrior for this. I modifed my project .prm file, like below using NO_INIT, so that the variables which are declared in the RAM area from 0x2000 to 2005 will not be initialized to zero by default. when...


processor expert & writing flash memory

Started by David Relson in 68HC1218 years ago 9 replies

Greetings, I'm using Metrowerks CodeWarrior 3.1 with Processor Expert to develop an embedded boot loader for an MC9S12A64 (64k flash)....

Greetings, I'm using Metrowerks CodeWarrior 3.1 with Processor Expert to develop an embedded boot loader for an MC9S12A64 (64k flash). It needs to write to multiple pages, for example addresses 3C8000 ff and 3D8000 ff. After writing to 3C8000, the 3D8000 write is failing because bank changing isn't happening. As best I can tell, in datapage.c


HCS12 1K79X mask, Code works with debug stmts, doesn't without

Started by varneybob in 68HC1221 years ago 4 replies

Okay, I have roughly 4000 lines of C++ code developed in Metrowerks CodeWarrior for the STAR12. The code seems to work fine for the...

Okay, I have roughly 4000 lines of C++ code developed in Metrowerks CodeWarrior for the STAR12. The code seems to work fine for the most part as long as my serial port debug messages are active. My serial debug messages are polled out and not interrupt driven. As soon as I recomp


Help with PK-HCS12C32 Starter Kit

Started by johnatjands in 68HC1217 years ago 1 reply

I'm having trouble getting the Softec PK-HCS12C32 Starter Kit to accept a test program written in assembly. To avoid introducing errors, I...

I'm having trouble getting the Softec PK-HCS12C32 Starter Kit to accept a test program written in assembly. To avoid introducing errors, I decided to try a minimal program, making no changes to the "stationery" code. I opened a new project in CodeWarrior and used the wizard to create an assembly project. Selected absolute (non-relocatable). Selected 9S12C32 and PK-HCS12 target. ...


CodeWarrior Conditional Assembly Problem

Started by sbuckser in 68HC1216 years ago 2 replies

I am converting an 68HC11F1 program written in assembler to MC9S12XEP100 using the free Code Warrior version 5.7.0. I want to use conditional...

I am converting an 68HC11F1 program written in assembler to MC9S12XEP100 using the free Code Warrior version 5.7.0. I want to use conditional assembly to maintain HC11 and 9S12 code in same file. I get many errors. I then created a new assembler project and modified the default assembler file main.asm as attached. I defined line 30: VERSION_A: EQU 0 and lines 48-50: IFEQ VERSION_A ...


9s12c32 Boot mode VS. Run mode

Started by Steven Bak in 68HC1220 years ago 3 replies

I need a 5ms delay before sending a signal to a sonic transceiver. When I use codewarrior to start the program i get my 5ms delay...

I need a 5ms delay before sending a signal to a sonic transceiver. When I use codewarrior to start the program i get my 5ms delay (I use a for loop for the delay). When I switch to Run mode and start the program, the delay was much longer (30ms i think?). Why does execution apear


help for CHIPS12

Started by cwl_hf121 in 68HC1213 years ago 4 replies

Hello,I have one chips12, but I can't debug it with P&E USB BDM MULTILINK. I use codewarrior version 5.9, I have installed the latest driver for...

Hello,I have one chips12, but I can't debug it with P&E USB BDM MULTILINK. I use codewarrior version 5.9, I have installed the latest driver for USB BDM. Every time it shows : the target MCU has no clock or wrong BDM clock speed is used or derivative is secured. So, for P&E USB BDM, the Pin 1: BKGD; Pin2: GND; Pin6: VDD ;Is it correspond to CHIPS12 BDM 6-PIN connector? Thanks a lot. ----...


How to tell Code Warrior debugger NOT to erase EEPROM

Started by apedroso11 in 68HC1218 years ago 2 replies

Hi all, I want the CodeWarrior debugger to NOT erase the EEPROM everytime I download user code to my DP256 or everytime I want to use the...

Hi all, I want the CodeWarrior debugger to NOT erase the EEPROM everytime I download user code to my DP256 or everytime I want to use the BDM. I have tried to comment this debugger commands: //mass erase eeprom //wb 0x110 CLKDIV // set ECLKDV clock divider //wb 0x114 0xFF // EPROT all protection disabled //wb 0x115 0x30 // clear PVIOL and ACCERR in ESTAT register //ww 0x118 0...


Reg: Default Memory map for MC9S12XDP512 mcu

Started by yadunandan kasu in 68HC1216 years ago 2 replies

Hi everyone, I am working on MC9S12XDP512 mcu using HCS12X starter kit, I am not very good at MCU knowledge right now. During my work, I...

Hi everyone, I am working on MC9S12XDP512 mcu using HCS12X starter kit, I am not very good at MCU knowledge right now. During my work, I got stuck in the Memory map concept in this MCU. I created a project using Codewarrior(Version 5.7.0). I just initialized the PLL module and use some basic code to glow the LED's and downloaded the soruce to the Starter kit using BDM and its working...


Banked EEPROM/RAM with 68HC12A4 & Codewarrior

Started by levijunkert in 68HC1219 years ago

Hardware/Software Preface: Currently we are using an Axiom CMD12-Rev A development board (HC12A4 with Expanded Wide Memory). This board has...

Hardware/Software Preface: Currently we are using an Axiom CMD12-Rev A development board (HC12A4 with Expanded Wide Memory). This board has 64K external EEPROM and 512k external RAM (we added in the RAM our selves). This memory runs in a 16bit wide data bus. That means that there are two chips for EEPROM (2x32k) and RAM (2x256k). We are using Metroworks Codewarri


prm file for mc9s12c64

Started by embitel in 68HC1212 years ago

Hello everyone, I have problem in understanding the memory of MC9S12C64. i am using codewarrior 5.1,PE BDM MULTILINK, BANKED MEMORY...

Hello everyone, I have problem in understanding the memory of MC9S12C64. i am using codewarrior 5.1,PE BDM MULTILINK, BANKED MEMORY MODEL. I have gcc prm file as follows SEGMENTS page0 (rwx) : ORIGIN = 0x0, LENGTH = 0x3000 data (rw) : ORIGIN = 0x3000, LENGTH = 0x1000 eeprom (rx) : ORIGIN = 0x4000, LENGTH = 0x1a00 text3 (rx) : ORIGIN = 0x5a...


Problems Entering Debug Mode with MC9S12DT256 and CodeWarrior v5.7.0

Started by purp...@gmail.com in 68HC1216 years ago 3 replies

Hi there, I am working on a Freescale HC12 chip connected to an Axiom CSM12D Board, but cannot successfully enter debug mode. If I hook up...

Hi there, I am working on a Freescale HC12 chip connected to an Axiom CSM12D Board, but cannot successfully enter debug mode. If I hook up the board, communication can be established with the AxIDE terminal. The following message is displayed: Axiom Manufacturing CSM12D Education Module MC9S12DT256 MCU This message is displayed everytime the RESET button is pressed that s...


Erasing Flash with BDM Script Files

Started by eric_cina in 68HC1219 years ago 2 replies

I am using CodeWarrior and a USB BDM to flash my code. I have a preload command script which wipes out the entire flash before the BDM...

I am using CodeWarrior and a USB BDM to flash my code. I have a preload command script which wipes out the entire flash before the BDM performs the loading. The command script has the following: // reset the device to get default settings RESET // initialize flash programming process FLASH // select the flash modules FLASH SELECT


Flash Secure/protect help needed

Started by adlai15 in 68HC1218 years ago 5 replies

Hi, I'm using an NE64 derivative. I would like to secure/protect my firmware in flash during or after the download of the firmware. I've...

Hi, I'm using an NE64 derivative. I would like to secure/protect my firmware in flash during or after the download of the firmware. I've seen a command FLASH PROTECT for the linker command file(.prm), but the mcu03ea.fpp file, for the NE64, that came with CodeWarrior has just a few lines in it. So I have a couple of questions: 1) What's the best way to secure the flash? 2) Does anyone



The 2024 Embedded Online Conference