TC367, ADSV1.8, 5v-TFT EVB: SW can work with debugger on, but can't run without debug

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

Hi, Infineon expert:

The environment is TC367 ADSV1.8   TC367-5V-TFT EVB. 

DFlash writing test code and  STM ISR are added ,   LED is toggled cyclically with STM ISR.

The strange behavior is :

1) if enable DFalsh writing ,  the SW can run correctly after start debugger and keep debugger activated. The DFlash is also written correctly.

2) if un-plug the USB cable, then plug on,  the SW can't run ( LED doesn't toggle)

3) if remove the DFlash writing code, the LED can toggle with debugger activated or without debugger 

Could you please give me some hint what is the conflict?

The whole project is attached 

thanks and BR

ZhouYi

0 Likes
2 Replies
Di_W
Moderator
Moderator
Moderator
1000 replies posted 250 solutions authored 100 likes received

Hi ZY, I suggest to start from this example code: https://github.com/Infineon/AURIX_code_examples/blob/master/code_examples/Flash_Programming_1_KIT_TC...

And then migrated to your project.

dw

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

Hi, dw:

thank you very much. 

But, my DFlash erasing/writing code is copied from that GitHub example. 

thanks and BR

Zhou Yi

0 Likes