SRecord Merge

Started by montserret_maxime in 68HC1212 years ago 5 replies

Hi everyBody, I'm working on MC9S12DG256B device. I've developed an application and a bootloader with different S-Record files. I'd like to...

Hi everyBody, I'm working on MC9S12DG256B device. I've developed an application and a bootloader with different S-Record files. I'd like to know if it's possible to merge the 2 files in order to make a single file containing the 2 programs. If yes, why ??? And which value must I put in header line and control line ??? Many thanks in advance.


Flash/EEPROM Programming via CAN

Started by Trevor Wigle in 68HC1215 years ago 15 replies

Hi folks, First let me say that I have read/am aware of Motorola's App Note 1828 on the subject. I was wondering if anyone...

Hi folks, First let me say that I have read/am aware of Motorola's App Note 1828 on the subject. I was wondering if anyone had written their own software for programming the Flash of an HC12 over CAN. How well did it work? Did you employ the bootloader-to-load-a-b


Codewarrior C/assembly inline statements

Started by johnpititto1976 in 68HC1214 years ago 1 reply

Hello World_ I am working on my special bootloader project, i am having difficulty jumping to a assembler label from my main C...

Hello World_ I am working on my special bootloader project, i am having difficulty jumping to a assembler label from my main C function. Let me illustrate what i am attempting to do... ****Assembly***** XDEF UseBootCode UseBootCode: c


BootLoader in Codewarrior for HC12

Started by johnpititto1976 in 68HC1214 years ago 4 replies

Hi ladies and Gents, I am developing a MC68HCS12DP256B micro using codewarrior v1.2. I am attempting to develop code so the...

Hi ladies and Gents, I am developing a MC68HCS12DP256B micro using codewarrior v1.2. I am attempting to develop code so the firmware is field upgradable. Does anyone have any handy hints on where to find some good documentation or code example on how to go about this in cod


Programming HC12 with Codewarrior V1.2 using AN2153

Started by johnpititto1976 in 68HC1214 years ago 3 replies

Hi All, I am trying to build a serial bootloader into my exsisting application using codewarrior v1.2 on the HCS12DP256...

Hi All, I am trying to build a serial bootloader into my exsisting application using codewarrior v1.2 on the HCS12DP256 micro. I have imported the assembly files from the document AN2153 into my banked-project. I get the following error when i attempt to compile,


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


encrypting data during boot load process

Started by Steve Letkeman in 68HC1214 years ago 24 replies

Does anybody have any clever ideas on protecting a program from copying during a download procedure using a boot loader? It's nice ...

Does anybody have any clever ideas on protecting a program from copying during a download procedure using a boot loader? It's nice to have the flash secured from BDM but if you want to use a serial or CAN bootloader you ultimately have to transmit your program. Is there a method of e


Looking for 68HC912B32 bootloader source code

Started by Kent Williams in 68HC1214 years ago 2 replies

Hey guys, Previously I've done a fair bit of work with various Microchip PICs in assembler, and am now looking to learn a bit...

Hey guys, Previously I've done a fair bit of work with various Microchip PICs in assembler, and am now looking to learn a bit about 16bit micros and C. I've been given a basic board with an M68HC912B32 chip on it, which basically has the crystal, rs232 level converter, and all


Linux Loading....

Started by theear1 in 68HC1214 years ago 4 replies

What are my options for flashing a '12 from linux? a couple of options I have seen: DBug12 + serial program: I cant get...

What are my options for flashing a '12 from linux? a couple of options I have seen: DBug12 + serial program: I cant get the handshaking right to allow flash loading, RAM loads just fine. Serial bootloader: I have only tried Mot's, i have the same prob


HC12 Inline Assembler & CW V1.2

Started by bitjockey1 in 68HC1215 years ago 3 replies

Hello, Iam trying to port Gordon Doughmans' bootloader for the B32 into the Metrowerks compiler V1.2 so I can program an 912D60A...

