Simulation error: unknown device type

Dear all,
I am trying to simulate DC/DC converter using TPS40210, but when opening the Simulator window I get “Error on line 1 or its substitute: ___ unknown device type - error” The problem is with the spice model of TPS40210 from Texas Instruments (when I remove this component from the schematic, the error disappears). However, I do not see anything wrong with the model. I can not figure out where the triple underscore comes from. I have not found it neither in the spice model neither in spice netlist.

Recently, I simulated a DC/DC converter with TPS55340 using a spice model from Texas Instruments without any issue.

As a new user I can not add attachment, so I am sharing the design via link to my google drive.

I am attaching the design. Could anyone help me figure out what is wrong?
TPS40210-simk.zip (17.2 KB)

I guess it is an incompatibility between ltspice and ngspice

Read this to find how to promote yourself at forum.

Regarding spice I can’t help. Using it from time to time (since 30 years) I never even tried to simulate DCDC converter.

Thank you for the guess, but the model is PSpice, thus I believe it should be compatible. I already used several LTSpice models in past which have some compatibility issues (like Rser), but always obtained a reasonable error message. This time with triple underscore, I have no idea what is wrong.

Thank you for the hint and sorry for missing this FAQ. I have definitely read far more topics during the years but it was before the sign up. The attachment is now added to the post.

Try the attached file. The encoding of the file was off. It was in UTF-8 BOM which is a bit odd and I suppose not supported by ngspice.
TPS40210_TRANS.LIB (13.8 KB)

1 Like

Thank you, that was it.