ds30 Loader free edition forums
Search works, Write fails - 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: Search works, Write fails (/showthread.php?tid=842)



Search works, Write fails - soundscu - 2013-12-01


.zip   soundscu_bl_help.zip (Size: 113.12 KB / Downloads: 4)

I've read the manual, configured the files, and get all the way to "Found dsPIC33FJ128MC804 fw ver. 4.0.3"

But when I choose a hex file and click Write, I get:

Initiating write...
Searching for bl .
Found dsPIC33FJ128MC804 fw ver. 4.0.3
Waiting for the boot loader to be ready...ok
Hex file successfully parsed
Writing flash....response timed out
Write flash failed
Tx 7 bytes / Rx 4 bytes / 3.3s
Write failed

I have a digital scope, and everything looks good for the transactions that take place. I'm using an RS485 driver, and the enable line goes high/low exactly as it should. Baudrate is set to 38,400 and my scope says bit timing is correct (inbound and outbound). PPS is obviously set correctly or nothing would happen.

The messages above indicate Tx 7 / Tx 4, but nothing appears on the scope after the initial transaction (PC sends 0xC1, BL returns 0xBE, 0x04, 0x03, 0x4B).

Attached is the entire modified BL project, plus a schematic showing the clock and pins being used.

Today I also sent an inquiry about your commercial BL with code security. I would be happy to purchase a complete working solution with encryption, and get back to coding my actual application.

Thank you,
Jim