EmbeddedRelated.com

LRAE linking with CodeWarrior

Started by apedroso11 in 68HC1218 years ago 2 replies

I am using LRAE (AN2546SW) with CodeWarrior3.1 but I have problems linking I have created a new project from the Stationary for...

I am using LRAE (AN2546SW) with CodeWarrior3.1 but I have problems linking I have created a new project from the Stationary for MC9S12DP256 (flash target) I have substituted the called to _Startup routine in the PRM file to the called to main routine of the AN2546SW in order to use its initialization instead of the one on the START12.c from


How to write new program in HCS12?

Started by lenux22 in 68HC1221 years ago 4 replies

Hello! I had a new question about Motorola HCS12. We had virgin chip without any evalution boards, programming units and other...

Hello! I had a new question about Motorola HCS12. We had virgin chip without any evalution boards, programming units and other devices. We suppose that we can make our's own programming device for HCS12. I think chip has bootrom, which contains code for loading flash by serial port (SCI). Where


MC9S12DP256B security

Started by Jean-Sebastien Bouchard in 68HC1218 years ago 25 replies

When you implement the built-in security feature on the DP256B mask 1K79x running Normal Single Chip mode, you cannot erase and write EEPROM and...

When you implement the built-in security feature on the DP256B mask 1K79x running Normal Single Chip mode, you cannot erase and write EEPROM and flash on the device. (From Freescale ERRATA MUCts00603 and MUCts00604.) We need to be able to reprogram the MCU while in the field. In order to do this, our firmware update PC tool launches the Bootloader on the MCU, unsecures the device using t...


How to erase Block 0

Started by montserret_maxime in 68HC1218 years ago 5 replies

Hi, I'm working on MC9S12DG256B chip and I'd like to erase first block in flash : boot block. For that, I think I must erase sector by...

Hi, I'm working on MC9S12DG256B chip and I'd like to erase first block in flash : boot block. For that, I think I must erase sector by sector but I don't know which value I must put in PPAGE register and FCNFG register. Many thanks in advance for your help.


Problem with flash on 68HC912B32

Started by Ulf Larsson in 68HC1221 years ago 3 replies

Hi all, Some time ago I posted a question on this list but never got any feedback so let's try again. We are using the following...

Hi all, Some time ago I posted a question on this list but never got any feedback so let's try again. We are using the following system, iSystem winIDEA 9.2 software, iSystem ic2000 Base unit+ connected to the target system (68HC912B32) using the BDM connector. The Base unit ar


Metrowerks SmartLinker doesn't include Banked Flash code in S-Record generation

Started by phylacjoe in 68HC1221 years ago 1 reply

I've recently been studying M.Doughman's AN2153: Serial Bootloader for MC9S12DP256. It is stated that S-records generated by Cosmic...

I've recently been studying M.Doughman's AN2153: Serial Bootloader for MC9S12DP256. It is stated that S-records generated by Cosmic software works fine, but I'm on Metrowerks CodeWarrior, so... I had no problems installing the bootloader into the Protected High area (Starti


EEPROM not readable on reset? (MC68HC912B32)

Started by drranu in 68HC1219 years ago 13 replies

Hey. Is there an initialization sequence necessary to be able to read EEPROM (byte-erasable) on reset? Here's my situation: MC68HC912B32...

Hey. Is there an initialization sequence necessary to be able to read EEPROM (byte-erasable) on reset? Here's my situation: MC68HC912B32 microcontroller. 1. The first line of my program clears COPCTL. 2. The next several lines copy bytes from EEPROM (starting at $0D00) into RAM (starting at $0800). 3. The program is located in flash EEPROM at


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


hcs12mem 1.4.1

Started by Michal Konieczny in 68HC1216 years ago 3 replies

hcs12mem 1.4.1 is available. http://cml.mfk.net.pl/hcs12mem/ Previously known as hc12mem, now renamed to hcs12mem, due to some confusion...

hcs12mem 1.4.1 is available. http://cml.mfk.net.pl/hcs12mem/ Previously known as hc12mem, now renamed to hcs12mem, due to some confusion which MCU family it supports: hc12mem name suggested that's HC12 family, but in reality it currently works only with S12 chips. hcs12mem is a tool for S12 MCUs, allowing for reading/writing internal memories (FLASH/EEPROM), protecting/unprotecting ...


CodeWarrior Command File Script and A128 uP

