FLASH PROGRAMMING

Started by tototawila in 68HC1212 years ago 2 replies

hi i work on dragon12 board and egnu tool and i want to download the programe on the flash memory ,the help said that i should start the...

hi i work on dragon12 board and egnu tool and i want to download the programe on the flash memory ,the help said that i should start the programe from flash address like 0xE000 and save this address at the location 0xEFFE,0xEFFF but i don't know how to do this in C langauge so i need help TAWILA


HCS12 SCI Flash Programming Help

Started by jssimbe in 68HC129 years ago 1 reply

I'm using and HCS12 with icc12 compiler. I'm using SCI1 to communicate to a touch screen LCD. This program loads the LCD GUI. When I try...

I'm using and HCS12 with icc12 compiler. I'm using SCI1 to communicate to a touch screen LCD. This program loads the LCD GUI. When I try loading the program into flash, it doesn't work. When I'm not using flash, the program works fine and GUI is loaded on the screen. When I flash the board, I include the vectors_dp256 file and set the abs_address to 0xef80. Any help would be greatly apprecia...


Flash and RAM issue

Started by same...@... in 68HC1213 years ago 2 replies

Currently I m using HCS12C64(80 pin ) for my application which has 64K flash and RAM 4K. I am currently facing Flash size and RAM size issue....

Currently I m using HCS12C64(80 pin ) for my application which has 64K flash and RAM 4K. I am currently facing Flash size and RAM size issue. Please can you suggest another series with same pin layout with more Flash and RAM, so as I can keep the same layout? Please give your valued suggestion? Warm Regards, Sameer Deshmukh Solutions Developer-Embedded Systems TATA Technologies Ltd. Pune


Read write flash - Eprom SPI

Started by macflight2005 in 68HC1214 years ago 2 replies

I would like to transfer a part of the flash to a serial Eprom and transfer datas in Eprom to the flash. I actually can...

I would like to transfer a part of the flash to a serial Eprom and transfer datas in Eprom to the flash. I actually can read and write in my Eprom via SPI. I found apllication notes to erase and write the flash(I m working on this). BUT I can't find an example t


flash erase

Started by kristies1 in 68HC1216 years ago 2 replies

Hi all, Is there any way to erase the flash thru the BDM once the flash protection bits in FPROT have been changed? I am...

Hi all, Is there any way to erase the flash thru the BDM once the flash protection bits in FPROT have been changed? I am using the bootloader from the mot web site, and it has a 4096 byte protected boot block at $F000, like this: org $ff0d dc.b $cf ; setup a


Flash Protection Question

Started by Adrian Vos in 68HC1214 years ago 1 reply

Hi All, I am using the last 4k of the flash (including vector space) to utilise a boot code that has firmware upgrade...

Hi All, I am using the last 4k of the flash (including vector space) to utilise a boot code that has firmware upgrade capability. This code is always present, and can program the rest of the flash on S12DP256 as required. I currently protect this area, and I hope that I should


Re: jump to Flash

Started by Anonymous in 68HC1214 years ago 1 reply

D-Bug12 lives on the flash so you can't use the flash for your own programs :)). This is the 912B32 I am talking about I guess. ...

D-Bug12 lives on the flash so you can't use the flash for your own programs :)). This is the 912B32 I am talking about I guess. Original Message: ----------------- From: Javier Alberola Date: Thu, 23 Sep 2004 20:47:03 +0200 To: Subject: [68HC12] "jump


Accessing flash while running out of ram

Started by liszewski_jason in 68HC1214 years ago 2 replies

I am currently writing firmware for a project that uses the MC9S12DJ256 microcontroller. I am doing all of my developing in RAM ...

I am currently writing firmware for a project that uses the MC9S12DJ256 microcontroller. I am doing all of my developing in RAM with the NOICE debugger. Right now I am working on firmware updates that are stored in the flash and then copied from one half of the flash to the ot


Flash Program Routine - Appears To Do Nothing

Started by andr...@yahoo.co.uk in 68HC127 years ago 9 replies

Hi - I need some help please .... I'm trying to write some code to write to the Flash area on an MC9S12DP512. But although it runs, and...

Hi - I need some help please .... I'm trying to write some code to write to the Flash area on an MC9S12DP512. But although it runs, and doesn't appear to throw any Acc or PViol errors, it also doesn't appear to actually write to the Flash - it remains @ FF FF .. What am I doing wrong ? I've looked the the FSL app notes, (AN2400 for example) and done some digging around on here - and as...


writing to flash

Started by the_oog6789 in 68HC1214 years ago 1 reply

Hi, I was wondering if I could get some help on writing to flash memory in normal mode. I'm just stuck on how to specify an address...

Hi, I was wondering if I could get some help on writing to flash memory in normal mode. I'm just stuck on how to specify an address to a flash location because they are so long(ie 0x00388000). I was going to use a pointer, but this address wont fit into a pointer. Is there a way to first say which page you want to write to, then just give an


