element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Embedded and Microcontrollers
  • Technologies
  • More
Embedded and Microcontrollers
Blog Renesas Solution Starter Kit for RX23E-A: build and run the Load Cell application
  • Blog
  • Forum
  • Documents
  • Quiz
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Embedded and Microcontrollers to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: Jan Cumps
  • Date Created: 15 Jul 2023 9:57 PM Date Created
  • Views 804 views
  • Likes 10 likes
  • Comments 4 comments
  • RoadTest
  • RX23e-a
  • renesas
  • e2studio
  • loadcell
  • d2a28d6e-11d8-11ee-be56-0242ac120002
Related
Recommended

Renesas Solution Starter Kit for RX23E-A: build and run the Load Cell application

Jan Cumps
Jan Cumps
15 Jul 2023

The load cell appnote for Road test: Renesas Solution Starter Kit for RX23E-A comes with example firmware. In combination with the stater kit PC Tool, you get a balance display. The firmware source is available as an e² studio project, but there's no ready-to-load binary. In this post I show how to build it. If you're not into source code: I'll attach the binary in a format that can be loaded on the board with Renesas' Flash Programmer.
image

What do you need:

  • The software from  Renesas Solution Starter Kit for RX23E-A: get up and running (at least the PC Tool. The rest is optional)
  • e² studio, with support for rx23, and the CCRX toolchain (optional)
  • a load cell (I ordered a 1 KG one) 
  • Flash Programmer software

Load and build the example in e² studio (optional)

Start e² studio, and select Import Sample Project from the Welcome Page. Select Online -> RX. Select the device:
image
Select the Load Cell project and import it
image

Right-click on the imported project, and select Properties. Navigate to C/C++ Build -> Settings -> Toolchain. Select the Renesas CCRX chain.
image
By default, the project builds binaries for a debugger. To load it on to our starter kit with Flash Programmer, we need to generate a .mod file. Switch to the Tool Settings tab, and navigate to Converter -> Output. Select Motorola S format file
image
Apply and Close. Build (your 60 days evaluation time starts ticking now)

Load the firmware to the board

Disconnect your board. Change JP17 from Emulator to USB. Plug your board back in. 

Run Renesas Flash Programmer, and start a new project. Select RX200, give your project a name, and select COM port. Then click on Tool Details and select the COM of your board. Now browse to the .mod file that was generated during the build. You'll find it in the HardwareDebug/ subfolder of your e² studio project. Alternative, download the one I attached to this blog. Press Start and the firmware gets loaded.
image

When done, unplug the board, and move JP17 back to Emulator.

Run  the application

Set the jumpers as indicated in the appnote
image

Install and connect the load cell

I mounted mine under my table, and used a wardrobe handle as hook.

image

Connections

wire purpose RX23E-A pin CN2
black VSS (EXC-) REF0N R0N (2)
red VCC (EXC+) REF0P R0P (3)
white OUT- (Signal Lo) AIN0 AIN0 (4)
green OUT+ (Signal Hi) AIN1 AIN1(5)

Start PC Tool and Connect. You will notice that the 1st 4 tabs are disabled. But the Application tab now works. It shows the weight in a graph.
image
In this example, I weight a bottle opener, and lift it briefly:
image

Restore the original firmware

You can use Flash Programmer to restore the original firmware. Follow the same steps, but take the rx23ea_rssk_fw.mot that comes with the PC Tool. It sits in the same directory as the .exe

Original Renesas toolchain project, but with the binaries precompiled: rx23ea_loadcell_20230716.zip
Project ported to GCC toolchain, also with binaries prebuilt: rx23ea_loadcell_gcc_20230717.zip

follow-up:  Renesas Solution Starter Kit for RX23E-A: investigation into the Load Cell application 

link to all posts

  • Sign in to reply
  • Jan Cumps
    Jan Cumps over 2 years ago

    I attached an updated version of the GCC toolchain port. The linker script is a little simpler, and I corrected an issue when loading the binary with the Flash Programmer.
    All changes are in that linker/loader script. No source code changes.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Jan Cumps
    Jan Cumps over 2 years ago

    I added a port of the project from Renesas' RX-CC to the GCC toolchain. It may come in handy when the trial license has expired.

    All code ported nicely, except a few tricky ones:

    • it used a Renesas toolchain specific NOP instruction. Check src/port/machine.h for the GCC compatible version. No changes to the project files
    • linker file had to be adapted to get DMA buffers correctly aligned. Check src/linker_script.ld. I took memory from the RAM region and created a DMA region, with 2 aligned sections for the serial comms read and write DMA buffers
    • main file adapted because the Renesas and GCC method to place variables in memory sections isn't the same. Check the declaration of the s_send_ary and

      s_recv_ary.

    The e² studio project is attached at the end of the post, and includes the .mot file that can be loaded to the board with Renesas' flash software. No debugger needed.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • scottiebabe
    scottiebabe over 2 years ago

    image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • shabaz
    shabaz over 2 years ago

    Hi Jan,

    Interesting experiment! Vey convenient mounting under the desk too.  It seems there's very little noise on the measurement.

    Here the weather had extremely strong winds today, and a neighbour's tree completely broke, landing on their fence which also then broke. 

    My trees are holding up fine but I don't know for how long : ) 

    After reading your blog, It sounds like a very neat IoT project actually - microcontroller with high-res ADC and a couple of load cells or other strain gauge setup to monitor a tree in real-time during bad weather conditions!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube