File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,10 @@ include(MicrochipPathSearch)
3
3
4
4
find_package (Java COMPONENTS Runtime)
5
5
6
+
7
+ set (PROGRAMER "ICD3" CACHE STRING "programador a utilizar" )
8
+ set_property (CACHE PROGRAMER PROPERTY STRINGS ICD3 ICD4 PK3 PK4 PM3 PKOB)
9
+
6
10
#set(IPECMD ${Java_JAVA_EXECUTABLE} -jar "/opt/microchip/mplabx/v3.35/mplab_ipe/ipecmd.jar")
7
11
set (IPE_LOG MPLABXLog.xml MPLABXLog.xml.0 MPLABXLog.xml.1 MPLABXLog.xml.2 MPLABXLog.xml.3 MPLABXLog.xml.4 MPLABXLog.xml.5 MPLABXLog.xml.6 MPLABXLog.xml.7)
8
12
@@ -36,7 +40,7 @@ function(add_ipe_deploit_target target)
36
40
37
41
add_custom_command (
38
42
DEPENDS ${target} .hex
39
- COMMAND ${IPECMD} -f${target} .hex -M -P${MICROCHIP_MCU_MODEL} -TPICD3 -Y
43
+ COMMAND ${IPECMD} -f${target} .hex -M -P${MICROCHIP_MCU_MODEL} -TP ${PROGRAMER} -Y
40
44
OUTPUT log .0
41
45
BYPRODUCTS ${IPE_LOG}
42
46
COMMENT "Deploit to pic32"
@@ -59,7 +63,7 @@ function(ipeRestar target)
59
63
set (IPECMD ${Java_JAVA_EXECUTABLE} -jar ${MICROCHIP_IPECMD} )
60
64
61
65
add_custom_target (restart DEPENDS deploit
62
- COMMAND ${IPECMD} -f${target} .hex -P${MICROCHIP_MCU_MODEL} -TPICD3 -Y
66
+ COMMAND ${IPECMD} -f${target} .hex -P${MICROCHIP_MCU_MODEL} -TP ${PROGRAMER} -Y
63
67
VERBATIM
64
68
)
65
69
endfunction ()
You can’t perform that action at this time.
0 commit comments