Re: Debugging Nuttx

2020-04-06 Thread Eduard Niesner
Here are the correct paths. The previous ones were a little bit confusing... - Ubuntu Bash under Windows 10: /mnt/d/Work/Development/Git/NuttxH7Ubuntu/Nuttx/arch/arm/src/chip/stm32_spi.c:635 - Cygwin: D:\Work\Development\Git\NuttxH7Cygwin\Nuttx\arch\arm\src/chip/stm32_spi.c:561 Edi On Tue, Apr 7,

Re: Debugging Nuttx

2020-04-06 Thread Eduard Niesner
Thank you, Alexander! I will try your script in the next few days. I used objdump to generate the debug information for the libnuttx.a and libapps.a and this is how the paths from the debug information look like: - Ubuntu Bash under Windows 10: /mnt/d/Work/Development/Git/NuttxH7Ubuntu/Nu

Re: Debugging Nuttx

2020-04-06 Thread Alexander Oryshchenko
Hi Eduard, Sure just go to nuttx directory and apply it: git apply 0001-Replace-Linux-symlinks-with-junction-on-WSL.diff I do it right after clone/checkout of Nuttx source -Alexander On Mon, Apr 6, 2020 at 5:39 PM Eduard Niesner wrote: > Hi Alexander, > > Can you share your script and some

Re: Debugging Nuttx

2020-04-06 Thread Eduard Niesner
Hi Alexander, Can you share your script and some instructions on how to use it? Thank you, Edi On Sun, Apr 5, 2020 at 11:19 PM Alexander Oryshchenko < a.oryshche...@gmail.com> wrote: > path -> patch, I lost characters sometimes :) > > вс, 5 апр. 2020 г., 23:17 Alexander Oryshchenko : > > > Hi,

Re: Debugging Nuttx

2020-04-05 Thread Alexander Oryshchenko
path -> patch, I lost characters sometimes :) вс, 5 апр. 2020 г., 23:17 Alexander Oryshchenko : > Hi, > > For second your question I can little bit help you. I wrote path which > replases "ln" command in link.sh with Windows links. Then both WLS and > Windows understand it fine and you will not n

Re: Debugging Nuttx

2020-04-05 Thread Alexander Oryshchenko
Hi, For second your question I can little bit help you. I wrote path which replases "ln" command in link.sh with Windows links. Then both WLS and Windows understand it fine and you will not need to create directory and copy. But I have no idea about your first question. -Alexander вс, 5 апр. 202

Re: Debugging Nuttx

2020-04-05 Thread Eduard Niesner
Hi Alexander, I debug my application using Visual Studio and when I try to step-in a function from Nuttx it looks for the source files in C:\SysGCC\arm-eabi\mnt\d\work\NuttxH7\Nuttx\arch\arm\src\ *chip\.c. *Since the "chip" folder is a simbolic link and is not accessible from Windows, Visual Studi

Re: Debugging Nuttx

2020-04-04 Thread Alexander Oryshchenko
Hello Eduard, Regarding you second question. arch/arm/source/chip and board are symbolic links. They are accessible under WSL (but at least for me inaccessible in Windows). But why do you need to copy something here? -Alexander On Sat, Apr 4, 2020 at 11:39 PM Eduard Niesner wrote: > Hi all, >