Closed davefes closed 9 months ago
ugh... you get?
Sorry, had to re-boot the computer to finish the issue
Just before I raise an issue on 'micropython/lora` ... are there subtle differences running a program from internal flash and SPI flash on the WeACT BlackPill?
On thing that I can think of is the power consumption. Just a little brainstorming here.
The way micropython or python in general works, is according to my limited knowledge, irrelevant from the storage medium, where the code is stored, as long as they can be read by the interpreter correctly. The source code is compiled into bytecodes and these are stored in RAM, then it excute from RAM. So technically once the code is (correctly compiled and) loaded into the RAM, the programm should not be faulty, unless it has bugs.
Sorry, had to re-boot the computer to finish the issue
:D all good!
Also, there is a weird issue with the spi peripheral, described here in the spi.c
from the stm32
port. Maybe, just maybe, this has something to do with it (very unlikely).
And I also noticed that you used B10
for reset? B10
is used by I2C2
, just in case..
I am not using any I2C so thought it would be OK to use for my LoRa chip reset. I also tried B9.
OK, I'll post a micropythpon issue and hope that Angus has a suggestion. Thanks
B9
is also used by I2C2
, but since you do not use any I2C, there should not be any issue.
I re-checked running the "regular" firmware version and I get the same error. Appears there could be a problem with the LoRa chips.
micropython/lora
runs OK on the "regular" version. But on the 8MB version I get:On another distro this indicated to me that the LoRa chip was not reset properly. I looked at the reset pulse (on B10) and saw that it varied from the programmed value of 1ms, over the range of 1ms to 100us, on repeated CTRL-Ds. So, I lengthened the pulse to 10ms, which did not fix the problem.
Just before I raise an issue on 'micropython/lora` ... are there subtle differences running a program from internal flash and SPI flash on the WeACT BlackPill?