Blocked using Trace32 u-boot debugging and problem with hardware breakpoint

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Blocked using Trace32 u-boot debugging and problem with hardware breakpoint

跳至解决方案
1,149 次查看
vinothkumars
Senior Contributor IV

Hi All,

We are debugging u-boot using trace32 on our new processor board with an T4240RDB.

 

We are currently blocked in our development. We are having problems with Trace32 debugger

hardware breakpoints

 

Here the situation:

    We understand that in order to get hardware breakpoints to work we need:

   1- A valid address with a valid instruction at IPVR

   2- DE bit enable in MSR register

   3- To avoid problems; always set breakpoints before or after code which accesses SRR0 and SRR1, and never step         through such code.

We have also verify that:

  • Address Space is 1 (MSR IS and DS are both set to 1),
  • Debug interrupt is enable (MSR DE is 1), and
  • The effect of the TLB update is visible (rfi instruction should cause this to occur).

u-boot,

 

        lis     r6,MSR_IS|MSR_IS|MSR_DS|MSR_IS|MSR_DE@h

        ori     r6,r6,MSR_IS|MSR_IS|MSR_DS|MSR_IS|MSR_DE@l

        lis     r7,switch_as@h

        ori     r7,r7,switch_as@l

 

        mtspr   SPRN_SRR0,r7

        mtspr   SPRN_SRR1,r6

        rfi

After rfi instruction, jump to 0xEFFFF574 but, there is no data present and also all address same like that (data :??????????????)

Thank you,

VinothS

Regards,
Vinothkumar Sekar
标签 (1)
0 项奖励
1 解答
956 次查看
vinothkumars
Senior Contributor IV

Hi Reinhard,

Thank for your reply and Instruction execute when change MSR to 0.

Regards, VinothS

Regards,
Vinothkumar Sekar

在原帖中查看解决方案

0 项奖励
3 回复数
956 次查看
rweiss
Contributor V

Hi VinothS,

it seems some of the prerequisites you mention are for e500 cores and do not apply to e500mc/e5500/e6500 cores.

Please contact your local TRACE32 FAE for assistance. You can find the contact information here:

TRACE32® Worldwide Representation 

Best regards,

Reinhard

0 项奖励
957 次查看
vinothkumars
Senior Contributor IV

Hi Reinhard,

Thank for your reply and Instruction execute when change MSR to 0.

Regards, VinothS

Regards,
Vinothkumar Sekar
0 项奖励
956 次查看
vinothkumars
Senior Contributor IV

Hi,

Finally this one fixed by minimal u-boot binary (u-boot-spl.bin) instead of normal u-boot for sram.

Regards,
Vinothkumar Sekar
0 项奖励