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


Read Flash Using Cosmic Zap

Started by Graham Tricker in 68HC1214 years ago

Hi I need to read the contents of a section of flash on a mc9s12dp256 part to check what is actually programmed. Does...

Hi I need to read the contents of a section of flash on a mc9s12dp256 part to check what is actually programmed. Does anyone know if this is possible using Cosmic Zap, all I have managed to find is a flash verify which checks against an s-record, but I only want to ch


How do I get Code to Flash using TBDML?

Started by Stefan Stenzel in 68HC1214 years ago

Hello, Subject says it all, I have a prototype of my hardware with a 64-pin UF32, interfaced to a TBDML hardware, using metrowerks...

Hello, Subject says it all, I have a prototype of my hardware with a 64-pin UF32, interfaced to a TBDML hardware, using metrowerks tools, now I can't figure out how to get my code into flash. Of course I could RTFM, write a loader and a flash programmer, but I am somewhat in a hurry and I assume this is a problem that has been solved a thousand times befor


Problems programming flash in MC9S12DJ256

Started by liszewski_jason in 68HC1214 years ago

I am trying to write a value to a page of flash. The board uses an 8Mhz oscillator, so: 8Mhz/(41 + 1) ~ 190khz FCLKDIV =...

I am trying to write a value to a page of flash. The board uses an 8Mhz oscillator, so: 8Mhz/(41 + 1) ~ 190khz FCLKDIV = 0x29 That should be set correctly. I am using the following bit of code to write a word (16 bits) to some flash location. The function i


Flash Protection

Started by bbalend in 68HC1214 years ago 5 replies

Flash status: High address is protected: $C000 - $FFFF (bootloader + other stuff). Rest of the address are not protected. MCU type -...

Flash status: High address is protected: $C000 - $FFFF (bootloader + other stuff). Rest of the address are not protected. MCU type - 8x16K pagged memory (HCS12E128). In normal single chip mode, what happens if I try the mass erase of the whole flash block? Will I get protect violation (PVIOL) error? If Yes, Is there any way that


Flash Voltage

Started by eric_cina in 68HC1211 years ago 3 replies

I'm using an MC9S12A256. We recently installed them on our new boards for our new product and I'm having an intermittent problem with my FW...

I'm using an MC9S12A256. We recently installed them on our new boards for our new product and I'm having an intermittent problem with my FW downloads. It appears that in some cases the flash is not getting erased (MASS ERASE command). I have measured my supply voltage at 4.7 V for Vdd and for the other 5V inputs on the chip. What is the min Vdd required for flash erase and programming?...


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.


Flash programming from a bootloader

Started by dwild.geo in 68HC1214 years ago 12 replies

Hi folks Has anyone here ever successfully programmed flash in a 9s12 device from a bootloader when the chip is secured?...

Hi folks Has anyone here ever successfully programmed flash in a 9s12 device from a bootloader when the chip is secured? The chip I am using is the 9S12DG128 3l40K mask set which has the common EEPROM/FLASH programming error fixed. I am still having some troubles and


HC12 - Flash programming

Started by marcelmenne in 68HC1214 years ago 1 reply

Hello, I have to programm a HC12 for my studies. Therefore I should also use the FLASH memory but so far I only worked with...

Hello, I have to programm a HC12 for my studies. Therefore I should also use the FLASH memory but so far I only worked with DBUG12 and the RAM. What do I have to take notice of, when programming the FLASH memory?Do I have to programm a bootloader by myself? If yes, where c


Problem regarding Flash in MC68HC912B32

Started by Rivan Rivaldy in 68HC1210 years ago 2 replies

Hi all, I got a problem with my Flash on my MC68HC912B32 (again.. sigh). I realized that when the S-Record being sent to the MCU, the MCU will...

Hi all, I got a problem with my Flash on my MC68HC912B32 (again.. sigh). I realized that when the S-Record being sent to the MCU, the MCU will only read the odd order of S1. For example, I have the S-Records listed below: S011000046696C653A20696E742E7478740A31 S105FFF20DE01C S105FFF40DB04A S105FFFE0D00F0 S9030000FC After this S-Records being loaded into the Flash, I noticed that the...


Writing Flash

Started by Vernon Lermond in 68HC1213 years ago 1 reply

Hi, Does anyone have (or have a link to) assembler code to erase and write a small block of flash in a 9S12E128CPV ? Thanks for your...

Hi, Does anyone have (or have a link to) assembler code to erase and write a small block of flash in a 9S12E128CPV ? Thanks for your help ! Vernon


