Problem loading hex file using ds30 loader [solved] - Printable Version +- ds30 Loader free edition forums (https://picbootloader.com/forum) +-- Forum: Support (https://picbootloader.com/forum/forumdisplay.php?fid=3) +--- Forum: 8-bit firmwares (https://picbootloader.com/forum/forumdisplay.php?fid=7) +--- Thread: Problem loading hex file using ds30 loader [solved] (/showthread.php?tid=496) |
Problem loading hex file using ds30 loader [solved] - naveen13m - 2012-06-04 Sir, I'm using PIC16F882.Before also i used to get the error message, write failed but hex used to get loaded but now dis the error message is appearing (in debug mode) and the hex file is not getting loaded onto the microcontroller. Initiating write... Creating port: USB Serial Port (COM8) Resetting device... Opening port USB Serial Port (COM8)@115200 Closing portdoneok Opening port USB Serial Port (COM8)@115200 Searching for bl . Found PIC16F882 fw ver. 1.0.0 Bootloader placement/size: 12/12 Waiting for bootloader to be ready...ok Parsing hexfile... File timestamp: 6/3/2012 8:53:29 PM Opening hexfile...ok Validating hexfile...ok Comment found: PIC16F882 Comment found: CRC=089B CREATED="03-Jun-12 20:53" Goto user app address: 0x73D User app address: 0x04 Flash page 0 is used, 0x00 - 0x0F Flash row 0 is used, 0x00 - 0x03 Flash row 1 is used, 0x04 - 0x07 Flash row 2 is used, 0x08 - 0x0B Flash row 3 is used, 0x0C - 0x0F Flash page 1 is used, 0x10 - 0x1F Flash row 4 is used, 0x10 - 0x13 Flash row 5 is used, 0x14 - 0x17 Flash row 6 is used, 0x18 - 0x1B Flash row 7 is used, 0x1C - 0x1F Flash page 2 is used, 0x20 - 0x2F Flash row 8 is used, 0x20 - 0x23 Flash page 115 is used, 0x730 - 0x73F Flash row 463 is used, 0x73C - 0x73F Config word 0 is used, value: 0x2FE7 Config word 1 is used, value: 0x3FFF Bootloader start address: 0x740 Bootloader end address: 0x7FF Bootloader start page: 116 Bootloader end page: 127 Bootloader start row: 464 Bootloader end row: 511 Hex file successfully parsed in73ms Writing flash.... Erasing page 0 @ 0x0000...ok Writing row 0 @ 0x0000...ok Writing row 1 @ 0x0004...ok Writing row 2 @ 0x0008...ok Writing row 3 @ 0x000C...ok Erasing page 1 @ 0x0010...ok Writing row 4 @ 0x0010...ok Writing row 5 @ 0x0014...ok Writing row 6 @ 0x0018...ok Writing row 7 @ 0x001C...ok Erasing page 2 @ 0x0020...ok Writing row 8 @ 0x0020...verification error, try 1, verification error, try 2, write failed Write flash failed Closing port Tx 173 bytes / Rx 18 bytes / 2s Write failed These are the extra details which i'm attaching for your convenience Microcontroller: PIC16F882 Baudrate: 115200 Reset: RTS Rest all are in default mode only. 1)The c file which i used. 2)The screen shots before and after writing the hex file. 3)The output file. sir i'm unable to attach c file and hex file so i'm pasting those here: // This demo flashes an LED on pin // RB0 of the PIC16F882 // Code written for RC Club Workshop // // Rohit de Sa // 06Jun11 // ver 1.0 #include <16f882.h> //processor declaration //#fuses HS,NOWDT,PUT //no need to use fuses #use delay(clock=20000000) //crystal speed //#use rs232(xmit=pin_c6,rcv=pin_c7,baud=115200)//no RS232 void main (void) { while(1) { output_high(pin_b0); delay_ms(200); output_low(pin_b0); delay_ms(200); } } :10000000000000308A001828213084008313000883 :10001000031917280630F800F701F70B0D28F80B25 :100020000C287B30F700F70B1328800B0A280800F8 :10003000840183131F308305831603170908C03911 :10004000890003131F129F120030031788008312C8 :100050008701880189018316031306108312061491 :10006000C830A10004208316061083120610C83081 :0A007000A100042003172B283C28F0 :04400E00F70CFF3F6D :00000001FF ;PIC16F882 ;CRC=EFAD CREATED="04-Jun-12 21:49" RE: Problem loading hex file using ds30 loader - Mikael Gustavsson - 2012-06-06 Hello, Can you please try the latest firmware version (1.0.2): [broken link] Let me know if the problem remains. Thanks RE: Problem loading hex file using ds30 loader - naveen13m - 2012-06-06 Sir, I'm getting this error in the latest version only. RE: Problem loading hex file using ds30 loader - Mikael Gustavsson - 2012-06-08 The latest published firmware is 1.0.2. From your first post: Quote:Found PIC16F882 fw ver. 1.0.0 RE: Problem loading hex file using ds30 loader - naveen13m - 2012-06-08 Sir, I downloaded from the link u gave only...but still i'm getting it as ver 1.0.0 only. RE: Problem loading hex file using ds30 loader - Mikael Gustavsson - 2012-06-09 I just downloaded the file and tested myself, it reports 1.0.2: [broken link] |