Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Waveshare BLE400 #5478

Closed
jeanmatthieud opened this issue Nov 11, 2017 · 15 comments
Closed

Add support for Waveshare BLE400 #5478

jeanmatthieud opened this issue Nov 11, 2017 · 15 comments

Comments

@jeanmatthieud
Copy link

Description

  • Type: Enhancement

Enhancement

Is it possible to add support for Waveshare BLE400 board ?
I tried to do it myself but without success.

The Pins should be edited in this way:

    P00  = p0,
    P01  = p1,
    P02  = p2,
    P03  = p3,
    P04  = p4,
    P05  = p5,
    P06  = p6,
    P07  = p7,

    P08  = p8,
    P09  = p9,
    P010 = p10,
    P11 = p11,
    P12 = p12,
    P13 = p13,
    P14 = p14,
    P15 = p15,

    P16 = p16,
    P17 = p17,
    P18 = p18,
    P19 = p19,
    P20 = p20,
    P21 = p21,
    P22 = p22,
    P23 = p23,

    P24 = p24,
    P25 = p25,
    P26 = p26,
    P27 = p27,
    P28 = p28,
    P29 = p29,
    P30 = p30,

    LED0    = p18,
    LED1    = p19,
    LED2    = p20,
    LED3    = p21,
    LED4    = p22,

    BUTTON1 = p16,
    BUTTON2 = p17,

    KEY1 = p16,
    KEY2 = p17,

I'm not sure for RX, TX and CTS, RDS, but if the changes are made, I could test it and correct the files.

@0xc0170
Copy link
Contributor

0xc0170 commented Nov 16, 2017

Have you asked Waveshare if they are considering this addition ?

I tried to do it myself but without success.

You can always share your current work done (in case there is more work needed besides the pin names you shared above). Is there?

I'm not sure for RX, TX and CTS, RDS, but if the changes are made, I could test it and correct the files.

It seems there is Uart to usb converter on board, but not interface chip. No drag-n-drop programming?

@scttnlsn
Copy link

scttnlsn commented Mar 12, 2018

I've also tried running mBed on this board and I'm not sure why it doesn't work properly.

#include <mbed.h>

DigitalOut pin(P0_19);

int main() {
  while (true) {
    pin = 1;
    wait(0.5);
    pin = 0;
    wait(0.5);
  }

  return 0;
}

I flashed the above code with an ST-Link v2 but the LED did not blink. Haven't had a chance to debug it yet.

I was using this target: https://github.com/ARMmbed/mbed-os/tree/master/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_RBLAB_BLENANO

@danielkucera
Copy link

You should try target BBC micro:bit. It worked for me.

@scttnlsn
Copy link

@danielkucera That worked for me as well. Thanks! Maybe it was just an issue w/ the board's configured clock speed?

@danielkucera
Copy link

@scttnlsn No problem, I spent hours on making it work so I'm glad it helped. I don't know where the problem is, you can compare configs for those targets to see.
Here's my comment on mbeds page btw: https://os.mbed.com/forum/platform-39-Nordic-nRF51822-community/topic/4982/?page=2#comment-55087

@ciarmcom
Copy link
Member

ciarmcom commented Jun 1, 2018

ARM Internal Ref: MBOTRIAGE-134

@ashok-rao
Copy link
Contributor

There are currently no plans to support this target in Mbed OS. Issue can be closed. Please reopen if required. Thanks.

@SoniaZotz
Copy link

SoniaZotz commented Aug 6, 2018

So how does one develop embedded systems - where the board configuration does not follow any of Mbed standard defines boards?
here are currently no plans to support this target in Mbed OS BLE400 should not be a problem in this case.

@ashok-rao
Copy link
Contributor

ashok-rao commented Aug 6, 2018

@SoniaZotz : You are definitely welcome to port Mbed OS to this new target (& we'd be happy to answer questions you may have in the porting process), however, the above comment was to mention that there are no plans to add this target to the list of officially supported platforms from Mbed side..

cc @0xc0170

@0xc0170
Copy link
Contributor

0xc0170 commented Aug 6, 2018

@SoniaZotz If you have any questions , create a new issue with specific question regarding porting new target. Good starting point is https://os.mbed.com/docs/latest/reference/porting-targets.html

@danielkucera
Copy link

@SoniaZotz, I'm willing to help with porting and/or testing. Maybe we could start by forking BBC micro:bit which works for me and then just edit description, pin mapping etc.

@SoniaZotz
Copy link

thank you all for your quick response. It answered a few questions for me and resulted in a few more.
1- who controls officially supported platforms from Mbed side
2- the porting process is rather complicated ie https://os.mbed.com/docs/latest/reference/porting-targets.html
3- how does one port a module - for a specific processor ie: the NRF52 series as done in the NINA-
B1 series

@ashok-rao
Copy link
Contributor

@SoniaZotz ..

  1. Mbed internal teams controls the decision on officially supported platforms based on various criteria - https://www.mbed.com/en/about-mbed/mbed-enabled/
  2. The porting process linked above is for a new MCU. You have to start from scratch if you are porting a new MCU to Mbed OS.
  3. For a module (i.e. a derived target of an existing MCU port), we are working on a porting guide. This will be available ASAP. Hope this helps?

cc : @AnotherButler & @bulislaw (for point 3, refer: ARMmbed/mbed-os-5-docs#625)

@0xc0170
Copy link
Contributor

0xc0170 commented Aug 8, 2018

2- the porting process is rather complicated ie https://os.mbed.com/docs/latest/reference/porting-targets.html

Please provide feedback to https://github.com/ARMmbed/mbed-os-5-docs about the documentation (create new issue if its already not there with suggestions or questions you have regarding this porting doc page).

I've just noticed now 625 that is referenced above. Update ongoing!

@mutantcybertechnologies
Copy link

If the BBC microbit setting works for the ble400 (technically the core51822r3), has anyone tried to see if the Switch Science ty51822r3 can also be used. The specs on this seem a closed match than those of the BBC microbit (32k ram vs 16th ram), and this would allow mbed os 5 to be used

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants