This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM263P4: Thermal Manager example in SDK faulty?

Part Number: AM263P4
Other Parts Discussed in Thread: UNIFLASH, TMDSCNCD263P

Tool/software:

Hey Experts,

ive a question regarding the SDFM module. 
Iam using:
CCS 12.8.1.00005
SDK 10_00_00_35
Uniflash 8.8.1.4983
TMDSCNCD263P PROC159E2

i tried to get the µC temp measurement running. Therefore i tried the  vtm example at the sdk (mcu_plus_sdk_am263px_10_00_00_35\examples\sdl\vtm).
Unfortunately there is a bug i think. The function  should set TMPSOFF, BGROFF, AIPOFF and SNSR_MX_HIZ to 0 like its mentioned in TRM:  

but it doesn't turn off SNSR_MX_HIZ like i can see, when i debug the example:

Therefore there is no result.

So only using the libary functions to read out the internal teamperature wont work.

A solution to read out the temperature without the libary can be found here: https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1133605/faq-am2634-how-to-read-internal-temperature-of-the-chip-using-thermal-manager-module

Best regards 

Marcel

  • Hi Marcel,

    I started working on this thread now and will try to post my updates as soon as possible.

    --
    Thanks & regards,
    Jagadish.

  • Hi Marcel,

    i tried to get the µC temp measurement running. Therefore i tried the  vtm example at the sdk (mcu_plus_sdk_am263px_10_00_00_35\examples\sdl\vtm).

    I ran this example today. I was able to successfully run this example.

    Initially my code got stuck at below line:

    And UART prints till "UC1 : " and then code stops here,

    After doing some analysis i found it is because of the limits that we set, actually to pass these all tests the temperature should be in between 66000 and 72000, if it is not between these two values then the testings might not be success, and the code will stuck at somewhere. 

    So, to find out what is the device temperature I am getting, I commented the above red color highlighted condition, which is:

    while(SDL_tempExceedHot != 1U);
    After commenting this i got below output on UART terminal:
    So, my device temperature is 44 C, so i modified the all the limits in the code. And after doing this i was able to run the all the testings successfully:
    So, in conclusion i don't think the issue is because of the "SNSR_MX_HIZ", it might be due to the limits in the code for those limits to get temprature and to pass all the cases the temperature should be between 66C to 72C.
    For example, you can see the test output present in the example:
    Here it passed all the testings because of device temperature 70C.
    --
    Thanks & regards,
    Jagadish.
  • Hey Jagadish,
    when i run the example, commented out the while loops i get this:

    temperature is always -40.

    just du show the difference, i run the example in debug mode and turned of SNSR_MX_HIZ manually after the first get_Temp:

    then its working and shows the correct value of 36°C.

    So do we have different µC versions or sdk versions, owtherwise i can't explain the different outcome

    Best regards

    Marcel

  • Hi Marcel,

    You are totally right about this issue,

    On my earlier testings i added the below line to clear the SNSR_MX_HIZ, and i forgot to comment it

    And after commenting it out and used the code as it is and i got the same result as yours.

    Many thanks for pointing out this bug, i will create a JIRA to rectify this error in next SDK release.

    --
    Thanks & regards,
    Jagadish.

  • Hi Marcel,

    I raised the JIRA request for this issue, i think this is going to fix in next release.

    Maybe we can close this thread.

    --
    Thanks & regards,
    Jagadish.