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.
Tool/software:
Good evening,
I am working on a project involving the TMS320F280025 microcontroller, with the aim of certifying the firmware I am writing according to IEC 60730 Class B. To support this, I have imported the Safety Diagnostic Library v4.01.00 into my project. Currently, I am working on the error handling Interrupt Service Routine (ISR) linked to the NMIs.
I would like to have a single ISR that handles all errors triggering an NMI. However, I noticed that during the HWBIST tests (both full and micro-runs), the code registers the STL_HWBIST_errorNMIISR()
as the INT_NMI. The issue is that STL_HWBIST_errorNMIISR()
is defined inside the pre-built library (f28002x_diagnostic_stl_debug.lib
).
My question is: what is the correct procedure for modifying STL_HWBIST_errorNMIISR()
or even assigning a custom ISR to the NMI (relative to the hwbist), without jeopardizing the certification (assessed by UL) of the library?
Thanks in advance
Maximilian
Hi Max,
I dont think NMIISR is defined in library, I can see the NMIISR in the HWBIST.C file as seen below.
Otherwise also there is no concern from safety standpoint in assigning it to your custom ISR unless you are taking appropriate actions as shown in the HWBIST NMIISR to mitigate the source of NMI.
Thanks
Hi Prarthan,
thanks for your answer.
I followed the instructions found in "C:\ti\c2000\C2000Ware_5_00_00_00\libraries\diagnostic\f28002x\docs\Diag_Lib_TMS320F28002x_Users_Guide.html". I imported the projectspec file found in the "ccs" folder in my workspace and I built it, it created the library file (.lib) in the "lib" folder. I guess, then, that modifying one of the source files (like stl_hwbist.c) is going to have an effect on the rebuilt library. Am I misunderstanding something?
Can you confirm that modifying the ISR assigned to NMI in stl_hwbist.c ( which by default is STL_HWBIST_errorNMIISR() ) will not affect the UL certification of the Safety Diagnostic Library?
Thanks
Maximilian
Hi Max,
When you make this change you will have to prove that to your safety accessor that the change meets the criteria/standard for certification.
That should be required irrespective, I don't think you can integrate the same exact code in your application without changing anything
Thanks