ARM Technical Support Knowledge Articles


Applies to: C251 C Compiler


Information in this article applies to:


I am using the C251 Compiler, USB, and the RISM monitor. I wrote a C program to locate the code to start at 4000h. After I load my program, it crashes and will not get past the startup code. I receive error messages like "lost serial transmission error". What is wrong?


The RISM monitor uses internal data memory to store its own variables. However, the first thing the startup code does is clear internal memory. This crashes the RISM monitor.

To fix this problem, include the startup code (START251.A51) in your project and set the EDATA length to zero. This change avoids clearing memory and allows the RISM monitor to run. However, your uninitialized variables will not be set to zero.

Be sure to check the Keil USB web page at for more information about USB.

Article last edited on: 2004-05-08 13:46:46

Rate this article

Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential