fastlink30 Posted January 1, 2015 Report Posted January 1, 2015 from emblocks forum, we continue here (tectu rules)tectu, can i send you my project for chibios & ugfx (2.2) under emblocks? i'm stuck on error:Compiling: src\main.cCompiling: ugfx\drivers\gdisp\SSD1289\gdisp_lld_SSD1289.csrc\main.c: In function 'Blinky':src\main.c:43:27: warning: unused parameter 'arg' [-Wunused-parameter]Compiling: ugfx\drivers\ginput\touch\ADS7843\ginput_lld_mouse.cugfx\drivers\ginput\touch\ADS7843\ginput_lld_mouse.c:48:35: error: unknown type name 'MouseReading'ugfx\drivers\ginput\touch\ADS7843\ginput_lld_mouse.c:26:16: warning: 'lastx' defined but not used [-Wunused-variable]ugfx\drivers\ginput\touch\ADS7843\ginput_lld_mouse.c:26:23: warning: 'lasty' defined but not used [-Wunused-variable]ugfx\drivers\ginput\touch\ADS7843\ginput_lld_mouse.c:28:13: warning: 'filter' defined but not used [-Wunused-function]chibios part is ok, but ugfx need everytime somethingis not simple make functional chibios & ugfx under emblocks (for me).i'm trying to make a skeleton project under emblocks, for future use.i've used chibistudio and is all ok, but i prefer emblock.thanksTectuThis is exactly the outdated board file issue If you don't mind I'd like to move this issue to the uGFX forums as it is a fully uGFX related problem. Em::Blocks works fine link to the project skeleton (the file is too big to attach here)http://ge.tt/7GrQ6o72/v/0uGFX is vs 2.2
Joel Bodenmann Posted January 1, 2015 Report Posted January 1, 2015 Hello fastlink,I took a look at your project and it seems like you are missing the actual board files for both the display and the touch screen.You need to supply two files which tell uGFX how to talk to your display and to your touch screen controller. In your case you can copy the following two files from the uGFX library directory: /drivers/gdisp/SSD1289/board_SSD1289_template.h /drivers/ginput/touch/ADS7843/gmouse_lld_ADS7843_board_template.hCopy those two files to your project directory (the place where you also have your main.c) and drop the _template in the file names. Then fill in the routines.You can read more about board files here: http://wiki.ugfx.org/index.php?title=Board_FileLet us know if you have any questions about the board file implementation.~ Tectu
fastlink30 Posted January 1, 2015 Author Report Posted January 1, 2015 i've done as you say (copyed the file in the same dir of the main.c and remove _template), and added to the projectbut error persist..i have put the project modified on the same place (ge.tt)
Joel Bodenmann Posted January 1, 2015 Report Posted January 1, 2015 I have downloaded the project again from the link in your first post but I don't see any board files in the src directory. It looks like you left them in the driver directory.Note that you will also have to add those new files in the Em::Blocks project file tree.~ Tectu
fastlink30 Posted January 1, 2015 Author Report Posted January 1, 2015 sorry tectu (i'm tired) the file is here..i not write the new link..http://ge.tt/7GrQ6o72/v/1filename oven_tft_2
Joel Bodenmann Posted January 1, 2015 Report Posted January 1, 2015 You are using a "strange" version of uGFX. I have replace the 'ugfx' directory with the latest master and I can compile without any problems (after adding all the other missing uGFX files to the Em::Blocks project tree).Note that you have to fix the GDISP_USE_DMA macro in the configuration file. It needs to be either set to TRUE or FALSE (I recommend not to mess with DMA until you got the display working).~ Tectu
fastlink30 Posted January 2, 2015 Author Report Posted January 2, 2015 thank you tectu, now i can compile (probably before i do mix with 2.2 version, old version & repository version.. )but when i add gfxInit(), receive this error :.\src/gmouse_lld_ADS7843_board.h: In function 'read_value':.\src/gmouse_lld_ADS7843_board.h:40:1: warning: no return statement in function returning non-void [-Wreturn-type].\src/gmouse_lld_ADS7843_board.h:38:43: warning: unused parameter 'm' [-Wunused-parameter].\src/gmouse_lld_ADS7843_board.h:38:55: warning: unused parameter 'port' [-Wunused-parameter]ext\ugfx\drivers\ginput\touch\ADS7843\gmouse_lld_ADS7843.c: At top level:ext\ugfx\drivers\ginput\touch\ADS7843\gmouse_lld_ADS7843.c:53:18: error: 'BOARD_DATA_SIZE' undeclared here (not in a function)i think that i not include some .h file of the mouse driveri have moved the directory of chibios & uGFX inside dir ext, not think is the problemhttp://ge.tt/7GrQ6o72OVEN_TFT2_33.rar
Joel Bodenmann Posted January 2, 2015 Report Posted January 2, 2015 This was an issue ("typo") in the uGFX library itself. We pushed a fix to the master branch. Please update the corresponding file in your project and this error should be gone.Sorry for the trouble.~ Tectu
fastlink30 Posted January 2, 2015 Author Report Posted January 2, 2015 before replaced the files, error go away, after i try toremove directory ugfx and replace with update from repository,also previous error go away but (this happen also when only replace file)..obj\debug\ext\ugfx\src\gfx.o: In function `gfxInit':C:\EmBlocks\OVEN_TFT2/ext\ugfx\src/gfx.c:90: undefined reference to `_gdispInit'obj\debug\ext\ugfx\src\ginput\ginput_mouse.o: In function `GetMouseReading':C:\EmBlocks\OVEN_TFT2/ext\ugfx\src\ginput/ginput_mouse.c:181: undefined reference to `gdispGGetWidth'C:\EmBlocks\OVEN_TFT2/ext\ugfx\src\ginput/ginput_mouse.c:182: undefined reference to `gdispGGetHeight'C:\EmBlocks\OVEN_TFT2/ext\ugfx\src\ginput/ginput_mouse.c:189: undefined reference to `gdispGGetOrientation'obj\debug\ext\ugfx\src\ginput\ginput_mouse.o: In function `CalibrationCrossDraw': never ending story..in the usual place, if can help you (and me!)OVEN_TFT2_5.rar
fastlink30 Posted January 3, 2015 Author Report Posted January 3, 2015 ok, found the problem, i not include the dir src/gdisp :? :roll: OVEN_TFT2_6.ZIPwhat is the font _aa? what is the difference with 'normal' font?
Joel Bodenmann Posted January 3, 2015 Report Posted January 3, 2015 what is the font _aa? what is the difference with 'normal' font?The _aa prefix means 'Anti-Aliased'. You can read more about fonts on the wiki: http://wiki.ugfx.org/index.php?title=Font_renderingPlease let us know when you need any additional help to get your project working.~ Tectu
fastlink30 Posted January 3, 2015 Author Report Posted January 3, 2015 thanks for all tectu, i have some problem, but i try to solve by myself (i see correctly displayed the calibration screen, but not my text after the calibration)how to disable the calibration screen? i need to go immediatly to first page, without, everytime make calibration, at this point not interest me interact with touchscreen
fastlink30 Posted January 3, 2015 Author Report Posted January 3, 2015 ok, i found in another threadGINPUT_MOUSE_NEED_CALIBRATION FALSE on the mouse driver .hnow the second more difficult thing.. why not writed correctly display
Joel Bodenmann Posted January 3, 2015 Report Posted January 3, 2015 now the second more difficult thing.. why not writed correctly displayCan you please describe the symptoms that you get? Do you see a white screen? Noise? Garbage? Nothing at all? Wrong colors?Please also let us know about your hardware setup (what microcontroller, what display, what interface you are using, if it is a PCB or wires on a breadboard etc.).~ Tectu
fastlink30 Posted January 3, 2015 Author Report Posted January 3, 2015 i not see text on display, or to say better, i see something that seems text, but not writed correctly (see image attached), also there are blu line, garbagei use stm32f4 discovery, ssd1289, display is connected with wire, i tryed with my previous project (with chibistudio), and goes fine, so is not problem of wire, is something about setup.i have modified (like in previous project) the driver for the ss1289, to go more slow (DMA), if i use the original, i see only fuzzyi put on the usual place photo and project modifiedyou can see on the left what is supposed be text logo startup is correct, also calibration page
Joel Bodenmann Posted January 3, 2015 Report Posted January 3, 2015 So you are 100% sure that the hardware works even now with the "old" project?Can you please make sure that you replaced the SSD1289 driver in your project with the modified one from the other project? As you updated to a more recent version you might have forgotten that.From what I can say the display was initialized but there is definitely some speed issue.~ Tectu
fastlink30 Posted January 3, 2015 Author Report Posted January 3, 2015 yes, old project is working, i tryed to be sure, and yes, is workingi'm sure i have replaced the board_ssd1289.h file with file of old project & put to slow speed dmawhat i not understand if is communication problem, also the logo i can't see, but i see correctly, also the mouse calibration, text & graphics!can be some optimization settings of the compiler?
inmarket Posted January 3, 2015 Report Posted January 3, 2015 Optimization can definitely be a problem. I am not sure it is the problem in this case though. Easiest way to check is to simply turn off all optimisation and do a full build.GCC in particular has some bad optimization bugs.
Joel Bodenmann Posted January 4, 2015 Report Posted January 4, 2015 also the logo i can't see, but i see correctly, also the mouse calibration, text & graphics!?I don't understand that sentence. You can you please try to rephrase this?Also, it is recommended to turn of all the modules expect of the GDISP module until you have the display runing properly.~ Tectu
fastlink30 Posted January 4, 2015 Author Report Posted January 4, 2015 i had put 2 video on the usual repository, is more simple for me (excuse my english)the new, show what happen when i start debug, as you can see, i can do calibration, and text is ok, after calibration, you can see some white pixel on the rightthe old, show the old project (first page only), is correct. no calibration becouse not needed.i tryed to disable all the optimization but nothing change, fpu is activeat this point i not have idea what to try.. :evil:i tryed also to deactivate all (only GDISP active)
fastlink30 Posted January 4, 2015 Author Report Posted January 4, 2015 found the problem! :roll: my mistake, i initialize GPIOD_15 before i show the first page, but GPIO_15 is used by display bus.... so, after problem to send data to display... ach!sorry tectu & innmarket for the time loosed about my stupid mistake!
Joel Bodenmann Posted January 4, 2015 Report Posted January 4, 2015 No problem indeed. We are happy to help wherever we can.Sorry that it takes us sometimes longer to reply but especially during weekend we are often not in front of our computers during the day.~ Tectu
dm13dv1b Posted June 5, 2015 Report Posted June 5, 2015 Hi, I have the same problem. I have a previous project worked on my previous computer but I failed to compile now /home/makkmarci/workspace/ugfx/drivers/ginput/touch/ADS7843/ginput_lld_mouse.c:48:35: error: unknown type name 'MouseReading' void ginput_lld_mouse_get_reading(MouseReading *pt) { ^make: *** [build/obj/ginput_lld_mouse.o] Error 1http://pastebin.com/mxVcekEzwith warnings:http://pastebin.com/2Mii4YsFwould you please take a look at this? Thank you!
dm13dv1b Posted June 5, 2015 Report Posted June 5, 2015 After I recognised some changes I have solved the previous.Now I have: ^main.c: In function 'main':main.c:693:32: error: 'GEventMouse' has no member named 'meta' if ((pem->meta & GMETA_MOUSE_CLICK)) { ^main.c:701:43: error: 'GEventGWinButton' has no member named 'button' if (((GEventGWinButton*)pe)->button == ghConsole) ^main.c:709:41: error: 'GEventGWinSlider' has no member named 'slider' if (((GEventGWinSlider*)pe)->slider == ghBrightness) ^main.c:712:113: error: 'GEventGWinSlider' has no member named 'slider' chprintf((BaseSequentialStream *)&SD2,"Slider %s = %d\r\n", gwinGetText(((GEventGWinSlider *)pe)->slider), ^main.c: At top level:main.c:382:13: warning: 'mysave' defined but not used [-Wunused-function] static void mysave(uint16_t instance, const uint8_t *calbuf, size_t sz) ^main.c:408:20: warning: 'myload' defined but not used [-Wunused-function] static const char *myload(uint16_t instance) ^make: *** [build/obj/main.o] Error 1BUILD FAILED (exit value 2, total time: 11s)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now