Flash Programming ACCERR

Started by Longworth, Kevin in 68HC1215 years ago 6 replies

Hi group, I am using the DP256 star 12. I am trying to write a routine that will program flash bytes at the security location...

Hi group, I am using the DP256 star 12. I am trying to write a routine that will program flash bytes at the security location in fixed memory at location $ff00. The flash is unsecured (FSEC = 0xfe) All the code is executed from RAM. The first thing I want to do is erase the se


Protected Flash Reads

Started by Longworth, Kevin in 68HC1215 years ago 1 reply

I have an application using DP256 Star 12 which after reset reads most of the flash and calculates a checksum. This checksum...

I have an application using DP256 Star 12 which after reset reads most of the flash and calculates a checksum. This checksum is compared to one programed into the flash for each logical block which can be reprogrammed using the bootloader. If the checksum doesn't match, the


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


Trouble in Programming HCs12 Flash EEPROM

Started by retsel_potsie in 68HC1214 years ago 1 reply

hello there, i am using the AxIDE software and a CML12S-DP256 board. i am trying to program my code to the internal memory so it...

hello there, i am using the AxIDE software and a CML12S-DP256 board. i am trying to program my code to the internal memory so it will execute automaically when you power up. i downloaded the auto program code at www.axman.com for using LCD and Keypad. i tried to folow the instruc


HCS12 COP Reset

Started by Adrian Vos in 68HC1214 years ago 2 replies

Hi All, I am using the DP256. I am using the COP reset to initiate a desired reset at times, but I am also trying to use it to...

Hi All, I am using the DP256. I am using the COP reset to initiate a desired reset at times, but I am also trying to use it to detect corrupted firmware (the application is field programmable firmware upgradable with protected firmware permanent). I was planning on detecting t


ADC HCS12 DP256

Started by hellfire1272000 in 68HC1216 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.


EVB 912DP256 SCI Problems

Started by nealskura in 68HC1216 years ago 2 replies

Hello, I am currently writing development software for the HCS12 DP256 EVB. I am trying to test software functionality through...

Hello, I am currently writing development software for the HCS12 DP256 EVB. I am trying to test software functionality through SCI data dumps to a HyperTerminal program running on my workstation. Currently, I am not getting any input in HyperTerminal. As I trace


changes to the timer system?

Started by Steve Letkeman in 68HC1215 years ago

Hi All, I am porting some timer code over from a BC32 to the DP256 and I have run across a strange problem. It appears that the...

Hi All, I am porting some timer code over from a BC32 to the DP256 and I have run across a strange problem. It appears that the only way to have TC 0 do an output compare is to enable Output Compare 7 Mask Register? I don't want to do this because I need to run OC7 as a separate time


need help please

Started by sladezm in 68HC1212 years ago 1 reply

hi im using a CML12S-DP256 MC9s12DP256 im trying to detect if theres voltage going though port b though pb01 heres my code #include ...

hi im using a CML12S-DP256 MC9s12DP256 im trying to detect if theres voltage going though port b though pb01 heres my code #include #include void main() { DDRB=0x00; if((PORTB&0x02)){ /* tests bit 2 if voltage is detected on port b*/ puts("detected");} else{ printf("nodetect"); } } im i initilizing it right? for some reason when i run it with


DP256: Problem with receiving

Started by rithes ameen in 68HC1213 years ago 7 replies

Hi there , I am having a problem regarding reception of the data . Identifier used is 00 for the controller Mc9s12dp256 I have...

Hi there , I am having a problem regarding reception of the data . Identifier used is 00 for the controller Mc9s12dp256 I have set my Acceptance register to CAN0IAR[0-7]=00; CAN0IMR[0-7]=0x0FF; and CAN0IAC=0x20; // That is 16 bit wide register The controller is getting Synchroised that is "synch" bit is one.


Oscillator from s12dp256 to s12Xdp512

Started by jpdi...@free.fr in 68HC1212 years ago 3 replies

