![]() |
Forum Index : Microcontroller and PC projects : PicoMite Start-up time
Author | Message | ||||
skytron Newbie ![]() Joined: 05/02/2022 Location: United StatesPosts: 2 |
Has anyone had any insight into startup time? How long should the PiPico running PicMite and a ILI9431 LCD take to start up from power application to GPIO flashing? My circuit takes 1.5 seconds with the USB connected and 3.0 with no USB connection. No data is being sent or received over the USB. I'm using this in a project where the system powers up, runs and then shuts down. I have an external device controlling the power sequencing. The project is battery powered and running time has a great impact on battery life. I need to start up faster than 3 seconds. Can I do anything to speed up the start-up? Any help is appreciated. Regards, Dave |
||||
Grogster![]() Admin Group ![]() Joined: 31/12/2012 Location: New ZealandPosts: 9610 |
Hello. Welcome to the forums. ![]() I think you might be snookered. I will run a couple of tests here just flashing an LED at powerup(not the heartbeat one on the module), and see. But I think that it just takes that long, as the PM module has to copy sections of the MMBASIC interpreter from the QSPI flash storage, into the RP2040 RAM, and as the QSPI interface is relatively slow.....C'est La Vie.... If you need a more "Instant on" method, you would probably need to look at the 170 Micromite(the Micromite2 chip based on the PIC32 MX170F256B-I/SP processor in 28-pin DIL footprint). These start instantly, as there is no copying/loading of the interpreter needed - it runs instantly from flash in those chips. EDIT: Nope, 3s it is. This will not be changeable due to the way that the PicoMite works. For faster startup, you will need to use the PIC32 chips which DO start running the code instantly. My test code was nothing more then: SetPin GP1,DOUT Pin(GP1)=1 I saved this(FLASH SAVE 2) then I used OPTION AUTORUN 2 to select this code to run at startup. I then got both hands ready, reset the PM with on, while starting a timer with the other. I recorded 3.63 seconds before the LED on GP1 lit, and I can repeat that at will with pretty much the same startup delay each time, so...... Edited 2022-11-07 13:53 by Grogster Smoke makes things work. When the smoke gets out, it stops! |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6283 |
I haven't tried it but OPTION SERIAL CONSOLE uartapin, uartbpin will disable the USB and it 'might' save some startup time. You will need a USB to TL adapter ready to reset the pico if needed. Jim VK7JH MMedit |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |