HC12compact board flashing

Started by pell...@... in 68HC1212 years ago

Hi Oliver,I want to program the complete Flash on the HC12compact. So, there is a 29F400 on it, meaning the availability of 512kB flash memory....

Hi Oliver,I want to program the complete Flash on the HC12compact. So, there is a 29F400 on it, meaning the availability of 512kB flash memory. If I'm right, the flash is located (from flash point of view) from 0x00000 to 0x7FFFF. On the A4, I see this flash memory through the PPAGE window which is located between 0x8000 to 0xBFFF. So, the mapping is: Page window flash -----------------------


Erasing Flash with BDM Script Files

Started by eric_cina in 68HC1212 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


Relocating code needed for flash update function

Started by "Profos, Georg" in 68HC1211 years ago

Hi there, I need to implement a flash update functionality on HCS12 (512kByte Flash). That functionality must relocate part of the existing...

Hi there, I need to implement a flash update functionality on HCS12 (512kByte Flash). That functionality must relocate part of the existing code in the flash to RAM and execute itself there (because FLASH gets overwritten in the process). I understand that I can use the "position independent code" option to do that, but there appear to be limitations here when we use Banked or Large memory...


flash document for 9S12HZ256

Started by jetrimmer in 68HC1212 years ago 1 reply

Hello: I'm looking for information regarding the flash module in the new part 9S12HZ256. I think it has 2 flash arrays (64K * 16...

Hello: I'm looking for information regarding the flash module in the new part 9S12HZ256. I think it has 2 flash arrays (64K * 16 bits). The older 9S12H256 has 4 flash arrays 32K * 16 bits. My flash programming code that works with the 9S12H256 is not working with the new one. Thanks.


HCS12 flash programming

Started by IvO in 68HC1213 years ago

Hi I have a CML-9S12DP256 boar and I'm having problems with its flash. I use the ax-bdm12 to debug the system and no matter what I...

Hi I have a CML-9S12DP256 boar and I'm having problems with its flash. I use the ax-bdm12 to debug the system and no matter what I cannot do anything with the FLASH memory. I ported some Motorola routines to erase/program flash blocks but it did not work. My last attempt i j


Flash Driver

Started by montserret_maxime in 68HC1212 years ago 1 reply

Hi everybody, I'm trying to use HIS Flash Driver for HCS12 developed by Motorola. I'm using example with codewarrior compiler and...

Hi everybody, I'm trying to use HIS Flash Driver for HCS12 developed by Motorola. I'm using example with codewarrior compiler and MC9S12DG256BCPV microcontroler I put the flash driver binary in flash memory (at adress C12E) in .rodata section. FLASH_DRIVER_INTERFACE and FLASH_DRIVER_MCUTYPE are working but when I execute FLASH_DRIVER_INIT funct


FLASH UPGRADE EASY?

Started by Jordan Fuerst in 68HC1214 years ago

I am working on a school project to build a printer server. Is there some already available bullet proof flash upgrade code...

I am working on a school project to build a printer server. Is there some already available bullet proof flash upgrade code available without having to dig through all the Motorola documentation and write my own? One that will flash certain parts of flash and then upload the new pr


Problem in using D-Flash for XS128, Need help

Started by yadunandan kasu in 68HC129 years ago 2 replies

Good day everyone, =20 I am working on MC9S12XS128 MCU. =20 I know that this MCU has the new feature of D-Flash. I am facing a problem in...

Good day everyone, =20 I am working on MC9S12XS128 MCU. =20 I know that this MCU has the new feature of D-Flash. I am facing a problem in using this and executing its commands on it. I am not very clear about this D-Flash and have the following questions =20 I do not want to use the Global address in my project, so after reviewing the datasheets, i am thinking that a 1Kbyte D-flash is av...


Flash writing problem.

Started by lenux22 in 68HC1213 years ago 7 replies

There is 2 flash blocks on Motorla DG128: Flash Block 0 and Flash. Block 1. For Flash Block 1 i had set the security byte(0xFF0F)...

There is 2 flash blocks on Motorla DG128: Flash Block 0 and Flash. Block 1. For Flash Block 1 i had set the security byte(0xFF0F) to 0xFE (security disabled) and set protection byte of block 0 (0xFF0D) to protect range 0xF000-0xFFFF (contains my bootrom and fla


Codewarrior Flash Problems

Started by mattlind7 in 68HC129 years ago

Hello. I'm very very new to codewarrior and the HCS12X uProcessor. I have two object files (.abs's) that I'm trying to flash on my chip. ...

Hello. I'm very very new to codewarrior and the HCS12X uProcessor. I have two object files (.abs's) that I'm trying to flash on my chip. The 2 distinct programs each occupy diffrent places in memory, so conflicts shouldn't arise. I'm able to erase flash either program 1 or program 2...no problem there. But when I go to flash the controller with the 2nd program, after I open up the l...


Flash Error

Started by sindhoor_hegde in 68HC1211 years ago 1 reply

Hi all, I am using PK-HCS12E128 development board and Codewarrior V3.1 evaluation version for developping a Virual EEPROM on the Flash. I am...

Hi all, I am using PK-HCS12E128 development board and Codewarrior V3.1 evaluation version for developping a Virual EEPROM on the Flash. I am facing a problem. Whenever i write in to the flash(i am using 0x5000 location)my debugger writes a single WORD in to the flash and then it halts. In the Command window i see "unknown event" followed by "halted". when i run the


HCS12 flash programmer

Started by Nam SungHyun in 68HC1213 years ago 2 replies

Hello, I use 9S12E64 and internal flash for Booter and external flash for application. Because there's no data EEPROM,...

Hello, I use 9S12E64 and internal flash for Booter and external flash for application. Because there's no data EEPROM, Application uses internal flash area (1sector) for NVM data. Currently I use softec InDART BlazeProgrammer, and it seems it only support mass era


Interfacing to NAND Flash

Started by Bob Furber in 68HC1213 years ago 3 replies

I would like to interface to a NAND flash chip, but the more I look into it, the more difficult it seems. The problem is when...

I would like to interface to a NAND flash chip, but the more I look into it, the more difficult it seems. The problem is when one writes (address or data) to a NAND flash, the data is latched by the NAND flash on the rising edge of the R/*W pulse. The problem is generating a N


flash app vs banked flash app

Started by Bernie Boos in 68HC1212 years ago 25 replies

Hi everyone, I'm using an MC9S12A256B ucontroller and have working code when I compile and run in a regular flash application. But my code...

Hi everyone, I'm using an MC9S12A256B ucontroller and have working code when I compile and run in a regular flash application. But my code has gone above the ~32.6kB and I have to switch to the Banked flash app. My code is compiling (after making sure my interrupts were in non-banked flash) and downloads to the ucontroller. But when i run the code and


flash routine

Started by Frank in 68HC128 years ago

Hi guys, I have an existing ecm running on a MC68HC912B32. While it is running I can put it in a mode to accept a flash routine through J1850....

Hi guys, I have an existing ecm running on a MC68HC912B32. While it is running I can put it in a mode to accept a flash routine through J1850. I'm at the point where I need to implement the flash routine to send to it. The flash routine gets uploaded to RAM at 0x80-0x3e0. The stack is at 0x400 and I have 0x0-0x80 to use as a data area. The registers are at 0x1000. I'd like to write the routine ...


writting to flash

Started by the_oog6789 in 68HC1212 years ago 1 reply

Hi all, I'm working on a HCS12 trying to store data in the onboard flash. I've written a function in C to erase a sector of flash which...

Hi all, I'm working on a HCS12 trying to store data in the onboard flash. I've written a function in C to erase a sector of flash which i can step through but crashes when executed normally. The debugger gives a message 'illegal_bp' when it stops running at the end of the function. Just wondering if anybody has any suggestions on what the proble


Unable to Flash code into DJ64 Target controller

Started by venki in 68HC1212 years ago 3 replies

Hi all, I am trying to Flash the code to DJ64 target board by using BDM Multilink P&E Flash program S/W. I am not able to Flash and I am...

Hi all, I am trying to Flash the code to DJ64 target board by using BDM Multilink P&E Flash program S/W. I am not able to Flash and I am getting "Could not find appropriate io_delay_count" error .Please let me know the possible causes for this. Target Controller: MC9S12DJ64 Compiler: COSMIC Thanks in advance,


Storing info on the Flash area

Started by hc08jb8 in 68HC1214 years ago 4 replies

Hello again I have another question and to keep the message threads consistent I am posting this as another entry. If I...

Hello again I have another question and to keep the message threads consistent I am posting this as another entry. If I need to store a application parameter in the FLASH area what should I look into? I hear that you can only bulk erase the flash, would it be p


Two code versions in Flash at the same time?

Started by Trevor Wigle in 68HC1214 years ago 3 replies

Hello helpful people, I have an interesting sort of goal/proposition: I am working on product where we would like to allow the...

Hello helpful people, I have an interesting sort of goal/proposition: I am working on product where we would like to allow the customer to perform firmware updates (i.e., re-Flash the micro). (See previous thread on Flash programming via CAN.) We would like to be


newbie here and need help on programming flash memory.

Started by Hero in 68HC1214 years ago 1 reply

hey guys and gals, this question has probably been asked before but i'm doing this project for school and i want to store my...

hey guys and gals, this question has probably been asked before but i'm doing this project for school and i want to store my programs into flash memory. However, i have no idea of going about it. Do i need some special software or something like that to program the flash me