• Tags
  • Documentation
  • Order
  • Register
  • Login
Duet3D Logo Duet3D
  • Tags
  • Documentation
  • Order
  • Register
  • Login

Need a little help/advice on PanelDUE on coding it

Scheduled Pinned Locked Moved
General Discussion
5
15
1.0k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • undefined
    JoergS5 @Vlad
    last edited by 10 Aug 2019, 10:01

    @vlad Hi, you could put a hardware debugger/analyzer between Paneldue and Duet following the procedure of https://github.com/technik-gegg/SMuFF-Ifc

    1 Reply Last reply Reply Quote 0
    • ?
      A Former User @Vlad
      last edited by 10 Aug 2019, 10:22

      @vlad chapter 12 may help http://ww1.microchip.com/downloads/en/DeviceDoc/Atmel-6500-32-bit-Cortex-M3-Microcontroller-SAM3S4-SAM3S2-SAM3S1_Datasheet.pdf (although, at a glance there doesnt appear to be a dedicated debug header onboard)

      undefined 1 Reply Last reply 10 Aug 2019, 10:54 Reply Quote 0
      • undefined
        JoergS5 @A Former User
        last edited by 10 Aug 2019, 10:54

        @bearer JTAG seems to be not completely exposed on the Duet: https://forum.duet3d.com/topic/6023/using-jtag-with-the-duet-wifi so it may be impossible to use it. But I did not try yet.

        1 Reply Last reply Reply Quote 0
        • undefined
          dtpteunissen
          last edited by 10 Aug 2019, 11:00

          @bearer and @JoergS5 i'm also looking for a way to debug the firmware while running it on the LCD. I'm having a hard time to find any schematics for PanelDue 5i.
          Any pointers to where i could find those?

          With a schematic i can figure out how to connect a debugger to the screen.

          ? 1 Reply Last reply 10 Aug 2019, 11:06 Reply Quote 0
          • ?
            A Former User
            last edited by 10 Aug 2019, 11:01

            Yeah, at a glance it seemed like neither jtag or serial debug wire was brought out to a header, but i didn't crossrefrence all the pins against the schematic, left as an excercie for the reader sort to speak.

            1 Reply Last reply Reply Quote 0
            • ?
              A Former User @dtpteunissen
              last edited by 10 Aug 2019, 11:06

              @dtpteunissen said in Need a little help/advice on PanelDUE on coding it:

              I'm having a hard time to find any schematics for PanelDue 5i.

              Havent seen, but I can't image they're very different to the v3 board https://raw.githubusercontent.com/dc42/PanelDue/master/PCB/V3.0/PaneDue-3.0-schematic.png

              Between the code and the board should be doable to work out any major differences if any.

              undefined 1 Reply Last reply 10 Aug 2019, 12:07 Reply Quote 0
              • undefined
                dc42 administrators @A Former User
                last edited by 10 Aug 2019, 12:07

                @bearer said in Need a little help/advice on PanelDUE on coding it:

                @dtpteunissen said in Need a little help/advice on PanelDUE on coding it:

                I'm having a hard time to find any schematics for PanelDue 5i.

                Havent seen, but I can't image they're very different to the v3 board https://raw.githubusercontent.com/dc42/PanelDue/master/PCB/V3.0/PaneDue-3.0-schematic.png

                Between the code and the board should be doable to work out any major differences if any.

                The schematic for the SAM4S part of the PanelDue 5i and 7i is identical to the non-integrated version.

                Duet WiFi hardware designer and firmware engineer
                Please do not ask me for Duet support via PM or email, use the forum
                http://www.escher3d.com, https://miscsolutions.wordpress.com

                1 Reply Last reply Reply Quote 0
                • undefined
                  dtpteunissen
                  last edited by 10 Aug 2019, 12:21

                  @dc42 said in Need a little help/advice on PanelDUE on coding it:

                  @bearer said in Need a little help/advice on PanelDUE on coding it:

                  @dtpteunissen said in Need a little help/advice on PanelDUE on coding it:

                  I'm having a hard time to find any schematics for PanelDue 5i.

                  Havent seen, but I can't image they're very different to the v3 board https://raw.githubusercontent.com/dc42/PanelDue/master/PCB/V3.0/PaneDue-3.0-schematic.png

                  Between the code and the board should be doable to work out any major differences if any.

                  The schematic for the SAM4S part of the PanelDue 5i and 7i is identical to the non-integrated version.

                  Thank you for the info. I checked the schematic, and its not possible to connect a JTAG or SWD debugger to the microcontroller since the needed pins are also connected to the LCD.

                  1 Reply Last reply Reply Quote 0
                  • undefined
                    dc42 administrators
                    last edited by 10 Aug 2019, 14:43

                    Actually it's not impossible. PB6/SWDIO goes to X4 the expansion connector, so it's free. PB7/SWCLK goes to RST on the LCD connector, so you could cut that trace and connect to it. The LCD may not need the reset signal, but if it does you could add a push button. You would need to modify the startup code not to program the bus matrix to use those pins as GPIO.

                    But I've never had to resort to a debugger when developing PanelDue code.

                    Duet WiFi hardware designer and firmware engineer
                    Please do not ask me for Duet support via PM or email, use the forum
                    http://www.escher3d.com, https://miscsolutions.wordpress.com

                    undefined undefined 2 Replies Last reply 10 Aug 2019, 21:45 Reply Quote 2
                    • undefined
                      Vlad @dc42
                      last edited by 10 Aug 2019, 21:45

                      @dc42 @bearer thank you guys. Quite a bit to digest now! 🙂

                      1 Reply Last reply Reply Quote 0
                      • undefined
                        dtpteunissen @dc42
                        last edited by 12 Aug 2019, 07:27

                        @dc42 said in Need a little help/advice on PanelDUE on coding it:

                        Actually it's not impossible. PB6/SWDIO goes to X4 the expansion connector, so it's free. PB7/SWCLK goes to RST on the LCD connector, so you could cut that trace and connect to it. The LCD may not need the reset signal, but if it does you could add a push button. You would need to modify the startup code not to program the bus matrix to use those pins as GPIO.

                        But I've never had to resort to a debugger when developing PanelDue code.

                        I was considering that as well, but i'm a bit hesitant about modifying the PCB by cutting traces.

                        But this helped! Thanks

                        1 Reply Last reply Reply Quote 0
                        14 out of 15
                        • First post
                          14/15
                          Last post
                        Unless otherwise noted, all forum content is licensed under CC-BY-SA