How do I build-in ussl support for this board?

The official pyboard running MicroPython.
This is the reference design and main target board for MicroPython.
You can buy one at the store.
Target audience: Users with a pyboard.
Post Reply
davef
Posts: 811
Joined: Thu Apr 30, 2020 1:03 am
Location: Christchurch, NZ

How do I build-in ussl support for this board?

Post by davef » Tue Aug 04, 2020 4:48 am

I can get ussl in the unix build but exactly which lines have to go in which config file for the stm32 port eludes me.

Thanks,
Dave

User avatar
pythoncoder
Posts: 5956
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: How do I build-in ussl support for this board?

Post by pythoncoder » Tue Aug 04, 2020 5:50 am

See the build for the Pyboard D series.
Peter Hinch
Index to my micropython libraries.

davef
Posts: 811
Joined: Thu Apr 30, 2020 1:03 am
Location: Christchurch, NZ

Re: How do I build-in ussl support for this board?

Post by davef » Tue Aug 04, 2020 6:39 am

Hi Peter,

By placing the following lines into mpconfigboard.mk:

Code: Select all

MICROPY_PY_USSL = 1
MICROPY_SSL_MBEDTLS = 1
I now have ussl.

Thank you very much!

Cheers,
Dave

davef
Posts: 811
Joined: Thu Apr 30, 2020 1:03 am
Location: Christchurch, NZ

Re: How do I build-in ussl support for this board?

Post by davef » Tue Aug 04, 2020 6:53 am

Could someone point to an explanation of what some of the build files are suppose to contain? Specifically, mpconfigport.h mpconfigport.mk, mpconfigboard,h and mpconfigboard.mk

For this particular ussl issue putting

Code: Select all

MICROPY_PY_USSL = 1
into mkconfigboard.mk works and putting

Code: Select all

#define MICRO_PY_USSL  (1)
into mkconfigboard.h doesn't work.

Thanks,
Dave

Post Reply