You need to add :- extern TX_THREAD sensor_thread; at the top of the main_thread_entry.cpp file.
↧
Forum Post: RE: C++
↧
Forum Post: Cap-touch in sleep mode
Is it possible to make CTSU working in power down mode? which is the least power consumption mode in which CTSU can work? Regards, Renemb
↧
↧
Forum Post: RE: S7G2 - Using block media on QSPI flash to store large data sequentially
Hello Sai, Thank you. I have already looked at the QSPI hal module guide. However, since the flash is 128 MB and the address space on the S7G2 allows for mapping from address 0x60000000 to 0x63FFFFFF (64 MB), please tell me the changes I need to make to the QSPI hal driver and any other changes in order to access the full 128MB? Secondly, I found a guide for FileX on block media over RAM. Is there one for running FileX on block media over QSPI? regards Sudesh
↧
Forum Post: Ip object delete error with two interfaces
Hello, I got an error sometimes when I disable all my IP stack while trying to delete the IP object. The error code is NX_SOCKETS_BOUND. I don't understand why I got this, i disable and delete all the ip services first though... void net_stop_all() { net_wifi_close(); net_http_server_stop(); net_dhcp_server_stop(); net_dhcp_client_stop(); net_ip_stop(); } void net_wifi_close() { if(wifi_on) { do { result = g_sf_wifi0.p_api->close(g_sf_wifi0.p_ctrl); tx_thread_sleep (50); } while(result != SSP_SUCCESS && result != SSP_ERR_NOT_OPEN); wifi_on = 0; } } void net_http_server_stop() { if(http_server_initialized) { result = nx_http_server_stop(&g_http_server0); tx_thread_sleep (50); result = nx_http_server_delete(&g_http_server0); tx_thread_sleep (50); memset(&g_http_server0, 0, sizeof(g_http_server0)); http_server_initialized = 0; } } void net_dhcp_server_stop() { if(dhcp_server_initialized) { result = nx_dhcp_server_stop(&g_dhcp_server0); tx_thread_sleep (50); result = nx_dhcp_server_delete(&g_dhcp_server0); tx_thread_sleep (50); memset(&g_dhcp_server0, 0, sizeof(g_dhcp_server0)); //result = g_wifi_stack.dhcpServerStop(g_wifi_stack_ctrl); dhcp_server_initialized = 0; } } void net_dhcp_client_stop() { if(wdhcp_client_on) { /* Start the DHCP Client on the secondary interface. */ result = nx_dhcp_interface_stop(&g_dhcp_client1, 0); tx_thread_sleep (50); result = nx_dhcp_interface_disable(&g_dhcp_client1, 0); tx_thread_sleep (50); wdhcp_client_on = 0; } if(edhcp_client_on) { result = nx_dhcp_interface_stop(&g_dhcp_client1, 1); tx_thread_sleep (50); result = nx_dhcp_interface_disable(&g_dhcp_client1, 1); tx_thread_sleep (50); edhcp_client_on = 0; } if(dhcp_client_initialized) { result = nx_dhcp_stop(&g_dhcp_client1); tx_thread_sleep (50); result = nx_dhcp_delete(&g_dhcp_client1); tx_thread_sleep (50); memset(&g_dhcp_client1, 0, sizeof(g_dhcp_client1)); dhcp_client_initialized = 0; } } void net_ip_stop() { if(ip_initialized) { do{ result = nx_ip_delete(&g_ip1); tx_thread_sleep (50); memset(&g_ip1, 0, sizeof(g_ip1)); } while(result != 0); result = nx_packet_pool_delete(&g_packet_pool0); tx_thread_sleep (50); memset(&g_packet_pool0, 0, sizeof(g_packet_pool0)); ip_initialized = 0; } } Sorry for the bad code format, i don't know how to make the code look better here :s thanks in advance for any tips :) Have a nice day, Clément.
↧
Forum Post: UDP Example
Hi, I want to interconnect upto 8 S7G2-based boards over ethernet through a Router/Hub. It is intended to broadcast data from each board, and other board to receive it. UDP packets seem to be an option. Is there an example project for broadcasting UDP packets?
↧
↧
Forum Post: RE: UDP socket support
Is the example available?
↧
Forum Post: RE: NetX Duo UDP echo server example project.
Hi Chuck, can you share the link where you found the UDP example?
↧
Forum Post: Taking longer time for random: crng init done A1H
Currently i am working on Rz A1H with qt application using linux bsp 4.9. And i found some issue while trying qt sample application calculator. The problem is the calcultor application is waiting for random: crng init done (at start up). But it is taking longer time to initialize the random number generator, some times it is taking approximatly 2-3 minutes to initialization. Is it any possibility available for improving crng initialization time.
↧
Forum Post: RE: WDT Configuration
Can you renew link, please? PS: How can i manage watchdog timer in multi thread project?
↧
↧
Forum Post: How can i manage watchdog timer in multi thread project?
How can i manage watchdog timer in multi thread project using SSP(Synergy)?
↧
Forum Post: Stream It. Adding jffs2 support questions.
Hello! I'am working with Stream It kit board version v2.3.0444 and rza_linux-4.19_bsp. Since axfs is read-only file system I want to work with jffs2 'cause it's R/W file system. I made the steps from spibsc-qspi.txt, but now I'am getting an error: => run jboot SF: Detected mx25l51235f with page size 256 Bytes, erase size 64 KiB, total 64 MiB device 0 offset 0xc0000, size 0x40000 SF: 262144 bytes @ 0xc0000 Read: OK device 0 offset 0x100000, size 0x500000 SF: 5242880 bytes @ 0x100000 Read: OK Wrong Image Format for bootm command ERROR: can't get kernel image! XIP Invalid Image ... OK No FDT memory address configured. Please configure the FDT address via "fdt addr " command. Aborting! ERROR: booting os 'Invalid OS' (0) is not supported => My environment: => printenv baudrate=115200 bootargs=ignoreloglevel root=/dev/mtdblock9 rw rootfstype=jffs2 bootcmd=run xsa_boot bootdelay=3 cmdline_common=ignore_loglevel earlyprintk earlycon dtb_lcdfb_dyn=fdt set /display@fcff7400 fb_phys_addr dtb_lcdfb_fixed=fdt set /display@fcff7400 fb_phys_addr dtb_mem_ram=fdt memory 0x20000000 0x00300000 dtb_mem_sdram=fdt memory 0x0C000000 0x02000000 dtb_read_ram=sf probe 0; sf read 20200000 C0000 8000; fdt addr 20200000 ; setenv addr_dtb 20200000 dtb_read_sdram=sf probe 0; sf read 0CF00000 C0000 8000; fdt addr 0CF00000 ; setenv addr_dtb 0CF00000 ethact=sh_eth fs_axfs=rootfstype=axfs rootflags=physaddr=0x18800000 fs_mtd=root=/dev/mtdblock0 ipaddr=192.168.0.55 j1=sf probe 0 ; sf read 0x09800000 C0000 40000 ; j2=sf read 0x09000000 100000 500000 j3=bootm start 0x09000000 - 0x09800000 ; bootm loados jboot=run j1 j2 j3; setenv bootargs ${jbootargs}; fdt chosen; bootm go jbootargs=ignoreloglevel root=/dev/mtdblock9 rw rootfstype=jffs2 s_boot=run dtb_read_sdram dtb_mem_sdram dtb_lcdfb_fixed; setenv bootargs ${cmdline_common} ${fs_mtd}; fdt chosen; run uImg sa_boot=run dtb_read_sdram dtb_mem_sdram dtb_lcdfb_fixed; setenv bootargs ${cmdline_common} ${fs_axfs}; fdt chosen; run uImg serverip=192.168.0.1 stderr=serial_sh stdin=serial_sh stdout=serial_sh uImg=qspi single; cp.b 0x18200000 0C800000 0x400000; bootm start 0C800000 - 0CF00000; bootm loados ; bootm go xImg=qspi single; setenv cmd bootx 0x18200000 ${addr_dtb}; run cmd xa_boot=run dtb_read_ram dtb_mem_ram dtb_lcdfb_dyn; setenv bootargs ${cmdline_common} ${fs_axfs}; fdt chosen; run xImg xsa_boot=run dtb_read_sdram dtb_mem_sdram dtb_lcdfb_fixed; setenv bootargs ${cmdline_common} ${fs_axfs}; fdt chosen; run xImg xsa_eth_boot=run dtb_read_sdram dtb_mem_sdram; fdt set /display@fcff7400 status dis; setenv bootargs ${cmdline_common} ${fs_axfs}; fdt chosen; run xImg Environment size: 1937/262140 bytes Could you please help me to solve this issue. Thank you! One more question, am I right that it is impossible to use SDRAM, LCD and SD-cart simultaneously? Timur.
↧
Forum Post: Connectivitiy issues with RL78 F14 Eval boardRl78
Hi, We have 2 RL78/F14 Eval boards(QB-R5F10PPJ-TB) which are both showing the same symptoms. Using the E1 debugger, we were previously able to flash etc in our IAR environment. Now in the IAR environment we can't connect to either board. In IAR we get: Fatal error: Emulator message: No response from the CPU. Failed set SOC RSU info. Session aborted! We then tried one of the RL78 sample programs(instead of our own softare) and got the same problem. We have now tried to communicate with them using the Renesas Flash Programmer but are also getting issues: error(E4000003) A Timeour error occurred The timeout error occurs when we select RL78, tool = E1, Wide Voltage = False, Power = 5V(USB VBUS). On one of the boards we see E4000004: A framing error occurred while receiving data if we use an external power supply. Any suggestions on what the cause might be? We've already tried different E1 debuggers and Ribbon cables, but to no avail. Using Flash Programmer Version V3.05.01
↧
Forum Post: RE: Connectivitiy issues with RL78 F14 Eval boardRl78
I should also add that when we try to connect, LED3(Power), LED2 and LED1 are illuminated
↧
↧
Forum Post: RE: RL78/G13 Where can I find the main function ?
Hello again, I told you that i'll be back, and here I am :) So, I could download the library which contained the header files and the library I needed to use the basic functions. I started to play with them, but I encountered an issue using the FSL_BlankCheck() function. I probably made something wrong, but I don't see my issue. There is a piece of my code: ############################################################################## #define CODE_FLASH_MEMORY_ADDR 0x10CE /* CODE FLASH MEMORY Start Address */ #define CODE_FLASH_MEMORY_SIZE 0x3EF31 /* CODE FLASH MEMORY Size */ int main( void ) { ********** fsl_u16 myBlankBlockAddr = CODE_FLASH_MEMORY_ADDR; my_fsl_init_status_u08 = FSL_Init((__far fsl_descriptor_t*)&fsl_descr); //Init if(my_fsl_init_status_u08 != FSL_OK) { //MyErrorHandler(); } FSL_Open(); FSL_PrepareFunctions(); my_fsl_blankCheck_status_u08 = FSL_BlankCheck(myBlankBlockAddr); if(my_fsl_blankCheck_status_u08 != FSL_OK) { ....... } } ################################################################################ So tell me if i'm wrong, but I tried to check if the block located at the address "CODE_FLASH_MEMORY_ADDR (= 0x10CE)" is blanked or not. When I run this code on IAR, it seems that the program doesn't work as I can't go ahead the command line " my_fsl_blankCheck_status_u08 = FSL_BlankCheck(myBlankBlockAddr);" Do you know what is wrong with my code ? Thank you in advance, Antoine
↧
Forum Post: RE: Taking longer time for random: crng init done A1H
The crng has different levels of 'ready'. github.com/.../random.c From this patch, git.kernel.org/.../ You can see that: The crng_init variable has three states: 0: The CRNG is not initialized at all 1: The CRNG has a small amount of entropy, hopefully good enough for early-boot, non-cryptographical use cases 2: The CRNG is fully initialized and we are sure it is safe for cryptographic use cases. So you should be able to use /dev/urandom quickly for non-security related operations. Also, make sure Qt is using /dev/urandom, not /dev/random (which blocks)
↧
Forum Post: dmalloc et al...
Hi all, Anyone figure out how to use the dmalloc *.so to detect memory leaks on this platform? I've done the following steps: - enabled dmalloc in the buildroot menuconfig, rebuilt the rootfs - LD_PRELOAD=libdmallocthcxx.so ./ .stripped I'm getting this error: undefined reference to atexit in libdmallocthcxx.so Thanks, Charles
↧
Forum Post: RE: Stream It. Adding jffs2 support questions.
Your log says: > => run jboot > SF: Detected mx25l51235f with page size 256 Bytes, erase size 64 KiB, total 64 MiB > device 0 offset 0xc0000, size 0x40000 > SF: 262144 bytes @ 0xc0000 Read: OK > device 0 offset 0x100000, size 0x500000 > SF: 5242880 bytes @ 0x100000 Read: OK > Wrong Image Format for bootm command > ERROR: can't get kernel image! > XIP Invalid Image ... OK If you want to use the QSPI flash as jffs2, you cannot use an XIP kernel. You have to build a uImage kernel. $ ./build.sh kernel uImage.
↧
↧
Forum Post: RE: AE-CLOUD2 Provisioning Cellular Modem fail
Hi Sergey, We have been busied ending the hardware design. My sim card is for GPRS/EDGE. I am able to send data by GPRS using directly the BG96 board and sending AT commands from the QCOM software. This way there is no problem to register and connect to my provider Vodafone by 2G. What´s is happening with the example? It is trying to register to NB or M1 but not to 2G? Can I force it to use 2G? How? Best Regards
↧
Forum Post: RE: WDT Configuration
Here is an updated link: www.renesas.com/.../D6002974.html -Gary
↧
Forum Post: RE: Ip object delete error with two interfaces
Clement, First, I assume you checked all the return status calls for successful result. Assuming no errors, all the NetX application "stop()" APIs unbind or release the port unless an error occurs and the service aborts. Note that if the DHCP Client is running on at least one other interface, nx_dhcp_interface_stop will not unbind the socket port. Looking at how you toggle dhcp_client_initialized , edhcp_client_initialized , and wdhcp_client_initialized that seems like the most likely culprit. Janet
↧