This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

(Solved) Help with WGT51822-S2 module

Hi,

I have been developing using some development modules from WaveShare (based on the nRF51822 QFAC) and they work fine.

However, I'm now trying to use a module better suited small scale deployment, which I sourced from AliExpress

www.aliexpress.com/.../32486456702.html

And the module does not seem to work at all, after I upload exactly the same code as for the QFAC module.

I know the QFAA is 16k RAM and the QFAC is 32k, but I don't think this is the problem, because I tried loading a precompiled bootloader (from RedBearLab) for one of their products which uses the QFAA and I still do not get any advertising packets on BLE :-(

I know the module was originally working, as it came pre-flashed with some sort of BLE to Serial / AT command set firmware, and it was visible on BLE.

However after I erased the chip (using JFlash), and reflashed any other code, I can't get it to do anything.

Is there any other sort of master reset that I may need to do on this device apart from using Erase Chip in JFlash ? (Actually I tried using another GDB compatible SWD programmer and used the "monitor erase_mass" command, which normally totally erases the nRf51, but it didnt make any difference :-(

I guess I can go back to first principals and perhaps load a program that does virtually nothing except toggle a GPIO pin, and run it in the debugger.

But I was hoping there was perhaps something else I could try, before I have to configure GDB etc in Eclipse etc, as I don't have it configured to do on chip debugging at the moment.

Thanks

Edit.

I have since found the module is actually a Wireless-tag.com WGT51822-S2, and the problem is because it does not have a 32kHz crystal So I have changed the title as this is more accurate

  • Thanks Torbjørn

    I have managed to get the module working using mbed (online), by using the "platform" of the "Switch Science HFM1017" - which I know does not have a 32khz crystal. If I download the hex file from mbed and flash using that. It all works.

    So, I have exported all the files so that I can compare with the local set I had been using (which were originally exported from mbed by RedBearLabs some time ago)

    I have the SDK and I had Eclipse setup on one machine, but I'm now using a new PC, so I have to set it up all over again :-(

    I think I need to read the nRF51 programming manual, as I thought I had made all the necessary changes to use the RC osciallator instead of the Crystal oscillator, but I must have missed something

    Anyway. Thanks again for your help. Cheers

    Roger

  • I am happy to help Roger. Feel free to accept the answer if you feel the issue is resolved :)

  • Sorry for not replying sooner.

    The issue was definitely because these modules don't have the 32kHz crystal and most example code is setup to require the 32kHz crystal

    To prove this, I found a 32kHz crystal, and soldered it to the module and all my example code now works fine.

    BTW. I found out the module is actually a Wireless-tag.com WGT51822-S2, but was this was not shown in the AliExpress listing.

    I'm not sure how to mark this thread as resolved, so please mark this question as answered if you can

    Thankyou again for all your help

    Cheers

    Roger Clark

Related