MaixPy-v1 icon indicating copy to clipboard operation
MaixPy-v1 copied to clipboard

Note on the use of `board_info` problem.

Open junhuanchen opened this issue 4 years ago • 0 comments

About this question, here is a unified reply.

We need to see this place where one is the definition and load the configuration.

https://github.com/sipeed/MaixPy/blob/master/components/micropython/port/builtin_py/board.py

If you don't provide the configuration, you won't get the concrete variable.

If it is SIPEED published hardware, the appropriate configuration is provided here.

https://github.com/sipeed/MaixPy_scripts/tree/master/board

you can enter the default configuration here if it is your own hardware.

https://github.com/sipeed/MaixPy/blob/f18990aa32d6c7a9ed609c7a790a02c40479d1ad/components/micropython/port/builtin_py/board.py#L13-L21

Only the BOOT_KEY has the default value, the others need to fill in the configuration itself.

junhuanchen avatar Jan 11 '21 01:01 junhuanchen