Announcement

Collapse
No announcement yet.

Serial com with SK-43DT

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

  • ccsial
    replied
    Thanks Mark,

    I understand that. It is just a bit misleading when the compiler tells you 32K. No biggie. Minor detail. I was just hoping that didn't apply to flash as well and it appears not to.

    Leave a comment:


  • ESPsupport
    replied
    There's a short app note that you might like to read http://www.4dsystems.com.au/appnote/4D-AN-00039/

    There's 32k of RAM, it's just that a program cannot exceed 28k to be downloaded directly to RAM.

    Leave a comment:


  • ccsial
    replied
    I didn't know about RUNFLASH. It runs from flash when I set the project to run flash in workshop. I was running in RAM until the file got the too large error and then I switched to flash.

    I have loaded both programs to flash. The one in bank 0 gets status from the host on power up. If it needs to run the program in bank 1, it does a run_flash(1). It works great from power on when not connected to the PC.

    In a future revision Workshop could print:
    "Program will run from ram so total initial RAM size = 29476 bytes out of 28000 total

    I till have about 11% of the flash left. I think that will do for future revisions. This product is pretty mature.

    Al

    Leave a comment:


  • ESPsupport
    replied
    No that wont affect RAM.

    You don't have #MODE RUNFLASH so your program will be running from RAM anyway.

    There is a 28KB limit on load to ram RAM programs due to the buffer requirements of the download protocol

    Leave a comment:


  • ccsial
    replied
    Hi Mark,

    File attached. I have another file loaded into Bank 1. It is the same file with some different nomenclature. That might affect RAM ??

    Al
    Attached Files

    Leave a comment:


  • ESPsupport
    replied
    Can you use File, zip project and send it to mark at 4dsystems dot com dot au? There might be an explanation for the 'missing' 3K, but I'd like to see it first hand.

    We have fixed the relevant parts of the manual for the next release, thanks for pointing it out.

    Leave a comment:


  • ccsial
    replied
    Hi Mark,

    I put some large dummy functions in and it does appear to support 32K of flash.

    I got the latest Diable manual and the str_Match is incorrect. It is OK in an older Picaso manual. See images.
    Attached Files

    Leave a comment:


  • ccsial
    replied
    Hi Mark,

    I forgot a few features and now I am up to this length, 29320. The program will no longer run from RAM. File too long error. So it appears that there is about 3K of RAM that is not available.

    I can debug using flash. My question is how much of the 32768 flash is available. Do I have 3K left or am I almost out there too?

    Thanks, Al

    0 warnings
    20 notices
    No Errors, code size = 28696 bytes out of 32750 total
    Initial RAM size = 624 bytes out of 32768 total
    Program will run from ram so total initial RAM size = 29320 bytes out of 32768 total

    Leave a comment:


  • ccsial
    replied
    Thanks for the link James. I now have the new manual.

    Leave a comment:


  • James_4DSystems
    replied
    All the manuals are here:

    http://www.4dsystems.com.au/product/4D_Workshop_4_IDE

    In the downloads section

    Leave a comment:


  • ESPsupport
    replied
    Gee would you have the URL?

    Surely it isn't there anymore, it's well out of date

    Leave a comment:


  • ccsial
    replied
    Here is a screen shot of the first page. I can attach it if you want. it is 5.45 MB

    I can't find a manual like it on the software page. I found this on your site doing a google search for 4DGL. It has all the stuff in it.
    Attached Files

    Leave a comment:


  • ESPsupport
    replied
    2010? Pretty sure Diablo didn't even exist back then. Which manual are you looking at?

    Workshop 'maintains' the latest manuals in the C:\Users\Public\Documents\4D Labs\4DUpdates\Manuals folder and will attempt to open it up on a relevant page by pressing F1

    Leave a comment:


  • ccsial
    replied
    That makes sense.

    Document Date: 20th March 2010
    Document Revision: 2.0

    What is the latest?

    Leave a comment:


  • ESPsupport
    replied
    What version of the manual says "Returns 1 if successful"?

    The text says "Returns 0 if no match, else advance ptr to the next position after the match and returns that value."

    Actually this is not quite right, a better description would be "Returns 0 if no match, else advance ptr to the next position after the match and returns a ptr to the match position."

    So the comparison should be

    if (r) which is the same as if (r != 0)

    Leave a comment:

Working...
X