Search Results

Search results 1-10 of 10.

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • GUI_Init() Infinite Loop

    ubudum - - emWin related

    Post

    Hi, I haven't had too much time to work on this project lately, but I just wanted to give an update. I have tried calling MPU_Config() before initializing the GUI but with no success. My implementation of MPU_Config can be found below: C Source Code (24 lines)I am still investigating the issue and I will update the thread with progress that I make. In the mean time, I am still open for suggestions. Thank you

  • GUI_Init() Infinite Loop

    ubudum - - emWin related

    Post

    Thanks for the suggestions. After moving .GUI_RAM (where aMemory[] is stored) to internal SRAM and increasing GUI_NUMBYTES to 64kB, I get emWin to initialize and display some text on the display. It looks like accessing memory on my external SRAM seems to be the issue. Maybe there is some FSMC timing that I am not respecting. The sample project that I based my project off uses the same SRAM chip and I thought using the same configuration would be sufficient. Do you still have the timings that yo…

  • GUI_Init() Infinite Loop

    ubudum - - emWin related

    Post

    Hi MikeFlyersFan, Thank you for your reply. 1) My stack and heap are located on the internal SRAM (192 +4Kb) which matches the memory segment of the sample project which uses a similar microcontroller with the same memory segments/sizes (stm32f407 vs. stm32f417) 2) For my project, I am planning on allocating 1Mb of memory for emWin. I just happened to notice that passed 1223 bytes of memory for emWin, the hardfault starts to occur. I am using an 2Mb external SRAM chip located at address 0x640000…

  • GUI_Init() Infinite Loop

    ubudum - - emWin related

    Post

    Hello, I apologize for the long delay. After configuring my project settings to match the emWin sample project for STM3240G_EVAL, I have a different issue which is also causing a hardfault. If I configure GUI_NUMBYTES to be any value greater than 1223 bytes, I have a hardfault when executing this line C Source Code (1 line)and the corresponding call stack is: GUI_ALLOC_GetFixedBlock() -> _AddFreeMemory() -> HardFault_Handler() Any idea what this failure could be related to? Thank you

  • GUI_Init() Infinite Loop

    ubudum - - emWin related

    Post

    Quote from SEGGER - Schoenen: “Hi, emWin doesn't make use of hardware specific code. The only file where hardware gets initialised is LCDConf.c. Any other parts of emWin are completely independent of any hardware. You are calling ssd1963_Init() and other ssd1963 related functions. Maybe there is something inside which initializes a interrupt. Regards, Sven ” The infinite loop happens before ssd1963_Init() is even called. It seems to occur right after GUIDRV_FlexColor_SetFunc(pDevice, &PortAPI, G…

  • GUI_Init() Infinite Loop

    ubudum - - emWin related

    Post

    Hello, I made a custom board using the stm32f407 microcontroller, a 480x272 tft display with the SSD1963 controller, and an external sram chip IS61WV102416BLL. Without emWin, - I confirmed that I can display an image on the display - Write and read back 32-bit data to and from the sram The problem is, I am trying to use emWin for the first time with embOS, and I get stuck in an infinite loop after calling GUI_Init(). Using the debugger I found out that I am stuck in an interrupt handler (CAN1_RX…

  • Quote from ubudum: “Thank you Marius for the quick reply. I am working with the STM32F4 microcontroller which is a Cortex-M, so the link you sent me should work. I will try this library and update this post accordingly. ” I was able to add emFile from emPower to my project and build it without any issue. Thanks again!

  • Thank you Marius for the quick reply. I am working with the STM32F4 microcontroller which is a Cortex-M, so the link you sent me should work. I will try this library and update this post accordingly.

  • Hello, I am new to using emFile, and I would like to integrate it to an existing project that uses embOS. Before adding it to my project I decided to add it to a simple Hello World project, but I am unable to build it because the compiler cannot find the definition of several functions such as FS_init, FS_FormatLLIfRequired, FS_IsHLFormatted, etc... I believe those are part of the precompiled library that came with emFile, but for some reason cannot be accessed. Those are the steps that I follow…

  • Hello, I have been working on a project for a while with Keil, and I recently decided to migrate to SES. I thought the import feature in SES would be enough for the transition, but apparently I am missing something since my project doesn't work on my board anymore. I was able to narrow down the scope of search by replicating the issue with a simple project. Basically, those are the steps I followed: 1. In Stm32CubeMX V4.24.0 in created a project for STM32F407VG 2. I added the RCC peripheral with…