Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Sharry
Level 1
Level 1
5 sign-ins First reply posted First question asked

Hi, there!

I first download an elf to a new tc234 board by lauterbach, and it is successful. When reset the board,  I can't download the same elf to the same board again.

I use the DAS basic client to connect the board, it shows "DAS Error:Device_locked".

This is the BMHD I configured:

const uint32 BootModeHeader_0[] = {
0xA0000020u, /* STADBM first user code at 0x8000 0020h */
0xb3590070u, /* BMI = 0070h BMHDID = B359h */
0x00000000u, /* ChkStart */
0x00000000u, /* ChkEnd */
0x00000000u, /* CRCrange */
0x00000000u, /* !CRCrange */
0x5DB996ACu, /* CRChead */
0xA2466953u /* !CRChead */
};

Anyone know why the borad is locked?

0 Likes
1 Solution
Jeremy_Z
Moderator
Moderator
Moderator
250 sign-ins 100 likes received 750 replies posted

Hi @Sharry 
1)HWCFG[3]=1, HWCFG[4]=0, HWCFG[5]=0; BHMD按如上设置是否会导致调试器显示"Device locked"? 我改成如下设置HWCFG[3]=0, HWCFG[4,5]=[1,1].调试器就能连上了。
-- 我不很清楚你的测试过程,你不是说板子已经“Decive_Locked”,现在可以连接上修改HWCFG了吗?
2)这是什么原因呢?
-- 请尝试iLLD例程,是否也会出现同样的情况?
BR,
Jeremy

View solution in original post

0 Likes
9 Replies
Jeremy_Z
Moderator
Moderator
Moderator
250 sign-ins 100 likes received 750 replies posted

Hi @Sharry ,

I was wondering if you could demonstrate the demo project you used, further, can you establish communication with the board via the tool?
Last, after programming, did the code run well on the board?
BR,
Jeremy

0 Likes
Sharry
Level 1
Level 1
5 sign-ins First reply posted First question asked

Hi Jeremy,

Thanks for your reply.

I think you are a Chinese?

我第一次用劳德巴赫下载时,是可以下载并且调试程序的,就是说劳德巴赫的调试器可以和我的板子通讯,同时代码也运行正常。

因为劳德巴赫调试器无法再次连接板子,所以后来尝试用miniwiggler连接板子,提示被锁了,所以想请教被锁的原因有哪些?

很抱歉,代码暂时无法提供。

 

0 Likes
Jeremy_Z
Moderator
Moderator
Moderator
250 sign-ins 100 likes received 750 replies posted

Hi @Sharry 

可以使用Memtool与板子建立连接,然后读取UCB吗?

BR,

Jeremy

0 Likes
Sharry
Level 1
Level 1
5 sign-ins First reply posted First question asked

Hi Zhou,

Memtool没用过,尝试了下,如下图,似乎是连不上:

Sharry_0-1696995564888.png

 

0 Likes
Jeremy_Z
Moderator
Moderator
Moderator
250 sign-ins 100 likes received 750 replies posted

Hi @Sharry ,

首先,下面的CRC值都是正确。

const uint32 BootModeHeader_0[] = {
0xA0000020u, /* STADBM first user code at 0x8000 0020h */
0xb3590070u, /* BMI = 0070h BMHDID = B359h */
0x00000000u, /* ChkStart */
0x00000000u, /* ChkEnd */
0x00000000u, /* CRCrange */
0x00000000u, /* !CRCrange */
0x5DB996ACu, /* CRChead */
0xA2466953u /* !CRChead */
};

我想知道连接Memtool时的log信息还有Select Target Configuration。

2023-10-12_11h04_46.png

BR,

Jeremy

0 Likes
Sharry
Level 1
Level 1
5 sign-ins First reply posted First question asked

Hi Zhou,

   HWCFG[3]=1, HWCFG[4]=0, HWCFG[5]=0; BHMD按如上设置是否会导致调试器显示"Device locked"? 我改成如下设置HWCFG[3]=0, HWCFG[4,5]=[1,1].调试器就能连上了。

但是又发现一个问题,调试器连上板子且正在全速调试运行时,程序是正常运行的。调试器拔下后,重新给板子上电,程序似乎挂掉了。这是什么原因呢?

0 Likes
Jeremy_Z
Moderator
Moderator
Moderator
250 sign-ins 100 likes received 750 replies posted

Hi @Sharry 
1)HWCFG[3]=1, HWCFG[4]=0, HWCFG[5]=0; BHMD按如上设置是否会导致调试器显示"Device locked"? 我改成如下设置HWCFG[3]=0, HWCFG[4,5]=[1,1].调试器就能连上了。
-- 我不很清楚你的测试过程,你不是说板子已经“Decive_Locked”,现在可以连接上修改HWCFG了吗?
2)这是什么原因呢?
-- 请尝试iLLD例程,是否也会出现同样的情况?
BR,
Jeremy

0 Likes
Jeremy_Z
Moderator
Moderator
Moderator
250 sign-ins 100 likes received 750 replies posted

Hi @Sharry ,

请问问题进展如何?

BR,

Jeremy

0 Likes
Jeremy_Z
Moderator
Moderator
Moderator
250 sign-ins 100 likes received 750 replies posted

Hi @Sharry ,

请问问题解决了吗?

BR,

Jeremy

0 Likes