Code Monkey home page Code Monkey logo

Comments (9)

kanflo avatar kanflo commented on September 15, 2024

Did you flash app and then bootloader? You could try to get comfortable with arm-none-eabi-gdband see if the app is actually running.

from opendps.

technyon avatar technyon commented on September 15, 2024

Hi. Yes, first the app, then the bootloader. Only after flashing the bootloader the screen turns white, without it the screen stays black. Something seems to be running, if I issue the "reset halt" command, the screen turns black again.

I'll ask the guys from our electronics department to set me up with gdb.

from opendps.

frederikvs avatar frederikvs commented on September 15, 2024

This sounds very similar to what I'm seeing with my '3005, see #228.

@daphreak66 did you happen to capture the output of ocd-client.py before flashing?

from opendps.

technyon avatar technyon commented on September 15, 2024

Unfortunately no. I wasn't sure if it's the same, since my screen at least turns white.

With some help I was able to run a debug session, but strange things happen. main() isn't even called, instead other random functions, not always the same. One time it was the reset_handler().

I've also tried flashing with st-flash and st-util instead of openocd, but the result is the same. Is it possible to download verified working binaries from somewhere, just to rule out the build process as an error source?

from opendps.

frederikvs avatar frederikvs commented on September 15, 2024

My 3005 screen is also white - backlight on, but nothing displayed.

You could try with the files in attachment - they're compiled for the 5005, and I'm running them on my 50V5A without a problem.

opendps_compiled.zip

from opendps.

technyon avatar technyon commented on September 15, 2024

Thanks, I'll try them later and report back

from opendps.

technyon avatar technyon commented on September 15, 2024

Also no luck with your binaries.

This is all I get from gdb:

(gdb) break dpsboot.c:main 
Breakpoint 4 at 0x8000b60: file dpsboot.c, line 274.
(gdb) run
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /home/daphreak/workspace/opendps/dpsboot/dpsboot.elf 

Program received signal SIGTRAP, Trace/breakpoint trap.
0x20001fdc in ?? ()

from opendps.

technyon avatar technyon commented on September 15, 2024

Forget the comment above, I used gdb and not arm-none-eabi-gdb unintentionally.

This is what happens:

(gdb) break dpsboot.c:main 
Breakpoint 1 at 0x8000b60: file dpsboot.c, line 274.
(gdb) run
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /home/daphreak/workspace/opendps/dpsboot/dpsboot.elf 
Note: automatically using hardware breakpoints for read-only addresses.

And then nothing, the break point isn't triggered

from opendps.

technyon avatar technyon commented on September 15, 2024

I finally got the break points working, I'm not even sure what exactly I did to make it work. I can confirm that the event_handler processes keypress events (breakpoint at opendps.c:964). I think it's the same as issue #228, so I'll close this issue.

from opendps.

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.