<?xml-stylesheet type="text/xsl" href="https://community.element14.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Renesas RX65 Envision Kit - part 11: port emWin to GCC and run an LCD Widget</title><link>/technologies/embedded/b/blog/posts/renesas-rx65-envision-kit---part-11-port-emwin-to-gcc-and-run-an-lcd-widget</link><description>I&amp;#39;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&amp;#39;s available for the Renesas RX family can be built with the GCC Toolcha...</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Renesas RX65 Envision Kit - part 11: port emWin to GCC and run an LCD Widget</title><link>https://community.element14.com/technologies/embedded/b/blog/posts/renesas-rx65-envision-kit---part-11-port-emwin-to-gcc-and-run-an-lcd-widget</link><pubDate>Sat, 04 Jan 2020 11:18:19 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:39b9f757-191e-4875-8988-d774c03cba7d</guid><dc:creator>Jan Cumps</dc:creator><slash:comments>2</slash:comments><description>&lt;p&gt;I&amp;#39;ve tried to set up a loader file and adapt the display settings to use the allocated areas.&lt;/p&gt;&lt;p&gt;It&amp;#39;s not successful yet. The program does not go past the GUI_Init(), indicating that something gets overwritten or I made another mistake ...&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Linker file.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;[embed:dc8ab71f-3b98-42d9-b0f6-e21e02a0f8e2:3ef06e6b-9b7d-4651-b12d-db8be7f5e991:type=text&amp;amp;text=...%0A++.ustack+%3A%0A++%7B%0A++++%22_ustack%22+%3D+.%3B%0A++%7D+%3ERAM+%0A++%0A++.FRAME_BUFFER1+ALIGN%284%29+%3A%0A%7B%0A++KEEP%28*%28.FRAME_BUFFER1%29%29%0A%22_FRAME_BUFFER1%22+%3D+.%3B%0A.+%2B%3D+0xFE00%3B%0A%7D+%3ERAM+%0A%0A.FRAME_BUFFER2+%3A%0A%7B%0A++KEEP%28*%28.FRAME_BUFFER2%29%29%0A++%22_FRAME_BUFFER2%22+%3D+.%3B%0A.+%2B%3D+0xFE00%3B%0A%7D+%3ERAM2]&lt;/p&gt;&lt;div&gt;&lt;/div&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Code:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;[embed:dc8ab71f-3b98-42d9-b0f6-e21e02a0f8e2:3ef06e6b-9b7d-4651-b12d-db8be7f5e991:type=c_cpp&amp;amp;text=extern+U32++FRAME_BUFFER1%5B%5D%3B%0A%23define+FRAME_BUF_BASE_ADDR1+++FRAME_BUFFER1%0Aextern+U32++FRAME_BUFFER2%5B%5D%3B%0A%23define+FRAME_BUF_BASE_ADDR2+++FRAME_BUFFER2%0A%0Astatic+const+U32+_aBufferPTR%5B%5D+%3D+%7B%0A++++FRAME_BUF_BASE_ADDR1%2C+%0A++++FRAME_BUF_BASE_ADDR2++%0A%7D%3B]&lt;/p&gt;&lt;div&gt;&lt;/div&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span&gt;[View:/resized-image/__size/650x207/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-39b9f757-191e-4875-8988-d774c03cba7d/2055.contentimage_5F00_205584.png:650:207]&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span&gt;[View:/resized-image/__size/620x178/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-39b9f757-191e-4875-8988-d774c03cba7d/1460.contentimage_5F00_205585.png:620:178]&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;... I&amp;#39;ll investigate further ...&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=8518&amp;AppID=7&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Renesas RX65 Envision Kit - part 11: port emWin to GCC and run an LCD Widget</title><link>https://community.element14.com/technologies/embedded/b/blog/posts/renesas-rx65-envision-kit---part-11-port-emwin-to-gcc-and-run-an-lcd-widget</link><pubDate>Fri, 03 Jan 2020 10:43:09 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:39b9f757-191e-4875-8988-d774c03cba7d</guid><dc:creator>shabaz</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;The RX65 looks like a nice quick solution for combining the application and graphical HMI, if it has the resources for such high-res displays as in the photo!&lt;/p&gt;&lt;p&gt;Great to see it functioning with GCC.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=8518&amp;AppID=7&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Renesas RX65 Envision Kit - part 11: port emWin to GCC and run an LCD Widget</title><link>https://community.element14.com/technologies/embedded/b/blog/posts/renesas-rx65-envision-kit---part-11-port-emwin-to-gcc-and-run-an-lcd-widget</link><pubDate>Fri, 03 Jan 2020 09:17:57 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:39b9f757-191e-4875-8988-d774c03cba7d</guid><dc:creator>Andrew J</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;This will be very useful for anyone not wanting to lump out for a CC-RX license after 60 days.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=8518&amp;AppID=7&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Renesas RX65 Envision Kit - part 11: port emWin to GCC and run an LCD Widget</title><link>https://community.element14.com/technologies/embedded/b/blog/posts/renesas-rx65-envision-kit---part-11-port-emwin-to-gcc-and-run-an-lcd-widget</link><pubDate>Thu, 02 Jan 2020 19:37:56 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:39b9f757-191e-4875-8988-d774c03cba7d</guid><dc:creator>DAB</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Good update Jan.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;DAB&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=8518&amp;AppID=7&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Renesas RX65 Envision Kit - part 11: port emWin to GCC and run an LCD Widget</title><link>https://community.element14.com/technologies/embedded/b/blog/posts/renesas-rx65-envision-kit---part-11-port-emwin-to-gcc-and-run-an-lcd-widget</link><pubDate>Thu, 02 Jan 2020 16:19:49 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:39b9f757-191e-4875-8988-d774c03cba7d</guid><dc:creator>Jan Cumps</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;The size of each buffer is:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;[embed:dc8ab71f-3b98-42d9-b0f6-e21e02a0f8e2:3ef06e6b-9b7d-4651-b12d-db8be7f5e991:type=c_cpp&amp;amp;text=%23define+BYTES_PER_LINE+++%28%28BITS_PER_PIXEL+*+XSIZE_PHYS%29+%2F+8%29%0A%23define+LINE_OFFSET++++++%28%28%28BYTES_PER_LINE+%2B+63%29+%2F+64%29+*+64%29%0A%2F%2F+...%0A%23define+BYTES_PER_BUFFER+%28LINE_OFFSET+*+YSIZE_PHYS%29]&lt;/p&gt;&lt;div&gt;&lt;/div&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;BYTES_PER_LINE = (16 * 480) / 8 = 960&lt;/p&gt;&lt;p&gt;LINE_OFFSET = ((960 + 63) / 64) * 64 = 960&lt;/p&gt;&lt;p&gt;BYTES_PER_BUFFER = 960 * 272 = &lt;span style="text-decoration:line-through;"&gt;130560 thanks Andrew for the correction&lt;/span&gt; 261120&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Additionally, the program allocates this chunk of RAM in GUIConf.c, for in-memory drawing:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;[embed:dc8ab71f-3b98-42d9-b0f6-e21e02a0f8e2:3ef06e6b-9b7d-4651-b12d-db8be7f5e991:type=c_cpp&amp;amp;text=%23define+GUI_NUMBYTES++%281024+*+49%29%0Avoid+GUI_X_Config%28void%29+%7B%0A++%2F%2F%0A++%2F%2F+32+bit+aligned+memory+area%0A++%2F%2F%0A++static+U32+aMemory%5BGUI_NUMBYTES+%2F+4%5D%3B%0A++%2F%2F%0A++%2F%2F+Assign+memory+to+emWin%0A++%2F%2F%0A++GUI_ALLOC_AssignMemory%28aMemory%2C+GUI_NUMBYTES%29%3B%0A...%0A%7D]&lt;/p&gt;&lt;div&gt;&lt;/div&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;blockquote class="jive-quote"&gt;&lt;p&gt;It has to be ensured that the emWin memory pool which is defined&lt;/p&gt;&lt;p&gt;by the function GUI_ALLOC_AssignMemory (in GUIConf.c), is&lt;/p&gt;&lt;p&gt;big enough to store the complete data. If the Memory Device&lt;/p&gt;&lt;p&gt;can not be created, the image is drawn directly. This might&lt;/p&gt;&lt;p&gt;possibly mean loss of performance.&lt;/p&gt;&lt;p&gt;IMAGE_CF_TILE not set Use tiling to fill the whole widget area.&lt;/p&gt;&lt;/blockquote&gt;&lt;img src="https://community.element14.com/aggbug?PostID=8518&amp;AppID=7&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>