Hello Tim,

I use ubuntu 20.04 server to save space :-) ... If  you use
authorized_keys in ssh ... it is even better.

For me here, the USB in the VM is more stable than in my Windows host
:-\ ... for the J-Link and also for the FTDI to see syslog.

In VS-Code, I use these extensions:
* marus25.cortex-debug-dp-stm32f4
* marus25.cortex-debug

And here is my launch.json:

{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit:
https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "type": "cortex-debug",
            "request": "launch",
            "servertype": "jlink",
            "cwd": "${workspaceRoot}",
            "serverpath": "JLinkGDBServerCLExe",
            "executable": "${workspaceRoot}/build/phigw.elf",
            "name": "Debug PhiGW",
            "device": "STM32F417VE",
            "interface": "swd",
            "runToMain": true,
            "jlinkscript": "${workspaceRoot}/jlink/phigw.jlink",
            "svdFile": "${workspaceRoot}/jlink/STM32F407.svd"
        }
    ]
}

And here is my jlink script:

device STM32F417VE
si 1
speed 4000
loadbin build/phigw.bin, 0x08008000
r
g
q

Hope it helps.

Best regards,

Flavio

Em ter., 11 de mai. de 2021 às 14:36, Tim Hardisty
<t...@jti.uk.com.invalid> escreveu:
>
> Thanks Flavio - I hadn't thought about using a VM; that would avoid yet 
> another lump of PC hardware cluttering up the place if I can't get the WSL or 
> MAC approach to work.
>
> I am really hating Window at the moment (1 machine can connect to my Mac, the 
> other can't...many hours wasted NOT fixing it!) and I had thought it time to 
> jump ship to Mac...but Linux seems even more appealing right now!!
>
> On 11/05/2021, 18:24, "Flavio Castro Alves Filho" <flavio.al...@gmail.com> 
> wrote:
>
>     Hello Tim,
>
>     What I do here to implement a NuttX application is to use an Ubuntu
>     Server VM (in my case, VMWare).
>
>     In this VM, I map my Jlink (which is a nucleo board with changed
>     firmware). I use Segger tools to load the firmware.
>
>     To code, I use VSCode in Windows with SSH access to the VM (I set a
>     host-only network).
>
>     For the toolchain, I use x-pack arm-gcc. The toolchain provided by
>     ubuntu does not provide gdb.
>
>     You can use the VSCode extension with GDB and JLink to run.
>
>     Hope it helps.
>
>     Best regards,
>
>     Flavio
>
>
>
>
>


-- 
Flavio de Castro Alves Filho

flavio.al...@gmail.com
Twitter: http://twitter.com/#!/fraviofii
LinkedIn profile: www.linkedin.com/in/flaviocastroalves

Reply via email to