Jump to content

tombalabomba

Members
  • Content Count

    18
  • Joined

  • Last visited

About tombalabomba

  • Rank
    Newbie
  1. Hi, I guess I can close this issue. I wrongly suspected the uGFX lib to be part of the problem. The root cause was that I modified the code of by RAW_32 implementation for using FreeRtos. Since I used CubeMx for HAL generation, I just had to remove HAL_NVIC_SetPriorityGrouping(NVIC_PRIORITYGROUP_0) in the HAL_MspInit() routine of the corresponding MCU support package file. By the way. I''m not able to use link, code and file upload tools of this homepage anymore. Apparently, something has changed since it perfectly worked a couple of months ago.
  2. Hi folks, I face problems to get ugfx and freertos running. Essentially, I followed the demo CPU20 has made for a STM32F7 bord. The code of my main.c is at the bottom of this post. I'm sorry for the unprofessional appearance. Unfortunatly, wehter code insertion nor file upload works with the tested browsers (chrome, firefox, edge). I first checked if the FreeRtos works before I imported the ugfx lib. Since everthing seemed to be OK I tired ugfx in RAW_32 mode by setting #define GFX_USE_OS_RAW32 GFXON #define GFX_USE_GDISP
  3. Meanwhile, I ended up with a working configuration. Basically, I had to fix two problems. The first was indeed the wrong SPI configuration. In contrast to many other ILI driver the ILI9225 drivers requires CPOL = 1: hspi2.Init.CLKPolarity = SPI_POLARITY_HIGH; On the other hand there was also a problem with the chip select signal. Controlling CS in acquire_bus(GDisplay* g) and release_bus(GDisplay* g) didn't do the job and I had to control the chip select signal right before and after data transmission.
  4. I struggle to get my ILI9225 driven display on a STM32L1 nucleo board running. Essentially. Below you can find my application code and the board file I use. main.c : #include "stm32l1xx.h" #include "stm32l1xx_nucleo.h" #include "gfx.h" #include "stm32l1xx_hal.h" #include "board_ILI9225.h" void SystemClock_Config(void); void Error_Handler(void); int main(void) { coord_t width, height; coord_t i, j; HAL_Init(); SystemClock_Config(); gfxInit(); width = gdispGetWidth(); height = gdispGetHeight(); gdispDrawBox(10, 10, width/2, height/2, Yellow); gdispF
  5. Well, this is quite embarrassing. I guess I should have found this obvious bug by myself. Anyway many thanks for your efforts.
  6. Hi! You can find the project in the attachment. The board file is not complete yet but it should at least compile. demo.zip
  7. I guess, the ILI9225 driver is similar to the ILI9341 drive. Since for the latter there is a addon boardfile included I think I can to it in a similar way. What is still a topic for me is that GXINLINE, GDisplay and so on is not recognised by the compiler. So, I guess the way I included the library (see my previous post) in the eclipse project doesn't work out. Has anyone a hint for me what I did wrong? Any help is highly appreciated.
  8. Hi! It looks that these files are indeed missing. Searching for the pattern "9225" doesn't find any matches on my filesystem. $ find ugfx -name "*9225*" ugfx/drivers/gdisp/ILI9225 ugfx/drivers/gdisp/ILI9225/ili9225.h ugfx/drivers/gdisp/ILI9225/gdisp_lld_ili9225.c $ So I tried to set up the board file by my own. As mentioned I disabled the filter in properties -> C/C++ General -> Paths and Symbols -> Source Location for the ILI9225 driver directory and added drivers/gdisp/ILI9225 to properties -> C/C++ General -> Paths and Symbols ->Includes. Then I copied
  9. Hi! Many thanks for clarification! By the way. Are the source files used in the tutorial available somewhere? Since, there are no board files available for the ILI9225 driver I wonder if you could share the one you used in the example. Hence, it would make things easier for understanding how to properly implement by the hardware abstraction by adapting the sources to my particular board.
  10. Hi! As I mentioned in my previous post, I get a bunch of additionally HAL error as soon as I modify stm32f439i_raw32_ugfx.c . The HAL errors vanish as soon as I close and reopen the project. As I figured out now these HAL errors were not really the problem since they don't show up in the build output. Hence, it looks like this is a feature from the IDE telling the user that there is something missing for building the particular source file. Unfortunately, for me it was rather a burden than a feature since it distracted me from the central problem.
  11. Hi! The specific error of a multiple defined _init() function still persists. What changes that I get now the HAL erros additonally. After project clean I get the following compiler output: Right below you can find the error output. The interesting part is that I get now the HAL errors additionally. These errors appeared when I modified stm32f439i_raw32_ugfx.c the first time. So, it looks like the compile tries to compile this file which should be prohibited by setting the filter in the source location tab. Unfortunately, project clean and index rebuild do
  12. Hi! This was already one of my thoughts. As I mentioned in my previous post commenting or deliting _init() in stm32f439i_raw32_ugfx.c doesn't fix the problem of getting the error of a multiple defined _init(). That seems odd to me since I'm pretty sure that there is no additional _init() defined in the sources. Additionally, I get now a lot of errors originating from non defined ST32F4 Hal symbols. This should not be the case since stm32f439i_raw32_ugfx.c is excluded from build. The fact that modification of stm32f439i_raw32_ugfx.c brings in this bunch of additional errors is an ind
  13. Hi! As mentioned, I modified the example code so that it fits to my CPU. Basically, the only difference to the example code in demo/ugfx/boards/base/STM32F439i-Eval/CubeHal/stm32f439i_raw32_ugfx.c is that the clock configuration is different to the Cortex M4 HAL. //stm32l1152RE_raw32_ugfx.c #include "gfx.h" #if GFX_COMPAT_V2 && GFX_COMPAT_OLDCOLORS #undef Red #undef Green #undef Blue #endif #include "stm32l1xx_hal.h" #if GFX_USE_OS_RAW32 void _init(void) { } gTicks gfxSystemTicks(void) { return HAL_GetTick(); } gTicks gfxMillisecondsToTicks(gDelay ms)
  14. Hi! First of all I have to apologize, the question I have exposes me to be quite a newbie. I'm using openSTM system workbench (Neon.3 Release (4.6.3)) and desperately try to get a bare-metal application using a STM32L1 nucleo board (CubeMX HAL) and ILI9225 TFT running. Since this IDE is essentially based on Eclipse I followed the guide https://wiki.ugfx.io/index.php/Using_Eclipse to set up the project. So I did the following steps. Library Import : demo -> Import ugfx Configure Include Paths : demo -> properties -> C/C++ General -> Paths and Symbols -&
  15. It lookls like this is a quite good starting point. Many Thanks!
×
×
  • Create New...