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

MOTIX™ MCU Forum Discussions

ddiener
Level 1
Level 1
First like received First like given First reply posted

Hi,

If I flash my TLE9862 device via Segger JLink, the device starts running. After power loss the device does not start by itself.

Due to my research, I can assume that the NAC-NAD is the problem. If I read out the NAC-NAD at address 0x1103 EFFC, the value is 0xFFFF FFFF. This value means, the µC stays in BSL Mode forever.

How is it possible to set an NAC-NAD (a value for the NAC-NAD is set via the config wizard already)

I tried to use the "ProgramPage()" function in bootrom.c. After executing the function, I get a "NVM_OP_COMPLETE" Interrupt. But when I read out the address, the value is still 0xFFFF FFFF.

I also tried to flash the memory location 0x1103 EFFC using Segger, however the value will not be stored.

 

I use the Keil µVision IDE with a example project, my target µC (TLE9862) is placed into the Infineon TLE986x-Eval Board.

Thanks for your help

Daniel

 

I already read the documentation (FAQ Application Note for TLE986xQX,
TLE987xQX, BootROM User Manual)

and the community topics ([SOLVED] TLE987X NAC/NAD Value at NVM - Infineon Developer Community[SOLVED] TLE9879x - NAC and NAD - Infineon Developer Community,Nac, nad - Infineon Developer Community

 

0 Likes
1 Solution
Raj_JC
Moderator
Moderator
Moderator
250 replies posted First question asked 100 solutions authored

Hi @ddiener,

Could you please change the debug -> setting -> Flash Download to as shown below:

Raj_JC_0-1673960120730.png

Please let us know if this works.

 

Thank you

Best Regards

Raj Chaudhari

View solution in original post

0 Likes
4 Replies
Raj_JC
Moderator
Moderator
Moderator
250 replies posted First question asked 100 solutions authored

Hi @ddiener,

Please verify the following things in your Keil Project to set NAC and NAD values using the Config Wizard:

1) Which device is selected in the 'Options for Target's Device tab'?

>> For TLE9862QXA40 the above tab should have device name as: TLE9862QXA40 

Raj_JC_0-1673938124530.png

 

2) After the device selection in the Config Wizard please ensure the device name is correct as shown below and configuration for the NAC/NAD is correct.

Raj_JC_1-1673938255364.png

>> Save and export the header files.

3) Verify if the following section is executable in the tle_variants.h file.

Raj_JC_2-1673938970716.png

>> Build and flash the device.

 

For analysis purpose, if possible could you please share the Keil project in the zip format.

Please let us know if you need further support.

 

Thank you

Best Regards

Raj Chaudhari

ddiener
Level 1
Level 1
First like received First like given First reply posted

Hello Raj,

thanks for your quick reply.

My configuration is exactly the same as shown in your screenshots.

When I download to  target, the following is displayed in the Build Output View(the full output for compiling and downloading is attached):

Target info:
------------
Device: TLE9862QXA40
VTarget = 4.925V
State of Pins:
TCK: 0, TDI: 0, TDO: 0, TMS: 0, TRES: 1, TRST: 0
Hardware-Breakpoints: 2
Software-Breakpoints: 8192
Watchpoints: 1
JTAG speed: 5000 kHz

No Algorithm found for: 1103EFFCH - 1103EFFFH
Partial Erase Done (areas with no algorithms skipped!)
No Algorithm found for: 1103EFFCH - 1103EFFFH
Partial Programming Done (areas with no algorithms skipped!)
Partial Verify OK (areas with no algorithms skipped!)

--------------------------------------------------------------

The Keil project is also attached as .zip. It is the original example code. I didn't changed anything.


Thanks

Daniel

BTW: I also have a TLE9879 EVAL KIT. There everything works fine. The code starts automatically if no debugger is connected and in the NAC-NAD Flash section, the value from the Config Wizard is correct.

0 Likes
Raj_JC
Moderator
Moderator
Moderator
250 replies posted First question asked 100 solutions authored

Hi @ddiener,

Could you please change the debug -> setting -> Flash Download to as shown below:

Raj_JC_0-1673960120730.png

Please let us know if this works.

 

Thank you

Best Regards

Raj Chaudhari

0 Likes
ddiener
Level 1
Level 1
First like received First like given First reply posted

Hello @Raj_JC 

this solved my problem!

The program can now be downloaded smoothly. The NAC-NAD is stored at the correct memory address and the device starts running after power loss by itself.

 

Thanks a lot!!

Daniel