Flash programming from a bootloader

Started by dwild.geo in 68HC1213 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


Bootloader - Vector Table redirection

Started by smileyakfg in 68HC1212 years ago

Hi, I am building a Bootloader on a 9S12. Since I want to enable the protection on the device, I would like to do a redirection of...

Hi, I am building a Bootloader on a 9S12. Since I want to enable the protection on the device, I would like to do a redirection of the vector table. I modified the following file generated by PE: --------------------------------------------------------------------- vector.c: typedef void (*near tIsrFunc)(void);


Re: Startup code and bootloader

Started by James M. Knox in 68HC1213 years ago 2 replies

At 09:14 12/31/2004 -0800, you wrote: >What is the difference between Startup code and >Bootloader? I guess it depends in...

At 09:14 12/31/2004 -0800, you wrote: >What is the difference between Startup code and >Bootloader? I guess it depends in part on your definition of "startup code." In this case the device needs the ability to load new (updated) versions of both


convert AN3275 Bootloader to Cosmic C

Started by Andrew Lohmann in 68HC1210 years ago

Hi I am trying to convert AN3275 Bootloader to Cosmic C. Generally where I have found "near" I have replaced it with "@near". except in the...

Hi I am trying to convert AN3275 Bootloader to Cosmic C. Generally where I have found "near" I have replaced it with "@near". except in the case below what should I replace "*near" with? uint8 @near RunFunctionInRAM(uint8(*near fnpFunctionToExecute)(void)) { Thanks -- Andrew Lohmann AMIIE Design Engineer Bellingham + Stanley Ltd. Longfield Road Tunbridge Wells Kent, TN2 3EY Un...


D60A Bootloader

Started by bitjockey1 in 68HC1214 years ago 2 replies

Hello All, I have written a bootloader for the hc12d60a based on Gordon D's app note. What I want to do is force the addresses...

Hello All, I have written a bootloader for the hc12d60a based on Gordon D's app note. What I want to do is force the addresses in the secondary jump table and point the original vectors to the secondary ones. My question is in CW how do I force the address of the secondary jump


Gordon Doughman's Bootloader - 4KB to 2KB mod?

Started by varneybob in 68HC1215 years ago 4 replies

Anyone know how to easily mod the bootloader by Gordon, so that only the upper 2KB of Flash are used, instead of 4KB? ...

Anyone know how to easily mod the bootloader by Gordon, so that only the upper 2KB of Flash are used, instead of 4KB?


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

Started by phylacjoe in 68HC1215 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


serial bootloader + 9S12

Started by Joe McCarron in 68HC1214 years ago

Hello All, Having a problem loading & running using the serial bootloader on the 9S12 I first erase flash (OK) then program...

Hello All, Having a problem loading & running using the serial bootloader on the 9S12 I first erase flash (OK) then program flash with an S19 file which is small. I get a dialog box which tells me the number of bytes its loading into the 9S12 Then some


Flash sector erase on S12DP256B

Started by Adrian Vos in 68HC1211 years ago 15 replies

Hi all, I am using an S12DP256B in an automotive engine management product. I am using it in small memory model mode, but have it configured...

Hi all, I am using an S12DP256B in an automotive engine management product. I am using it in small memory model mode, but have it configured so that the main firmware is in 0x4000-0x7FFF and 0xC000-0xEFFF. I have a bootloader resident in 0xF000-0xFFFF along with the vectors. The unit resets to the bootloader which checks if main firmware is present and jumps to it if it is present. If...


Bootloader HCS12

Started by tipet20002000 in 68HC1215 years ago 2 replies

Hello, Does anybody know how can I run application from RAM with metrowerks? I've done a bootloader in C for MC9S12A128 and...

Hello, Does anybody know how can I run application from RAM with metrowerks? I've done a bootloader in C for MC9S12A128 and a program with Builder C++ to download code from PC to HCS12 via RS485. I can download code into block 1, but to download code into block


BootLoader, Interrupt tables and C

Started by Jordi Costa in 68HC1213 years ago

Hi all, I'm trying to write some BootLoader code in C following AN2153 guidelines. Interrupt tables looks like these...

Hi all, I'm trying to write some BootLoader code in C following AN2153 guidelines. Interrupt tables looks like these (showing only RTI interrupt) : __interrupt void JRTI (void); const tIsrFunc _vect[] @0xFF80 = { // Interrupt table .........


HC912DG128A : bootloader in non-banked memory ?

Started by yann_37 in 68HC1212 years ago 6 replies

Hello, I'm working on a HC912DG128A. Apparently, it is possible to put a bootloader in the non-banked memory ($4000-$7FFF and...

Hello, I'm working on a HC912DG128A. Apparently, it is possible to put a bootloader in the non-banked memory ($4000-$7FFF and $C000-$FFFF). You can also erase and program banked memory (6 pages from $8000-$BFFF). My problem is about the predefined sections that must be in non-banked memory : ROM_VAR (application constant variables), STRINGS (applic


xirq problem

Started by montserret_maxime in 68HC1212 years ago

Hi everybody, I've developed a bootloader on MC9S12DG256B device which can upgrade application via serial and CAN link. After upgrading...

Hi everybody, I've developed a bootloader on MC9S12DG256B device which can upgrade application via serial and CAN link. After upgrading application, when I start device, the bootloader switches on application. But I have always an xirq interrupt although the X bit of CCR register is set (by default it's set and I do anything to change it). Have you got an idea about this problem ??? Many


