Quantcast
Channel:
Viewing all 59170 articles
Browse latest View live

Forum Post: RE: free() function in C programming

$
0
0
Try to avoid malloc/calloc/free because these functions can lead to memory fragmentation. However, the malloc/calloc call already remembers also a tiny bit of metadata such as memory size which is also freed by free.

Forum Post: RE: free() function in C programming

Forum Post: RE: \DebugComp\renesas_cc_converter.exe removed from E2studio 6.2.0: is there a replacement?

$
0
0
Hi PB, 6.2 does have the renesas_cc_converter.exe within it. It is not part of the CCRX or CCRL toolchain installation. To get it create a CCRX 6.2 project and ensure you can build that. After this you should then be able to see it. The executable is extracted at run-time not install time to reduce the footprint for all device support on your machine. Hope this helps. Mark.

Forum Post: link errors

$
0
0
Hi, Just as background, This is an integration project. The project I got is a makefile project and we use HEW as debugger only. Also Refering to this post: https://renesasrulz.com/hew/f/hew-forum/3032/linker-errors-in-_flshbuf-and-malloc I get these errors after adding some c++ files to the project. ** L2310 (E) Undefined external symbol "_abort" referenced in "error" ** L2310 (E) Undefined external symbol "_sbrk" referenced in "malloc" These are stdlib symbols which I don't use to my best knowledge, furthermore I don't use stdio function which could call these, like printf etc... so I don't know how to solve this issue. Does someone have an idee?

Forum Post: RE: How to generate fixed number of pulses using GPT

Forum Post: RE: Linker error with stdlib and GNURX

$
0
0
Hi Alexis, Any updates? Are you still experiencing this problem? JB RenesasRulz Forum Moderator https://renesasrulz.com/ https://academy.renesas.com/ https://en-us.knowledgebase.renesas.com/

Forum Post: AES key installation

$
0
0
Hello! Could you give an example of using "key installation framework module" for AES keys?

Forum Post: RZ/A1 video pipeline

$
0
0
Hello, We have a project utilizing RZ/A1H. Unitl now we used the digital video input from channel 0 to the RGB video output - again channel 0. Now we meet some difficulties processing the video from DV0 (BT656) to LCD1 (16-bit RGB). I would be very glad if I can get an answer for two questions: Is there some reason, that the processor does not allow using video input channel 0 to video output channel 1? If there aren't any - wchich are the most common steps reconfiguring the video pipeline from output 0 to output 1 which we could miss? Also is there any sample project mixing them? Best Regards, Ivaylo

Forum Post: RE: AES key installation

$
0
0
Hi Alex, The Key installation API uses an externally generated Installation keys which are available from Renesas. (please contact your Renesas sales or marketing person) The procedure requires that you encrypt your plain text AES user key with the secrete unencrypted installation key. This step is normally done externally to your MCU. You then send the encrypted AES user key and the encrypted installation key to the MCU. You can then use the Install API to 'Install' the key. The API actually returns the wrapped AES user key which you can program in internal flash for later use. -Gary

Forum Post: RE: link errors

$
0
0
Hello Ronen, Sorry did not see the device. When you use malloc it depends on a function to manage heap. If you are using standard project generator, this is usually in sbrk.c Similar with Abort. When you use standard PG it will put abort inthe main file, but only "uncomment it" if cplusplus is defined. Look for it in main C file of you project. Good luck! -Kevin

Forum Post: RE: Programming the flash in SH72531

$
0
0
FrankL is correct , FDT and maybe e8a is the best way. If your HW is designed correctly, you could also use FDT and Boot mode (a standard serial connection). Finally, if you are just testing prototypes, the E10A-USB, did allow it to "program" without using for debug. Easiest way to find out if this is the case for your device when creating a debug session, if it allows you to select "Writing FLASH memory" (see dialog on page 68 of E10A-USB manual for SH) during the configuration, you can just FLASH the device with a HEW session. Was NOT RECOMMENDED for production programming. Good luck! -Kevin

Forum Post: RE: How to generate fixed number of pulses using GPT

