Giter Site home page Giter Site logo

Comments (3)

rogerdahl avatar rogerdahl commented on May 4, 2024

After writing the above, I noticed the setup_stack() function at the start of main(), which sets the stack up to the end of the SRAM area. I presume that it intended to compensate for attribute((naked)) in the definition of main(). So, then I guess the ICE in GCC occurs because GCC can't use a stack that has been set up manually?

I've had some partial success getting things to compile by creating a new main function that contains attribute((naked)) and attribute((used)) in the definition, and which only sets up the stack and calls out to another function that contains everything main used to contain. The idea being that the single call might be safe, and that the new function being called gets the regular prologue, epilogue and stack frame. This compiles, and partially works. I get it to flash the LEDs, but the program crashes when I introduce a call to LCD_GLASS_DisplayString().

LCD_GLASS_Init() and LCD_GLASS_Clear() do not crash.

from stlink.

rogerdahl avatar rogerdahl commented on May 4, 2024

It looks like the crash happens when stm32l_discovery_lcd.c calls out to LCD_UpdateDisplayRequest() in stm32l1xx_lcd.c.

from stlink.

Nightwalker-87 avatar Nightwalker-87 commented on May 4, 2024

Review: Does not seem to be related to the stlink-project.

from stlink.

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.