GithubHelp home page GithubHelp logo

Comments (4)

RobertoBenjami avatar RobertoBenjami commented on June 12, 2024 1

I modified the driver for keil but couldn't try it because I don't have a licensed version (the 32kB code size limit is too low). Please test it.
The change:
random() -> rand()
_impure_ptr -> optional, I used it just to generate the same pseudorandom numbers on each run
#pragma GCC push_options -> #pragma push
#pragma GCC optimize("O0") -> #pragma O0
#pragma GCC pop_options -> #pragma pop
beer_60x100_16.c ->I did not find the right solution for this but as a forced solution bmp.h : line39 -> uint16_t data[60 * 100];

from stm32_graphics_display_drivers.

JuMalIO avatar JuMalIO commented on June 12, 2024

Thanks for fast response!

Project now compiles with Keil, but something is still wrong. After I upload and start the device I see screen being cleared to black color and it stops there, nothing happens after that. If I compile exact same project code with TrueStudio - application runs without issues. Where could be the issue?

Maybe these warnings which I still get are important?
..\Src\Lcd\lcd_io_spi.c(1095): warning: #61-D: integer operation result is out of range
GPIOX_MODE(MODE_PP_ALTER_50MHZ, LCD_MOSI);
..\Src\Lcd\lcd_io_spi.c(1095): warning: #61-D: integer operation result is out of range
GPIOX_MODE(MODE_PP_ALTER_50MHZ, LCD_MOSI);
..\Src\Lcd\lcd_io_spi.c(1095): warning: #68-D: integer conversion resulted in a change of sign
GPIOX_MODE(MODE_PP_ALTER_50MHZ, LCD_MOSI);

MODE_PP_ALTER_50MHZ = 0xB
LCD_MOSI = B, 15

P.S.
Found the issue. Its printf ! I have removed it from appLcdSpeedTest.c and application is running! With it application was getting into some kind of infinite loop. Why printf could be causing this?

from stm32_graphics_display_drivers.

RobertoBenjami avatar RobertoBenjami commented on June 12, 2024

printf:

  1. delete the syscalls.c file.
  2. http://www.keil.com/support/man/docs/uv4/uv4_db_dbg_printf_viewer.htm
    Unfortunately, I can’t test because I only have (32k code limit) Keil running in a virtual box.

from stm32_graphics_display_drivers.

JuMalIO avatar JuMalIO commented on June 12, 2024

Yes, printf is working after setup. Thanks for support. Your drivers are awesome! Great work! πŸ‘

from stm32_graphics_display_drivers.

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.