Announcement

Collapse
No announcement yet.

Inherent widgets to pixxiLCD-13P2-CTP-CLB fail to transfer

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Inherent widgets to pixxiLCD-13P2-CTP-CLB fail to transfer

    Using Visi i can transfer (comp'n upload) to the 13P2 using the 4D-UPA programmer fine. It starts to fail when i start adding inherent widgets. The software prompts me to transfer the file "myfile.gcf" to the display with the (built in) File transfer utility.

    Click image for larger version  Name:	Screen Shot 2020-09-16 at 21.17.58.png Views:	1 Size:	6.2 KB ID:	73679​​

    Error reported by Visi: File transfer failed, run standalone and check produced messages:

    Click image for larger version  Name:	Screen Shot 2020-09-16 at 21.19.21.png Views:	1 Size:	3.4 KB ID:	73680​​


    Baud rate of COM port is set to 115K:
    Click image for larger version  Name:	Screen Shot 2020-09-16 at 21.25.25.png Views:	1 Size:	19.9 KB ID:	73682​​



    When i open the file transfer as standalone, i'm able to connect (baud to 115K) and can write to the flash with the "RAW Operations" - however i'm not sure what the "sector" parameters aught to be for "start" and "size"? I tried 2560(size) == 0x0A00...
    file transfer window​​

    If i continue, the Visi upload finishes and the display is just blanco - or only showing 'non inherent widgets'
    GCI Flash File System requires a Flash chip of at least 1,01 KB
    0 errors
    0 warnings
    1 notice
    No Errors, code size = 70 bytes out of 32750 total
    Initial RAM size = 222 bytes out of 14400 total
    Program will run from ram so total initial RAM size = 292 bytes out of 14400 total
    Download to RAM successful.



    Click image for larger version  Name:	Screen Shot 2020-09-16 at 21.20.45.png Views:	1 Size:	24.5 KB ID:	73681​​

    Anybody has a tip what i'm missing?

    Thanks!

    Last edited by [email protected]; 17 September 2020, 05:34 AM.

  • #2
    Good day!

    Can you try reinstalling the driver?

    Let us know if this improves the behavior if anything has changed.

    Also, you need to write the GCF file, not the GCI file. Your Raw Start Sector should be 0x0000 and the Raw Size Sector(s) should be 0x0020.

    Best Regards,
    Juniel Cruz

    Comment


    • #3
      EDIT: So I just did "Bulk Erase" in the File Transfer utility, and then send the GCF file across again, and it works. :D I really like the design and build quality of these displays so I'm glad to have the tooling up and running now too.

      Hi,
      I'm having the same problem using Workshop 4 (Free), pixxiLCD-39P4CT, Win 10, the USB-Serial cable and provided adapter. I get the same error as above with the transfer failing when attempting to transfer the .GCF file automatically. Using the File Transfer utility seems to transfer successfully but nothing displays on the device.

      I've tried both the CGF and CGI files, and with "Raw Size Sector(s)" at 0x0000 and 0x0020 with no luck.

      Code:
      #platform "pixxiLCD-39P4CT"
      
      
      // Program Skeleton 1.5 generated 9/07/2021 7:17:25 PM
      
      // #MODE RUNFLASH uncomment and set Destination to Flash to run from Flash, refer 4D-AN-00055
      
      #inherit "4DGL_16bitColours.fnc"
      
      #inherit "VisualConst.inc"
      
      // var gradientRAM[29+xxx*2] := [-1,-1,-9999,0,0,xxx] ; // uncomment and replace xxx with maximum of all inherent 'media' widgets
      
      #inherit "NoName1Const.inc"
      
      func main()
      gfx_Set(SCREEN_MODE,LANDSCAPE) ;
      
      
      media_Init() ;
      
      hndl := file_LoadImageControl(0, 0, 3); // fonts, strings and WAV files are all entries in here.
      
      if(!hndl)
      print("No GFX Found");
      endif
      
      // Form1 1.1 generated 10/07/2021 8:26:06 PM
      img_Show(hndl,iForm1) ;
      
      // Button1 1.0 generated 10/07/2021 8:26:06 PM
      gfx_Button(1, 12, 100, RED, YELLOW, FONT1, 1, 1, "Button1") ;
      
      // Winbutton1 1.0 generated 10/07/2021 8:26:06 PM
      img_ClearAttributes(hndl, iWinbutton1, I_TOUCH_DISABLE); // set to enable touch, only need to do this once
      img_Show(hndl, iWinbutton1); // show button, only do this once
      img_SetWord(hndl, iWinbutton1, IMAGE_INDEX, 0); // where state is 0 for up and 1 for down
      img_Show(hndl,iWinbutton1) ;
      
      // Gradient1 1.1 generated 10/07/2021 8:26:06 PM
      // Gradients are 'embedded' in the background of each form, this means even a form without a background image will have one created if it has a border.
      // Borders, Gradients and Scales are all done this way, so you only need to Paste the main form, or one of them, if several are included on a form.
      img_Show(hndl,iForm1) ;
      
      
      repeat
      forever
      endfunc
      Expected output:
      Expected Output

      Actual Output:
      Actual Output

      I have not yet tried to use a uSD card, but I would prefer to use Flash if possible.
      Thanks for any advice you can give.

      Cheers,
      Tom
      Last edited by tommy_tom; 10 July 2021, 09:12 PM.

      Comment


      • #4
        We're glad you've worked it out.

        However, WS4 should be doing an erase before it automatically send the widgets to flash.

        You might want to check and update the driver. When installing, be sure to:
        • Uninstall the old driver first via Device Manager
        • Disconnect the programmer from the PC
        • Install the new driver
        • Reconnect the Programmer

        Here's what we recommend:If that doesn't work, you can try one of the following:Best Regards
        Last edited by Juniel Cruz; 12 July 2021, 11:37 AM.
        Juniel Cruz

        Comment

        Working...
        X