flash download stops BDM

Started by George Hollinworth ACE in 68HC1212 years ago 1 reply

I am using cosmic ZAP icd 6812(paged) to flash download to the HCS12DP256 chip through the P&E multilink USB BDM. The target is the...

I am using cosmic ZAP icd 6812(paged) to flash download to the HCS12DP256 chip through the P&E multilink USB BDM. The target is the freescale M68EVB912DP256. I have been loading to the target for months. On the last download, the ZAP was incorrectly set to hc12dg128. The flash showed an error almost at the end of the load sequence. Then t


Storing variables when running in FLASH EEPROM

Started by supaben34 in 68HC1212 years ago 1 reply

Hello all, I am trying to run a program in my FLASH EEPROM in my HC12B32 board. My program works fine in RAM but doesn't seem to work when...

Hello all, I am trying to run a program in my FLASH EEPROM in my HC12B32 board. My program works fine in RAM but doesn't seem to work when in FLASH EEPROM. Iam setting my EEPROM address to $8000... I am also using variables and I was wondering where I should set them. When looking at the programmer's manual, it seems like $1000 cannot be "seen" wh


codewarrior always erases $4000-$7fff

Started by timjenison in 68HC1213 years ago 1 reply

Using CW 6.1 true-time simulator & real-time debugger with S12XDP512, select File/Load Application/Options, highlight FLASH 4000. It is...

Using CW 6.1 true-time simulator & real-time debugger with S12XDP512, select File/Load Application/Options, highlight FLASH 4000. It is now supposed to protect this flash page but it doesn't. It erased when loading code into the $C000 area. If I select PAGED, it does the right thing and protects paged flash. What am I doing wrong?


Running routine off of the stack

Started by liszewski_jason in 68HC1213 years ago 2 replies

I am trying to run a routine completely off of the stack. The routine will update the firmware the system runs. I am using the...

I am trying to run a routine completely off of the stack. The routine will update the firmware the system runs. I am using the MC9S12DJ256 which has 256kB of flash. The flash has been divided in two. Half of the flash is used to run the system. The other half stores the new fi


Store data in Flash of MC9S08LG32

Started by yugal in 68HC127 years ago 1 reply

Hi All, I am using MC9S08LG32 and want to use internal flash of the processor to store(read/write both) some Application data while running time....

Hi All, I am using MC9S08LG32 and want to use internal flash of the processor to store(read/write both) some Application data while running time. i don't want to use external eeprom as my data is not that big. my application is also running from the same flash. Is there any way i can achive this goal and how. Thanks for your help. YKGupta ------------------------------------


Flash programming

Started by Wandson Santana in 68HC1213 years ago 1 reply

Is it possible to program the HCS12 flash using the small memory model of Code warrior? The code must change the PPAGE register to perform...

Is it possible to program the HCS12 flash using the small memory model of Code warrior? The code must change the PPAGE register to perform flash programming but the small memory model configuration works with a fixed PPAGE value. Best regards, Wandson Santana Borges __________________________________________________ "> http://mail.y


Access to flash memory

Started by montserret_maxime in 68HC1212 years ago 4 replies

Hi, I've a problem on MSC9S12DG256 chip. I try to write a word in flash memory. I write the code in flash. I copy it into RAM and I...

Hi, I've a problem on MSC9S12DG256 chip. I try to write a word in flash memory. I write the code in flash. I copy it into RAM and I execute it in RAM. My code is that : static bool ProgData(void) { unsigned short * sectAddr = (unsigned short *)0x8000; B = 0x34; PPAGE = B; B = B >> 2; B = ~B; B &


Help on Codewarrior debugger cmd files

Started by apedroso11 in 68HC1212 years ago 5 replies

Hi all, I want the codewarrior (CW) debugger to erase only a part of the flash when it starts. I can see in the...

Hi all, I want the codewarrior (CW) debugger to erase only a part of the flash when it starts. I can see in the "P&E_ICD_Erase_unsecure_hcs12.cmd" file that the debugger will make a MASS ERASE before programming the flash. I want to keep my bootloader programmed into the flash although any of my colleges use the debugger on our targets. I can't find documentation regardi


Flash Programing - 512 Bytes

Started by vvdhana in 68HC1211 years ago 5 replies

Hi All, I am student and not able to go ahead in my project because of the following requirement. I have to store 250...

Hi All, I am student and not able to go ahead in my project because of the following requirement. I have to store 250 bytes of data in a flash memory of 512 KB (MC9S12DP512), abt 10 times a day. I read that we can read/write even 512 bytes of data in Flash. I have tried by following the instructions in freescale document. I am not able to write and totally confused now....


9S12DP256 codewarrior uCOS-II banked flash

Started by donpichol in 68HC1214 years ago 1 reply

Hi, At the moment, i got a uCOS-II-based-application running in "Flash Application" target (Codewarrior). I want to run it in...

