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.

CCS/F28M35H52C: TEMPCONV, GetTemperatureC() and ILLEGAL_ISR

Part Number: F28M35H52C
Other Parts Discussed in Thread: CONTROLSUITE

Tool/software: Code Composer Studio

Hi,

So I've been trying to get the CPU temperature out of our F28M35 and have run into a couple of issues.

Firstly, it seems Adc1Regs.ADCCTL1.bit.TEMPCONV has disappeared from newer versions for the controlSUITE code, does that mean there is another way to get the CPU temp or is this no longer supported?

Secondly, after setting the 0 bit of the register, I manage to get numbers out that go up and down with temperature, but it seems I'm having difficulties using the GetTemperatureC() function from F28M35x_TempSensorConv.c.  Every call results in an ILLEGAL_ISR()

On further investigation, including other forum posts, I tried a memory dump of 0x3D7E82 to ...88 and I get errors telling me the Memory Map won't allow it.  After looking at the standard f28m35h52c1_c28.gel it doesn't look like that address range is mapped.

Any help would be appreciated.  Am I missing something or am I completely on the wrong track?

Thanks

  • Matthew,

    I apologize for the confusion here. The F28M35x_TempSensorConv.c source file should not have been released with controlSUITE. It was incorrectly ported over from the F2802x/F2803x devices.

    Without going into the details, the F28M3x series of devices do not have any temperature sensor trimming so the functions do not exist to convert the ADC readings to temperature values. The Temperature Sensor was also excluded from the datasheet and TRM for this reason.

    -Tommy
  • Hi Tommy,

    Thanks for your response.  So to clarify, you no longer use the temp sensor for anything so you removed support for it? I'm guessing there is no way to access it and get actual temperature values just for informational purposes?

    Thanks

    Matt

  • Matt,

    Trimming the Temp Sensor on F28M35x is not feasible during manufacturing so all mention of the Temp Sensor and its functionality was supposed to be removed from all collateral at product launch.  It looks like this file slipped through.

    The Temp Sensor is technically still there and the readings should still be linear with temperature, but the slope and offset were not calculated in the factory.

    -Tommy

  • OK, thanks very much for your response.

    Matt