GFX integration with IAR workbench

djung1000
Posts: 12
Joined: Mon Feb 04, 2013 9:18 pm

Re: GFX integration with IAR workbench

Postby djung1000 » Sun Feb 10, 2013 8:50 pm

yeah, I am from Germany. Lived in England for the last 14 years and emigrated to New Zealand about 9 month ago.
It's really nice here, just like being on holiday in the south of France or Spain. Only problem is that you have to go to work during the week ;).
Managed to get it working now. Updated all the display specific values and modified a couple of functions.
Still had problems after that with the display not getting initialised properly. To cut a long story short, I changed the timing values for the FSMC in the display init function and all started working after that.
I can now have a look at the driver side of things.
I also tried the 5000 rectangles benchmark test and have to say mine is a lot slower than the one in the video on youtube :( https://www.google.co.nz/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&ved=0CC4QtwIwAA&url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DsrvM57YTp_U&ei=hvgXUarwGIKGjAKU0oGoBw&usg=AFQjCNGgXDE8JW7S5PgycK1EMoKK4FnHjg&sig2=HJxMTL2bGyamanynuVScOg
Cheers
D.

User avatar
Tectu
Posts: 1226
Joined: Thu May 10, 2012 9:50 am
Location: Switzerland
Contact:

Re: GFX integration with IAR workbench

Postby Tectu » Sun Feb 10, 2013 11:08 pm

Hey Dietmar,

Meh, I hope you didn't search to long for the too fast FSMC issue. I thought it was documented but that was on the old website. I will update the documentation ;-)
It's good to hear that you got it working anyways.
Please keep me up to date about any issues and feel free to send patches :) It would be also nice if you could write some "HowTo: IAR IDE" tutorial?


~ Tectu

User avatar
Tectu
Posts: 1226
Joined: Thu May 10, 2012 9:50 am
Location: Switzerland
Contact:

Re: GFX integration with IAR workbench

Postby Tectu » Mon Feb 11, 2013 8:08 am

Update: The GDISP_LLD() macro has been removed finally: http://chibios-gfx.com/blog


~ Tectu

djung1000
Posts: 12
Joined: Mon Feb 04, 2013 9:18 pm

Re: GFX integration with IAR workbench

Postby djung1000 » Wed Feb 20, 2013 9:24 am

have now started to port the SSD1963 lld to be similar to the SSD1289 one.
Started a new IAR project and managed to get it compiled after a few initial problems.
But when I run the whole thing stops when I call one of these chThdSleepMilliseconds(500); It stops in the vectors.s file- here " b _unhandled_exception" .
No idea what that means.
If I load the sample IAR project, no problem ?????????????????

Any ideas?

D.

User avatar
Tectu
Posts: 1226
Joined: Thu May 10, 2012 9:50 am
Location: Switzerland
Contact:

Re: GFX integration with IAR workbench

Postby Tectu » Wed Feb 20, 2013 9:28 am

Huh? Could this be the same problem?

viewtopic.php?f=8&t=211&start=80

What ChibiOS Version are you using? Did you use the GNU ARM GCC compiler I linked before now?


~ Tectu

djung1000
Posts: 12
Joined: Mon Feb 04, 2013 9:18 pm

Re: GFX integration with IAR workbench

Postby djung1000 » Wed Feb 20, 2013 9:34 am

Not totally the same
Mine stops here, when it tries to run the pop command at the end

Code: Select all

/*
 * Performs a context switch between two threads.
 */
        PUBLIC _port_switch
_port_switch:
        push    {r4, r5, r6, r7, r8, r9, r10, r11, lr}
#if CORTEX_USE_FPU
        vpush   {s16-s31}
#endif
        str     sp, [r1, #CONTEXT_OFFSET]
        ldr     sp, [r0, #CONTEXT_OFFSET]
#if CORTEX_USE_FPU
        vpop    {s16-s31}
#endif
        pop     {r4, r5, r6, r7, r8, r9, r10, r11, pc}

User avatar
Tectu
Posts: 1226
Joined: Thu May 10, 2012 9:50 am
Location: Switzerland
Contact:

Re: GFX integration with IAR workbench

Postby Tectu » Wed Feb 20, 2013 9:58 am

Giovanni wrote:Probably this depends on the FPU settings, in the Makefiles is automatic but in IAR project you have to enable disable the FPU both the compiler settings AND correctly defining CORTEX_USE_FPU.

If the two mismatch then the port crashes.

Giovanni



~ Tectu

User avatar
Giovanni
Site Admin
Posts: 12584
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 647 times
Been thanked: 543 times
Contact:

Re: GFX integration with IAR workbench

Postby Giovanni » Wed Feb 20, 2013 12:59 pm

I will re-test the VL demo with IAR ASAP.

Giovanni

User avatar
Tectu
Posts: 1226
Joined: Thu May 10, 2012 9:50 am
Location: Switzerland
Contact:

Re: GFX integration with IAR workbench

Postby Tectu » Wed Feb 20, 2013 1:12 pm

The VL-Discovery demo is the other thread.


~ Tectu

User avatar
Giovanni
Site Admin
Posts: 12584
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 647 times
Been thanked: 543 times
Contact:

Re: GFX integration with IAR workbench

Postby Giovanni » Wed Feb 20, 2013 1:40 pm

I answered there, you may clean up this thread.

Giovanni


Return to “LCD Driver and Graphic Framework”

Who is online

Users browsing this forum: No registered users and 2 guests