EmbeddedRelated.com
The 2024 Embedded Online Conference

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


hc12mem v1.1

Started by Michal Konieczny in 68HC1218 years ago 15 replies

http://cml.mfk.net.pl/hc12mem/ I made some improvements to my hc12mem program for HCS12 MCUs. hc12mem is a command line tool for...

http://cml.mfk.net.pl/hc12mem/ I made some improvements to my hc12mem program for HCS12 MCUs. hc12mem is a command line tool for erasing, reading and writing FLASH and EEPROM internal memories, it can also protect/unprotect whole MCU. Works under unix derivatives (FreeBSD and GNU/linux tested), and MS Windows


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


EEPROM based file system via SPI

Started by Mark Butcher in 68HC1218 years ago

Hi All I have just published a tutorial showing how to add an EEPROM to the SPI of the HCS12 (with diagrams and photos of the adapter for...

Hi All I have just published a tutorial showing how to add an EEPROM to the SPI of the HCS12 (with diagrams and photos of the adapter for typical EVB and DEMO boards) for use as an external file system - it is specifically for the NE64 to increase the program code space to 64k while still allowing web pages (up to 64k) to be served from simple and cheap external memory. http://www....


IAR HCS12 Banked memory code

Started by Real Live One in 68HC1219 years ago 4 replies

Hi there, I'm using a MC9S12DP512 with a P&E USB BDM. I have problem getting the code to the chip using Banked code model. Using the...

Hi there, I'm using a MC9S12DP512 with a P&E USB BDM. I have problem getting the code to the chip using Banked code model. Using the normal code model everything is fine exept that i'm limited in size. In banked memory mode, building goes well exept that loading the code to the chip using debug function will generate the following fatal error:


HAL for HC12s

Started by hc08jb8 in 68HC1220 years ago 18 replies

A friend from Korea passed me this Hardware Abstraction Layer implementation for HCS12, thought some folks might find it useful. ...

A friend from Korea passed me this Hardware Abstraction Layer implementation for HCS12, thought some folks might find it useful. http://www.acelab.org/HAL/files.html Regds Jay


Codewarrior - IEEE32, float, double and sprintf()

Started by codewarr2000 in 68HC1219 years ago 2 replies

I require a floating point number with at least 12 decimal places. Using Codewarrior HCS12, I turn on -Cf for IEEE32 doubles. I am using...

I require a floating point number with at least 12 decimal places. Using Codewarrior HCS12, I turn on -Cf for IEEE32 doubles. I am using Banked memory model. sprintf(&buffer[0],"blahblah",blah) does not display correctly any floats, ints, doubles when used through TERM_WriteString(buffer); Is it just sprintf() and the internal data is ok, or is the data bad? Is there some


HCS12 Watchdog...Reset

Started by folg...@yahoo.com in 68HC1215 years ago 1 reply

Hello, I need for my programm a reset-function. I want to call a function ResetApplication(). Then I want to use the watchdog to reset the...

Hello, I need for my programm a reset-function. I want to call a function ResetApplication(). Then I want to use the watchdog to reset the application. I do not know how to use the watchdog exactly. After the reset the programm should start at the beginning. If the following code complete or have I to do something else. To reset I only have to start the watchdog!? void ResetApplicatio(...


Smart Card REader developed on HCS12 (SNAG)

Started by airam_alex in 68HC1218 years ago 3 replies

Hi, We are developing smart card reader using MC9S12A256B controller. We are having the source code for the reference design of the...

Hi, We are developing smart card reader using MC9S12A256B controller. We are having the source code for the reference design of the Smart card reader developed on P89C51RD2 Philips 8 bit controller, when the code is ported to the motorola it is failing in the Authentication Process (Crypto Error). We are unable to find the problem as the code is porte


Metrowerks small memory model banked memory

Started by Adrian Vos in 68HC1219 years ago 18 replies

Hi All, I am using Metrowerks for HCS12 v2.0. In the small memory model it is easy to get access to the 2 16k fixed flash pages, but I...

Hi All, I am using Metrowerks for HCS12 v2.0. In the small memory model it is easy to get access to the 2 16k fixed flash pages, but I am running out of code space as I quickly approach 32k code size. I was hoping to write into my start code some code to fix the PPAGE register at a particular page (not 3E of 3F which are the fixed pages), and then util


OT: QVGA LCD module with builtin SED1335

Started by Edward Karpicz in 68HC1219 years ago 16 replies

Hi Sorry if not very HCS12 related subject. I have to interface D64 to QVGA monochrome LCD module. Module has builtin ...

Hi Sorry if not very HCS12 related subject. I have to interface D64 to QVGA monochrome LCD module. Module has builtin SED1335 controller and 32k of display memory. It's too late to change LCD module and controller. It's not to late to use S12 MCU having more RAM. I


DJ64 eeprom programming in low temperature

Started by jo_wan_soo in 68HC1217 years ago 9 replies

We are using HCS12 micro ( MCS12DJ64 CPV 2L86D mask set) in our automotive CAN application . Recently, we have discovered some problem...

We are using HCS12 micro ( MCS12DJ64 CPV 2L86D mask set) in our automotive CAN application . Recently, we have discovered some problem with eeprom programming in low temperature ( -20 degree Celsius ) environment. Our automotive application is programmed to write some datum to DJ64??s eeprom before turning the power off . The application runs fine in room temperature ( 10 ?V 20 deg...


hc12mem 1.2 - added support for serial monitor, and port of monitor to GNU toolchain

Started by Michal Konieczny in 68HC1218 years ago 3 replies

hc12mem v1.2 ------------ - added support for Freescale's serial monitor (Application Note AN2548) Using this serial monitor in target...

hc12mem v1.2 ------------ - added support for Freescale's serial monitor (Application Note AN2548) Using this serial monitor in target FLASH memory, hc12mem can: - erase,read,write,protect target EEPROM - erase,read,write target FLASH - securing/unsecuring is not supported, due to monitor presence So for now, hc12mem can access HCS12 MCU memory



The 2024 Embedded Online Conference