EmbeddedRelated.com
Memfault Beyond the Launch

BDM problems

Started by dvarese in 68HC1220 years ago 11 replies

I'm fairly new to using the HC12. The tools I'm using is CodeWarrior and the Multilink BDM. The BDM doesn't seem to be working...

I'm fairly new to using the HC12. The tools I'm using is CodeWarrior and the Multilink BDM. The BDM doesn't seem to be working correctly as a debugging tool. Breakpoints only seem to work sporadically and when I try to single step the processor seems to jump off into never, never


HCS12: Pierce Oscillator

Started by danne_lundin in 68HC1221 years ago 8 replies

I want to use a Pierce Oscillator (with a 20MHz crystal), but it doesn't work for some reason. Does anyone know where I can get...

I want to use a Pierce Oscillator (with a 20MHz crystal), but it doesn't work for some reason. Does anyone know where I can get more information or schematics on how to do this together with the HCS12? I'm using HCS12DG256 and the Codewarrior compiler.


Hi-wave/True-time debugger for HCS12X

Started by joshcurtz in 68HC1218 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


Banked memory with a 9S12DP256

Started by ssinfod in 68HC1218 years ago 3 replies

Hi, I am using CodeWarrior 3.1 and also use the banked memory model on a 9S12DP256. I would like to know if it is mandatory to...

Hi, I am using CodeWarrior 3.1 and also use the banked memory model on a 9S12DP256. I would like to know if it is mandatory to allocate at least one segment in a NON-Banked location. Right now, my prm looks like this : - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - NAMES END SEGMENTS


Analog to Digital conversion

Started by leoshakeme in 68HC1218 years ago 4 replies

Hi, I am very new to microcontrollers. I am using a MC9S12DP256C on a trainer board. To develop I'm using CodeWarrior and C code. It is all...

Hi, I am very new to microcontrollers. I am using a MC9S12DP256C on a trainer board. To develop I'm using CodeWarrior and C code. It is all overwhelming. I am trying to write a program that will compare two voltages and depending on which voltage is greater to send a digital signal to a stepper motor controller. My biggest problem stems from interfacing. I dont know how to initializ


Codewarrior C/assembly inline statements

Started by johnpititto1976 in 68HC1220 years ago 1 reply

Hello World_ I am working on my special bootloader project, i am having difficulty jumping to a assembler label from my main C...

Hello World_ I am working on my special bootloader project, i am having difficulty jumping to a assembler label from my main C function. Let me illustrate what i am attempting to do... ****Assembly***** XDEF UseBootCode UseBootCode: c


Re: entry level S12 tools

Started by Anonymous in 68HC1219 years ago 10 replies

Hi guys, OK finally resurected this old post, you may remember that I posted this saying that I was looking for a freeish tool chain...

Hi guys, OK finally resurected this old post, you may remember that I posted this saying that I was looking for a freeish tool chain for the S12 for students and hobbyists, well it is finally here. OK, I wanted a 64K solution but after some arm twisting we have now got the free Special Edition of Codewarrior up from 12K to 32K. You can download it here


Hiwave FPP files download?

Started by Oliver Betz in 68HC1222 years ago 1 reply

Hi All, still regarding D60A programming with SDI: is it possible to get FPP files without downloading >70MB of Codewarrior? ...

Hi All, still regarding D60A programming with SDI: is it possible to get FPP files without downloading >70MB of Codewarrior? My CW eval version doesn't know the D60A. TIA, Oliver


Problem with comms beween board and PC

Started by pickleza in 68HC1219 years ago 2 replies

Hi all, I am having a couple of problems getting my BDM interface working. I am using Metrowerks codeWarrior (2, I...

Hi all, I am having a couple of problems getting my BDM interface working. I am using Metrowerks codeWarrior (2, I think) with a P&E BDM Multilink Programmer on a 68HC12SD64, but am having some problems with the connections. I get a BDM speed


HC12 and GCC

Started by hc08jb8 in 68HC1220 years ago 2 replies

Hello Folks I have been using CodeWarrior for HC12 development stuff, I would like to move to the gcc toolchain, I did dl the...

Hello Folks I have been using CodeWarrior for HC12 development stuff, I would like to move to the gcc toolchain, I did dl the stuff, but getting started in that has been difficult. I would like to find out:- 1.) Is there a suitable IDE to go along with gcc? 2.)


