cancel
Showing results for 
Search instead for 
Did you mean: 

MOTIX™ MCU

User22938
New Contributor II

Hi All,

I'm hoping someone can help. I'm working with the TLE9869 Eval Kit, containing a TLE9869QXA20.

The datasheet specifies the memory map thus:

memory map.PNG

However, the project configuration for all the examples show this:

memory map 2.PNG

I'm wondering if the project settings are correct? They do not correspond with the datasheet. I'm experiencing extremely weird behaviour with my projects - they work fine, to a point, but adding additional static variables, doing additional calculations with doubles, etc., cause hard faults, and I have to strip them out to get things working again.

I've tried setting the memory areas as per the memory map in the data sheet (as much as I understand), but this causes other problems with flashing the device, and different types of crashes.

Further to this, if I set the memory settings as per the examples, I find that my variables are assigned to IRAM2 addresses, and they very quickly overflow beyond the boundary of this area (it being only 10 bytes).

Can someone advise please? I'm kind of stuck right now!

Thanks,

Andrew

0 Likes
1 Solution
Moz
Moderator
Moderator

Hi Andrew, 
Thanks for your patience.
The memory map in the example file is correct and shouldn't have anything to do with the overflow.
The RAM is divided in two sections as explained in section 1.1 : https://www.infineon.com/dgdl/Infineon-TLE986x7x_BF-ErrataSheet-v01_02-EN.pdf?fileId=5546d4626e651a4...
You can also uncheck the IRAM2 if you don't want to use it.

It seems that the problem might be coming due to the stack overflow. 
Can you please check if the stack size is enough for your calculations?  For this you can refer to section 1.7: https://www.infineon.com/dgdl/Infineon-FAQ_Software_and_Toolchain_for_MOTIX_Embedded_Power_ICs-Appli...

Thanks and Best Regards,
Moz

View solution in original post

0 Likes
3 Replies
Ramius
Moderator
Moderator

Hi Andrews

Thanks for your question. We are checking internally and we will provide to you a feedback on Monday next week.

Best regards

Ramius

0 Likes
Moz
Moderator
Moderator

Hi Andrew, 
Thanks for your patience.
The memory map in the example file is correct and shouldn't have anything to do with the overflow.
The RAM is divided in two sections as explained in section 1.1 : https://www.infineon.com/dgdl/Infineon-TLE986x7x_BF-ErrataSheet-v01_02-EN.pdf?fileId=5546d4626e651a4...
You can also uncheck the IRAM2 if you don't want to use it.

It seems that the problem might be coming due to the stack overflow. 
Can you please check if the stack size is enough for your calculations?  For this you can refer to section 1.7: https://www.infineon.com/dgdl/Infineon-FAQ_Software_and_Toolchain_for_MOTIX_Embedded_Power_ICs-Appli...

Thanks and Best Regards,
Moz

View solution in original post

0 Likes
User22938
New Contributor II

Thank you, Moz!!

Sorry for the delay - I was on holiday last week.

I still don't understand how the datasheet memory map describes how the project settings should be used, but the Errata sheet is easy to follow, and I have used that.

I've increased the stack size, and now everything works as it should! I wonder if the default stack size is a little bit too conservative?

Thanks again!

Andrew

0 Likes