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
RoadTests & Reviews
  • Products
  • More
RoadTests & Reviews
Blog Renesas Envision Kit RX65N Roadtest Part Four C - Segger emWin Introduction
  • Blog
  • RoadTest Forum
  • Documents
  • RoadTests
  • Reviews
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join RoadTests & Reviews to participate - click to join for free!
  • Share
  • More
  • Cancel
  • Author Author: Andrew J
  • Date Created: 5 Dec 2019 1:15 PM Date Created
  • Views 581 views
  • Likes 5 likes
  • Comments 1 comment
Related
Recommended
  • rpbrx65n
  • envision kit
  • renesas

Renesas Envision Kit RX65N Roadtest Part Four C - Segger emWin Introduction

Andrew J
Andrew J
5 Dec 2019

EDITED 10/12/19: Resolved issue with the base build.  See below.

 

This is just a brief note on getting started with the Segger emWin gui development tool which is available free to all Envision kit users.  It is necessary to register with Segger as part of the download process but it’s simple enough.

 

The download, once unzipped, consists of 4 directories:

image

 

  • Doc: contains the emWin API documentation
  • emWin_RX65N: contains an e2Studio project which is a duplicate of the original firmware demo projects that come pre-loaded with the board
  • emWin_Simulation: contains a simulator to run on a PC, with a variety of sample projects
  • Tool: contains tools to use with emWin, such as a bitmap and font convertor and gui builder

 

I imported the e2Studio project, emWin_RX65N, to build and load it onto the board as a simple exercise.  Of course, the toolchain needs to be updated as the project is set to an older version, but it would appear that the choice of device isn’t quite correct either which is strange as the Envision Board doesn’t come with the 175-pin package of the MCU:

image

We’ll see if it works before changing it!  It certainly compiles (although there are problems reported because of the board/device), but the debugger won’t launch - it’s looking for a file called SlideDemo\RX65N_EnvisionKit.x to launch which doesn’t exist:

image

 

That’s because the wrong debug configuration is selected by default, it should be “RX65N_EnvisionKit HardwareDebug”:

image

 

Anyway, once those are resolved, it loads and runs and the familiar demo programs appear, albeit V1.1 - so an upgrade!

image

Clearly in this case, the choice of device doesn’t matter, although I did correct it, rebuilt and tested it.

 

I wanted to create a base emWin project that has the basic configuration for the LCD and touch.  This proved not too complex to get to 95% there - I couldn’t find any documentation to say how, but I figured out from the sample above what was needed.  That last 5% has proven impossible to resolve so far.  I did find another sample from RenesasRulz that someone had created (a minimum build) and for the life of me I can’t see what the difference with my project is; they look identical, but clearly not.  My project will do the same but has a few rows of coloured pixels as well!  If I copy that project’s emWin files and configuration to my project, it completely bombs out with a fatal error; if I copy my emWin files and configuration to the other project, it works with a few rows of coloured pixels.  Project settings are the same; FIT module configurations are the same; there’s just some underlying something, somewhere that is different that I can’t find.  After two days of scratching around, I’ve given up and will use the sample that works as a base.  With the way the screen works with my project my suspicion falls on on a file called LCDConf which has the initialisation code in it, but I can’t work out why copying the other project’s files causes such a fatal error yet works fine with that project.  The LCDConf file I have came from the Demo Sample that works so my suspicion is itself a bit suspect!!

 

I’m really frustrated with the complexity of developing for this board.  There are some good tools/helpers available but here’s not a lot of basic documentation and samples to work from, and those that do exist need work to get going.  I can figure that out without much issue but the underlying point here is that nowhere I can find is it explained clearly what needs to be done.  I’m definitely not an idiot: if I can figure out what FIT modules are needed and how they should be configured it’s clear I have some brains!  However, with software development it’s the little things that kill you and that’s where you have to fall back on the documentation and clear, working examples to help.  The two days spent trying to get this working was a result of this and basically having to use my experience to try different things to fix it (not wanting to give up on it!)

 

I’ve asked on the Renesas Forum but that’s proving to be a less than useful resource than I thought it would be.  It’s easier to use Google to search the Forum than its own search engine and it doesn’t appear to be as active as I hoped.  If I do find a resolution, I’ll update this post.

 

EDIT 10/12/19: I was pointed at the Section table in the Linker by the original author of the project that I ended up using as a minimum build.  This revealed what the problem was: the User Stack was set incorrectly and causing the issue.  Setting this properly resolved things.

 

With emWin, it’s clear that the LCDConf, GUIConf and PIDConf files are important and need to be changed to match the device but how?  If anyone with experience of working with the Envision board and emWin can help out, please get in touch.

 

In order to continue and not get bogged down I’ve given up on that and re-purposed the working basic project as a baseline from which to start all emWin applications - I’ve attached it to this post.  It is set up to run Hello World, just to prove it works:

image

 

I’ve also tried it with one of the emWin sample apps that came with it.  These are designed to work with the simulator, but only need minimal changes to work with the Envision board: copy the sample directory, delete 3 files not needed, and make a call to Main_Task() in the main() routine.  It's better seen with a video than a still image:

 

https://youtu.be/twyy2zcaXZU

(For some reason, the video embed function won't find this so I've had to paste a link.)

 

Summary Thoughts

Well, I’ve come to expect that the Toolchain won’t be right as versions change and I wouldn’t expect samples to be kept unto date in that respect.  I’ve become a lot more astute at resolving the other niggles as well, as would anyone by now.  I’m getting immensely frustrated with the lack of provision for understanding the board and offered tools as the documentation and samples provided are not that helpful.  I’m happy to shoulder some of that responsibility as being relatively inexperienced with MCU development but I can only assume that Renesas feel that users coming to their MCU offerings are very experienced.

 

Further Entries

I will update this entry to provide links to further instalments as I create them:

Part One: Introduction

Part Two: Getting Going

Part Three: Development Software

Part Four A: Smart Configuration

Part Four B: User Fit Parts

Part Four C: Segger emWin Introduction (this post)

Part Four D: Removal of the LCD

Part Four E: Analog to Digital Conversion

Part Five: Static Setup of the GUI

Part Six: Getting the Display Working

Part Seven: USB/Serial Interface

 

Roadtest review

 

Also, worth reading Jan Crump's road test as he's taking a more technical approach.

Attachments:
Base_emWin_Project.zip
  • Sign in to reply
  • Jan Cumps
    Jan Cumps over 1 year ago

    Well, I’ve come to expect that the Toolchain won’t be right as versions change and I wouldn’t expect samples to be kept unto date in that respect.

    I'm doing some new development with the board, and have spent decent time (again) to make toolchains, example sources and GUI design apps work together.

    • 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