cancel
Showing results for 
Search instead for 
Did you mean: 

About X-CUBE-IRREMOTE

Lanceh
Associate II

Hi I am getting nowhere trying to use the X Cube IRRemote package, please help.

Should I expect the projects in en.x-cube-irremote\Projects\STM32G081B_EVAL to be imported into Cube IDE and run as a working example of the IR Remote functionality?

The readme file says:- "This example has been tested with STMicroelectronics STM32G081B-EVAL
boards and can be easily tailored to any other supported device
and development board."

Which makes me think it should just run.

If not can I please have some detailed description of how to make it work?

I have managed to get the point of one error in after building the project: unknown type name 'RC5_Frame_TypeDef' main.c  Any instructions gratefully accepted.

When I read the readme file it says:

@par Directory contents

- TIM-Infrared/Src/main.c Main program
- TIM-Infrared/Src/menu.c Menu navigation implementation
- TIM-Infrared/Common_IR/Src/ir_common.c Functions shared for both IR protocols.
- TIM-Infrared/Common_IR/Src/rc5_decode.c RC5 receiver implementation
- TIM-Infrared/Common_IR/Src/sirc_decode.c SIRC receiver implementation
- TIM-Infrared/Common_IR/Src/rc5_encode.c RC5 transmitter implementation
- TIM-Infrared/Common_IR/Src/sirc_encode.c SIRC transmitter implementation
- TIM-Infrared/Src/system_stm32g0xx.c STM32G0xx system clock configuration file
- TIM-Infrared/Src/stm32g0xx_it.c Interrupt handlers
- TIM-Infrared/Src/stm32g0xx_hal_msp.c HAL MSP module
- TIM-Infrared/Inc/main.h Main program header file
- TIM-Infrared/Inc/menu.h Menu navigation header file
- TIM-Infrared/Inc/stm32g0xx_hal_conf.h HAL Configuration file
- TIM-Infrared/Inc/stm32g0xx_it.h Interrupt handlers header file
- TIM-Infrared/Common_IR/Inc/ir_common.h Shared definitions
- TIM-Infrared/Common_IR/Inc/rc5_decode.h RC5 receiver header file
- TIM-Infrared/Common_IR/Inc/sirc_decode.h SIRC receiver header file
- TIM-Infrared/Common_IR/Inc/rc5_encode.h RC5 transmitter header file
- TIM-Infrared/Common_IR/Inc/sirc_encode.h SIRC transmitter header file

I can't find that file structure.

Thanks in adavnce, Lance.

1 REPLY 1
Lanceh
Associate II

Hi All, with some help I finally got the project to build. One of the problems was a number of functions like RC5_Init() were defined as static. This meant they could not be called from main.c as directed in the app note. ( I have found 3 app notes so far: AN3174, AN4834 and dm00271524, which is different version of AN4834, but is the same Rev 2. ). Is there a reason for this and should I have done something else instead of removing the word static?

So the project builds, but I can’t test it as I don’t have the correct Dev board. My plan is to use the receive section on STM32H7B3I-DK as it has TIM12 available which looks to be compatible with TIM3 to me and has available ports on the Arduino connector. I’ll have to remove all the LCD code and change TIM.

I would like to use the Transmit section on NUCLEO-L412RB-P. AN4834 indicated this should work, but x-cube-irremote has no examples. I think should not be too hard to do this.

So given I’m new to STM’s is the above doable?

Any hints?