File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,10 @@ include(MicrochipPathSearch)
33
44find_package (Java COMPONENTS Runtime)
55
6+
7+ set (PROGRAMER "ICD3" CACHE STRING "programador a utilizar" )
8+ set_property (CACHE PLATFORM PROPERTY STRINGS ICD3 ICD4 PK3 PK4 PM3 PKOB)
9+
610#set(IPECMD ${Java_JAVA_EXECUTABLE} -jar "/opt/microchip/mplabx/v3.35/mplab_ipe/ipecmd.jar")
711set (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)
812
@@ -36,7 +40,7 @@ function(add_ipe_deploit_target target)
3640
3741 add_custom_command (
3842 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
4044 OUTPUT log .0
4145 BYPRODUCTS ${IPE_LOG}
4246 COMMENT "Deploit to pic32"
@@ -59,7 +63,7 @@ function(ipeRestar target)
5963 set (IPECMD ${Java_JAVA_EXECUTABLE} -jar ${MICROCHIP_IPECMD} )
6064
6165 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
6367 VERBATIM
6468 )
6569endfunction ()
You can’t perform that action at this time.
0 commit comments