I'm looking for reference manual for RH850/F1H family, because on Renesas' site I'm not able to find it. Can someone help me? I need informations. Thanks
↧
Forum Post: Reference RH850/F1H
↧
Comment on Please help boot RCAR M2 PORTER A
Hi Hoang, Were you able to find out what's wrong with the board? -MarkBau RenesasRulz Forum Moderator
↧
↧
Forum Post: RE: R8C/2C,internal ROM limit exceeds
There is no definition for the size of a section. As I said in my earlier post, please do NOT use #pragma SECTION program program1 in some of your C source files.
↧
Forum Post: R8C/33C Boot failure E8A emulator
Hello, In order to connect to the HEW, I saw in the previous posts that I have do it in Flash programming mode. But I've run into a problem where in the FDT, I get Error No 17502: Received error response from E8/E8a: response[10] = 0x50 response[11] = 0x45 Error No 15024: Boot failed And I am not able to connect in the HEW because it is not in the flash programming mode. Worst case scenario is that the device is broken. But other than that, what is the problem? I am unsure how to proceed further. Any suggestions will be appreciated. Regards, Needy
↧
Forum Post: RE: Debugger Problems with Segger jLink and e2-studio
Hello anper, Thank you for your advice, now the debugger is running with the latest firmware from Segger. Unfortunately the strange behavior of the debugger is still existing. I used this device for a few months now and a crash from time to time, perhaps 1 per day was quite normal. But in the last days it crashes and crashes, even 5 times consecutively, really weird. I try to reduce the connection speed or change some GDB settings which I think is the really reason for this problem. As an example output from the console window after crash : Remote failure reply: E31 Program received signal SIGTRAP, Trace/breakpoint trap. _tx_thread_system_return_inline () at inc\el/./cm4_gcc/tx_port.h:347 347 inc\el/./cm4_gcc/tx_port.h: No such file or directory. ... Best regards Heinz
↧
↧
Forum Post: RE: Debugger Problems with Segger jLink and e2-studio
Hello Heinz, The problems you're experiencing are related to RTOS-aware debugging. While it's usually possible to recover the debugger after stopping at tx_port.h (i.e. by using "Run to line"), I recommend that you disable this feature altogether: in e2studio, navigate to Run -> Debug Configurations and select your project on the left-hand side under "Renesas GDB Hardware Debugging". Go to Debugger tab and then to Debug Tool Settings. "RTOS Integration in Debug View" should be switched off. After this is done, you should no longer see pauses at tx_port.h when stepping trough the source. Regards
↧
Forum Post: Problem with nx_tcp_socket_send while porting code from S7G2 SK to S7G2 DK
I'm working on a webserver application that is currently working on the S7G2 SK. Today I tried to port it to S7G2 DK but I'm seeing some problems. The program starts up, status = nx_ip_interface_status_check(&g_ip0, 0, NX_IP_LINK_ENABLED, &actual_status, TX_WAIT_FOREVER); succeeds and it also successfully acquires an IP using the DHCP client. However, when I try to initiate a connection to the webserver with a web browser, the function status = nx_tcp_socket_send(&(server_ptr -> nx_http_server_socket), resp_packet_ptr, NX_HTTP_SERVER_TIMEOUT_SEND); fails with NX_WINDOW_OVERFLOW. I ported it back to the SK and it works fine again. Changes I made mainly concern the Channel 1 Phy Reset Pin (IOPORT_PORT_07_PIN_06 on DK and IOPORT_PORT_08_PIN_06 on SK) in the ethernet driver sf_el_nx. The ethernet channel is set to 1 in both cases. Any idea what could be causing this? For reference, I'm pasting the (shortened) code for responding to the request below. I have to admit I'm not sure about the calculation of the content length header field in serve_integrated_resources(), so if anyone has comments on that it would be nice as well. It's currently working but I think it should be the length of the data? UINT request_notify(NX_HTTP_SERVER *server_ptr, UINT request_type, CHAR *resource, NX_PACKET *packet_ptr) { SSP_PARAMETER_NOT_USED(server_ptr); SSP_PARAMETER_NOT_USED(request_type); SSP_PARAMETER_NOT_USED(resource); SSP_PARAMETER_NOT_USED(packet_ptr); if (CoreDebug->DHCSR & CoreDebug_DHCSR_C_DEBUGEN_Msk) printf("Requested %s from server while in state %d\r\n", resource, config_state.message_type); //Serve resources compiled into the program for(unsigned int i = 0; i name))) return serve_integrated_resources(server_ptr, request_type, resource, packet_ptr, res); } return(NX_SUCCESS); } UINT serve_integrated_resources(NX_HTTP_SERVER *server_ptr, UINT request_type, CHAR *resource, NX_PACKET *packet_ptr, struct html_resource * res) { UINT status; NX_PACKET *resp_packet_ptr; ULONG string_length; CHAR temp_string[30]; ULONG length = 0; length = res->length; /* Derive the client request type from the client request. */ string_length = (ULONG) nx_http_server_type_get(server_ptr, server_ptr->nx_http_server_request_resource, temp_string); /* Null terminate the string. */ temp_string[string_length] = 0; /* Now build a response header with server status is OK and no additional header info. */ status = nx_http_server_callback_generate_response_header(server_ptr, &resp_packet_ptr, NX_HTTP_STATUS_OK, length, temp_string, NX_NULL); /* If status is NX_SUCCESS, the header was successfully appended. */ /* add data to packet */ status = nx_packet_data_append(resp_packet_ptr, res->data, res->length, server_ptr->nx_http_server_packet_pool_ptr, NX_WAIT_FOREVER); if (status != NX_SUCCESS) { nx_packet_release(resp_packet_ptr); return status; } /* Now send the packet! */ status = nx_tcp_socket_send(&(server_ptr -> nx_http_server_socket), resp_packet_ptr, NX_HTTP_SERVER_TIMEOUT_SEND); if (status != NX_SUCCESS) { nx_packet_release(resp_packet_ptr); return status; } /* Let HTTP server know the response has been sent. */ return NX_HTTP_CALLBACK_COMPLETED; }
↧
Forum Post: RE: H8S programming
When I run the FDT on my Windows 7 64-bit system, I get non-english prompts. The heading is" LZH Z©CEE%" followed by characters I can't type in here followed with V2.13.w32.5. Is there a way to attach a small jpg image? The Cancel button says "?????". The path heading says "??????????(D):" and the browse button says "??(B)..." I'm not inclined to run it even though it appears malware free. Perhaps I need a special font? I'll check out the elnec link. Thanks.
↧
Forum Post: RE: BSP vs File Import
Thanks Gary.
↧
↧
Forum Post: RE: BSP vs File Import
I have - thanks for checking!
↧
Forum Post: Where is the example code that supports "clock stretching" in "RL78G13 i2c"?
Where is the example code that supports "clock stretching" in "RL78G13 i2c"? I tried the following to use i2c communication. * Using RL78 G13 (100Pin) * i2c device is d7s0001a. * Create Code is code generator in e2 studio result : Using an oscilloscope to check SDA and SCL, I think the problem is "clock stretching" This result was tested against "clock stretching". We tested it to see if the "clock stretch" problem was correct. test code #define SCL_OUT_MOD (P5 |= 0x10); (PM5 &= ~0x10) #define SCL_IN_MOD (P5 &= ~0x10); (PM5 |= 0x10) #define SDA_OUT_MOD (P5 |= 0x08); (PM5 &= ~0x08) #define SDA_IN_MOD (P5 &= ~0x08); (PM5 |= 0x08) #define SCL_LOW (P5 &= ~0x10) #define SCL_HIGH (P5 |= 0x10) #define SDA_LOW (P5 &= ~0x08) #define SDA_HIGH (P5 |= 0x08) void send_test() { SDA_OUT_MOD; unsigned int i = 0; unsigned char isLoop = 1; SDA_LOW; for (i = 0; i < 160u; i++) NOP(); SCL_LOW; for (i = 0; i < 160u; i++) NOP(); //start con.... //7 bit data P5 = 0x08; //low clock / high data for (i = 0; i < 3u; i++) NOP(); SCL_HIGH; for (i = 0; i < 3u; i++) NOP(); //6 bit data P5 = 0x00; //low clock / low data for (i = 0; i < 3u; i++) NOP(); SCL_HIGH; for (i = 0; i < 3u; i++) NOP(); //5 bit data P5 = 0x08; //low clock / high data for (i = 0; i < 3u; i++) NOP(); SCL_HIGH; for (i = 0; i < 3u; i++) NOP(); //4 bit data P5 = 0x00; //low clock / low data for (i = 0; i < 3u; i++) NOP(); SCL_HIGH; for (i = 0; i < 3u; i++) NOP(); //3 bit data P5 = 0x08; //low clock / high data for (i = 0; i < 3u; i++) NOP(); SCL_HIGH; for (i = 0; i < 3u; i++) NOP(); //2 bit data P5 = 0x00; //low clock / low data for (i = 0; i < 3u; i++) NOP(); SCL_HIGH; for (i = 0; i < 3u; i++) NOP(); //1 bit data P5 = 0x08; //low clock / high data for (i = 0; i < 3u; i++) NOP(); SCL_HIGH; for (i = 0; i < 3u; i++) NOP(); //0 bit data P5 = 0x00; //low clock / high data for (i = 0; i < 3u; i++) NOP(); SCL_HIGH; for (i = 0; i < 3u; i++) NOP(); SCL_LOW; // //ack check SDA_IN_MOD; while(isLoop){ if((P5 & 0x08) == 0){ isLoop = 0; } } for (i = 0; i < 3u; i++) NOP(); SCL_HIGH; for (i = 0; i < 3u; i++) NOP(); SCL_LOW; //--------------end--------------------- for (i = 0; i < 160u; i++) NOP(); P5 = 0x18; } test code result
↧
Forum Post: RE: Ethernet Flash Boot Loader
Hi Karol. I have a question about the downloader part, the downloader framework does not provide the TFTP communication option. Can you provide example how to set it up ? I'm very confused. The whole OTA updated project has 2 parts as the example provided from the https://synergygallery.renesas.com/ssp/utility#read .
↧
Forum Post: RE: Need help with e2studio debug configuration on RZ/A1H board
Unfortunately, any fatal errors couldn't be found from log of gdb trace. I'm sorry to request many times, but could you check the log of J-Link? Please click the icon of "JLink" in system Torreys of Windows. And please choose a Log tab by the dialog of the J-Link Control panel. The following log can be read. SEGGER J-Link Vx.xxx DLL Log DLL Compiled: xx xx xxxx xx:xx:xx Logging started @ xxxx-xx-xx xx:xx T2DEC 000:493 JLINK_Reset() -- Type: 0 T2DEC 000:637 JLINK_Halt() T13C4 001:181 JLINK_WriteMemEx(0xFCFE341C, 0x0002 Bytes, ..., AccessWidth = 2) - Data: 41 FF T13C4 001:184 JLINK_WriteMemEx(0xFCFE3A1C, 0x0002 Bytes, ..., AccessWidth = 2) - Data: 00 00
↧
↧
Forum Post: RE: Where is the example code that supports "clock stretching" in "RL78G13 i2c"?
What is "d7s0001a"? Your I2C code is NOT I2C specific. In an I2C interface the ports are open drain ports. This means if you use normal tri-state ports "H" output is NOT done using "H" output on the port but it is done switching the port to high impedance (input mode) and get the "H" from a pull-up resistor. In your code the I2C ports actively output "H" and "L". This is a synchronous serial IO. You can switch port P53 and P54 to n-channel open drain in POM5 register. Why don't you use the simple I2C of RL78G13? Sorry, I don't understand your problem. What do you mean by clock stretching? Usually clock stretching means the slave device slows the clock by holding SCL to "L" when the master tries to output the next clock cycle. The master recognizes this and delays the clock until the slave releases SCL and the the master outputs the next clock. In your case if the slave would try to hold SCL to "L" the ports of master and slave would create a short circuit, possibly damaging one or both.
↧
Forum Post: RE: RX630 dataflash erased after debugger is used
That's a problem, anyway to work around this? Losing the dataflash is very bad for me
↧
Forum Post: RE: H8S programming
In this case it looks to me like a Japanese version. You could use FDT 4.09 from the Renesas homepage. This also includes support for H8S/2623. www.renesas.com/.../flash-development-toolkit-programming-gui.html
↧
Forum Post: RE: R8C/33C Boot failure E8A emulator
First, to connect to R8C from HEW debugger you must NOT switch the MCU to flash programming mode. The E8a debug interface includes all pins necessary to switch R8C to flash mode, and it does this by itself. It is MANDATORY that E8a controls this because the debugger uses flash programming mode to download the debug monitor and the user application. During debugging the processor is NOT in flash programming mode. So E8a has to have control of it. The FDT error usually means R8C is not in flash programming mode.
↧
↧
Forum Post: RE: RX630 dataflash erased after debugger is used
No way. Why do you always switch between debugger and RFP programmed device? Usually I would expect you use only debugger connection during development.
↧
Forum Post: RE: RL78/G13 STOP MODE
The function has 2 underscores... . You may have to include builtin.h in your source.
↧
Forum Post: RE: RL78/G13 INTERNAL RTC RESET ON POWER OFF
Frank , can you please share me snooze sample code.
↧