Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Searching bl only works once per reset [solved]
#1
Hello

I've encountered a problem when using 18F67K22 with the latest version of ds30loader. After making the necessary changes to the source files I program the mcu with the bootloader hex-file. Directly after reset of the mcu I press the 'Check for bl' button and it reports firmware version and mcu model. However, if I press the button again it times out.
If I press the 'Write'-button directly after resetting the mcu it reports bl ready and that it found my device but when it's about to start writing it times out.
Im using a baud rate of 115200 and checking the signals with my logic analysator the communication itself looks OK. Also verified hardware and speed setup with my main program where communication works flawless. But for some reason the bootloader stops responding after it sent one packet, the first one.

This is the ouput after pressing 'Write' with option 'Write flash':
Code:
Initiating write...
      Searching for bl .
      Found PIC18F67K22 fw ver. 3.0.2
      Waiting for the boot loader to be ready...ok
      Parsing hexfile...
            File timestamp: 2012-12-08 15:54:34
            Opening hexfile...ok
            Validating hexfile...ok
            Hex file successfully parsed
      Writing flash....response timed outfailed
      Tx 7 bytes / Rx 4 bytes / 3,3s
      Write failed

Attached is the firmware 18F sources.


Attached Files
.zip   ds30loader_fw.18F67K22_10-12-2012.zip (Size: 93.74 KB / Downloads: 10)
Reply


Messages In This Thread
Searching bl only works once per reset [solved] - by opatagio - 2012-12-10, 12:19:39

Forum Jump:


Users browsing this thread: 1 Guest(s)