Skip to content

BLE issue with default sample file #31

@erbabu

Description

@erbabu

Hi
I have microbit v1.5 hardware. I have created a sample BLE program using Makecode for UART (keeping only bluetooth UART service block in onstart; do UART read till EOL and display in LED; write accelerometer readings to serial write on button-A click). This hex output from Makecode works fine. No issues. If I add any extra code, the BLE service is not recognizing microbit in smartphone.

So, after going through help doc and internet search, decided to work with mbed IDE assuming that it should allow me to add more services and code. Used the sample program under bluetooth-uart, did the modifications directly in microbitconfig.h as per the config.cpp and the help provided in Martin blog (http://bluetooth-mdw.blogspot.co.uk/p/bbc-microbit.html#mbed_ble). Compiled and flashed the output in microbit. In the pairing mode, microbit is not recognized in smartphone. BLE bitty blue and another BLE UART serial app also didn't recognize microbit.

Read in a post that mbed IDE is having old DAL bits, not the latest 2.1.1, so created a new program and added the microbit:DAL library manually using import from URL method but during compile it threw errors like inside class, we can't assign values to a variable, etc. I am not sure on the error, I assume that mbed IDE compiler may be old.

So, went through microbit github page and installed yotta. I am able to compile and run sample programs like Hello World and accelerometer (which was not working in mbed IDE due to the new accelerometer chip in my hardware version which is supported in makecode and yotta only). In yotta build also, bluetooth-uart is not working and it is not able to recognize microbit hardware in smartphone. If I flash my makecode bluetooth hex file, hardware is recognized and I am able to use UART. For some reason, mbed or yotta version of hex file is not working.

Need help in understanding the issue in this case.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions