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

Blink prog tutorial for nrf52832 with STM discovery as J link

Hello every one,

So after I made my 3rd party NRF52832 board and flashed softdevice S132 with arduin ide and ST link V2 I'd like to migrate to something more serious in term of software that will allow me to use the UART, I2C, PWM, and something like the tone() function on the arduino , BLE central and NFC assuming I don't know pure C++ MCU programming and I want to learn it in relation to that SOC where do I start assuming my programming tool is STM32 configured as J link(or st linkV2 dongle) and my finale program is going to take more than 32K flash memory and it has to be free(from sniffing around a bit I think eclipse IDE is the best solution for now as I've already stetted it up like the included tutorials(but still they weren't explaining for to flash the chip or what every line of the code means))?

for now I think the best solution for that is to follow a guide(preferably a video) that teaches how to write a program to blink a pin of the chip.

and I don't have the nrf52832 DK.

  • You're free to use Eclipse if you want, but I would suggest using Segger Embedded Studio since I think its more beginner friendly (less configuration needed), we have a tutorial here.

    There are a lot of tutorial covering how to flash the nRF52832 with a ST Link v2, see this answer.

    As for a tutorial, we do not have a tutorial covering how to toggle a pin, but we have very simple examples that should be easy to understand, e.g. the blinky example.

  • Well that post didn't kinda helps the tutorial there weren't very related to developing 3rd party+st link v2+eclipse and I'd like to use a free IDE because I can't be limited to 32K it's just above it and uVision has a UO from the 60's can't believe people still use it.

    I'll just hope I'll be able to go to the tech tour Nordic is having at Israel in the 26th and get to meet some engineers that could help me out on getting started.

    also the example about blinky you included doesn't help much as the source code is not there and there are many other things around it that are left uncommented.

    but thanks anyway.

  • You are right that Segger Embedded Studio is not a free IDE, but it is free for evaluation purposes, does not have any program size limit and is in my mind much more suitable for beginners than eclipse.

    Some of the users using the ST-Link v2 use OpenOCD to program custom nRF52 boards, but I have not used OpenOCD. I am under the impression that you have a STM32L053 discovery board that you should be able to convert to a JLink OB, see this page. If you do that then you should be able to use it with Segger Embedded Studio. The blinky example page on our Infocenter clearly states that the source code can be found in the SDK install folder under examples\peripheral\blinky. You can download the SDK from this page.

Related