Jump to content

ivan47

Members
  • Posts

    35
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. This is my gfxconf.h file: #ifndef _GFXCONF_H #define _GFXCONF_H /* The operating system to use. One of these must be defined - preferably in your Makefile */ //#define GFX_USE_OS_CHIBIOS TRUE //#define GFX_USE_OS_WIN32 FALSE //#define GFX_USE_OS_LINUX FALSE //#define GFX_USE_OS_OSX FALSE #define GFX_USE_OS_RAW32 TRUE #define GOS_RAW_HEAP_SIZE 512 // #define INTERRUPTS_OFF() optional_code // #define INTERRUPTS_ON() optional_code /* GFX sub-systems to turn on */ #define GFX_USE_GDISP TRUE #define GFX_USE_GWIN TRUE // #define GFX_USE_GINPUT TRUE // #define GFX_USE_GEVENT TRUE #define GFX_USE_GTIMER TRUE #define GFX_USE_GQUEUE TRUE // /* Features for the GDISP sub-system. */ #define GDISP_NEED_VALIDATION TRUE #define GDISP_NEED_CLIP TRUE #define GDISP_NEED_CIRCLE TRUE #define GDISP_NEED_ELLIPSE TRUE #define GDISP_NEED_ARC TRUE #define GDISP_NEED_CONVEX_POLYGON TRUE #define GDISP_NEED_TEXT TRUE //u slucaju koristenja nekog fonta treba ga promijeniti u TRUE #define GDISP_NEED_ANTIALIAS FALSE #define GDISP_NEED_UTF8 FALSE #define GDISP_NEED_TEXT_KERNING FALSE #define GDISP_INCLUDE_FONT_UI1 FALSE #define GDISP_INCLUDE_FONT_LARGENUMBERS FALSE #define GDISP_INCLUDE_FONT_DEJAVUSANS10 FALSE #define GDISP_INCLUDE_FONT_DEJAVUSANS12 TRUE #define GDISP_INCLUDE_FONT_DEJAVUSANS16 FALSE #define GDISP_INCLUDE_FONT_DEJAVUSANS20 TRUE #define GDISP_INCLUDE_FONT_DEJAVUSANS24 FALSE #define GDISP_INCLUDE_FONT_DEJAVUSANS32 FALSE #define GDISP_INCLUDE_FONT_DEJAVUSANSBOLD12 FALSE #define GDISP_INCLUDE_FONT_FIXED_10X20 TRUE #define GDISP_INCLUDE_FONT_FIXED_7X14 TRUE #define GDISP_INCLUDE_FONT_FIXED_5X8 TRUE #define GDISP_INCLUDE_FONT_DEJAVUSANS12_AA FALSE #define GDISP_INCLUDE_FONT_DEJAVUSANS16_AA FALSE #define GDISP_INCLUDE_FONT_DEJAVUSANS20_AA FALSE #define GDISP_INCLUDE_FONT_DEJAVUSANS24_AA FALSE #define GDISP_INCLUDE_FONT_DEJAVUSANS32_AA FALSE #define GDISP_INCLUDE_FONT_DEJAVUSANSBOLD12_AA FALSE #define GDISP_INCLUDE_USER_FONTS FALSE #define GDISP_NEED_CONTROL TRUE // #define GDISP_NEED_MULTITHREAD TRUE// #define GDISP_USE_DMA FALSE /* GDISP fonts to include */ #define GDISP_INCLUDE_FONT_UI2 TRUE /* Features for the GWIN subsystem. */ #define GWIN_NEED_WINDOWMANAGER FALSE #define GWIN_NEED_WIDGET TRUE // #define GWIN_NEED_BUTTON TRUE // #define GWIN_NEED_FRAME FALSE /* Features for the GINPUT subsystem. */ #define GINPUT_NEED_MOUSE TRUE //#define GINPUT_NEED_TOGGLE TRUE #endif /* _GFXCONF_H */
  2. Okay, I finaly got some time so I did what inmarket said, I defined GOS_RAW_HEAP_SIZE to 512, but nothing changed.
  3. Okay, I'll do that when I find some time... Exams just started so...
  4. Did anyone figured out what is wrong ?
  5. No worry, I'll work on my "primitive menu libraries" until then.
  6. Sorry guys. I had some problems. My Internet provider is doing lousy job providing Internet, so I couldn't upload a file online. Anyway here's the link: http://www.mediafire.com/download/er4f5 ... ILI9341.7z It is whole Keil project but like I said, user modified files are located in \01-STM32F4xx_Keil_CMSIS_uGFX\User.
  7. I realized I didn't paste the link... I will paste it ass soon as I establish connection with my Cloud server
  8. This is link to my Keil 5 project. All user modified files (defines.h, gfxconf.h, gmouse_lld_ADS7843_board.h etc.) are located in \01-STM32F4xx_Keil_CMSIS_uGFX\User. I'm using STM32F4 Discovery board (it uses 8 MHz external crystal), ILI9341 display controller with SPI interface, XPT2046 touch screen controller (also uses SPI). I'm using Tilens libraries to send data over SPI and for initialize (makes life easier). Pin descriptions are in defines.h : #define ILI9341_CS_CLK RCC_AHB1Periph_GPIOC #define ILI9341_CS_PORT GPIOC #define ILI9341_CS_PIN GPIO_Pin_2 /* WRX or DC pin */ #define ILI9341_WRX_CLK RCC_AHB1Periph_GPIOD #define ILI9341_WRX_PORT GPIOD #define ILI9341_WRX_PIN GPIO_Pin_7 /* RST pin */ #define ILI9341_RST_CLK RCC_AHB1Periph_GPIOD #define ILI9341_RST_PORT GPIOD #define ILI9341_RST_PIN GPIO_Pin_6 #define TM_SPI3_PRESCALER SPI_BaudRatePrescaler_2 ///////////////////// #define XPT2046_CS_PORT GPIOB #define XPT2046_CS_PIN GPIO_Pin_12 #define XPT2046_PENIRQ_PORT GPIOB #define XPT2046_PENIRQ_PIN GPIO_Pin_11 #define XPT2046_SPI SPI2 #define XPT2046_SPI_PINS TM_SPI_PinsPack_2 #define TM_SPI4_PRESCALER SPI_BaudRatePrescaler_128
  9. I did that, otherwise my local variables wouldn't be in scope. But it didn't help with hardfault. Is it possible that my implementation of driver functions could be causing this ?
  10. Okay, I was unable to do my project for short time. Today I did what inmarket said, but I'm not sure what does this mean. http://www.mediafire.com/view/f4ix7wy1i ... Stack3.jpg
  11. So I trace program to the point before HardFault function. It enters the gfxYield() and executes function to the _longjmp(current->cxt, 1); and jumps to the HardFault. I'm not sure why because the programs enters and executes gfxYield() few times before that. http://www.mediafire.com/view/r5t8r635t ... Stack2.jpg But there are no variables in scope (at least my debugger says it).
  12. Okay. I'm using Keil uVision 5 as my IDE. I'm using STM32F4 Discovery board and I use ILI9341 320x240 display and 4-wire resistive touchscreen which is controlled by the XPT2046. The communication between ILI9341 and XPT2046 is done using SPI interface on my STM32 board. I'm not sure if this is it, but this is link to screenshoot of Call Stack prior to HardFault: http://www.mediafire.com/view/ccku1gc4a ... lStack.jpg Sorry, but I'm not sure if Keil can generate some text file with Call Stack.
  13. Hey. So, just like before, I get the uGfx logo for short period and then it enters the "calibration mode" (Blue screen with crosshair), but nothing happens. I trace the program and realized it enters Hard Fault routine while running gfxInit when it gets to around 506th line in ginput_mouse.c . If I define GINPUT_TOUCH_STARTRAW in gfxconf.h true, program draws the button and XPT2046 sends some data (i know that because I put function to print the data to USART every time program enters XPT2046_GetCoordinates() ), but nothing happens.
  14. Also, could someone explain me importance of these two functions: systemticks_t gfxSystemTicks(void); systemticks_t gfxMillisecondsToTicks(delaytime_t ms);
×
×
  • Create New...