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

Parents
  • 1.The module you post from AliExpress, it seems no 32.768 crystal. Did you check it?

    2.The AC and AA need different build option, make sure you change to right one.

    image description

  • @Torbjørn

    Yes.

    I'm using the S130 soft device from the Version 9 SDK

    I'll need to track down where in the code this is currently getting setup. I did a quick search through the codebase I'm using, (mostly from mbed) and I can't see anything like SOFTDEVICE_HANDLER_INIT

    Sorry if I seem vague about this,but I'm using a modified version of the RedBearLab's firmware for the Arduino IDE, as it compiles under GCC.

    And I'm not currently familiar with how the code is structured.

    I am however very familiar with embedded development as I am webmaster on www.stm32duino.com and host the Arduino_STM32 repo's on my github account.

Reply
  • @Torbjørn

    Yes.

    I'm using the S130 soft device from the Version 9 SDK

    I'll need to track down where in the code this is currently getting setup. I did a quick search through the codebase I'm using, (mostly from mbed) and I can't see anything like SOFTDEVICE_HANDLER_INIT

    Sorry if I seem vague about this,but I'm using a modified version of the RedBearLab's firmware for the Arduino IDE, as it compiles under GCC.

    And I'm not currently familiar with how the code is structured.

    I am however very familiar with embedded development as I am webmaster on www.stm32duino.com and host the Arduino_STM32 repo's on my github account.

Children
No Data
Related