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
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.
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
Yes, I see you have many posts in mmWave.
Please provide a screen capture of the Thread Create Form as you are ready to click Post.
~Leonard
Hi Boaz,
Try removing the code in the Desc box . . I recall that there were some additional checks on content made recently, and some code postings are not accepted. Just a guess on my part, but let's see - you can post the code in a .txt document.
Hi Boaz,
I posted this and then saw you successfully posted it as well: https://e2e.ti.com/support/sensor/mmwave_sensors/f/1023/t/688883 , so I deleted my thread. The other suggestion I was going to ask you to do is to clear the browser cache and saved pages. If your browser was trying to access an older stored page, this error may have occurred.
Glad to see you got it working.
~Leonard
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.
Try attaching the code as a text file.
#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; } }
#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.
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".