Skip to content

Commit

Permalink
Fixed hang problem for 2580 processors
Browse files Browse the repository at this point in the history
  • Loading branch information
grodansparadis committed Jul 11, 2015
1 parent b546a3e commit bdf5813
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 17 deletions.
4 changes: 2 additions & 2 deletions CANBoot.X/nbproject/Makefile-genesis.properties
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#
#Fri Jul 10 18:01:14 CEST 2015
#Sat Jul 11 18:52:24 CEST 2015
pic18f26k80-40mhz.languagetoolchain.dir=C\:\\Program Files (x86)\\Microchip\\MPLABX\\v3.05\\mpasmx
pic18f2580-40mhz.languagetoolchain.version=5.62
conf.ids=pic18f2580-40mhz,pic18f26k80-40mhz
pic18f2580-40mhz.com-microchip-mplab-nbide-toolchainMPASMWIN-MPASMWINLanguageToolchain.md5=739c69f9ccb2f30dcb795546686f5cd4
pic18f2580-40mhz.languagetoolchain.dir=C\:\\Program Files (x86)\\Microchip\\MPLABX\\v3.05\\mpasmx
configurations-xml=5ebaf599cd4aa2b9e10525c77cecdc63
configurations-xml=cdb61f06906b7efdfb7935dbd6e972a1
pic18f26k80-40mhz.languagetoolchain.version=5.62
com-microchip-mplab-nbide-embedded-makeproject-MakeProject.md5=47805b5596804b87cda41e61096929be
host.platform=windows
Expand Down
2 changes: 1 addition & 1 deletion CANBoot.X/nbproject/configurations.xml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@
value="Press to browse for a specific firmware version"/>
<property key="ToolFirmwareOption.UseLatestFirmware" value="true"/>
<property key="debugoptions.useswbreakpoints" value="false"/>
<property key="firmware.download.all" value="false"/>
<property key="hwtoolclock.frcindebug" value="false"/>
<property key="hwtoolclock.instructionspeed" value="4"/>
<property key="hwtoolclock.units" value="mips"/>
Expand Down Expand Up @@ -196,7 +197,6 @@
value="Press to browse for a specific firmware version"/>
<property key="ToolFirmwareOption.UseLatestFirmware" value="true"/>
<property key="debugoptions.useswbreakpoints" value="false"/>
<property key="firmware.download.all" value="false"/>
<property key="hwtoolclock.frcindebug" value="false"/>
<property key="hwtoolclock.instructionspeed" value="4"/>
<property key="hwtoolclock.units" value="mips"/>
Expand Down
2 changes: 1 addition & 1 deletion CANBoot.X/nbproject/private/configurations.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<defaultConf>0</defaultConf>
<confs>
<conf name="pic18f2580-40mhz" type="2">
<platformToolSN>:=MPLABComm-USB-Microchip:=&lt;vid>04D8:=&lt;pid>9004:=&lt;rev>0100:=&lt;man>Microchip Technology, Inc. (www.microchip.com):=&lt;prod>MPLAB REAL ICE tm (www.microchip.com):=&lt;sn>JIT113110039:=&lt;drv>x:=end</platformToolSN>
<platformToolSN>:=MPLABComm-USB-Microchip:=&lt;vid>04D8:=&lt;pid>9004:=&lt;rev>0100:=&lt;man>Microchip Technology, Inc. (www.microchip.com):=&lt;prod>MPLAB REAL ICE tm (www.microchip.com):=&lt;sn>JIT113110039:=&lt;drv>x:=&lt;xpt>b:=end</platformToolSN>
<languageToolchainDir>C:\Program Files (x86)\Microchip\MPLABX\v3.05\mpasmx</languageToolchainDir>
<mdbdebugger version="1">
<placeholder1>place holder 1</placeholder1>
Expand Down
6 changes: 5 additions & 1 deletion CANBoot.X/nbproject/private/private.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
<editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/1"/>
<editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/2" lastBookmarkId="0"/>
<open-files xmlns="http://www.netbeans.org/ns/projectui-open-files/2">
<group/>
<group>
<file>file:/C:/Users/grodansparadis/development/vscp_pic1_bootloader/CANIO.asm</file>
<file>file:/C:/Users/grodansparadis/development/vscp_pic1_bootloader/HISTORY</file>
<file>file:/C:/Users/grodansparadis/development/vscp_pic1_bootloader/CANIO.def</file>
</group>
</open-files>
</project-private>
27 changes: 15 additions & 12 deletions CANIO.asm
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,12 @@
;*
;* Control bits:
;* ------------
;* MODE_WRT_UNLCK - Set this to allow write and erase operations to memory.
;* MODE_ERASE_ONLY - Set this to only erase Program Memory on a put command. Must
;* be on 64 byte boundary.
;* MODE_AUTO_ERASE - Set this to automatically erase Program Memory while writing data.
;* MODE_AUTO_INC - Set this to automatically increment the pointer after writing.
;* MODE_ACK - Set this to generate an acknowledge after a 'put' (PG Mode only)
;* Bit 0: MODE_WRT_UNLCK - Set this to allow write and erase operations to memory.
;* Bit 1: MODE_ERASE_ONLY - Set this to only erase Program Memory on a put command. Must
;* be on 64 byte boundary.
;* Bit 2: MODE_AUTO_ERASE - Set this to automatically erase Program Memory while writing data.
;* Bit 3: MODE_AUTO_INC - Set this to automatically increment the pointer after writing.
;* Bit 4: MODE_ACK - Set this to generate an acknowledge after a 'put' (PG Mode only)
;*
;* Special Commands:
;* ----------------
Expand Down Expand Up @@ -189,10 +189,10 @@
CONFIG BBSIZ = 2048
; CONFIG5L
CONFIG CP0 = ON ; Code Protect 00800-03FFF (Enabled)
CONFIG CP1 = ON ; Code Protect 04000-07FFF (Enabled)
CONFIG CP2 = ON ; Code Protect 08000-0BFFF (Enabled)
CONFIG CP3 = ON ; Code Protect 0C000-0FFFF (Enabled)
CONFIG CP0 = OFF ; Code Protect 00800-03FFF (Enabled)
CONFIG CP1 = OFF ; Code Protect 04000-07FFF (Enabled)
CONFIG CP2 = OFF ; Code Protect 08000-0BFFF (Enabled)
CONFIG CP3 = OFF ; Code Protect 0C000-0FFFF (Enabled)
; CONFIG5H
CONFIG CPB = ON ; Code Protect Boot (Enabled)
Expand Down Expand Up @@ -504,6 +504,7 @@ _CANInit:
clrf ANCON0
clrf ANCON1
#endif
banksel TRISB
movlw b'00001100' ; CAN is input
movwf TRISB
movlw b'11111101' ; RC0 is input
Expand Down Expand Up @@ -814,8 +815,10 @@ _SpecialCmdJp1:
banksel EEADR
clrf EEADR ; AKHE - Point to first location of EEDATA
clrf EEADRH
#ifdef __18F26K80
clrf EEADRH ; AKHE - Point to first location of EEDATA
#endif
clrf EEADR
clrf EEDATA ; and clear the data
movlw b'00000100' ; Setup for EEData
rcall _StartWrite
Expand Down
4 changes: 4 additions & 0 deletions HISTORY
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2015-07-11 AKHE Version 0.2.5
=============================
Fixed bootload problem on 2580 where the sequency hanged

2015-07-10 AKHE Version 0.2.4
=============================
Fixed problem with not going into bootloader if init. button was not
Expand Down

0 comments on commit bdf5813

Please sign in to comment.