ADS V1.8 TC367 EvtKit: without debugger, the App flashed via UDS Boot can not run

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

cross mob
zhouyi_NJ
Level 3
Level 3
50 sign-ins 10 questions asked 10 replies posted

Hello dear Infineon:

A test application and a UDS CAN boot were implemented.  (ADS V1.8, TC367 EvtKit -5v)

The issue is:

if the debugger is started from ADSV1.8, the SW can jump into App from boot, and the App runs well. 

If the debugger is not started (only plug the power supply),  the App seems run into trap (no LED is on)

I guess there is something wrong in the UCB. 

The UCB part are all same for Boot and  App (two Apps-  simple Led and BSW)

Could you please give me some hint?

And I found even in App tasking lcl, the entry of CPU0 and CPU1 are changed,

#define LCF_STARTPTR_CPU0 0x80020000
#define LCF_STARTPTR_CPU1 0x80304100

but in UCB, the entry address is still 0xA0000000 for both Boot and App.

UCB.png

The hex file and lcl file are attached for your reference. 

thanks and BR

Zhou Yi

The 

 

 

0 Likes
1 Solution
Di_W
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 250 solutions authored

@zhouyi_NJ wrote:

if I start debugger for boot project, the flashed App can run well. If only plug the power,  the App failed


The problem you faced is to debug without debugger. A suggestion is to use GPIO or LED to show the status of your boot app. For example, you can first to show the status of stayInBootFlag,  and further going on for other flags or variables.

The purpose of debug without debugger is to know which step occurs to lead your pAppEntry cannot enter.

If all the process looks OK, then you should check pAppEntry if this address has proper program.

The general principle is like above. Hope it helps.

View solution in original post

0 Likes
8 Replies
Di_W
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 250 solutions authored

Hi ZY,

Could you please try the default .lsl file first?  

0 Likes
zhouyi_NJ
Level 3
Level 3
50 sign-ins 10 questions asked 10 replies posted

Hi, dw:

Thank you but are you sure it is the cause?

if I start debugger for boot project, the flashed App can run well. If only plug the power,  the App failed.

In the boot project, the default .lsl  file is being used. 

My experience is:  for app, the code must be allocated to different Flash (comparing to boot)

In my attached zip file, there are two *.lsl files. 

the Boot_Lcf_Tasking_Tricore_Tc.lsl is same as default lsl file.

The BSW_Lcf_Tasking_Tricore_Tc.lsl is for app, code is allocated to different Flash area.

I tried use default lsl for App, its hex file can not be flashed by CAN bootloader. 

thanks and BR

Zhou Yi

0 Likes
Di_W
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 250 solutions authored

Hi Zhouyi, I am using default .lsl with ADS + LED demo code, it's working for debugger and without debugger(miniwiggler USB), so I think you could start from the LED demo. 

0 Likes
zhouyi_NJ
Level 3
Level 3
50 sign-ins 10 questions asked 10 replies posted

Hi, dw:

my actual issue is:

if there is no Bootloader. my application can work well with debugger or without debugger. 

I guess the reason is STM interrupt enabled in bootloader or other some setting is not correctly de-init before jump from boot to App. 

But I don't how to disable STM interrupt (not global interrupt).

Could you please give me some hint about what should do before jump from Boot to App?

thanks and BR

ZHou Yi

 

0 Likes
Di_W
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 250 solutions authored

Hi ZY, is bootloader in the demo code? Where can I see the bootloader source code?

0 Likes
zhouyi_NJ
Level 3
Level 3
50 sign-ins 10 questions asked 10 replies posted

Hi, dw:

the bootloader is implemented by me. the code is attached below. 

I'm sorry because of some reason,  the zip file is encrypted,

The password is sent to you via private mails. 

thanks and BR

Zhou Yi

0 Likes
Di_W
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 250 solutions authored

@zhouyi_NJ wrote:

if I start debugger for boot project, the flashed App can run well. If only plug the power,  the App failed


The problem you faced is to debug without debugger. A suggestion is to use GPIO or LED to show the status of your boot app. For example, you can first to show the status of stayInBootFlag,  and further going on for other flags or variables.

The purpose of debug without debugger is to know which step occurs to lead your pAppEntry cannot enter.

If all the process looks OK, then you should check pAppEntry if this address has proper program.

The general principle is like above. Hope it helps.

0 Likes
zhouyi_NJ
Level 3
Level 3
50 sign-ins 10 questions asked 10 replies posted

Hi, dw:

I know it is difficult to debug this issue. thanks a lot for your suggestion. 

thanks and br

Zhou Yi

0 Likes