BootLdr and App in the same CodeWarrior Project

Started by apedroso11 in 68HC1212 years ago 11 replies

Hi, we have developed a bootloader for HC12 with CodeWarrior in C and we want to add it to the user application sharing the same codewarrior...

Hi, we have developed a bootloader for HC12 with CodeWarrior in C and we want to add it to the user application sharing the same codewarrior project. The aim is to force the debugger to program the app and the BootLdr in the flash every time you use the BDM to debug the app. But we are facing some problems: - We use #pragma CODE_SEG to allocate the bootloader in the 0x4000 but the lin


AN2153 Serial Bootloader for Codewarrior

Started by galenpatrickogrady in 68HC1213 years ago

I am trying to assemble the code for the Serial bootloader in AN2153 with CodeWarrior 3.1. The code in the App Note doesn't match the...

I am trying to assemble the code for the Serial bootloader in AN2153 with CodeWarrior 3.1. The code in the App Note doesn't match the code in the download files and there is no information on assembler switches, etc. When I try to assemble it with the default settings I get a number of error messages ranging from undefined instructions to duplicate label d


Generating S-Records using Cosmic Compiler for use with D-Bug12 Bootloader

Started by leclub_melusine in 68HC1214 years ago 2 replies

I am trying to generate S-Records that are compliant with the D-Bug12 bootloader using the Cosmic chex utility. I have tried all...

I am trying to generate S-Records that are compliant with the D-Bug12 bootloader using the Cosmic chex utility. I have tried all the command line options but always get a error message "S-Record Code/Data Length Is Odd" when downloading using D-Bug12. I have looked thro


HC12 Serial Bootloader Limitations

Started by ga5941 in 68HC128 years ago 1 reply

I'm downloading my application to a MC9S12DP512 via the Serial Bootloader which resides at $F000 in page $3F of the Flash memory, a protected...

I'm downloading my application to a MC9S12DP512 via the Serial Bootloader which resides at $F000 in page $3F of the Flash memory, a protected area. My app starts loading in the programming window at $C000 in page $3F but cannot go beyond $F000. This limits program size to less than 12K bytes, a severe limitation when 512K bytes of Flash are available. The load and erase routines of the Serial Boot...


Codewarrior & Debugger problem (HCS12X) please help

Started by Nobs in 68HC1212 years ago 1 reply

Hi All, I am using HCS12XDP512 controller and I have 2 problems with codewarrior Hiwave debugger environment. I am using P&E USB Multilink...

Hi All, I am using HCS12XDP512 controller and I have 2 problems with codewarrior Hiwave debugger environment. I am using P&E USB Multilink debugger. 1. We have 2 .ABS files (bootloader.abs and application.abs). When loading bootloader.abs I want to erase the memory. How can I load both .abs files at a time? Is there any configuration options for this? 2. I am building in one ma


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


EEPROM + interrupt +bootloader

Started by a2vutuan in 68HC1214 years ago

Hi, I'm using HC912B32 EVB, I need to program to use the IRQ interrupt. But I can't program the EEPROM to point the IRQ...

Hi, I'm using HC912B32 EVB, I need to program to use the IRQ interrupt. But I can't program the EEPROM to point the IRQ interrupt vector to my IRQ isr (in EVB mode). Is it that using bootloader to program the EEPROM is the only way I can do this. I've never tried with the