Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Search works, Write fails
#1

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

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)