Need suggestions for debugging memory error

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Need suggestions for debugging memory error

ソリューションへジャンプ
1,035件の閲覧回数
JBM
Contributor V

I'm working with CodeWarrior and an MC9S08QE128.  I have gone to banked memory due to the size of the code and everything was working but as of today I have an error I can't run down.  At a point in the code when a function is called, the code jumps to the wrong function and in fact jumps to the middle of the wrong function.  I then get an ILLEGAL BP and it resets.

 

All code except for main.c has been moved to the banked memory using pragmas.

 

I'm not doing any dynamic memory allocation.

 

I have watched the registers and everything look OK to me.  I thought at first it was a stack problem, but the stack is fine (I have it at 2K at the moment to ensure it's the the problem).  There is enough RAM for all the data, I've checked that.

 

Unfortunately, I can't post the code (13+ K lines) since it's not mine.

 

Any ideas on how to run this down?

 

Thanks for the help.

 

Brad

ラベル(1)
0 件の賞賛
返信
1 解決策
516件の閲覧回数
bigmac
Specialist III

Hello Brad,

 


JBM wrote:

I'm working with CodeWarrior and an MC9S08QE128.  I have gone to banked memory due to the size of the code and everything was working but as of today I have an error I can't run down.  At a point in the code when a function is called, the code jumps to the wrong function and in fact jumps to the middle of the wrong function.  I then get an ILLEGAL BP and it resets.

 

All code except for main.c has been moved to the banked memory using pragmas.

  


The ISR code must also use unbanked memory.

 

Regards,

Mac

 

 

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
517件の閲覧回数
bigmac
Specialist III

Hello Brad,

 


JBM wrote:

I'm working with CodeWarrior and an MC9S08QE128.  I have gone to banked memory due to the size of the code and everything was working but as of today I have an error I can't run down.  At a point in the code when a function is called, the code jumps to the wrong function and in fact jumps to the middle of the wrong function.  I then get an ILLEGAL BP and it resets.

 

All code except for main.c has been moved to the banked memory using pragmas.

  


The ISR code must also use unbanked memory.

 

Regards,

Mac

 

 

0 件の賞賛
返信
516件の閲覧回数
JBM
Contributor V

Thanks, that was it.

0 件の賞賛
返信