Menu

Can't get it to work for PIC32MX795F512L

Taylor
2013-06-21
2013-07-06
  • Taylor

    Taylor - 2013-06-21

    Hello -

    I've downloaded the program and tried a lot of different things to get this to work. I know that the my ftdi r232 chip is working because I can read it from my computer. I have both tx and rx lines configured correctly, but I am bringing out the CTS and RTS lines to the uart peripheral pins on the chip. I am using the dtr line to connect to the mclr pin.

    I'm not really sure what the reset using dtr + rts option in the debug heading is doing. Could you please explain its function?

    Also which pins are your UART 2 configured to? I've tried setting it to UART 1 which is what my pins are connected to.

    I am also using an 8MHz clock so using your pre-set timer configurations it should be set to 80 MHz if I'm not mistaken.

     
  • edorul

    edorul - 2013-06-27

    Hello Taylor,

    Sorry for this late answer, I thought that I'll receive a mail for each post on this forum but it's not the case :-(

    To connect your PIC to your FTDI R232 you mustn't connect CTS and RTS to the UART pins on the chip (look at http://tinypicbootload.sourceforge.net/hardware_connection.html and more closely to http://tinypicbootload.sourceforge.net/TinyBoot-ProgUSB_sch.jpg). You can also read http://tinypicbootload.sourceforge.net/quickstart.html
    RTS (not DTR) must be connected to !MCLR. It's used for an automatic reset of the PIC device.

    The "DTR+RTS" option in the debug tab is only used for an autopowered option with a true RS232 (not USB). In your case you don't need it.

    As you have seen in the bootloader firmware source code, it's configured for UART2 (pin RF4(#49) is RX, and RF5(#50) is TX).

    You've perfectly calculated the PIC frequency, it's 80MHz: no mistake ;-)
    Baud rate is 115200.

    Don't hesitate to post a new message if you have some problems.

    Best regards,
    Edorul

     
  • Taylor

    Taylor - 2013-06-28

    Hello Edorul,

    Is there any way to easily just interchange the rts and dtr lines in the software? Or perhaps provide an option for it?

    Also is it absolutely necessary to remove the cts and rts lines from the chip? I can just disable them in software.

    THanks,

     
  • edorul

    edorul - 2013-06-28

    Hello Taylor,

    Don't worry, Rts automatic reset is optionnal. You can still reset your PIC manually either by a reset puch button or by unpowering/powering the device: click the [Check PIC] button and when "Check PIC..." is shown in the message tab, reset your PIC device (it must be done before "Error: No PIC detected!!!" appears, you have ~5 seconds).

    It´s unnecessary to remove CTS and RTS from the chip. It´s just unused by the bootloader.

    I hope it will work.

    Best regards,
    Edorul

     

    Last edit: edorul 2013-07-09
  • edorul

    edorul - 2013-07-06

    Hello Taylor,

    have you succeeded to make your PIC32MX795F512L working with "tiny Bootloader+" ?

    Best regards,
    Edorul

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.