Page 2 of 3
Re: GFX integration with IAR workbench
Posted: Sun Feb 10, 2013 8:50 pm
by djung1000
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=HJxMTL2bGyamanynuVScOgCheers
D.
Re: GFX integration with IAR workbench
Posted: Sun Feb 10, 2013 11:08 pm
by Tectu
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
Re: GFX integration with IAR workbench
Posted: Mon Feb 11, 2013 8:08 am
by Tectu
Update: The GDISP_LLD() macro has been removed finally:
http://chibios-gfx.com/blog~ Tectu
Re: GFX integration with IAR workbench
Posted: Wed Feb 20, 2013 9:24 am
by djung1000
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.
Re: GFX integration with IAR workbench
Posted: Wed Feb 20, 2013 9:28 am
by Tectu
Huh? Could this be the same problem?
viewtopic.php?f=8&t=211&start=80What ChibiOS Version are you using? Did you use the GNU ARM GCC compiler I linked before now?
~ Tectu
Re: GFX integration with IAR workbench
Posted: Wed Feb 20, 2013 9:34 am
by djung1000
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}
Re: GFX integration with IAR workbench
Posted: Wed Feb 20, 2013 9:58 am
by Tectu
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
Re: GFX integration with IAR workbench
Posted: Wed Feb 20, 2013 12:59 pm
by Giovanni
I will re-test the VL demo with IAR ASAP.
Giovanni
Re: GFX integration with IAR workbench
Posted: Wed Feb 20, 2013 1:12 pm
by Tectu
The VL-Discovery demo is the other thread.
~ Tectu
Re: GFX integration with IAR workbench
Posted: Wed Feb 20, 2013 1:40 pm
by Giovanni
I answered there, you may clean up this thread.
Giovanni