Can't get HC12 EVB and metrowerks to program Flash on target board via BDM

From: egp001 (fep002_at_motorola.com)
Date: 05/11/04


Date: 11 May 2004 08:26:32 -0700

When I connect a target board to an HC12 EVB and use Metrowerks v2.0
freeware IDE, I can assemble, link, go to the debugger and download
into RAM. When I set my default.prm file for the linker to point to
flash, the download fails with the message:

Elf-Loader
Error while writing to 8000..80B4

Looking at the communications between the debugger and the EVB board,
I see that when I load RAM successfully, the debugger issues the LOAD
0800 command (ram is at 800). When I try to write to flash memory, the
debugger issues the LOAD 08000 command which of course will not work
(need to send FBULK followed by FLOAD commands according the EVB
Debug-12 command manual) which is why I get the error.

Looking at the memory configuration menu, the Flash memory area was
set to RAM and in the comment field was FLASH. Rather strange, so I
set the type to FLASH (from RAM), but it didn't help.

Also I programmed flash directly using Hyperterminal and manually
entering the commands and S records and it worked fine. Confirmed it
with a memory display (MD) debug-12 command.

Anyone know if programming flash is supported with freeware Metrowerks
v2.0?
Anyone know how to set up to project/stationary/hiwave to get this to
work?



Relevant Pages

  • Re: Cant get HC12 EVB and metrowerks to program Flash on target board via BDM
    ... >freeware IDE, I can assemble, link, go to the debugger and download ... >Looking at the communications between the debugger and the EVB board, ... >I see that when I load RAM successfully, ... >Looking at the memory configuration menu, the Flash memory area was ...
    (comp.arch.embedded)
  • Re: Cant get HC12 EVB and metrowerks to program Flash on target board via BDM
    ... allow you to program flash! ... > flash, the download fails with the message: ... > Looking at the communications between the debugger and the EVB board, ... > Debug-12 command manual) which is why I get the error. ...
    (comp.arch.embedded)
  • Debugging
    ... On my WinXP Professional box at home, I can't get the debugger to start from ... I get the same error using NetBeans 3.5.1, ... The command the IDE is trying to execute - shown in the output window - is ...
    (comp.lang.java.softwaretools)
  • Re: OleDbDataAdapter created in code behaves differently from one created by wizard.
    ... jump right in with the debugger and identify the problem point quickly. ... command as you like, setting the connection, commandText properties etc. ... daA object is set to Null, so when you try and access the CommandText ... I know the adapter created in code is OK because I use it to ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: (MSVCRT.DLL): 0xC0000005: Access Violation
    ... That command will display a little bit more of what is going on. ... Debugger commands are very concise, and the seem random strings at first ... This posting is provided "AS IS" with no warranties, and confers no rights. ... >>> First chance exceptions are reported before any exception handling. ...
    (microsoft.public.vc.language)