Announcements

Webinar: Integrated solutions for smaller, simpler low-voltage motor control design.
Join the webinar to experience!

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

cross mob
GTM
Level 4
Level 4
25 replies posted 100 sign-ins First solution authored

你好英飞凌,

我的uIO-Stick无法和TLE9879板子建立连接。

我采用这种连接方式:

屏幕截图 2024-05-15 221706.png

但是收到了错误返回:

屏幕截图 2024-05-15 221558.png

uIO-Stick和TLE9879板子连接,板子上是不是要有类似xcp的软件运行才能连接?还是说和SWD一样,直接可以和板子建立连接。

谢谢!

0 Likes
1 Solution
LinGuohui
Moderator
Moderator
Moderator
500 replies posted 50 likes received 250 solutions authored

你好,

不好意思,前面回复不是很清楚。

Vs和RESET有一个就可以了,目的都是产生复位。RESET信号可以在目标板供电状态下复位,直接Vs供电同样可以产生上电复位。所以二者选一即可。

View solution in original post

22 Replies
LinGuohui
Moderator
Moderator
Moderator
500 replies posted 50 likes received 250 solutions authored

你好,

UIO Stick可以使芯片进入BSL模式,这个模式是出厂预制的,放在ROM固定特定区域且不会被用户擦写。具体可以参考TLE987x_BootROM_UM-UserManual 。

1.你需要确认UIO Stick和TLE9879连接没有问题,RESET,LIN和GND。Vs可选在BSL_tool中配置:

LinGuohui_0-1715825425469.png

2.NAD需要与芯片设置一致。可以在config tool中配置,保存后,在keil编译(修改后需要rebuild)烧录到TLE9879中。

LinGuohui_1-1715825577373.png

LinGuohui_2-1715825585636.png

 

 

 

0 Likes
GTM
Level 4
Level 4
25 replies posted 100 sign-ins First solution authored

那我有一个疑问,当我不知道芯片的NAD,而且也不能通过烧录得到一个已知的NAD,这种情况下要怎么办?因为我的目的是使用uio-stick来刷写ecu,如果要开盖通过swd刷写来获得nad,那uio-stick则没有意义。

0 Likes
lock attach
Attachments are accessible only for community members.
LinGuohui
Moderator
Moderator
Moderator
500 replies posted 50 likes received 250 solutions authored

你好,

默认NAD是0x7F,参考前面发的手册。0xff可以用作广播。

LinGuohui_0-1715836604512.png

 

另外,排除接线连接问题,可能是BSL_tool软件版本问题,你可以尝试使用附件老版本试试。

0 Likes
GTM
Level 4
Level 4
25 replies posted 100 sign-ins First solution authored

请问tle9879上必须有bootloader程序,才能和uio-stick建立连接吗

0 Likes
LinGuohui
Moderator
Moderator
Moderator
500 replies posted 50 likes received 250 solutions authored

你好,

这个BOTROM是出厂就固化了的。

0 Likes
GTM
Level 4
Level 4
25 replies posted 100 sign-ins First solution authored

你好,我将TLE9879用jflash完全擦除后(全为F),就可以连上uio-stick,而且在上位机软件中可以随意设置nac和nad的值都不影响uio的连接。

我在手册上看到nac或nad的值必须和它们的1s补码相匹配才能连接,比如nac在前6个bit的值和后6个bit的值应该互为补码。

那我想问这个nac或者nad的值到底是和上位机设置的值一样才能连接,还是要和其前后6个bit的值互为补码才能连接?

目前我只在擦除后的芯片上连接成功,一旦芯片被烧录,则无法连接。

0 Likes
LinGuohui
Moderator
Moderator
Moderator
500 replies posted 50 likes received 250 solutions authored

LinGuohui_1-1716439538495.png

你这里是不是选了UART而不是FastLIN?

 

 

0 Likes
GTM
Level 4
Level 4
25 replies posted 100 sign-ins First solution authored

我设置的确实是fastlin,还有就是我想把单片机的数据读出来,方便查看nad和nac的值,请问nad和nac的地址是什么?

0 Likes
LinGuohui
Moderator
Moderator
Moderator
500 replies posted 50 likes received 250 solutions authored

程序中写的位置和flash中保存的位置

LinGuohui_0-1716445318456.png

配置:

LinGuohui_1-1716445380289.png

0 Likes
GTM
Level 4
Level 4
25 replies posted 100 sign-ins First solution authored

就上图所示而言,是不是应该在bootstraploader上位机工具里面填nac为40ms,nad为127?

0 Likes
LinGuohui
Moderator
Moderator
Moderator
500 replies posted 50 likes received 250 solutions authored

是的,我的设置是这样的。

NAD:127和255都可以(255是广播)

LinGuohui_0-1716452003757.png

我是外部供电,然后UIO stick接LIN,reset和GND。

这里NAC定义在:这里的t LIN需要小于NAC定义的时间。

LinGuohui_1-1716452064432.png

 

 

0 Likes
GTM
Level 4
Level 4
25 replies posted 100 sign-ins First solution authored

那请问NAC应该设置为多少(在extra》get/set nad nac)

0 Likes
LinGuohui
Moderator
Moderator
Moderator
500 replies posted 50 likes received 250 solutions authored

如前一个回复设置,NAC为40ms,那么t LIN(复位后到LIN开始)为6ms,那么就是满足需求的。如果t LIN设为50ms或者NAC设置5ms那么就无法满足需求。

0 Likes
GTM
Level 4
Level 4
25 replies posted 100 sign-ins First solution authored

这里不需要填写nac的值吗?

bsl.png

0 Likes
LinGuohui
Moderator
Moderator
Moderator
500 replies posted 50 likes received 250 solutions authored

这里是指在建立连接后,可以重新设置NAC和NAD的值。

0 Likes
GTM
Level 4
Level 4
25 replies posted 100 sign-ins First solution authored

已经连接成功,再问一下,如果只接三根线,即VS, LIN, GND,所有的设置还一样吗

 

0 Likes
LinGuohui
Moderator
Moderator
Moderator
500 replies posted 50 likes received 250 solutions authored

同样配置应该也是可以的。关键还是LIN,reset,GND要连好。不接uio stick的VS,外接电源也可以。

然后就是NAD和t LIN(NAC)还有芯片要选对。

0 Likes
GTM
Level 4
Level 4
25 replies posted 100 sign-ins First solution authored

其实不然,如果不接RESET,只接VS, LIN, GND的话,按目前的配置依然连不上uio-stick。无论是外部供电,还是uio-stick供电,都一样连不上。

0 Likes
LinGuohui
Moderator
Moderator
Moderator
500 replies posted 50 likes received 250 solutions authored

是的,reset,LIN和GND是必须要接的。

0 Likes
GTM
Level 4
Level 4
25 replies posted 100 sign-ins First solution authored

但是uio-stick的用户手册里面确实有三根线这种情况,而且也是fastlin,这种连接在tle9879不被允许吗?

屏幕截图 2024-05-24 104458.png

0 Likes
GTM
Level 4
Level 4
25 replies posted 100 sign-ins First solution authored

而且实际上,我们在连接ecu的时候,也只能通过lin,vs,gnd连接,我们不能把ecu打开,就为了连接reset,这个也有违常规的做法。

0 Likes
LinGuohui
Moderator
Moderator
Moderator
500 replies posted 50 likes received 250 solutions authored

你好,

不好意思,前面回复不是很清楚。

Vs和RESET有一个就可以了,目的都是产生复位。RESET信号可以在目标板供电状态下复位,直接Vs供电同样可以产生上电复位。所以二者选一即可。