Started by eric_cina in 68HC1219 years ago 2 replies

Hi. I am CodeWarrior for HCS12 A128 microprocessor. I use a Multilink USB BDM with CodeWarrior to debug and load my firmware. I use the...

Hi. I am CodeWarrior for HCS12 A128 microprocessor. I use a Multilink USB BDM with CodeWarrior to debug and load my firmware. I use the following command file to erase the flash on a preload: // ********************************************************** // Before load the commands written below will be executed // The following commands must be en


S12 serial monitor on C32

Started by Anonymous in 68HC1220 years ago 6 replies

I'm trying to use the Tech Arts MOD12C32 (actually made by Motorola). As shipped, this device contains the Motorola serial monitor...

I'm trying to use the Tech Arts MOD12C32 (actually made by Motorola). As shipped, this device contains the Motorola serial monitor in the top 2K of flash. This monitor makes a nice platform for downloading code and doing some basic debugging, but I have a question about loading user code i


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


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


Flexray node init?

Started by "'bo...@aol.com' BobGardner in 68HC128 years ago

Any flexray programmers out there? I have a pair of freescale NCV7383 demo bds with a 9S12XF512 and CW5.1, and I can recompile and burn the demo...

Any flexray programmers out there? I have a pair of freescale NCV7383 demo bds with a 9S12XF512 and CW5.1, and I can recompile and burn the demo provided and it runs, but my goal is to change the init params to match my vehicle (different cycle time, static slots, dynamic slots etc etc). Every time I change anything in the lo level config, it doesnt coldstart and flash the leds, so I'd really like...


Problem compiling HC12 code to flash onto Wytec Minidragon

Started by thomasfong in 68HC1218 years ago 2 replies

Hello, I have a Wytec MC9S12DP256 MiniDragon Development board. I have written a simple program that uses the RTI interrupt to update...

Hello, I have a Wytec MC9S12DP256 MiniDragon Development board. I have written a simple program that uses the RTI interrupt to update the status of PORTM and the rest of the program waits and sends messages via the serial port (SCI0) to the computer and toggles the ports as necessary.=20=20 The code is fully debugged and works perfectly when using the board in EVB mode with the DBug12 ...


Cosmic Mystery: segment placement

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

Board: I have a very strange thing going on using Cosmic Compiler and linker. I made a pragma to declare a section called secur...

Board: I have a very strange thing going on using Cosmic Compiler and linker. I made a pragma to declare a section called secur in order to place Flash security and protection bytes in cost memory at location $FF00, 16 bytes of constant data total: #pragma section const {fsecu


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


legacy: MiniIDE and HC9S12D64

Started by warm38spl in 68HC1215 years ago 5 replies

I am working with a legacy program written in HC11 assembler and ported to HC9S12D64 assembler using MiniIDE and using TwinPeeks2.0 as the monitor...

I am working with a legacy program written in HC11 assembler and ported to HC9S12D64 assembler using MiniIDE and using TwinPeeks2.0 as the monitor residing at $F000-$FFFF. The program is growing and I need extra space in Flash. How do I program for and access PPAGE=$3D? Can this be done using MiniIDE and TwinPeeks? When MiniIDE detects ORG statement beyond FFFF it starts generating S2 reco...


9s12d64 -External memory access

Started by imtiyazfmn in 68HC1213 years ago 14 replies

Hello, I am going t use 9s12d64 for my older design with replacing this.In older design MC68HC11 was used.on that design an FPGA used on 0x8000...

Hello, I am going t use 9s12d64 for my older design with replacing this.In older design MC68HC11 was used.on that design an FPGA used on 0x8000 to 0x803f adress.So now i wanted to use same adress for an FPGA so is it possible in 9s12d64 controller? Since i have read that 0x8000 to 0xBFFF is used for program memory using page window.And insight of micro internal flash is available in this locatio...


Problems in running a simple program in metrowerks codewarrior and M68HC12B32

Started by mortisgr in 68HC1218 years ago 3 replies

Hello all and thanks in advance for the help, I am using metrowerks codewarrior v3.1 and i have the M68HC12B32 EVB. I try to flash a...

Hello all and thanks in advance for the help, I am using metrowerks codewarrior v3.1 and i have the M68HC12B32 EVB. I try to flash a simple program in the evb. No problem compiling or downloading(I use mini IDE for this reason via serial port). But the program won't work, it is a simple port out( program Iattach it below). I managed to produce a .ls