Code Monkey home page Code Monkey logo

Comments (5)

embeddedt avatar embeddedt commented on June 17, 2024

Possibly. Can you use a debugger to find where it crashes?

from lv_demos.

tdjastrzebski avatar tdjastrzebski commented on June 17, 2024

I am not sure, I guess there is a lot I need to learn. ST-Util debugger I use in VS Code is not helpful here. But I managed to decode crash info using this script I had to fix first. Maybe frame buffer is located where it should not be.

Crash Info:
        Crash location = __exidx_start [0xFFFFB0FE] (based on PC value)
        Caller location = __exidx_start [0xFFFFFFE9] (based on LR value)
        Stack Pointer at the time of crash = [2007FE00]
        Target and Fault Info:
                Processor Arch: ARM-V7M or above
                Processor Variant: C27
                MPU or Execute Never (XN) default memory map access violation on an instruction fetch has occurred

from lv_demos.

embeddedt avatar embeddedt commented on June 17, 2024

Maybe you should try putting a breakpoint on main and stepping through the code (you can step over the initialization code and step into init_all_themes). The crash info your script decoded seems to be incorrect.

from lv_demos.

tdjastrzebski avatar tdjastrzebski commented on June 17, 2024

@embeddedt Generally I know how to debug code. The problem was it was crashing for no apparent reason when just entering a function. I found the reason and described it here. Briefly, linker-reserved global vector table size was too small.

I am wondering how anyone could actually use mbed-os 5 with STM32F769.

Once I could debug the code I found the problem was I put DSI_IRQHandler in main.cpp file.
Some improvements are still required (e.g. in how lv_task_handler() and lv_tick_inc() are called) but it works!

Thanks for your willingness to help.

from lv_demos.

tdjastrzebski avatar tdjastrzebski commented on June 17, 2024

Issue solved, problem was caused by a serious bug in mb-os 5: ARMmbed/mbed-os#12793

from lv_demos.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.