Hi, At the moment, i got a uCOS-II-based-application running in "Flash Application" target (Codewarrior). I want to run it in "Banked Flash" mode. As you can think, some problems occur with assembly routines. After a while reading datasheets i reso


Programming flash

Started by "isaac.caldas" in 68HC128 years ago 5 replies

Hello everyone! I'm a begginer in MCU programming. I was trying to make my MCU get access the flash and write n-bytes on it, for when I...

Hello everyone! I'm a begginer in MCU programming. I was trying to make my MCU get access the flash and write n-bytes on it, for when I reboot my MCU keep this bytes on the flash, for future use. I program in Assembly and my MCU is HCS12X. Can you make a tutorial or a example for me? (explaining how write and read) Thank you very much! ------------------------------------


Bootloader for reprogramming Flash EEPROM

Started by yann_37 in 68HC1212 years ago 9 replies

Hello, I'm new with HC12. I'm trying to adapt the code found in application note AN1718 (Serial Bootloader for Reprogramming the...

Hello, I'm new with HC12. I'm trying to adapt the code found in application note AN1718 (Serial Bootloader for Reprogramming the MC68HC912B32 Flash EEPROM) for a 912DT128A. The beggining of the program copies a part of the code from Flash to RAM and run it then. This code contains a "pcr" mnemonic (Program Counter Relative) but I


MC9S12NE64 Wiped top 256 bytes of Flash

Started by griglack in 68HC1213 years ago 2 replies

I was adding code to erase and write a sector of flash, when I accidentally erased the top 256 bytes of flash (0xff00 - 0xffff) because...

I was adding code to erase and write a sector of flash, when I accidentally erased the top 256 bytes of flash (0xff00 - 0xffff) because I am working with multiple products/chipsets and thought the NE64 had 256 byte sector instead of the 512 bytes it does. This contains the memory map for the BDM. Now, I can no longer talk with the board via the BDM and the


How to put the initialized variables to a fixed address in FLASH?

Started by wangyanjun1969 in 68HC1210 years ago

Dear sir: By default, the Codewarrior Linker will put the initialized variables to COPY segment, and when system startup, copy these...

Dear sir: By default, the Codewarrior Linker will put the initialized variables to COPY segment, and when system startup, copy these variables to RAM. I want to write the variables back to FLASH before system power down. But I don't know the address in FLASH. Is there any method? Thanks! ------------------------------------


Reading FLASH after programming

Started by Jeff McKnight in 68HC1211 years ago 36 replies

Hello All, I am using the 9s12DG256. After I have successfully programmed Flash using a bootloader I try to read some of the memory...

Hello All, I am using the 9s12DG256. After I have successfully programmed Flash using a bootloader I try to read some of the memory locations. They do not show the correct value until I do a hard reset with the reset pin. Is this to be expected ? Jeff


half-fast flash?

Started by timjenison in 68HC1214 years ago 1 reply

Using the DP256. If I do LDD ,X from internal flash, is it correct that this will take either 3 or 4 cycles depending on word...

Using the DP256. If I do LDD ,X from internal flash, is it correct that this will take either 3 or 4 cycles depending on word alignment?


to unsecure the flash

Started by ankit shah in 68HC1214 years ago 1 reply

hi, i am writing the bootloader part for the motorola HC128. but i am not able to write flash security byte residing at...

hi, i am writing the bootloader part for the motorola HC128. but i am not able to write flash security byte residing at 0xff0f to unprotect it. can any body guide me about this. ankit __________________________________


"jump to Flash"

Started by Javier Alberola in 68HC1214 years ago

Hello, I'm not clarified with a thing of D-Bug12. With D-Bug12 you can program the flash without a POD, but how can you run...

Hello, I'm not clarified with a thing of D-Bug12. With D-Bug12 you can program the flash without a POD, but how can you run the program after? Because there is a mode called "jump to EEPROM", but there is no any mode called "jump to Flash".


Help

Started by Jerry Fields in 68HC128 years ago 6 replies

Hello, I have a mc9s12dp512 running on a Axiom CMD12DP512 board. I was making slight modifications on the program, but when I tried to reload...

Hello, I have a mc9s12dp512 running on a Axiom CMD12DP512 board. I was making slight modifications on the program, but when I tried to reload it into internal flash, I keep getting an error that it "Can Not Set Program Counter". When I try to erace the flash memory, it errors out, and tells me the same thing. Does anybody have any ideas? _____________________________________...


Booting from Flash m9s12dg256

Started by sburgin13 in 68HC1210 years ago 13 replies

I'm having major dificulties understanding how to get my c program to run upon boot up. I know the address of where the program starts needs...

I'm having major dificulties understanding how to get my c program to run upon boot up. I know the address of where the program starts needs to be at the reset vector interrupt, but how do I program this? What are the steps I would need to take to change my program and load it into flash? ------------------------------------