Hello, Iam trying to port Gordon Doughmans' bootloader for the B32 into the Metrowerks compiler V1.2 so I can program an 912D60A from the serial port. If I use any of the directives in the program I get an Ignore Directive warning C12062. The help file for the compiler does


SRecCvt parameters DP256

Started by johnpititto1976 in 68HC1214 years ago 4 replies

Hi All, I have almost finished my bootloader program(thanks to great suppport on this message board), except for figuring out...

Hi All, I have almost finished my bootloader program(thanks to great suppport on this message board), except for figuring out the correct parameters for the motorola S-Record formatting program SRecCvt. I have been passing the string, sreccvt.exe -b 16 0x30 32 -rf -o


Protected Flash Reads

Started by Longworth, Kevin in 68HC1214 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


Weird behaviour of D64 2L86D in BDM mode

Started by Edward Karpicz in 68HC1214 years ago

Hi I have been using self made BDM programer/debugger for a while. Programming was limited to programming of small...

Hi I have been using self made BDM programer/debugger for a while. Programming was limited to programming of small bootloader only, up to 8k of top most page. Everything was fine and cool. I haven't time to play more with optional less important things as BD


TechArts BDN12SX and S12D64

Started by WadeA & RebeccaM Smith in 68HC1213 years ago 2 replies

I was able to successfully wipe out the original bootloader code, but it wont let me load another in its place. I get "S-records...

I was able to successfully wipe out the original bootloader code, but it wont let me load another in its place. I get "S-records out of range" or "bad hex data". I even used a line of S-record that comes with the source code of the Dbug12 for the D256, just to


Flash Protection

Started by bbalend in 68HC1213 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


Boot Loader flash

Started by koby_bens in 68HC1214 years ago 1 reply

hi! I work with the E128 IDE of codewarrior and BDM multilink i try to build Bootloader at c language but right after i write data...

hi! I work with the E128 IDE of codewarrior and BDM multilink i try to build Bootloader at c language but right after i write data to the flash .the BDM get lost and kick me out (the BDM stop and no source reference found). I use 3.6864Mhz oscillator and my PLL speed is 22.1


.eeprom segment

Started by Steve Henck in 68HC1214 years ago

Hello. I finally got my serial bootloader to work on the mc9s12a256b. OK. So I take the application that I'm trying to...

Hello. I finally got my serial bootloader to work on the mc9s12a256b. OK. So I take the application that I'm trying to load, move the vectors, recompile and run it through SRecCvt. SRecCvt doesn't like the ".eeprom" segment created by the linker becau


Secure / unsecure

Started by marc...@yahoo.it in 68HC1212 years ago

Hi group. I'm using Metorwerks codewarrior with the micro MC9S12A256B. I have 2 question: 1.I need to have a device with the Flash...

Hi group. I'm using Metorwerks codewarrior with the micro MC9S12A256B. I have 2 question: 1.I need to have a device with the Flash secured. The mask of my micro is the 1K79X, so I have to use the micro in unsecure state in order to program EEPROM and Flash for example in the bootloader. So I have used the backdoor access key: am I sure that the micro is still secured if I use the firmware...


S-records & BootLoader

Started by Andrew Lohmann in 68HC1211 years ago 3 replies

I wish to automate uploading an application to my target using my boot loader. I guess I should get my Visual Basic out and just get on with...

I wish to automate uploading an application to my target using my boot loader. I guess I should get my Visual Basic out and just get on with it, but can any reader suggest a small application that will do it for me?. I now have a boot loader (based on the one that comes with dbug12) installed in my target and have used it to successfully erase and program my usual application. My target...


I give up ...

Started by Gary Olmstead in 68HC1215 years ago 2 replies

I am trying to write a bootloader for the D60A, with COSMIC. The program compiles, but it won't link. I used the recommended COSMIC...

I am trying to write a bootloader for the D60A, with COSMIC. The program compiles, but it won't link. I used the recommended COSMIC method, but I get this error message: "#error clnk d:\projects\12v42v\universal loader\unvldr.lkf:1 init segment cannot be initialized"