I cannot enter interrupt. Please provide an interrupt sample program for Renesas RH850-F1KM-S1 ?
I cannot enter interrupt. Please provide an interrupt sample program for Renesas RH850-F1KM-S1 ?
Read lessSign Up to our social questions and Answers Engine to ask questions, answer people's questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people's questions & connect with other people.
Volt.Tech
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
You must login to ask question.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
A microcontroller is a compact integrated circuit designed to govern a specific operation in an embedded system. A typical microcontroller includes a processor, memory and input/output (I/O) peripherals on a single chip. Microcontrollers are designed for embedded applications, in contrast to the microprocessors used in personal computers or other general purpose applications consisting of various discrete chips. The general microcontroller consists of the processor, the memory (RAM, ROM, EPROM), Serial ports, peripherals (timers, counters), etc. You may find your solutions or share your thought about to microcontroller by using our Volt.Tech support forums that are supported by thousands of contributing Volt.Tech experts.
I cannot enter interrupt. Please provide an interrupt sample program for Renesas RH850-F1KM-S1 ?
I cannot enter interrupt. Please provide an interrupt sample program for Renesas RH850-F1KM-S1 ?
Read lessI use Renesas R7F7015813AFP-C.RLIN3 work in UART mode, “For performing half-duplex communication , the LIN/UART interface(in UART mode) have the support transmission start wait function”(19.8.1.7 in datasheet), does UART work in half-duplex? Does it support full-duplex?
I use Renesas R7F7015813AFP-C.RLIN3 work in UART mode, “For performing half-duplex communication , the LIN/UART interface(in UART mode) have the support transmission start wait function”(19.8.1.7 in datasheet), does UART work in half-duplex? Does it support full-duplex?
Read lessRenesas RH850, UART, DMA, 1.5Mbps, TX&RX are used together. The receiver will not work after receiving several frames of data. It must be re-initialized, but it will stop working soon, but TX or RX can be used alone.
Renesas RH850, UART, DMA, 1.5Mbps, TX&RX are used together. The receiver will not work after receiving several frames of data. It must be re-initialized, but it will stop working soon, but TX or RX can be used alone.
Read lessI guess you still need to include more details in order to fix your issue. However, I suggest you submit a ticket to Renesas Technical Support regarding your issue as information regarding automotive devices is not really shared in public. Also, please use your company email when submitting ticketsRead more
I guess you still need to include more details in order to fix your issue. However, I suggest you submit a ticket to Renesas Technical Support regarding your issue as information regarding automotive devices is not really shared in public. Also, please use your company email when submitting tickets to Renesas Technical Support.
See lessIn 37.3.10 FCR : Flash Control Register, the CMDs for erasing the sector/block states: “Set the start address of the target erasure block in the FSARH and FSARL registers, and set the end address of the target erasure block in ...Read more
In 37.3.10 FCR : Flash Control Register, the CMDs for erasing the sector/block states: “Set the start address of the target erasure block in the FSARH and FSARL registers, and set the end address of the target erasure block in the FEARH and FEARL registers.” The “end address of the target erasure block” means 1) “address of the last block to erase”: end_address = block_number * 0x800 // means start address of block_127 == 0x3F800 2) “last address of the last erasure block”: end_address = (block_number+1) * 0x800 – 1 // means end/last address of block_127 == 0x3FFFF.
Read lessThe register should be set to the last address of the last erasure block.
I generated code with CS+ and Smart Configurator and I want to use OSTM to generate 1mS period interrupt, but I found it does not work and the code show param “enable=false” in the #program line . Could you please ...Read more
I generated code with CS+ and Smart Configurator and I want to use OSTM to generate 1mS period interrupt, but I found it does not work and the code show param “enable=false” in the #program line . Could you please tell me how to enable interrupt in Smart Configurator or how to fix it?
Read lessThe hardware U/M contains the information required to access I/O and peripherals among other things. RH850/F1KM, RH850/F1KH User's Manual: Hardware (R01UH0684EJ0110) Sample code is available to demonstrate many of the concepts. Y-ASK-RH850F1KM-S4-V3 Software Package.
The hardware U/M contains the information required to access I/O and peripherals among other things. RH850/F1KM, RH850/F1KH User’s Manual: Hardware (R01UH0684EJ0110) Sample code is available to demonstrate many of the concepts. Y-ASK-RH850F1KM-S4-V3 Software Package.
See lessThere is an issue in the startup code for the Renesas RA6M4. The sub clock was configured as populated on the EK-RA6M4, but it would not work. When I stepped through the startup code, I found out why: in bsp_clocks.c: ...Read more
There is an issue in the startup code for the Renesas RA6M4. The sub clock was configured as populated on the EK-RA6M4, but it would not work. When I stepped through the startup code, I found out why: in bsp_clocks.c: #if BSP_CLOCK_CFG_SUBCLOCK_POPULATED /* If the board has a subclock, set the subclock drive and start the subclock if the subclock is stopped. If the * subclock is running, the subclock drive is assumed to be set appropriately. */ if (R_SYSTEM->SOSCCR) <- This line prevents configuring the SOMCR because SOSCCR is 0 at reset /* Configure the subclock drive if the subclock is not already running. */ R_SYSTEM->SOMCR = ((BSP_CLOCK_CFG_SUBCLOCK_DRIVE << BSP_FEATURE_CGC_SODRV_SHIFT) & BSP_FEATURE_CGC_SODRV_MASK); R_SYSTEM->SOSCCR = 0U; #if (BSP_CLOCKS_SOURCE_CLOCK_SUBCLOCK == BSP_CFG_CLOCK_SOURCE) || (BSP_PRV_HOCO_USE_FLL) /* If the subclock is the system clock source OR if FLL is used, wait for stabilization. */ R_BSP_SoftwareDelay(BSP_CLOCK_CFG_SUBCLOCK_STABILIZATION_MS, BSP_DELAY_UNITS_MILLISECONDS). Once I commented the if statement, the sub clock was configured properly and started oscillating. Perhaps it was intended that at some point the sub clock should be disabled (set to 1) prior to configuring it, but I don’t see where anything disables it unless the option is left as “not populated”.
Read lessYou could disable the sub-oscillator in the user code :- /* Call pre clock initialization hook. */ R_BSP_WarmStart(BSP_WARM_START_RESET); is called before /* Configure system clocks. */ bsp_clock_init(); in the SystemInit() function, in the file system.c. The function R_BSP_WarmStart() is created inRead more
You could disable the sub-oscillator in the user code :-
/* Call pre clock initialization hook. */
R_BSP_WarmStart(BSP_WARM_START_RESET);
is called before
/* Configure system clocks. */
bsp_clock_init();
in the SystemInit() function, in the file system.c.
The function R_BSP_WarmStart() is created in the file src\hal_entry.c, so you could add the code to stop the sub oscillator there :-
void R_BSP_WarmStart(bsp_warm_start_event_t event)
{
if (BSP_WARM_START_RESET == event)
{
uint16_t prcr = R_SYSTEM->PRCR;
R_SYSTEM->PRCR = 0xA501;
R_SYSTEM->SOSCCR = 1; //disable the SOSC
R_SYSTEM->PRCR = (uint16_t)(0xA500 | (prcr & 0x00FF));
}
}
You might not want to stop the sub-oscillator if the device has been running on the VBATT power supply with the RTC running, and VCC is re-applied, as stopping the sub oscillator would also stop the RTC, so you might only want to stop the sub oscillator on a cold boot of the device.
The SOMCR register should only be modified if the sub oscillator is not running (i.e. the SOSTP bit in the SOSCR register is 1), so just commenting out the check:-
if (R_SYSTEM->SOSCCR)
is not reccomended, the sub oscillator should first be stopped, before modifying the SOMCR register.
See lessOn page 89 of the Renesas RA6M5 specification, there is a sentence “The use of pins AN000 to AN010, AN012, AN013 as digital outputs is not allowed when the 12-Bit A/D converter is used.” If pins AN000 to AN010, AN012, AN013 ...Read more
On page 89 of the Renesas RA6M5 specification, there is a sentence “The use of pins AN000 to AN010, AN012, AN013 as digital outputs is not allowed when the 12-Bit A/D converter is used.”
If pins AN000 to AN010, AN012, AN013 are used as digital outputs when using ADC, what will be the impact and result?
Read lessAs this is not allowed, the result is not specified in the data sheet. If the pins were used as inputs while the ADC is being used (with an Analog signal on the inputs), you would have the output of the device fighting with the input. This could cause many issues- from excess noise to possible overRead more
As this is not allowed, the result is not specified in the data sheet.
If the pins were used as inputs while the ADC is being used (with an Analog signal on the inputs), you would have the output of the device fighting with the input. This could cause many issues- from excess noise to possible over heating and even potential wear/damage to the device pins.
See lessI am seeing a strange behaviour on my custom board (R7FA6M3AH + FSP 3.3) since I configured my application to build as a MCU boot image. The application works correctly in standalone but when booted from MCU boot, network was ...Read more
I am seeing a strange behaviour on my custom board (R7FA6M3AH + FSP 3.3) since I configured my application to build as a MCU boot image. The application works correctly in standalone but when booted from MCU boot, network was not working and by investigating I found that the interrupt (EDMAC0_EINT) gets called but executes the Reset_Handler which causes an assert later on in FreeRTOS (vportEnterCritical gets called from an ISR).I have other devices interrupts working fine for the same binary (such as an uart over RCI) and got simpler applications to work with the network on top of MCU boot so I don’t believe it is solely due to MCU boot but after a couple of days of debugging I’m really short on ideas on what could cause the problem.
Read lessIt was caused by too many interrupts declared with a non-aligned vector table. The ARM NVIC requires that the vector table must be offset to an address aligned on 4*N where N is the number of interrupts rounded to the upper power of 2. In my case I have 17 interrupts which gives 17 + 16 (standard exRead more
It was caused by too many interrupts declared with a non-aligned vector table. The ARM NVIC requires that the vector table must be offset to an address aligned on 4*N where N is the number of interrupts rounded to the upper power of 2. In my case I have 17 interrupts which gives 17 + 16 (standard exceptions) = 33 -> 64. Therefore I needed to align on 256 = 0x100. To fix the alignment I changed the header size in MCUBoot bootloader project to 0x100 instead of the default 0x80. Note that the signing command needs to be updated as well as it includes the header size in the options.
I am working on a Renesas MCU porting project and using the EVL Kit R7FA6M3AH3CFB. This kit has on onboard debugger and I am unable to use it from Keil MDK. When I click on the debug option the following ...Read more
I am working on a Renesas MCU porting project and using the EVL Kit R7FA6M3AH3CFB. This kit has on onboard debugger and I am unable to use it from Keil MDK. When I click on the debug option the following error log appears and fails with error Flash Download failed. Target info: Device: R7FA6M3AH VTarget = 3.300V State of Pins: TCK: 0, TDI: 1, TDO: 1, TMS: 1, TRES: 1, TRST: 255 Hardware-Breakpoints: Software-Breakpoints: 8192 Watchpoints: 4 JTAG speed: 2000 kHz No Algorithm found for: 00000000H – 0000208FH No Algorithm found for: 0100A150H – 0100A15FH Erase skipped!
Error: Flash Download failed – “Cortex-M4” Flash Load finished at 13:04:03 Please let me know is there any options to be enabled in Keil IDE uVision 5.36 for this board. How do I proceed on this?
Read lessOn the options for target, utilities tab, select Use External tool for Flash Programming (leave blank, command & argument)
On the options for target, utilities tab, select
Use External tool for Flash Programming (leave blank, command & argument)
See lessWhat is the difference between HW_SCE_AES_256Ecb Encrypt and HW_SCE_AES_256Ecb Encrypt using encrypted key? The functions seem to have exactly the same code.
What is the difference between HW_SCE_AES_256Ecb Encrypt and HW_SCE_AES_256Ecb Encrypt using encrypted key? The functions seem to have exactly the same code.
Read less
I believe there are several interrupts used in this sample code: Y-ASK-RH850F1KM-S1-V3 Sample Code
I believe there are several interrupts used in this sample code:
Y-ASK-RH850F1KM-S1-V3 Sample Code
See less