Shop OBEX P1 Docs P2 Docs Learn Events
Compiling Taqoz Reloaded under P/NUT - fixed — Parallax Forums

Compiling Taqoz Reloaded under P/NUT - fixed

bob_g4bbybob_g4bby Posts: 440
edited 2024-12-03 11:09 in Forth

I've been successful in getting Taqoz to compile under P/NUT and it seems to run OK. I moved the Taqoz serial terminal to two alternate pins, so that the P/NUT debugger could keep using the P2EVAL usb serial port at 2Mbaud.

Taqoz runs normally after selecting "Compile and Load RAM"
Taqoz starts up (outputs start message) but does not respond to the serial terminal after selecting "Compile and Load RAM and Debug"

Anyone tried this? - it'd be nice sometimes to use the very useful P/NUT debugger when PASM coding.

Attached is my Taqoz source fle, which needed a few minor typos fixing before it would compile. ( CON moved to column zero etc)

Comments

  • datram      = $7E000        ' start of data memory (PERHAPS)- user variables '
    
    
    rxbuffers   = $7F500        ' SERIAL RX buffer
      rxsize    = $0300
    SDBUFS      = $7F800        ' allocate 4 sector buffers'
    

    When debugger is active, RAM only goes up to $7BFFF. so these buffers don't work.

  • Brilliant, thanks very much @Wuerfel_21 . I'll have another go with buffers moved down.

  • bob_g4bbybob_g4bby Posts: 440
    edited 2024-12-03 11:18

    So when Taqoz Reloaded doesn't quite do what you expect or you're writing some machine code in it, it would be nice to be able to single shot through that code...

    Attached is my version of Taqoz Reloaded which is set up to compile under P/NUT both with and without debug set, The three pointers datram, rxbuffers and SDBUFS needed to be dropped by $4000 to remain within user hubram space when debug is selected in P/NUT.

    P/NUT debug needs the fast USB serial port on P2-EVAL to communicate with the P/NUT application. So, I've moved the Taqoz terminal by setting rx_pin = 55 and tx_pin = 54. I've also droppped the baudrate by setting baud_rate = 230400. This is the maximum rate supported by the CH340 USB to serial breakout board I use.

Sign In or Register to comment.