Coder Social home page Coder Social logo

Compiling about solo1 HOT 12 CLOSED

solokeys avatar solokeys commented on May 27, 2024
Compiling

from solo1.

Comments (12)

yparitcher avatar yparitcher commented on May 27, 2024 1

i have successfully built and flashed the firmware on Linux / Ubuntu

from solo1.

conorpp avatar conorpp commented on May 27, 2024 1

Serial port works fine on Linux but I had some problems at first. Since it looks like a modem, the linux daemon ModemManager will automatically start messing with it. I had to disable it:

systemctl stop ModemManager 

Might be something that can be changed in the USB descriptors to prevent this from happening, opening #62 for it

from solo1.

yparitcher avatar yparitcher commented on May 27, 2024 1

Serial port works fine on Linux but I had some problems at first. Since it looks like a modem, the linux daemon ModemManager will automatically start messing with it. I had to disable it:

systemctl stop ModemManager 

Might be something that can be changed in the USB descriptors to prevent this from happening, opening #62 for it

there is no need to disable ModemManager, just add the folowing to your udev rules and ModemManager will ignore it. (taken from ModemManager docs)

ACTION!="add|change|move", GOTO="mm_usb_device_blacklist_end"
SUBSYSTEM!="usb", GOTO="mm_usb_device_blacklist_end"
ENV{DEVTYPE}!="usb_device",  GOTO="mm_usb_device_blacklist_end"

ATTRS{idVendor}=="0483", ATTRS{idProduct}=="a2ca", ENV{ID_MM_DEVICE_IGNORE}="1"

LABEL="mm_usb_device_blacklist_end"

from solo1.

nickray avatar nickray commented on May 27, 2024

And shouldn't we include debug symbols? AFAIK they don't increase size in flash.

from solo1.

Immortalin avatar Immortalin commented on May 27, 2024

Why don't they increase size?

from solo1.

nickray avatar nickray commented on May 27, 2024

Why don't they increase size?

There's no use for them on the MCU (only on the host where GDB runs), so they don't get loaded. I can't seem to find a good reference for this - we should probably collect some "basics of embedded gdb/openocd flashing+debugging" somewhere. But you can for instance compare arm-none-eabi-size /path/to/your.elf --format=SysV with the output of load in gdb when flashing an ELF containing debug_info.

from solo1.

szszszsz avatar szszszsz commented on May 27, 2024

Hi @nickray! You have mentioned in #19 (comment), that firmware got stuck in your case. Could you elaborate?

from solo1.

nickray avatar nickray commented on May 27, 2024

I am afraid I don't remember. Word of warning though, Linux builds currently don't work properly (they build, but flashing them has issues), only Windows ones. I am hoping @conorpp comes up with a fix for that soon!

from solo1.

nickray avatar nickray commented on May 27, 2024

Do you have a specific issue @szszszsz?

from solo1.

szszszsz avatar szszszsz commented on May 27, 2024

@nickray I was trying then to run the firmware on Nucleo board, and could not identify the problem. It was fixed 2 days ago by @conorpp, thank you!

Now I hope to connect to its serial port, and look inside. Have you tested this under Linux? Or do you work only on Windows with it?

from solo1.

szszszsz avatar szszszsz commented on May 27, 2024

@conorpp It looks like that was the cause in my case as well (Fedora 29, Gnome 3) - I have disabled that service entirely. Thank you for the tip! Works as advertised now.

from solo1.

nickray avatar nickray commented on May 27, 2024

Why don't they increase size?

A "kind of" reference: https://mcuoneclipse.com/2012/06/01/debug-vs-release/

from solo1.

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.