Boot time is 10 seconds for a NUCLEO_L452RE build

Discussion and questions about boards that can run MicroPython but don't have a dedicated forum.
Target audience: Everyone interested in running MicroPython on other hardware.
Post Reply
User avatar
RWLTOK
Posts: 34
Joined: Thu Dec 14, 2017 7:24 pm

Boot time is 10 seconds for a NUCLEO_L452RE build

Post by RWLTOK » Mon Jan 20, 2020 12:09 am

I built V1.12 for the NUCLEO_L452RE board. When I reset the board, it is nearly 10 seconds before a promt appears. I checked this with a logic analyzer to prove that it was not a delay from WinDoz. Thoughts anyone? For what it's worth, I used whatever compiler you get with a apt-get install gcc-arm-none-eabi on Ubuntu 18.04 and not the latest version 9 that came out last Novemer from ARM Ltd.

Code: Select all

MicroPython v1.12-68-g3032ae115 on 2020-01-19; NUCLEO-L452RE with STM32L452RE
Type "help()" for more information.
>>>
Thanks

Rich

PS: With the same build environment, I created an image for the PYBV11. Here is the output. It responded to a reset in the normal quick time.

Code: Select all

MicroPython v1.12-68-g3032ae115 on 2020-01-19; PYBv1.1 with STM32F405RG
Type "help()" for more information.
>>>

User avatar
RWLTOK
Posts: 34
Joined: Thu Dec 14, 2017 7:24 pm

Re: Boot time is 10 seconds for a NUCLEO_L452RE build

Post by RWLTOK » Mon Jan 20, 2020 12:19 am

Here is some additional information:

Code: Select all

~/micropython/ports/stm32/boards$ diff NUCLEO_L452RE/stm32l4xx_hal_conf.h PYBV11/stm32f4xx_hal_conf.h 
5,6c5,6
< #ifndef MICROPY_INCLUDED_STM32L4XX_HAL_CONF_H
< #define MICROPY_INCLUDED_STM32L4XX_HAL_CONF_H
---
> #ifndef MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H
> #define MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H
8c8
< #include "boards/stm32l4xx_hal_conf_base.h"
---
> #include "boards/stm32f4xx_hal_conf_base.h"
11c11
< #define HSE_VALUE (8000000)
---
> #define HSE_VALUE (12000000)
13,14c13
< #define EXTERNAL_SAI1_CLOCK_VALUE (48000)
< #define EXTERNAL_SAI2_CLOCK_VALUE (48000)
---
> #define EXTERNAL_CLOCK_VALUE (12288000)
20c19
< #endif // MICROPY_INCLUDED_STM32L4XX_HAL_CONF_H
---
> #endif // MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H
rich@poseiden:~/micropython/ports/stm32/boards$ 

chrismas9
Posts: 134
Joined: Wed Jun 25, 2014 10:07 am

Re: Boot time is 10 seconds for a NUCLEO_L452RE build

Post by chrismas9 » Mon Jan 27, 2020 10:01 am

I just updated my build to latest, rebuilt mpy-cross, updated submodules and built NUCLEO_L452RE using WSL. the NUCLEO board boots immediately. I am using gcc 9.2.1 from ARM and WSL/UBUNTU 16.04.

Code: Select all

>>> MicroPython v1.12-96-gc3095b3 on 2020-01-27; NUCLEO-L452RE with STM32L452RE
Type "help()" for more information.

Code: Select all

Distributor ID: Ubuntu
Description:    Ubuntu 16.04.5 LTS
Release:        16.04
Codename:       xenial

Code: Select all

arm-none-eabi-gcc (GNU Tools for Arm Embedded Processors 9-2019-q4-major) 9.2.1 20191025 (release) [ARM/arm-9-branch revision 277599]

User avatar
RWLTOK
Posts: 34
Joined: Thu Dec 14, 2017 7:24 pm

Re: Boot time is 10 seconds for a NUCLEO_L452RE_P build

Post by RWLTOK » Sat Feb 15, 2020 4:02 pm

<scratching head> Ok... The ole "works on my machine". That is good to know. I am using an older compiler version and 18.03. Hmm. I actually have the NUCLEO_L452RE_P. This is the one with SMPS (low voltage core) support. I wonder if there is a different default clock speed. Even though I have it jumpered for 3.3V operation, I don't think the CPU knows that. Thanks for responding. I now have a place I can look for the cause.

I updated the subject to add the _P.

Rich

Post Reply