Quantcast
Channel: Renesas Synergy Platform
Browsing all 23645 articles
Browse latest View live

Forum Post: RE: fx_file_open fails to open file

They are defined as follows: extern FX_FILE g_my_file; and g_fx_media0 is the name given to the FileX block: The strange is that the first time I create the file, then I am able to open successfully,...

View Article


Forum Post: RE: fx_file_open fails to open file

Hello Laser, What does the g_my_file link to? In the most examples it's creates as static variable. If you're linking it externally it should be present somewhere else. Also, are you closing the file...

View Article


Forum Post: ThreadX Defines You Might be Wondering About

Here are three ThreadX Defines you might find if you did deep into the code. Two of the three defines are tool related and specific to IAR and GHS tools. They are documented in the associated...

View Article

Forum Post: RE: Enable NetX Socket ADDR_REUSE Flag

I am having the same issue.  Once in a while I can connect, send a packet, get the response, and close the connection.  When it works, I can repeat this every 10 seconds for a while, then suddenly I...

View Article

Forum Post: RE: Enable NetX Socket ADDR_REUSE Flag

Update:  I went away overnight, came back and, without changing anything it started working.  It worked for quite a while, through a number of compiles and changes, none of which were related to the...

View Article


Forum Post: RE: Enable NetX Socket ADDR_REUSE Flag

If it helps, here is the majority of the code.   LOG() is a message logging routine - mostly just prints to the debug console.  PEND_CHECK() and UPEND_CHECK are just pended and unpended generic status...

View Article

Forum Post: RE: fx_file_open fails to open file

Hi Karol, yes, in the code I reported, the  FX_FILE g_my_file is decleared external, and it is correctly present in another module. I looked at the USBX sample code in your link. In my application, at...

View Article

Forum Post: RE: fx_file_open fails to open file

Hello Laser, If you created a file, written to it and closed it, then you should try using fx_media_flush to make sure that all buffers are flushed and data is actually written to the SD card (I'm not...

View Article


Forum Post: RE: fx_file_open fails to open file

Hi Karol, thank you, the problem was that I call the fx_media_close and then try to open the file again. Now, the second time I open the file to modify it, no error occours. But when I try to open...

View Article


Forum Post: RE: fx_file_open fails to open file

Hello Laser, In one of the posts above I can see that you enabled "format media during initialization", hence your data is not retained after rebooting the board. Regards

View Article

Forum Post: RE: fx_file_open fails to open file

Yes, I had already change that option to "disabled", so I don't format the media now. When have I to call the fx_media_flush? Every time I write onto it or just before closing the media? It seems I...

View Article

Forum Post: RE: fx_file_open fails to open file

Hello Laser, You should call flush after writing the data and closing the file, and also before unmounting the media or shutting down the device. Regards

View Article

Forum Post: GUIX template windows

Hello everybody, I'm developing an application that has the same header and footer in every window. I'd like to know how to use a template window properly, and how to setup two event handlers in the...

View Article


Forum Post: RE: Enable NetX Socket ADDR_REUSE Flag

More information:  This application is a replacement for an existing controller that we have 1500 of deployed and working.  They all work this same exact way - open the socket, send one packet (as...

View Article

Forum Post: RE: Enable NetX Socket ADDR_REUSE Flag

I think I found it... I'll let you know.

View Article


Forum Post: RE: GUIX template windows

Hello Lucas, GUIX Studio template windows gather window and its children under single instance that can be easily duplicated. The event handler for each template window is different (just as it would...

View Article

Forum Post: RE: GUIX template windows

Thank you Karol for your reply. I'll try those alternatives you sugested and see what fits better in my application. Regards, Lucas

View Article


Forum Post: RE: fx_file_open fails to open file

Hi Karol, sorry, but I still can't understand why in my application I am able to write one time after the creation of a file, and then I can't write on it anymore. Is there any reason why I can write...

View Article

Forum Post: RE: fx_file_open fails to open file

Hello Laser, By default, after opening the file, the read/write pointer is set to the start of the file, meaning you'll overwrite anything that's inside the file so far. You can place the pointer at...

View Article

Forum Post: RE: fx_file_open fails to open file

Hi Karol, for me is ok to overwrite the whole file, so I don't need to add records at the end. Is it correct to close the file and flush the media at every reading or writing operation on that file?

View Article
Browsing all 23645 articles
Browse latest View live