pic24FJ256GB206 Bootloader problem [solved] - Printable Version +- ds30 Loader free edition forums (https://picbootloader.com/forum) +-- Forum: Support (https://picbootloader.com/forum/forumdisplay.php?fid=3) +--- Forum: 16-bit firmwares (https://picbootloader.com/forum/forumdisplay.php?fid=6) +--- Thread: pic24FJ256GB206 Bootloader problem [solved] (/showthread.php?tid=451) |
pic24FJ256GB206 Bootloader problem [solved] - gopal.jatiya - 2011-11-17 Hi, I am trying to configure bootloader firmware for my device pic24fj256gb206. I followed all the steps given in the documentation. I am getting the following error in the GUI after i restart the firmware and try to write my application. Initiating write... Searching for bl . (discarded null byte) . (discarded null byte) . (discarded null byte) response timed out Found PIC24FJ256DA110 Firmware version timed out Tx 3 bytes / Rx 5 bytes / 11.8s Write failed The settings that i have done is given below: .equ __24FJ256GB206, 1 .equiv FCY, 4000000 .equiv BLINIT, 10000 .equiv HELLOTRIES, 2 .equiv BLTIME, 10000 .equiv USE_UART1, 1 .equiv BAUDRATE, 9600 .equiv USE_TXENABLE, 1 .ifdef USE_TXENABLE .equiv TRISR_TXE, TRISB .equiv LATR_TXE, LATB .equiv TRISB_TXE, TRISB5 .equiv LATB_TXE, RB5 .endif config __CONFIG1, JTAGEN_OFF/*JTAG*/ & GCP_OFF/*code protect*/ & GWRP_OFF/*write protect*/ & ICS_PGx1/*icd pins select*/ & FWDTEN_OFF/*watchdog timer*/ & WINDIS_OFF/*windowed wdt*/ & FWPSA_PR32/*watchdog prescalar*/ & WDTPS_PS1/*watchdog postscalar*/ &ALTVREF_ALTVREDIS config __CONFIG2, IESO_OFF/*two-speed startup*/ & FNOSC_FRC/*oscillator selection*/ & FCKSM_CSDCMD/*clock switching and clock monitor*/ & OSCIOFNC_OFF/*OSC0/RC15 function*/ & POSCMOD_XT/*oscillator selection*/ Please let me know what can be the possible mistake? And how can i make it work. Thanks in advance Gopal Jatiya CTO Brigosha Technologies RE: pic24FJ256GB206 Bootloader problem - Mikael Gustavsson - 2011-11-19 Hi, That looks ok as far as I can see. -Have you configured PPS properly? -Is the UART working in your application? -Have you tried resetting the device first and then click write within 2 seconds? Mikael RE: pic24FJ256GB206 Bootloader problem - gopal.jatiya - 2011-11-20 (2011-11-19, 22:42:24)Mikael Gustafsson Wrote: Hi, Thanks for your reply. Yes I have configured PPS properly according to my schematics. Given below is the code for the same mov #OSCCON, w1 mov #0x46, w2 MOV #0x57, w3 MOV.b w2, [w1] MOV.b w3, [w1] BCLR OSCCON,#6 mov RPINR18, WPPSTEMP1 mov RPOR7, WPPSTEMP2 ; ;Receive, map pin (28 = 11100) to uart bclr RPINR18, #U1RXR0 bclr RPINR18, #U1RXR1 bset RPINR18, #U1RXR2 bset RPINR18, #U1RXR3 bset RPINR18, #U1RXR4 bclr RPINR18, #U1RXR5 ; Transmit, map uart to pin (10010) bclr RPOR7, #RP14R0 bset RPOR7, #RP14R1 bclr RPOR7, #RP14R2 bclr RPOR7, #RP14R3 bset RPOR7, #RP14R4 bclr RPOR7, #RP14R5 mov #OSCCON, w1 mov #0x46, w2 MOV #0x57, w3 MOV.b w2, [w1] MOV.b w3, [w1] BSET OSCCON,#6 Yes my UART is working in my application. Also, I reset the device and then click write. I also incresed the timeout to 10secs. Thanks, Gopal RE: pic24FJ256GB206 Bootloader problem - gopal.jatiya - 2011-12-07 Hi, I would like to inform here that the bootloader is working for my device now. There was error in the pps settings. After correcting it works correctly. Thanks Mikael for your support. Gopal RE: pic24FJ256GB206 Bootloader problem - Mikael Gustavsson - 2011-12-10 Great! Thanks for the feedback. Mikael |