Hi Warren, thanks for your reply. Hope to hearing from you soon. Regards, Christoph
↧
Forum Post: RE: USB Boot Monitor
↧
Forum Post: RE: GDB action 'read memory', has failed with error code, 0xffffffff
Hi, It sounds like there is no suitable driver for the USB CDC ACM and it is not enumerating. Try changing the USB ports round the cables are plugged into. A signed Windows CDC driver and instruction how to install it are available at the link below. Please try this. www.renesas.com/.../usb-cdc-drivers.html Regards, Ian.
↧
↧
Forum Post: RE: USB Boot Monitor
Hi cbismark, Can you use NVIC_SystemReset(); to achieve what you need? Regards, Ian.
↧
File: S7G2_DK_ADC.zip
By default, the ADC configuration will show an error if you try and set the ADC scan mode to continuous and enable the scan end interrupt (set a callback) However, this is a valid mode of operation (refer to section 47.3.3 Continuous Scan Mode of the Hardware User's Manual) This project allows for this mode to be used. The ADC configuration sets the scan mode to single scan, but the thread function overwrites this to continuous This way, the callback can be used to indicate that a complete scan has occurred and that the ADC registers can be read. The thread while(1) loop that reads the ADC results is suspended waiting on a semaphore that is set in the callback. The ADC results are stored in an array.
↧
Forum Post: RE: Reference code of ADC
Sonu, Your code is almost correct. Please have a look at the project on the media gallery (S7G2_DK_ADC.zip) that will show a modified version. As you want to use continuous scan mode, you only need to call the API g_adc.p_api->scanStart(g_adc.p_ctrl); once. So call it before the while(1) loop of the thread. Once the ADC is running, the 5 channels are continuously converted and the data will be continuously generated. This example uses the scan end interrupt to notify that a scan has finished. Note, that by default, the ADC configuration will show an error if you try and set the ADC scan mode to continuous and enable the scan end interrupt (set a callback) However, this is a valid mode of operation (refer to section 47.3.3 Continuous Scan Mode of the Hardware User's Manual) This project allows for this mode to be used. The ADC configuration sets the scan mode to single scan, but the thread function overwrites this to continuous This way, the callback can be used to indicate that a complete scan has occurred and that the ADC registers can be read. The thread while(1) loop that reads the ADC results is suspended waiting on a semaphore that is set in the callback. The ADC results are stored in an array. There is a better way of reading the ADC results and that is to use the DTC or DMAC transfer. This example uses the CPU in a thread to read the ADC results. If the thread is suspended by another thread then it could result in you missing a ADC result. This may not be important, but if it is, then reading the results via hardware (via DTC or DMAC) may be better. I will upload my example showing how this can be done later. I hope this helps Richard
↧
↧
Forum Post: Android Open Accessory example availability?
Hi, from where I find example of AOA (Android Open Accessory) protocol implementation for Synergy? The protocol requires the Synergy device to operate in USB host mode. This is supported by USBx component. So the AOA implementation should be feasible with Synergy. BR, Mikhail
↧
Forum Post: RE: USB Boot Monitor
Hi Ian, the problem is, the reset needs to be generated from the PC, which is connected through USB to the S7G2. Thats why I hoped, the boot monitor had a command to reset the chip. I can not call NVIC_SystemReset(), when there is no software currently running on the µC (directly after flashing has finished). Regards, Christoph
↧
Forum Post: RE: Android Open Accessory example availability?
Hi Mikhail- Here is an expansion board and software for AOA: translate.google.com/translate Japanese web site so use Google Translate to see if this expansion board and software example would help. Warren
↧
Forum Post: RE: MODULATION NEAR 0%-100% DUTY IN TRIANGLE WAVE COMPLEMENTARY PWM WITH AUTOMATIC DEAD TIME
Hi drivetech- I'm looking to see how this could be supported. Can you point to the feature/configuration used in the SH7044 (Hardware User manual reference perhaps) so I can try and find the same one for Synergy? Warren
↧
↧
Forum Post: RE: USB Boot Monitor
Hi Christoph- I believe the Emulators shown on the above Flash Programmer page can reset the MCU. Would that work for you? I don't see a way to do this just from RFP. Warren
↧
Forum Post: RE: Continuous Mode For ADC Data
Hi Sonu- If you want to continuously scan 5 channels, just configure them as Richard describes above. You will also configure the trigger to start the scan. A callback is generated when the GroupA can is complete for the 5 channels. I believe this is the scan complete interrupt, but you should check the Module Guide and/or the SSP User's Manual to be sure. You might also consider using the DTC and/or ELC if you want to just add scans to a buffer and then process them when the bufferis getting full. Just depends on your application. Let us know if the above description helps. Please spend some time looking at the Module Guide and SSP User's Manual if you need more details. That might save you some time (since posting a question and waiting for an answer can take some time... Warren
↧
Forum Post: Forcing External SDRAM Bus Signal Low
Hello, I'm working with an R7FS7G27H3A01CFC processor and using SSP 1.5.0-rc.1 as well as ThreadX and need to force my SDRAM into power down mode to save on current (the part uses 20mA when active doing nothing and 2mA when powered down). The way in which this is done per the SDRAM datasheet is to pull the CKE signal low. How can I accomplish this? Are there any API functions for this? Do I have to disable the bus and treat it as a GPIO or is there another way. My power savings method is to go deep standby mode so on wake the MCU will simply do a reset and re-initialize everything.
↧
Forum Post: RE: Forcing External SDRAM Bus Signal Low
Hi Jim- It looks like there is a way to keep CKE low in Deep Software Standby with a configuration bit. See the section Self-refresh in Deep Software Standby mode in the S7G2 User's Manual. www.renesas.com/.../keyword-search.html (Page 331). ++++ To cancel self-refresh mode: 1. Set DPSBYCR.IOKEEP to 1 to keep the CKE signal output low in Deep Software Standby mode. ++++ Would that do it? Warren
↧
↧
Forum Post: RE: GDB action 'read memory', has failed with error code, 0xffffffff
Hi Ian , yet to give this a try , will try out what you suggested asap. Thanks
↧
Forum Post: RE: USB Boot Monitor
Hi Warren, the goal is, that an end user with our device, which houses a S7G2, can update the firmware through usb and then doesn't have to do a power cycle. It's about comfortability really. I suppose a bootloader can call NVIC_SystemReset(), after the flash has been updated? If that's the case, we'll probably just tell the customers to update via USB-Stick. Or maybe the bootloader can even detect, when USB-flash writing has been finished and reboot then? Regards, Christoph
↧
Forum Post: RE: MODULATION NEAR 0%-100% DUTY IN TRIANGLE WAVE COMPLEMENTARY PWM WITH AUTOMATIC DEAD TIME
Thanks Warren! In the SH7044 the complementary PWM mode is described in the hardware manual in chapter 12.4.9 at page 343. It is made by working toghether channels 3 and 4 with the TCNTS counter and in register TDDR you can put an automatic dead time. The Synergy GPT timers automatic dead time works in a different way, the compare register GTCCRB is automatically set to GTCCRA-GTTVD or GTCCRA-GTTVU theoretically it could work but seems to be an hardware block to avoid the dead time modulation at the end of the duty. this causes a loss of the output voltage which in my case is 6.4% from the SH7044
↧
Forum Post: RE: USB Boot Monitor
Hi Christoph, If USB boot mode is being entered then there must be some control of the MD pin and reset to achieve this. When the device is restarted the MD pin must be changed otherwise boot mode will be entered again. Is it not possible to trigger the reset after the reprogramming the same way it is being triggered to enter boot mode? Maybe a more custom solution is required in this instance such as you have said updating from a USB stick. Regards, Ian.
↧
↧
Forum Post: RE: Android Open Accessory example availability?
Hi Warren, Thanks for the input. However this is not exactly what I am looking for. The solution referenced by you uses separate bridge chip from FTDI to implement AOA. I am looking for AOA implementation by means of USBX host protocol stack which is a part of SSP and does not require additional chip. So I will try to do it from scratch. BR, MIkhail
↧
Forum Post: RE: Unable to set GPIO Port0 001 pin(P001) to high and low in TB S1JA
What is the PFS.PSEL setting? Have you got this set a peripheral pin? P001 can be SPI, RTC or CTSU pin. If so, setting the pin high or low will have no effect.
↧
Forum Post: RE: Unable to set GPIO Port0 001 pin(P001) to high and low in TB S1JA
If you see the configuration image you can find that P001 is configured as a GPIO.
↧