Metrowerks Ver3.1 & DBug12 Flash Programming

Started by hebs_s in 68HC1213 years ago 10 replies

Hi, All! I am using Debug12 for Flash programming of target borad in POD using Evaluation board.It is possible to program &erase...

Hi, All! I am using Debug12 for Flash programming of target borad in POD using Evaluation board.It is possible to program &erase target flash using HyperTerminal as Terminal Emulation program. Howver with Metrowerks Ver 3.0 & Ver 3.1 tested to program the Flash but unable to do so.It is giving an error. Is this t


Programming flash from S Records using CW debugger

Started by timjenison in 68HC1213 years ago 4 replies

Is there some way to the use the Code Warrior debugger to send S Records to flash in my S12XDT512? The S records come from a separate ...

Is there some way to the use the Code Warrior debugger to send S Records to flash in my S12XDT512? The S records come from a separate application on the PC. I can customize the S Records if necessary. Failing that, is there any way to get binaries into flash without compiling and linking them?


HCS12 Flash Programming

Started by jeffreychampa in 68HC1214 years ago

I may be in a situation with a S12DG256 where flash programming has a problem at low temperature (-40C to 10C). Has anyone...

I may be in a situation with a S12DG256 where flash programming has a problem at low temperature (-40C to 10C). Has anyone experienced a similar problem? Any possible resolutions? I was specifically wondering if the timing on the Flash was different at lower tempera


Flash DP256, Debug 12

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

I have no experience with Debug 12 so I appologize if these are obvious questions; I have been using NOICE and starprog to...

I have no experience with Debug 12 so I appologize if these are obvious questions; I have been using NOICE and starprog to flash my dg128a and they work great, but these programs do not support the dp256 as yet (but will in the future). * Can I use debug 12 to flash th


Flash Secure/protect help needed

Started by adlai15 in 68HC1213 years ago 5 replies

Hi, I'm using an NE64 derivative. I would like to secure/protect my firmware in flash during or after the download of the firmware. I've...

Hi, I'm using an NE64 derivative. I would like to secure/protect my firmware in flash during or after the download of the firmware. I've seen a command FLASH PROTECT for the linker command file(.prm), but the mcu03ea.fpp file, for the NE64, that came with CodeWarrior has just a few lines in it. So I have a couple of questions: 1) What's the best way to secure the flash? 2) Does anyone


MC9S12KG256 FLASH bank 1 erased, but not programming

Started by serg...@mail.ru in 68HC129 years ago 2 replies

Hi, I am working the MC9S12KG256 and writing flash driver to program CPU. Code executed from RAM. FLASH memory is fully unsecured, FPROT for...

Hi, I am working the MC9S12KG256 and writing flash driver to program CPU. Code executed from RAM. FLASH memory is fully unsecured, FPROT for bank 0 is $84, for bank 1 is $FF. Call to EraseFL (B=$00,A=$00) succesfully erases all FLASH sectors except protected. Call to WriteFL succesfully program only bank 0. For bank 1 it doesn't return any error on programming stage, but there is no da...


9s12e128 Flash programming

Started by Baris Aslan in 68HC1214 years ago

Hi, I have tried to implement Flash Programming algorithms that indicated on an2400, and FCLK_PRESCALER calculating macro that ...

Hi, I have tried to implement Flash Programming algorithms that indicated on an2400, and FCLK_PRESCALER calculating macro that indicated on an2204. I want to write into "FLASH_Buffer[]" constant array that located in Flash page 0x38(0x388000). I'm


Flash Programming ACCERR

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

Hi group, I am using the DP256 star 12. I am trying to write a routine that will program flash bytes at the security location...

Hi group, I am using the DP256 star 12. I am trying to write a routine that will program flash bytes at the security location in fixed memory at location $ff00. The flash is unsecured (FSEC = 0xfe) All the code is executed from RAM. The first thing I want to do is erase the se


Flashing problem

Started by venki in 68HC1213 years ago

Hello all, I am working on MC9S12DJ128 micro where I am trying to flash my code but getting Flash error(0x3f8000) at some address...

Hello all, I am working on MC9S12DJ128 micro where I am trying to flash my code but getting Flash error(0x3f8000) at some address location. we are using TRACE32 for flashing and COSMIC cross compiler for compilation.=20 Please find the attached linker file how I have made page segments to put object modules. There are 29 source files. My earlier project I am able to flash and test C...


Program Flash on DG128B

Started by Jefferson Smith in 68HC1212 years ago 3 replies

I have trouble with the latest D-Bug12 writing Flash on the MC9S12DG128B (mask set 0L85D). Was there some magical moment when this flash...

I have trouble with the latest D-Bug12 writing Flash on the MC9S12DG128B (mask set 0L85D). Was there some magical moment when this flash memory banks relocated themselves from PPAGE [0x00..0x07] to [0x38..0x3f] ? Of course neither assumption works, and D-Bug12 4.0.0b32 seems to not properly suppord several commands that should be able to handle PPAGEd addresses as parameters.