$
0
0
gnk, You can do it with two timers: The first timer (0) runs in PWM mode, and continuously generates the pulses you want. Set up the second timer (1) as a one-shot for the time of the complete pulse train, say 100 pulses. The idea is to use the overflow event of timer 1 at the end of the one-shot period to stop timer 0 by hardware. // Route GPT1 overflow event via ELC's GPT(E) channel g_elc.p_api->linkSet(ELC_PERIPHERAL_GPT_E, ELC_EVENT_GPT1_COUNTER_OVERFLOW); // Open the timers (GPT0: pulses, GPT1: one-shot for duration of pulse train g_timer0.p_api->open(g_timer0.p_ctrl, g_timer0.p_cfg); g_timer1.p_api->open(g_timer1.p_ctrl, g_timer1.p_cfg); // Direct peripheral register access: // GPT event E (GPT1 overflow) stops GPT0 R_GPTA0_Type *p_gpt0_regs = (R_GPTA0_Type *)((gpt_instance_ctrl_t *)g_timer0.p_ctrl)->p_reg; p_gpt0_regs->GTPSR = (1u start(g_timer0.p_ctrl); g_timer1.p_api->start(g_timer1.p_ctrl); Rolf

Forum Post: RE: \DebugComp\renesas_cc_converter.exe removed from E2studio 6.2.0: is there a replacement?

$
0
0
Hi Mark, by toolchain-dependent, I've meant that it will render to a different final path for the utility itself depending on the toolchain to be used. At first it was not clear to me which toolchain was actually involved so I extrapolated to the common possibilities, given the current design (which may eventually become altered once again). Also, if you have the two or more Renesas' toolchains in use (CC-R?), it will end up with two or more copies in both paths \ \Utilities\ \renesas_cc_converter.exe. For now, the source of these copies can be found in com.renesas.ide.supportfiles.common.build.win32.x86_1.0.0.v20170601-1000.jar if you cannot find it anywhere else. Best regards.

Forum Post: AMS ENS210 sensor on SK-S7G2

$
0
0
Hello suport! I have this sensor: http://ams.com/eng/Support/Demoboards/Environmental-Sensors/Relative-Humidity-and-Temperature-Sensors/ENS210-Eval-Kit It comes with a USB dongle to interface from I2C to USB. The SK-S7G2 has both I2C and USB ports. Can this sensor be interfaced to the board via USB? or does the USB connection only work when plugged to a computer? 1) if it can be interfaced via USB to the S7G2 board, would the protocol still be I2C or does it need to be configured serial/USB? Any references I can use to set up the port configuration and display the readings on my touchgfx GUI? 2) if I interface using the I2C pins (SCL/SDA) what kind of cable can I use to go from the sensor to the ports of the S7G2? I noticed that regular female jumper wires don't quite fit the pins on the sensor. Thank you.

Forum Post: RE: AMS ENS210 sensor on SK-S7G2

$
0
0
Hi Zfeng, The choice is really up to you. You can connect directly to the SK S7 J6 and configure the S7 as a USB Host and select the CDC class driver. You can also disconnect the sensor board from the USB dongle and just connect the I2C SDA, SCL, Vcc and GND to the pins on the SK. This is most probably the way you will be using it in an embedded system. You have a choice of which pins to use - check the schematic of the SK board and pick port you want to connect to. Configure the pins as n-channel open drain and either the SCI_I2C or RIIC interface. Please refer to the module guides for further information. There is also a IoT fast prototyping kit S5D9 available from Seed Studio which has an ENS210, a MS5637 barometric pressure sensor and a Bosch BMC150 6-axis sensor already interfaced to the MCU. This is an inexpensive board that may be easier for you to experiment with as everything is already interfaced to the processor. wiki.seeedstudio.com/.../ -Gary

Forum Post: RE: CAN bit rate on TB-S3A6

$
0
0
Hi MPGA, Please wait until Synergy experts respond to your post. Thank you for understanding. JB RenesasRulz Forum Moderator https://renesasrulz.com/ https://academy.renesas.com/ https://en-us.knowledgebase.renesas.com/

Forum Post: RE: Global Pen Down Event in GUIX

$
0
0
Hi Tim, Please wait until Synergy experts respond to your post. Thank you for understanding. JB RenesasRulz Forum Moderator https://renesasrulz.com/ https://academy.renesas.com/ https://en-us.knowledgebase.renesas.com/

Forum Post: RE: \DebugComp\renesas_cc_converter.exe removed from E2studio 6.2.0: is there a replacement?

$
0
0
Hi Mark, Yeah, i created a project in the 6.2 Studio and bingo the converter.exe is now in the Utils. Thank you all for your help :) cheers, PB

Forum Post: RE: RL78/D1A stepper motor zero point setection

$
0
0
Hi, Unfortunately, No. Is there any sample code about it?

Forum Post: SH72533 program with FDT

$
0
0
Hi I try connect MCU SH72533 with FDT I problem same picture ID CHECK I don't know where to get ID code Please help thank
Viewing all 59170 articles
Browse latest View live