Search found 14 matches
- Mon Mar 15, 2021 7:57 pm
- Forum: General Discussion and Questions
- Topic: Using LSI for RTC
- Replies: 0
- Views: 1032
Using LSI for RTC
Hi All, I'm trying to do a small board using the STM32F412CE. I'm using HSI and also LSI to save space on the board (very size constrained). I have something working for the most part, but am having significant issues with time accuracy. Over a 120 second period micropython is only counting 104 seco...
- Wed Jul 15, 2020 8:21 pm
- Forum: MicroPython pyboard
- Topic: Pyboard with RS485
- Replies: 0
- Views: 1509
Pyboard with RS485
Hi, I'm doing some tests with the Pyboard and a RS485 driver chip. The chip is connected to one of the UARTs and has an 'enable' pin which is connected to an IO. The pin needs to be raised before the UART sends and then lowered after. Currently i'm doing this in software and it works, but I'm hoping...
- Mon Apr 06, 2020 6:41 am
- Forum: General Discussion and Questions
- Topic: Mboot SPI Flash Question
- Replies: 7
- Views: 3906
Re: Mboot SPI Flash Question
In case anyone else has this issue - it turns out that the problem was that I was using the internal crystal rather than an external crystal on my custom board. Micropython supports this but MBOOT did not, I spoke with Damien and he's adding a fix in main.c in mboot for this so shouldn't be an issue...
- Wed Apr 01, 2020 4:13 pm
- Forum: General Discussion and Questions
- Topic: Mboot SPI Flash Question
- Replies: 7
- Views: 3906
Re: Mboot SPI Flash Question
Thanks for the detailed reply Jimmo - going through each of your points: You have a custom board definition that is very similar to PYBV11 but with mboot in sector 0, filesystem in sectors 1, sector 2 unused (?), and code (inc ISR) at sector 3 onwards. Yes this is correct. And good spot I had missed...
- Tue Mar 31, 2020 9:18 pm
- Forum: General Discussion and Questions
- Topic: Mboot SPI Flash Question
- Replies: 7
- Views: 3906
Re: Mboot SPI Flash Question
Ah ok understood - i think they are slightly different (below) and the call to update_mpy() references the location/length of the SPI flash. 0x08000000<< Mboot start 0x80000000<< SPI Flash start Any other ideas on what could be causing it just to hang without deleting anything? I wasn't sure if it n...
- Tue Mar 31, 2020 9:05 pm
- Forum: General Discussion and Questions
- Topic: Mboot SPI Flash Question
- Replies: 7
- Views: 3906
Re: Mboot SPI Flash Question
Hi David, Thanks for the quick reply - My understanding is yes mboot is at 0x08000000 but I don't see how the DFU image starts at the same address? I thought the 'TEXT0_ADDR = 0x0800C000' shifts the ISR after the filesystem, leaving 0x08000000 free for MBOOT. I've pasted both memory files that are i...
- Tue Mar 31, 2020 5:04 pm
- Forum: General Discussion and Questions
- Topic: Mboot SPI Flash Question
- Replies: 7
- Views: 3906
Mboot SPI Flash Question
Hi all, I've built a custom board with the STM32F12CE (that's working fine with micropython after a new board definition) and I'm trying use MBOOT to load firmware from an SPI memory chip (32M-BIT Winbond W25Q32JV). I've previously got MBOOT working with the pyboard lite and a similar SPI memory chi...
- Mon Mar 16, 2020 9:25 am
- Forum: MicroPython pyboard
- Topic: Most efficient searching within large bytearrays
- Replies: 8
- Views: 9562
Re: Most efficient searching within large bytearrays
Thanks Robert - any ideas from anyone on a more efficient way than the function I posted are appreciated?
Best,
Marc
Best,
Marc
- Sun Mar 15, 2020 8:05 pm
- Forum: MicroPython pyboard
- Topic: Most efficient searching within large bytearrays
- Replies: 8
- Views: 9562
Re: Most efficient searching within large bytearrays
Hi Robert, Thanks for the quick reply, see below prints on the REPL. I'm just using a pyboard, do I have some old version or something? I should have added to my original post that I'm trying to do the .find() on the bytearray. Thanks! Print from Pyboard: >>> a = bytearray(20) >>> a.find(b'\r\n') Tr...
- Sun Mar 15, 2020 6:28 pm
- Forum: MicroPython pyboard
- Topic: Most efficient searching within large bytearrays
- Replies: 8
- Views: 9562
Most efficient searching within large bytearrays
Hi All, I've created a large (2000) bytearray with a memoryview to read a UART into. The commands that the UART is receiving can sometimes take a while to arrive, so I'd like to check for a specific finish character sequence within the bytearray in a loop. I've noticed that Micropython doesn't suppo...