ds30 Loader GUI can't write flash - 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: ds30 Loader GUI can't write flash (/showthread.php?tid=609) |
ds30 Loader GUI can't write flash - NicolasNSE - 2013-05-14 Hi, I programmed my PIC12F1840 with ds30 Loader successfully, the HEX-file was imported successfully but after being parsed, the "Write flash" check box remains disabled and I don't know why. The program has been successfully tested on the µC without bootloader. Here is what I got from the GUI: Quote:Parsing hexfile... By the way, the firmware is well detected on the µC: Quote:Opening port USB Serial Port (COM3)@9600 If you could guide me about what is going wrong (or what I am doing wrong), I would be grateful, thank you. RE: ds30 Loader GUI can't write flash - Mikael Gustavsson - 2013-05-14 Hi, Please post the hex file. In the meantime you could try to enable "Don't write empty pages" on the advanced tab. RE: ds30 Loader GUI can't write flash - NicolasNSE - 2013-05-15 Hi, Thanks for your quick reply. As you guessed, the hex-file is the problem as I tried with another hex-file and the 'Write flash' checkbox get enabled. So it seems that the generated hex-file is 'corrupted', is there an issue with my environment settings? Changing the 'Don't write empty pages' option does not affect the 'Write flash' checkbox. RE: ds30 Loader GUI can't write flash - Mikael Gustavsson - 2013-05-15 Which compiler are you using? RE: ds30 Loader GUI can't write flash - NicolasNSE - 2013-05-15 I'm using HI-TECH C Lite compiler (link). RE: ds30 Loader GUI can't write flash - Mikael Gustavsson - 2013-05-15 You need to reserve the boot loader space in you application using the "ROM ranges" compiler option. See the attached screenshot. RE: ds30 Loader GUI can't write flash - NicolasNSE - 2013-05-15 Thank you! In fact, I did it but forgot about the space to deposit goto to user application (3 instructions). I don't know why I didn't try to reserve a wider space for the bootloader. The error message was clear but I didn't understand it. For someone who would be as silly as I was, here is the thing, the ds30 Loader GUI shows where the bootloader is located in the memory but the goto user app takes 3 more instructions so one needs to reserve enough space for the bootloader + 3. RE: ds30 Loader GUI can't write flash - Mikael Gustavsson - 2013-05-15 Ah sorry, I forgot that RE: ds30 Loader GUI can't write flash - sunish - 2013-05-19 (2013-05-14, 17:23:33)NicolasNSE Wrote: By the way, the firmware is well detected on the µC: Will you be able to upload the hex file and full source for 12f1840 ? All Iam getting is timeout. When I tried enabling external reset I get . (discarded null byte) . . . . . . . . . . . . . timed out.. Sunish RE: ds30 Loader GUI can't write flash - sunish - 2013-05-21 Okay got it working, Added the following to the userinit macro to make pins digital BANKSEL PORTA ; CLRF PORTA ;Init PORTA BANKSEL LATA ;Data Latch CLRF LATA ; BANKSEL ANSELA ; CLRF ANSELA ;digital I/O ; Sunish |