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

nRF52832 Flash_fds example

Hi, 

I am using nRF52832 mcu, trying to run the flash data storage example but is having some trouble.

I followed the instructions to set up the terminal setting for UART using PuTTY, but nothing happens when I click on OPEN. I am using the newest version for PuTTY. Is there any setting that I might also have to change other than those specified in the instructions?

Thank you!

Parents
  • Hi,

    Are you using the nRF52 DK?

    Which one of the examples are you using (blank or s132)? Note that if you use the s132 version you need to program the s132 SoftDevice as well. This is done automatically from SES when using a SES project, but if you use other toolchains or program manually using e.g. nrfjprog then you must make sure to program both application and SoftDevice.

    In putty, did you set both "Terminal settings" and "UART and USB settings"?

    In the project, is it configured to use UART for CLI (in sdk_config.h)? (Settings should be good if unmodified example from SDK.)

    Note also that you need to select the correct serial line in PuTTY, e.g. the correct COM port. (One easy way to figure out what is the correct COM port is to use the nRF Connect BLE app, as it will list available devices under "Select device" with PCA number and serial port.

    Regards,
    Terje

  • Thank you for your response. I am using the nRF52832 DK. I have tried both blank and s132, and I am flash directly through the SES software.

    I have also ensured that these settings in sdk_config.h are set to ON. 

    #ifndef UART_ENABLED
    #define UART_ENABLED 1
    #endif
    
    
    #ifndef NRF_CLI_UART_ENABLED
    #define NRF_CLI_UART_ENABLED 1
    #endif
    
    
    #ifndef NRF_CLI_ENABLED
    #define NRF_CLI_ENABLED 1
    #endif

    I managed to open the terminal changing to the correct com port. However, I did not get a menu in the console, as described in https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.0.0%2Ffds_example.html. Instead I have a blank screen.

  • Hi,

    Following the "Testing" description for the example, and making sure I fill all the correct terminal settings, I do get a blank screen in the terminal as well after pressing "Open" in Putty.

    The reason is the DK application had already run for a while, so it had already printed out the menu, before I connected from PuTTY.

    After resetting the DK by pressing the IF BOOT/RESET button, the application restarts and I get the menu printed in the PuTTY terminal.

    Does it work after a DK reset for you as well?

    Please also check that you choose the "Serial" option under the Session configuration category in Putty, and double check that Serial line and Speed are correct. For me it was COM57, and so it looks like this:

    Regards,
    Terje

  • Hi Terje,

    Thank you for your response. Yes, I have chosen "Serial" under connection type, ensured that my Serial line is correct and the baud rate is set to 115200.

    After a DK reset, only a letter 'f' showed up on the screen. I tried doing the DK reset multiple times with both blank and s132, and the same thing happens each time.

Reply Children
  • Hi,

    Just to be clear, you are now back at testing the unmodified example right from the SDK?

    Can you share screenshots of the other pages in PuTTY Configuration as well, in case there is anything we have missed?

    Regards,
    Terje

  • Hi Terje,

    Yes, I am just testing with the unmodified example right from the SDK.

    These are the pages in PuTTY configurations which I have changed according to the document.

    Thank you for your patience!

  • Hi,

    Yes, everything seems to be in order there.

    It may be an issue with data left in flash from a previous application? You can check that by doing a full erase of the flash before programming the board. Use either nrfjprog ("nrfjprog -e" on command line) or the nRF Connect Programmer app ("Erase all" button).

    How is the DK connected to the PC? Is it via a USB hub, or docking station, or directly in a USB port on the PC itself? Can you try different USB ports to see if there may be an issue with the particular USB port?

    Regards,
    Terje

  • Sorry, My nRF52-dk stopped working all of a sudden and I can't fix it :/ The LED doesn't light up when I plugged it in. Just for the record, the dk was connected directly in a USB port on the PC.

    Is there a way for me to test out the example without the dev kit? I have a JTAG/SWD Debugger Programmer that I can upload the code with, but I don't think I can use Serial communication anymore?

  • Hi,

    I am sorry to hear about the board. Do you have any other boards or dongles that you can try with? For using the serial CLI you would need a UART or RTT connection to the SoC, both of which are provided by the programmer MCU on the DK.

    Regarding the now non-working DK, was it a brand new DK or has it been used a lot? Are there any solder bridges that have been cut or soldered, etc? What are the markings on the DK? (PCA10040, etc.)

    You could try to download the latest interface firmware to the programmer MCU on the board, have a look at the DK User Guide for how to.

    Regards,
    Terje

Related