Skip to main content
parveen
Associate II
September 22, 2003
Question

Cosmic startup routine problem

  • September 22, 2003
  • 4 replies
  • 991 views
Posted on September 22, 2003 at 12:56

Cosmic startup routine problem

This topic has been closed for replies.

4 replies

parveen
parveenAuthor
Associate II
September 17, 2003
Posted on September 17, 2003 at 10:43

Hello All

I am using cosmic compiler for my ST7FLite29 device. Everything is working fine with memory model modc (Memory compact). But when I change to any other memory model, I get the error ''Write protected access at 0x000a''.

On further analysis we found that the startup routine tries to write to this location so we get this error in emulator. This is a readonly location so code should not write to this location.

Has anybody faced the same problem?? Any workaround possible for this situation??

Thanks in advance,

PraveenG
yu-jun
Associate
September 17, 2003
Posted on September 17, 2003 at 23:30

The error is that the connect is not tightness between the board and emulator.

parveen
parveenAuthor
Associate II
September 22, 2003
Posted on September 22, 2003 at 05:14

Thanks for the reply. The emulator connections are perfect. As I mentioned everything works fine with modc memory model. And the problem mentioned is that The emulator is trying to write a read only location when debugging this code belongs to startup routine.

If anyone can help

regards,

praveenG
janvi
Associate III
September 22, 2003
Posted on September 22, 2003 at 12:56

assume you use the crtsi (C-runtime startup initialized) what uses the _idesc_ descriptor to initialize data. Did you try ctrs.o or do you really require initialized data? If yes, you should check your link file (*.lkf) - how is the content?