Skip to content

Some Questions that accumulated #20

@savejeff

Description

@savejeff

Hi,

I started to integrate the native core into my project a view weeks ago.
in general, i made it to work quite well but i found some rough edged and some stuff that might need fixing.

This is what is found:

1.) Compiler Selection under Windows: Under windows the compiler selection was some work. i found that using "x86_64-12.1.0-release-posix-sjlj-rt_v10-rev3" from mingw-w64 directly downloaded from github works the best. i had problems with compilation not working when using for example cygwin64 and there gcc installation. This could maybe be added to the readme or something like that. this could save people a day or two.

2.) Debugging works in general, but the UI often is no able to read local variables even if they are shown on the top left under local variables
image
when hovering over some variables.

I also get this thread related msg right at the first main() breakpoint
image

3.) Disable of optimization when Debugging does not work
i added "-O0" to my build flags and checked verbose output but variables and functions still get optimized. sometimes that makes step by step debugging impossible

4.) when working with threads debugging is nearly impossible. i use a second thread to check for text input on the cmd window to emulate SerialUSB input from Arduino. Could there be something done with the VSC integration maybe?

Otherwise great stuff! already have the main parts of my microcontroller project running native under windows and linux with file access and everything ;]
I'm thinking about implementing arduino like functionality for the raspberry pi as it has I2C, SPI and Serial as well as GPIOs. i already have the basic delay, millis stuff working very well

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions