MC9S12DP256B security

Started by Jean-Sebastien Bouchard in 68HC1211 years ago 25 replies

When you implement the built-in security feature on the DP256B mask 1K79x running Normal Single Chip mode, you cannot erase and write EEPROM and...

When you implement the built-in security feature on the DP256B mask 1K79x running Normal Single Chip mode, you cannot erase and write EEPROM and flash on the device. (From Freescale ERRATA MUCts00603 and MUCts00604.) We need to be able to reprogram the MCU while in the field. In order to do this, our firmware update PC tool launches the Bootloader on the MCU, unsecures the device using t...


Start12.c - Init procedure not functioning - Codewarrior v1.2

Started by johnpititto1976 in 68HC1214 years ago 1 reply

Hi All, I have been working on a bootloader for MCs12DP256 in the codewarrior IDE v1.2. I had the whole thing working then for...

Hi All, I have been working on a bootloader for MCs12DP256 in the codewarrior IDE v1.2. I had the whole thing working then for some reason the function Init() in Start12.c has stopped operating. This has made the sartup routines go into a continuous loop preventing the func


HC12 - Flash programming

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


erasing 256k flash memory with mc9s12dp256

Started by Micro m6net in 68HC1215 years ago 5 replies

Hi, With a self programmed bootloader which runs in Ram, we have some trouble to erase memory flash block with mass_erase...

Hi, With a self programmed bootloader which runs in Ram, we have some trouble to erase memory flash block with mass_erase command. But if we send two times the function, we have a correct erasing. Therefore, same function but in writing mode works properly after erasi


flashing a secured DP256

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


COP - problem (HCS12)

Started by manekb2000 in 68HC1214 years ago

Hi, I want to run my program after loading from bootloader (AN2153). I can't twice init memory map register. I can use COP, but...

Hi, I want to run my program after loading from bootloader (AN2153). I can't twice init memory map register. I can use COP, but in normal mode it doesn't work ??? In BDM Active mode it's work o.k. I add soubroutine in boot_code: RunProgram: ;Init COP


srecord file

Started by Simi in 68HC1210 years ago

hello, i am doing my project in mc9s12dj256b using code warrior.i want to generate s2 s record file for burn to microcontroller.now i am getting...

hello, i am doing my project in mc9s12dj256b using code warrior.i want to generate s2 s record file for burn to microcontroller.now i am getting s1 s record file. how to change this ? and how to generate text file in code warrior for writting to ic through bootloader. if anyone have this details please share with me juna _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _...


Disabling COP after enabling it possible ?

Started by tobbe_1975 in 68HC1212 years ago 3 replies

Hello, is there some way to disable the COP after enabling it ? My main program enables the COP but when the main program goes into...

Hello, is there some way to disable the COP after enabling it ? My main program enables the COP but when the main program goes into bootloader mode I don't want the COP enabled. Program runs in Normal expanded narrow mode so only one write to COPCTL is allowed... Regards, Tobias Olofsson


XDP512 flash erase/programming

Started by bitjockey1 in 68HC1210 years ago 1 reply

Hello, I am attempting to port my bootloader for the DP512 part to the XDP512 part. When I go to mass erase block 3 of the flash I get...

Hello, I am attempting to port my bootloader for the DP512 part to the XDP512 part. When I go to mass erase block 3 of the flash I get an ACCER flag as soon as I write data to an address b4 the mass erase command, is there different setup for the xdp part over the dp part??? Thanks, ...


Warning A12004

Started by manekb2000 in 68HC1214 years ago 1 reply

Hi, I use Motorola bootloader for DP256, and i have some warnings: "Warning : A12004: Value is truncated to two bytes ...

Hi, I use Motorola bootloader for DP256, and i have some warnings: "Warning : A12004: Value is truncated to two bytes BootDP256.Asm line 236" for pcr register, it's sample line: jsr PromptResp,pcr; How I can do to eliminate this warnings ?


Programming of HCS12 Flash memory

Started by "mur...@ymail.com" in 68HC126 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? ------------------------------------


secondary jump table coding

Started by Max in 68HC1214 years ago 7 replies

I'm writing a bootloader and need to implement the secondary vector table jump functionality. The way I understand this is that ...

I'm writing a bootloader and need to implement the secondary vector table jump functionality. The way I understand this is that the normal vector table at FF80+ points to a second table that uses the jmp command and the value found in the user program vector table located (in my case


open source HC12 project

Started by Steve Letkeman in 68HC1210 years ago 1 reply

Good Day! this post is to test the waters and see if there is any interest in an open source hardware 9S12DP512 board that would include an...

Good Day! this post is to test the waters and see if there is any interest in an open source hardware 9S12DP512 board that would include an RS232 and CAN bootloader. The board has two Xpansion ports that allow a choice of RS232, XBee, Ethernet (Digi or XPort) or USB plus the internal CAN so it allows a number of different options as well as being a protocol converter (RS232 to XBee, Ether...


Srecords from cosmic C for Bootloader

Started by Andrew Lohmann in 68HC1211 years ago

Hi, I have been trying to create S-records output from my Cosmic C for my Boot-loader which is based on the boot-loader from dbug12. The...

Hi, I have been trying to create S-records output from my Cosmic C for my Boot-loader which is based on the boot-loader from dbug12. The problem is that I don't know how to configure the cosmic C S-record output to suit the Motorola boot-loader. I have attempted to use sreccvt.exe within the build options post utility 1. The line below causes no errors and leave no output. If I append t...


Secondary Interrupt Vector Jump Table

Started by koby_bens in 68HC1213 years ago 1 reply

hi! i am working on a bootloader on the E128 with codewarrior 3.1 and i have a little problem i didn't understand how can i make...

hi! i am working on a bootloader on the E128 with codewarrior 3.1 and i have a little problem i didn't understand how can i make a Secondary Interrupt Vector Jump Table in c . i would like to know if there is another solution to the interrupt vector (i need that the interrupt


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


run-time programming of EEPROM in DP256

Started by danielkolodka2002 in 68HC1212 years ago 6 replies

Hello dear people, actually we are trying to program, using a run-time routine, the EEPROM of the MCU: HCS912DP256, but we could not do it...

Hello dear people, actually we are trying to program, using a run-time routine, the EEPROM of the MCU: HCS912DP256, but we could not do it yet. We modify and traslate to C, the assembler routine used for Erase de EEPROM in the bootloader code, of course we change the code to command the internal FSM, that automatically erase and program this memory. The result is always the same, every t...


overlay the Flash bootblock with RAM

Started by montserret_maxime in 68HC1212 years ago 21 replies

Hi, I'm working on DG256. I would like to execute bootloader in RAM. For that, I copy it into RAM (from 0xC000 to 0x3000) and I overlay...

Hi, I'm working on DG256. I would like to execute bootloader in RAM. For that, I copy it into RAM (from 0xC000 to 0x3000) and I overlay the flash with RAM with INITRM = 0xC0+RAMHAL; (with RAMHAL=1). But it's not working, that's my main program : void main(void) { INT8U * BootBegin = (INT8U *)0xC000; INT8U * BootEnd = (INT8U *)0xC3