This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

mbed gcc/gdb development?

I recently received a nrf51822 mbed board.

I went with the mbed board over the EK because I figured it was more 'open', without realizing exactly what mbed was. I played around with some of the test apps, which seem to work just fine, but what I really want is gcc and gdb, not a web IDE. I want to be able to flash code and run directly from gdb like I do on the STM32s.

mbed's USB storage firmware upload interface can't seem to parse intelhex files generated with gcc and objdump (from the pca10001 sdk examples). It emits a fail.txt with "CORRUPT FILE". This post talks about the problem, but no solution is provided.

So I decided to try ARM's pyOCD, but it doesn't seem to be able to find the nrf51822 mbed board cmsis-dap endpoint. It knows when the mbed board is plugged in, but fails with "Endpoints not found". I see the MBED CMSIS-DAP HCI endpoint in lsusb. Same thing happens with the flash_nrf51822.py script I found (but it is using the same pyOCD interface).

The MSC interface seems to program the device and the CDC interface produces serial data, but not so much luck with the cmsis-dap.

Is anyone trying to do nrf51822/arm-gcc development with the mbed board? I can't be the only one trying to do this. My nrf51822 PCBs should be here next week and I'd really like to have something to exercise the hardware before then.

Unrelated (?) to this, the sniffer doesn't seem to find the mbed board under windows. I installed the mbed drivers and the device shows up as expected, but the snifffer doesn't find the device. If I send traffic the LED blinks as expected and when I connect to the serial port I see data on the serial interface.

Parents Reply Children
No Data
Related