Hye I'm trying to go from 9s12dp256 CPU to 9s12Xdp512, with the same printed board. I'm able to download and debug program (ICC12...

Hye I'm trying to go from 9s12dp256 CPU to 9s12Xdp512, with the same printed board. I'm able to download and debug program (ICC12 ImageCraft V 7 compiler and NoIce debugger) But I think the CPU run with his internal clock, not quartz : - some functions (delay) developped before are very slow - the PLL doesn't run too. When I compare data sheets, I see dp256 family : Collpitts oscil...


How to use D-Bug12 command FLOAD?

Started by Xiao-Dong Huang in 68HC1216 years ago 3 replies

Subject: How to use D-Bug12 command FLOAD? Hi All, I developed my program C calling Assembly. It could run in RAM. When...

Subject: How to use D-Bug12 command FLOAD? Hi All, I developed my program C calling Assembly. It could run in RAM. When I was trying to use flash memory along with D-Bug12. I was using ?Technical Arts? POD BDM cable to connect to the target DP256 board. The


Problems implementing far strings with MW tools

Started by galenpatrickogrady in 68HC1215 years ago 11 replies

I am working with the DP256 in banked mode and I'm trying to move all constant strings into paged memory. I have changed the...

I am working with the DP256 in banked mode and I'm trying to move all constant strings into paged memory. I have changed the far string related #define flags in the libdefs.h file and rebuilt the the libraries. In my prm file, I have assigned the STRINGS section to page


MsCAN Tx Interrupt question

Started by apedroso11 in 68HC1212 years ago 2 replies

Hi all, I've been working on a MsCAN driver for DP256. I am going over it and I have some questions: The MSCAN Block Guide V02.15 says...

Hi all, I've been working on a MsCAN driver for DP256. I am going over it and I have some questions: The MSCAN Block Guide V02.15 says that TX interrupt must be acknowledged by clearing the corresponding flag CANTFLG. 1. Should I ack the tx interrupt doing CANTFLG |= CANTFLG; ? this way I set the empty buffers ready for tx. 2. I only must clear the bit causing the interrupt, but h...


Need verification of FCLKDIV value

Started by Steve-HighPoint in 68HC1215 years ago 2 replies

I am venturing into the on-chip flash erase and program world on the DP256 part for the first time. I have read the app notes and I...

I am venturing into the on-chip flash erase and program world on the DP256 part for the first time. I have read the app notes and I see that it is important to have the clock divider set properly for the state machine to work. I have a simple 16Mhz clock osc. driving my clock input on the proce


EEPROM via BDM command bug!?

Started by Oliver Betz in 68HC1214 years ago 2 replies

Hello All, iSYSTEM tells me that there is a bug at least in the 9S12D64 and 9S12DT128 (not in the DP256) so that it's not...

Hello All, iSYSTEM tells me that there is a bug at least in the 9S12D64 and 9S12DT128 (not in the DP256) so that it's not possbile to write EEPROM directly (without "monitor" code) via the BDM interface in special mode. The problem arises when accessi


Flash programming blues

Started by frank in 68HC1215 years ago

Hi, My DP256 flash program has a glitch. Im working from 4Mhz demo board, I disabled the PLL. My flash test does the following; ...

Hi, My DP256 flash program has a glitch. Im working from 4Mhz demo board, I disabled the PLL. My flash test does the following; 1) Erase page 0x30 (16k) 2) Write 1k of test bytes (in word format) My FDIV is set up to be FCLKDIV = 4000000/190000 = 20.


Help on Codewarrior ( HCS12 ) PC simulation

Started by mdn4u in 68HC1215 years ago 4 replies

Hi all, I am working towards designing motor control system using motorola HCS12 MCU. Just bought Codewarrior Standard edition...

Hi all, I am working towards designing motor control system using motorola HCS12 MCU. Just bought Codewarrior Standard edition as development environment and expecting DP256 evolution board in 2-3 weeks. To reduce the development time I am planning to use Codewarrior


Clock oscillator question

Started by Steve-HighPoint in 68HC1215 years ago 6 replies

I am working on a project using either the 9s12A256 or the DP256 part. I have on my board a clock oscillator running at 5VDC and using...

I am working on a project using either the 9s12A256 or the DP256 part. I have on my board a clock oscillator running at 5VDC and using two 10K resistors to divide the voltage to be compatible with the processor clock input. 1.. My prototype uses a 16Mhz clock and works fine. My IAR CSpy was limited to


Re: entry level S12 tools

Started by Dean Manion in 68HC1214 years ago

As someone who only up to a year ago had only basic electronic knowledge and only programmed PC's and mainframes, I can say that it has not...

As someone who only up to a year ago had only basic electronic knowledge and only programmed PC's and mainframes, I can say that it has not been that hard to figure the HCS12 out. I bought "Programming the M68HC12 family" by Gordon Boughman , bought a Axion CML12s-DP256 board and got the free Motorola assembler and the free GNU C++ compiler. I've had good luck so far. There are lots