itxs

Forum Replies Created

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • itxs
    Participant

    I ve done it by myself, there is a patched version of C:\SysGCC\arm-eabi\IntelliSense.props in the attachment

    Attachments:
    You must be logged in to view attached files.
    in reply to: ERROR: DMA_HandleTypeDef was not declared in this scope #22987
    itxs
    Participant

    You right, no problem with that.

    I found another: when visual studio writes “5 references” after i scroll window up and back, but actually filterMA have only 3 references in project. If I click on this text “5 references”,  then switch information to “Calls” and then back to “References”, the text updates to “3 references”, that is right for my project. Maybe if I scroll window it counts all strings in popup window, include hierachical nodes.

    Attachments:
    You must be logged in to view attached files.
    in reply to: ERROR: DMA_HandleTypeDef was not declared in this scope #22889
    itxs
    Participant

    Yes, it works! Thanks!

    Why “Updating cache” restarts if I changed one symbol in code, or write ” “? Its slow for that frequently calling. How to tell it that it should preprocess only changes of all code, not entire code files?

    in reply to: ERROR: DMA_HandleTypeDef was not declared in this scope #22831
    itxs
    Participant

    Hi, I created an example project based on HAL LEDBlink. It reproduce advanced clang intellisense bug, and I think, it associated with cyrillic symbols in code comments.

    To reproduce bug behavior you should:

    1. Write big multiline code block (>15 strings), there is need to make some strings unique to show wrong highlighting.
    2. Write russian comment on top or middle of that code block
    3. Close the file with [X] button on visual studio tabs, in promt window (Save file?) choose “Yes”.
    4. Open another file
    5. Open first file and try put cursor on line in big multiline code block.
    6. Highlighted entity or string does not match with line of cursor position.

    I send my test project in archive.

    • This reply was modified 5 years, 11 months ago by itxs.
    • This reply was modified 5 years, 11 months ago by itxs.
    Attachments:
    You must be logged in to view attached files.
    in reply to: ERROR: DMA_HandleTypeDef was not declared in this scope #22795
    itxs
    Participant

    Reopening file dont solve problem, switching to another intellisense engine and back dont solve problem. Reopening VisualStudio dont soilve problem. Problem starts in 217 line of code with cursor/highlight difference equal to 1. In according to consecutively written lines block size, the difference changes form 1 to 8. When I put cursor on single string, it will not highlight, because second string that should be highlighted not exist.

    The problem seen only in one big file (700 lines of code, 50 commented lines). I put screenshots with problem.

    UPDATE: Now I was distracted by another job for 15 minutes and the problem somehow miraculously disappeared even in big files.

    Attachments:
    You must be logged in to view attached files.
    in reply to: ERROR: DMA_HandleTypeDef was not declared in this scope #22776
    itxs
    Participant

    I found another error in Clang, When clang finish project analyze, it sometimes highlights a field on 8 text lines below than cursor position line. As you see, I put cursor on “PneumaticSystem_AirPressure”, but clang highlight “EmEngineOilPressure”. If in that situation I change cursor position, highlighted line also changes its position accordingly to (cursor position + 8) lines. Generally, language plugin works fine, it quickly show popup with >2600 links of “uint8_t” type.

    Attachments:
    You must be logged in to view attached files.
    in reply to: ERROR: DMA_HandleTypeDef was not declared in this scope #22703
    itxs
    Participant

    How to disable that dotted style text when I use clang advanced Intellisense? It is very uncomfortable.

    Attachments:
    You must be logged in to view attached files.
    in reply to: ERROR: DMA_HandleTypeDef was not declared in this scope #22673
    itxs
    Participant

    Thanks a lot! I was able to run and debug my firmware with hard FP, both MSBuild and GNU Make systems. The problem was that one of TouchGFX hadrware file dont includes “stm32f7xx_hal.h”, but includes “stm32f7xx_sdram.h”, etc. Another problem was that I not add USE_FREERTOS8 to project macro definitions.

    Also, i found a bug: if i try to abort flash downloading by clicking cancel button after some time, if file is too big, VS will crash. In that situation the file was big because I forgot to call your arm-eabi-objcopy.exe that I now use to divide output .elf to two files: binary for internal flash and binary for external microSD card, and delete big external flash constant data from .elf file. Now I finished it by your Custom build steps->After building, where I set up 4 different objcopy executes. Please add feature to save all custom build steps in one file, not only in many single action files (one file to one action) because its easy to get confused here, and add warning message if filenames match. Also I noticed that MSBuild is faster than GNU Make isnt it? I would like to write an article on porting the TouchGFX project on VisualGDB (also as an example of porting complex projects to VGDB).

Viewing 8 posts - 1 through 8 (of 8 total)