flashing a secured DP256

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

Is there a reason why I can't flash program using a bootloader, a secured star 12? The documentation says flash...

Is there a reason why I can't flash program using a bootloader, a secured star 12? The documentation says flash programming should work fine, but it doesn't work when the part is secured (no flash protection at all) and works fine when it isn't secured. Of course I ca


Need help reg PPAGE in MC9S12A256

Started by satya in 68HC1212 years ago 7 replies

Hi, In my current project we are going to use Freescale MC9S12A256 16bit controller. It is using paging concept to access 256KByte inbuilt...

Hi, In my current project we are going to use Freescale MC9S12A256 16bit controller. It is using paging concept to access 256KByte inbuilt Flash with 16K address space and PPAGE register. Let us assume that my application code is more than 64KByte, stored in block 2 & 3 of inbuilt Flash and it is executing from FLASH(using page window). Becauseit is > 64K, it is not only crossed the


Problem in flash erasing if EEPROM is touched

Started by br_professional in 68HC1214 years ago 2 replies

Hi all, I am trying to erase and program Flash Block 0 of MC9S12DP256B. I am doing this by executing my erase and program...

Hi all, I am trying to erase and program Flash Block 0 of MC9S12DP256B. I am doing this by executing my erase and program routines from RAM and I am successful in this. But if I write data to EEPROM, before I start to erase the flash memory, it is not allowing to erase the


Difference between D-Flash and Emulated EEPROM

Started by yadunandan kasu in 68HC1210 years ago

Dear Everyone, I am working with the MC9S12XS128 MCU. This MCU doesnt have the EEPROM but it has D-Flash. And I studied the data sheet...

Dear Everyone, I am working with the MC9S12XS128 MCU. This MCU doesnt have the EEPROM but it has D-Flash. And I studied the data sheet for MC9S12XEP100 refference manual and the application note AN3490.pdf. Which says MC9S12XEP100 has the optional Emulated EERPOM which can be done by carefully partioning the availabe D-Flash. And the document says it has many advantages like .. ...


Flash Erase Problem for MC9S12C32

Started by David in 68HC1213 years ago 5 replies

Greetings all, I am having a problem erasing FLASH by sector (FCMD = 40). I have C code that executes out of RAM at 0x800 and tries to...

Greetings all, I am having a problem erasing FLASH by sector (FCMD = 40). I have C code that executes out of RAM at 0x800 and tries to erase Flash starting at 0x8000. The problem is that if I let it run freely, it manages to erase from 0x8000 to 0x83FF and then the program counter mysterious ends up at 0x1050 and a messagebox appears sayi


Problems programing flash on M68KIT912DP256 with BDM Multilink/Metrowerks

Started by djsimpson100 in 68HC1216 years ago 3 replies

Hi all, I am having problems programming the flash on the MC9S912DP256. I am using Codewarrior HC12 V1.2 and the P&E BDM...

Hi all, I am having problems programming the flash on the MC9S912DP256. I am using Codewarrior HC12 V1.2 and the P&E BDM Multilink which came with the Motorola M68KIT912DP256. If I load the Fibo Flash example, the debugger stalls at at the 60% mark in execu


Troubleshooting BDM

Started by Lewis, Bob in 68HC1215 years ago 1 reply

We have one prototype board that we can read with NOICE but can't flash. The HC12 is working correctly because we put an already...

We have one prototype board that we can read with NOICE but can't flash. The HC12 is working correctly because we put an already flashed part on the board and it worked as expected. The BDM works because it will flash other parts. We have changed HC12 and still can not flash the part. Woul


Flash update that spans multiple pages

Started by liszewski_jason in 68HC1214 years ago

I am working on a firmware update for the mc9s12dj256. We have reserved half of the on chip flash for storing a firmware update. ...

I am working on a firmware update for the mc9s12dj256. We have reserved half of the on chip flash for storing a firmware update. After transferring the entire image I plan to copy the update to the other half of flash. I need the copying routine to run off the stack since the


Programming of HCS12 Flash memory

Started by "mur...@ymail.com" in 68HC127 years ago

I want to program the Flash memory of Dragon12- Plus board.I followed the steps given in the Dragon12- Plus manual and downloaded...

I want to program the Flash memory of Dragon12- Plus board.I followed the steps given in the Dragon12- Plus manual and downloaded the srecrvt.GUI.I changed the mode setting to Bootloader mode and when I tried to download the converted file to the board, it gives me " Flash programming error". Do you have any suggestion or answer to this problem? ------------------------------------