Skip navigation
1 2 3 Previous

Embedded

36 Posts authored by: Jan Cumps Top Member
The port of the MBED Timeout works. In this blog you can see the internals of this class and how to set up configuration and handling.       My port is for a Hercules TMS570LC43. I use the HAL utility and api for that controller where possible.   This was the most difficult part. The MBED Timeout inherits from Ticker. And that one inherits from TimerEvent. There's good reasons for this. A Timeout is a Ticker that fires once. A Ticker is TimerEvent that can call a callbac ...
Goal: This post tries to explain what objects are placed where in RAM when using the GCC toolchain. It's intended as self-documentation. When using the LCD, you need large continuous chunks of memory for the frame buffers. Memory is limited on controllers. Continuous large blocks even more so. To be able to reserve these buffers, it's useful to understand where the linker places code, data, stacks and housekeeping blocks. Knowing their position and size - and knowing if you can move things w ...
I'm evaluating the Renesas RX65N MCU EV Kit. In this post,  I make the emWin libraries work with the GCC toolchain   Renesas CC-RX Dependencies  The emWin that's available for the Renesas RX family can be built with the GCC Toolchain, but there are changes needed a CC-RX construct is used to call the NOP() machine instruction. a compile time definition needs to be set. a different emWin library needs to be linked in. take care that code and data are not overlapping the f ...
I'm evaluating the Renesas RX65N MCU EV Kit. In this post,  a mechanism to reserve memory for the LCD module frame buffer with the GCC toolchain   LCD Frame Buffer The Renesas library for LCD, r_glcdc_rx, supports two frame buffers. These are memory areas where you can draw your graphics, then activate the refresh of the LCD from that buffer. There's no specific requirement from the library where the buffers should reside in RAM. You just need to know what address it's located. An ...
Preface: It seems that it's not possible to use the debug USB port as debugger and serial port at the same time.   I'm evaluating the Renesas RX65N MCU EV Kit. In this post: Serial communication - UART - SCI.   The RX family has 12 serial peripherals. Luxury. And the RX65N supports all of them.   * CH#  110 111 113 130 210 230 231 23T 24T 24U 63N 631 64M 71M 65N * ---  --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- * CH0     ...
I'm evaluating the Renesas RX65N MCU EV Kit. In this post: A Direct Memory Access example. source: application  note R01AN2063EJ0220 DMAC Module Using Firmware Integration Technology     The Example - DMA and ADC  The Renesas DMA example is something you can use in the real world: One of the ADC pins is sampled 32 times and the data is put into RAM by the DMA controller, without loading the microcontroller. When all data is available and transferred, the firmware logs ...
I'm evaluating the Renesas RX65N MCU EV Kit. In this post: A Blinky, with the FreeRTOS managing the clock.   Create the Project  As usual, use Blog #1 to create the project. The only extra action is to select FreeRTOS while going through the project creation steps: First, let's add an RTOS task that will blink the LED. In the Smart Configurator, select the correct board, then go to Components. Select FreeRTOS_Object, and in the Task tab, push the   button. Enter In a ...
I'm evaluating the Renesas RX65N MCU EV Kit. In this post,  I'm reviewing the SHA options. source: Renesas SHA package documentation   SHA Hardware Accelerated vs Software  The RX family has models that come with a hardware accelerator for encryption. These devices will offload many of the manipulations of the data encryption and decryption source: e14 road test home page   In particular when you're using the device in secure communication (e.g. with AWS) this modu ...
I'm evaluating the Renesas RX65N MCU EV Kit. In this post,  I'm reviewing the Digital Analog Converter   Adapt the Envision Kit  The RX65N has two DAC channels. On the controller, they are PO3 and P05.   source: Renesas datasheet   These pins are both in use in the Envision kit. P03 is joystick pin 5, P05 is used for SW2, the user button. These aren't broken out to any of the connectors, so some modification is needed. The easiest is to tap DA1 off from the j ...
When you're developing for a microcontroller or IC, it's handy to have the documentation available at your fingertips. Many manufacturers give strange names to these documents. The Renesas RX65N that I'm currently working with has a datasheet called r01ds0276ej0230-rx651.pdf, the manual for the evaluation board r01uh0761eg0100-rx65n.pdf. Even if you have a good directory structure, it remains difficult to find them back. You open 3 wrong files before you have the right one. Eclipse to the res ...
I'm evaluating the Renesas RX65N MCU EV Kit. In this post,  I'm reviewing the Software Standby power save mode     Software Standby Mode  This is a lower consumption mode than the Sleep mode in post 4a. I'm doing the blogs a little out of order. There's a mode between Sleep and this mode. I learned that while writing the article.   source: Renesas datasheet   Measuring µA currents is a sensitive exercise. It should be done in a protected, stable env ...
Read more
I'm evaluating the Renesas RX65N MCU EV Kit. In this post,  I'll port the LCD driver example from the Renesas proprietary CC-RX       Renesas offers a GCC toolchain that can build firware for the RX65 family. I have been using it for most of my developments and it works . The toolchain is nicely integrated in the e2 Studio IDE. The full cycle from project creation to debug is supported. Let's see how you can port a project from CC-RX to GCC: the QE for Display [RX] Samp ...
I'm evaluating the Renesas RX65N MCU EV Kit. In this post: Expand the Blinky example with a timer and interrupt. This time it's a real blinky. The code to poll the user button is removed and the led is controlled by one of the onboard timers.     Modify the Project  In the configurator, navigate to the Components tab, select the Config_PORT module and uncheck PORT0. We don't use the switch anymore. That's why we can remove our claim to that port and pin.   Then add t ...
I'm evaluating the Renesas RX65N MCU EV Kit. In this post: A Blinky, with the GCC toolchain. It's not a real blinky - it's a switchy. The User LED is on when the User Button is pressed. A Morse code trainer .     Create the Project  In the previous post, I used the Renesas CCRX toolchain to create a project in e2 Studio. Many things are similar when using the GCC tools. This post expects that you did the activities in the previous blog (e.g.: that you downloaded the evaluat ...

Filter Blog

By date: By tag: