This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

  • Resolved

Cannot post a new question

Hi,

Since last Thursday I can't post new questions in the E2E mmWave Sensors forum.

After pressing the post button nothing happens. I also don't get the 

usual notification email regarding the confirmation of my post.

Thanks,

Boaz

  • In reply to William Traynor:

    Last time I posted was two or three days ago. I tried posting this morning it fails. With quick reply, I get a little red popup with the text:
    Error occurred. Please try again or contact your administrator.
    With the rich text, pressing the "Post" button results in the spinning arrows animation.
  • In reply to William Traynor:

    I was trying to post to this thread
    e2e.ti.com/.../689924
    and a similar one in compiler forum. I will try to post my problematic reply in the next posts here.
  • In reply to Norman Wong:

    If it fails to post here, please email me the complete content of the post. I'm at x0211426@ti.com

    Bill Traynor
    E2E SysAdmin/DevOps

  • In reply to William Traynor:

    Okay. Look like this forum is not different. I cannot post my problem reply. The reply consists of text and code. Here's the text.

    You have allocated 0x800 or 2kB bytes for stack but the image_array of 256kB is declared on the stack. Also, SHRAM is only 128kB in size. The compiler cannot detect stack overrun due to large local variables.

    You should move image_array off the stack. Make it a global rather than local variable. The compiler can check global memory usage.

    To reduce memory usage, you can reduce image_array to an array of bytes instead of 4-byte "int". First read it in as a 4-byte int, then convert it to a byte.

    You should check to see if the file opened successfully. You may be using fscanf with a null FILE handle.

  • In reply to William Traynor:

    Try attaching the code as a text file.

    code.txt

  • In reply to Norman Wong:

    Can you tell me how you're adding the code snippet to the post? Did you just paste it as text ?

    Bill Traynor
    E2E SysAdmin/DevOps

  • In reply to William Traynor:

    #include <stdio.h>

    unsigned char image_array[256*256]; // 256*256 = 64kB

    int main()
    {
    int i;
    int a;
    FILE *image;
    image = fopen("image_cameraman_tiff.txt","r");
    if(image == NULL)
    {
    printf("Open failed\n");
    return;
    }

    for(i=0;i<5;i++)
    {
    fscanf(image, "%d", &a);
    image_array[i] = (unsigned char)a;
    }
    }

    Bill Traynor
    E2E SysAdmin/DevOps

  • In reply to William Traynor:

    #include <stdio.h>
    
    unsigned char image_array[256*256]; // 256*256 = 64kB
    
    int main()
    {
      int i;
      int a;
      FILE *image;
      image = fopen("image_cameraman_tiff.txt","r");
      if(image == NULL)
      {
        printf("Open failed\n");
        return;
      }
    
      for(i=0;i<5;i++)
      {
        fscanf(image, "%d", &a);
        image_array[i] = (unsigned char)a;
      }
    }

    Test using rich text editor.

    Bill Traynor
    E2E SysAdmin/DevOps

  • In reply to William Traynor:

    In the quick reply window, I just pasted both text and response into the window. I pre-typed my reply in Windows notepad. Pressed "Reply"

    In the rich text window, I pasted in my text first. Then clicked on the Syntaxhighlighter "</" and pasted my code in the code window. Closed code window. Everything looks okay in the rich text window. Press "Post".

  • In reply to William Traynor:

    I just tried to echo your quick reply with inline code. Same error as before.

This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.