← All Pull Requests

Fix bsc016n06ns.kicad_sym: quote strings so KiCad can load the symbol #1

Open opened by noah

The symbol does not load in KiCad

bsc016n06ns.kicad_sym writes its strings unquoted: (symbol bsc016n06ns ...), (property Reference Q ...), (property Datasheet https://www.infineon.com/dgdl/...?fileId=... ...), (name S ...), (number 1 ...). KiCad 10.0.6's kicad-cli sym export svg bsc016n06ns.kicad_sym answers Unable to load library. Every Cloud Library / KiCad PCM package that includes this part fails to load as a result (found while packaging a board's library with adom-aiflow project-page).

The change

Quoting only: the symbol name, every property key and value, every pin name and number, and the generator are now quoted strings. Same geometry, same pins (S 1, 2, 3; G 4; D 5), same properties, same format version (20250114, so KiCad 9 still reads it).

How it was tested

  • kicad-cli sym export svg on the new file plots bsc016n06ns unit 1 (KiCad 10.0.6).
  • kicad-cli sym upgrade reads it and rewrites it in the 20251024 format without complaint.
  • Pin list compared before and after: identical.

Diff Skip to comments (1)

--- a/bsc016n06ns.kicad_sym+++ b/bsc016n06ns.kicad_sym@@ -1,1 +1,2 @@-(kicad_symbol_lib (version 20250114) (generator esc_component_inventory) (symbol bsc016n06ns (pin_names (offset 0) (hide yes)) (exclude_from_sim no) (in_bom yes) (on_board yes) (in_pos_files yes) (duplicate_pin_numbers_are_jumpers no) (property Reference Q (at 5.08 1.905 0) (show_name no) (do_not_autoplace no) (effects (font (size 1.27 1.27)) (justify left))) (property Value BSC016N06NS (at 5.08 0 0) (show_name no) (do_not_autoplace no) (effects (font (size 1.27 1.27)) (justify left))) (property Footprint bsc016n06ns:bsc016n06ns (at 5.715 12.7 0) (show_name no) (do_not_autoplace no) (hide yes) (effects (font (size 1.27 1.27)))) (property Datasheet https://www.infineon.com/dgdl/Infineon-BSC016N06NS-DataSheet-v02_05-EN.pdf?fileId=db3a3043353fdc160135532b353c483c (at 3.81 12.7 0) (show_name no) (do_not_autoplace no) (hide yes) (effects (font (size 1.27 1.27)))) (property Description "234A Id, 60V Vds, OptiMOS N-Channel Power MOSFET, 1.6mOhm Ron, Qg(0-10V) 71nC, PG-TDSON-8, +/- 20V Vgs," (at 8.89 12.7 0) (show_name no) (do_not_autoplace no) (hide yes) (effects (font (size 1.27 1.27)))) (property ki_keywords "OptiMOS Power MOSFET N-MOS Infineon" (at 0 0 0) (show_name no) (do_not_autoplace no) (hide yes) (effects (font (size 1.27 1.27)))) (symbol bsc016n06ns_0_1 (polyline (pts (xy 0.254 1.905) (xy 0.254 -1.905)) (stroke (width 0.254) (type default)) (fill (type none))) (polyline (pts (xy 0.254 0) (xy -2.54 0)) (stroke (width 0) (type default)) (fill (type none))) (polyline (pts (xy 0.762 2.286) (xy 0.762 1.27)) (stroke (width 0.254) (type default)) (fill (type none))) (polyline (pts (xy 0.762 0.508) (xy 0.762 -0.508)) (stroke (width 0.254) (type default)) (fill (type none))) (polyline (pts (xy 0.762 -1.27) (xy 0.762 -2.286)) (stroke (width 0.254) (type default)) (fill (type none))) (polyline (pts (xy 0.762 -1.778) (xy 3.302 -1.778) (xy 3.302 1.778) (xy 0.762 1.778)) (stroke (width 0) (type default)) (fill (type none))) (polyline (pts (xy 1.016 0) (xy 2.032 0.381) (xy 2.032 -0.381) (xy 1.016 0)) (stroke (width 0) (type default)) (fill (type outline))) (circle (center 1.651 0) (radius 2.794) (stroke (width 0.254) (type default)) (fill (type none))) (polyline (pts (xy 2.54 2.54) (xy 2.54 1.778)) (stroke (width 0) (type default)) (fill (type none))) (circle (center 2.54 1.778) (radius 0.254) (stroke (width 0) (type default)) (fill (type outline))) (circle (center 2.54 -1.778) (radius 0.254) (stroke (width 0) (type default)) (fill (type outline))) (polyline (pts (xy 2.54 -2.54) (xy 2.54 0) (xy 0.762 0)) (stroke (width 0) (type default)) (fill (type none))) (polyline (pts (xy 2.794 0.508) (xy 2.921 0.381) (xy 3.683 0.381) (xy 3.81 0.254)) (stroke (width 0) (type default)) (fill (type none))) (polyline (pts (xy 3.302 0.381) (xy 2.921 -0.254) (xy 3.683 -0.254) (xy 3.302 0.381)) (stroke (width 0) (type default)) (fill (type none))) (text G (at -0.4045 -0.7262 0) (effects (font (size 0.762 0.762) (thickness 0.127)))) (text D (at 1.6186 1.0375 0) (effects (font (size 0.762 0.762) (thickness 0.127)))) (text S (at 1.6186 -1.1153 0) (effects (font (size 0.762 0.762) (thickness 0.127))))) (symbol bsc016n06ns_1_1 (pin passive line (at 2.54 -5.08 90) (length 2.54) (name S (effects (font (size 1.27 1.27)))) (number 1 (effects (font (size 1.27 1.27))))) (pin passive line (at 2.54 -5.08 90) (length 2.54) (hide yes) (name S (effects (font (size 1.27 1.27)))) (number 2 (effects (font (size 1.27 1.27))))) (pin passive line (at 2.54 -5.08 90) (length 2.54) (hide yes) (name S (effects (font (size 1.27 1.27)))) (number 3 (effects (font (size 1.27 1.27))))) (pin input line (at -5.08 0 0) (length 5.08) (name G (effects (font (size 1.27 1.27)))) (number 4 (effects (font (size 1.27 1.27))))) (pin passive line (at 2.54 5.08 270) (length 2.54) (name D (effects (font (size 1.27 1.27)))) (number 5 (effects (font (size 1.27 1.27)))))) (embedded_fonts no)))+(kicad_symbol_lib (version 20250114) (generator "esc_component_inventory") (symbol "bsc016n06ns" (pin_names (offset 0) (hide yes)) (exclude_from_sim no) (in_bom yes) (on_board yes) (in_pos_files yes) (duplicate_pin_numbers_are_jumpers no) (property "Reference" "Q" (at 5.08 1.905 0) (show_name no) (do_not_autoplace no) (effects (font (size 1.27 1.27)) (justify left))) (property "Value" "BSC016N06NS" (at 5.08 0 0) (show_name no) (do_not_autoplace no) (effects (font (size 1.27 1.27)) (justify left))) (property "Footprint" "bsc016n06ns:bsc016n06ns" (at 5.715 12.7 0) (show_name no) (do_not_autoplace no) (hide yes) (effects (font (size 1.27 1.27)))) (property "Datasheet" "https://www.infineon.com/dgdl/Infineon-BSC016N06NS-DataSheet-v02_05-EN.pdf?fileId=db3a3043353fdc160135532b353c483c" (at 3.81 12.7 0) (show_name no) (do_not_autoplace no) (hide yes) (effects (font (size 1.27 1.27)))) (property "Description" "234A Id, 60V Vds, OptiMOS N-Channel Power MOSFET, 1.6mOhm Ron, Qg(0-10V) 71nC, PG-TDSON-8, +/- 20V Vgs," (at 8.89 12.7 0) (show_name no) (do_not_autoplace no) (hide yes) (effects (font (size 1.27 1.27)))) (property "ki_keywords" "OptiMOS Power MOSFET N-MOS Infineon" (at 0 0 0) (show_name no) (do_not_autoplace no) (hide yes) (effects (font (size 1.27 1.27)))) (symbol "bsc016n06ns_0_1" (polyline (pts (xy 0.254 1.905) (xy 0.254 -1.905)) (stroke (width 0.254) (type default)) (fill (type none))) (polyline (pts (xy 0.254 0) (xy -2.54 0)) (stroke (width 0) (type default)) (fill (type none))) (polyline (pts (xy 0.762 2.286) (xy 0.762 1.27)) (stroke (width 0.254) (type default)) (fill (type none))) (polyline (pts (xy 0.762 0.508) (xy 0.762 -0.508)) (stroke (width 0.254) (type default)) (fill (type none))) (polyline (pts (xy 0.762 -1.27) (xy 0.762 -2.286)) (stroke (width 0.254) (type default)) (fill (type none))) (polyline (pts (xy 0.762 -1.778) (xy 3.302 -1.778) (xy 3.302 1.778) (xy 0.762 1.778)) (stroke (width 0) (type default)) (fill (type none))) (polyline (pts (xy 1.016 0) (xy 2.032 0.381) (xy 2.032 -0.381) (xy 1.016 0)) (stroke (width 0) (type default)) (fill (type outline))) (circle (center 1.651 0) (radius 2.794) (stroke (width 0.254) (type default)) (fill (type none))) (polyline (pts (xy 2.54 2.54) (xy 2.54 1.778)) (stroke (width 0) (type default)) (fill (type none))) (circle (center 2.54 1.778) (radius 0.254) (stroke (width 0) (type default)) (fill (type outline))) (circle (center 2.54 -1.778) (radius 0.254) (stroke (width 0) (type default)) (fill (type outline))) (polyline (pts (xy 2.54 -2.54) (xy 2.54 0) (xy 0.762 0)) (stroke (width 0) (type default)) (fill (type none))) (polyline (pts (xy 2.794 0.508) (xy 2.921 0.381) (xy 3.683 0.381) (xy 3.81 0.254)) (stroke (width 0) (type default)) (fill (type none))) (polyline (pts (xy 3.302 0.381) (xy 2.921 -0.254) (xy 3.683 -0.254) (xy 3.302 0.381)) (stroke (width 0) (type default)) (fill (type none))) (text G (at -0.4045 -0.7262 0) (effects (font (size 0.762 0.762) (thickness 0.127)))) (text D (at 1.6186 1.0375 0) (effects (font (size 0.762 0.762) (thickness 0.127)))) (text S (at 1.6186 -1.1153 0) (effects (font (size 0.762 0.762) (thickness 0.127))))) (symbol "bsc016n06ns_1_1" (pin passive line (at 2.54 -5.08 90) (length 2.54) (name "S" (effects (font (size 1.27 1.27)))) (number "1" (effects (font (size 1.27 1.27))))) (pin passive line (at 2.54 -5.08 90) (length 2.54) (hide yes) (name "S" (effects (font (size 1.27 1.27)))) (number "2" (effects (font (size 1.27 1.27))))) (pin passive line (at 2.54 -5.08 90) (length 2.54) (hide yes) (name "S" (effects (font (size 1.27 1.27)))) (number "3" (effects (font (size 1.27 1.27))))) (pin input line (at -5.08 0 0) (length 5.08) (name "G" (effects (font (size 1.27 1.27)))) (number "4" (effects (font (size 1.27 1.27))))) (pin passive line (at 2.54 5.08 270) (length 2.54) (name "D" (effects (font (size 1.27 1.27)))) (number "5" (effects (font (size 1.27 1.27)))))) (embedded_fonts no)))+

Comments

noah ·

Tried to merge this (Noah approved it): the merge is refused by HARDWARE_HERO_INVALID because the page's current hero, bsc016n06ns-mpn-pin1.png, is 800 x 600 and the wiki now wants a 16:10 PNG at least 1600 px wide. Nothing in this PR touches the hero; I left the hero alone since it is your page. Once a 16:10 hero is set, this quoting fix can merge as is.

Log in to comment.