Problems configuring PAD0..15 as input

Started by silvozemljic in 68HC1220 years ago 2 replies

Hello. I'm using Adapt9S12E128 Microcontroller Module with MC9S12E128CPV chip. and Metrowerks Codewarrior development...

Hello. I'm using Adapt9S12E128 Microcontroller Module with MC9S12E128CPV chip. and Metrowerks Codewarrior development environment for HCS12 chips. Here is my problem... I would like to use PAD0..15 lines which are conected to onchip ATD module as inputs, so that


CodeWarrior and Switch statment compiling issue

Started by Tim Raabe in 68HC1221 years ago 2 replies

I have the same code in 2 different projects, in the main loop of both. This section of code has a switch statement in it, but in...

I have the same code in 2 different projects, in the main loop of both. This section of code has a switch statement in it, but in one project, it works, and the other it doesn't(always goes to the first case). The code is identical except for some port changes due to outputs bein


Flashing Over EEPROM: A Newbie Question

Started by thunderweasel71 in 68HC1221 years ago 12 replies

Gentle Denizens: I am using CodeWarrior for the HC12 w/ the Processor Expert package, and my target is the MC9S12A64. I am...

Gentle Denizens: I am using CodeWarrior for the HC12 w/ the Processor Expert package, and my target is the MC9S12A64. I am using the BDM MultiLink to flash program with. This is a completely newbie question (I am, in fact, a newbie to all of the items noted above)


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


DC motor PID controller

Started by waks_up in 68HC1216 years ago 1 reply

Hi, Im doing a dc motor PID controller. Im using Nanocore12DX. I have an enocoder. It is a quadrature encoder. I have generated PWM signal...

Hi, Im doing a dc motor PID controller. Im using Nanocore12DX. I have an enocoder. It is a quadrature encoder. I have generated PWM signal from HC12 to drive the motor. The question I wanted to ask is how do i implement the PID controller in Codewarrior? Regards, Chai ------------------------------------


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


Sprintf unsigned long conversion specifier

Started by johnpititto1976 in 68HC1221 years ago 1 reply

Hi All, I want to convert a unsigned long to a string. What is the conversion specifier to use for the codewarrior compilier??...

Hi All, I want to convert a unsigned long to a string. What is the conversion specifier to use for the codewarrior compilier?? Thanks, John.


ADC HCS12 DP256

Started by hellfire1272000 in 68HC1222 years ago 4 replies

I would like some help in putting together some C Code to set-up and read one ADC Channel continuously and also set-up and Scan...

I would like some help in putting together some C Code to set-up and read one ADC Channel continuously and also set-up and Scan through multiple ADC channels continuously. I have Codewarrior for HCS12.Some help would be appreciated as I am a newcommer to embedded.


SRF08 interface with I2C

Started by "nielsen.daniel" in 68HC1214 years ago 1 reply

Hello, I am trying to interface an SRF08 Ultrasonic Sensor to my Dragon-12 board (I2C) via CodeWarrior and C language. I have tried and tried...

Hello, I am trying to interface an SRF08 Ultrasonic Sensor to my Dragon-12 board (I2C) via CodeWarrior and C language. I have tried and tried again but no succes...I am pretty sure I am writing to the SRF08 but I dont think I am reading correctly. Any help or suggestions or working code would be greatly appreciated. Thanks. This is my code. #include /* common defines and ma


s-record files

Started by Wandson Santana in 68HC1218 years ago 2 replies

Hi all, I'm using codewarrior to develop hcs12c64 project. I use a P&E usb multilik to load firmware. After generating binary...

Hi all, I'm using codewarrior to develop hcs12c64 project. I use a P&E usb multilik to load firmware. After generating binary data, I can load firmware using .abs (used as default by Hi-wave) and also using .s19 file. However I can't do it using .phy file (error message: error while writing to F0000...F0200 - mo memory at this addre



Memfault Beyond the Launch