Search found 21 matches
- Wed Aug 19, 2020 2:02 pm
- Forum: General Discussion and Questions
- Topic: Increasing SPI Speed for SPI ADC
- Replies: 1
- Views: 1369
Increasing SPI Speed for SPI ADC
Hello, I have a data logger using MicroPython 1.12 with a design based on the Pyboard 1.1. I have an external SPI ADC which is a LTC1857 as shown in the datasheet below where the SPI bus speed is set to 5Mbps. There are also other SPI devices on the same bus but this should not be relevant to the pr...
- Sun Aug 02, 2020 12:21 am
- Forum: General Discussion and Questions
- Topic: RTC sub-seconds prescaler register not writable
- Replies: 2
- Views: 1755
Re: RTC sub-seconds prescaler register not writable
@chuckbook Thank you for the reply. I did try changing the default PRER value in the STM32 HAL file which should set it's default value on power up so I would have thought this should have changed the prescalar value? I noticed in the STM32 manual that the reset value is the same as the default valu...
- Fri Jul 31, 2020 1:56 pm
- Forum: General Discussion and Questions
- Topic: RTC sub-seconds prescaler register not writable
- Replies: 2
- Views: 1755
RTC sub-seconds prescaler register not writable
Hello, I have a Pyboard V1.1 project using Micropython 1.12 where I would like to change the RTC sub-seconds from 4ms to 1ms. From the STM32 manual (RM0090) there is the 32,768 Hz RTC coming into the "RTC_PRER" register and by default this is set to 0x7f (127) giving an output frequency of 256Hz for...
- Sun Apr 12, 2020 1:52 am
- Forum: General Discussion and Questions
- Topic: FAT32 SD card writes get slower as the file gets bigger
- Replies: 3
- Views: 2982
Re: FAT32 SD card writes get slower as the file gets bigger
After some more time was spent on this here is the solution to this problem which might help others. It was found that the operation that increases in time as the file size increases was the file opening as shown below: self.file = open(self.filePathLog, 'a') self.bytesWritten = self.file.write(data...
- Fri Feb 07, 2020 1:45 pm
- Forum: General Discussion and Questions
- Topic: FAT32 SD card writes get slower as the file gets bigger
- Replies: 3
- Views: 2982
FAT32 SD card writes get slower as the file gets bigger
Hello, I have a data logger based on PyBoard 1.1 where files are written to the FAT32 SD card at a rate from 0.1s up to 24 hours in CSV format. What I have noticed when trying different ways to manage the logs files are the following: 1. If you create a new file say every minute, hour or day, is tha...
- Fri Feb 07, 2020 1:28 pm
- Forum: General Discussion and Questions
- Topic: SD Card Not Working - MPY: can't mount SD card
- Replies: 6
- Views: 3609
Re: SD Card Not Working - MPY: can't mount SD card
I am not sure what happened here with the routing, but I will see how the next board goes.
@ chrismas9
It is a 4 layer PCB with a power and GND plane so this should be fine?
@ chrismas9
It is a 4 layer PCB with a power and GND plane so this should be fine?
- Fri Jan 24, 2020 2:04 pm
- Forum: General Discussion and Questions
- Topic: SD Card Not Working - MPY: can't mount SD card
- Replies: 6
- Views: 3609
Re: SD Card Not Working - MPY: can't mount SD card
Thank you for your comments and suggestions. I finally just found the issue (this is a part-time effort currently) which ended up being two tracks touching from the auto-routing as shown by the red arrow below: pcb-back (Small).JPG Unfortunately, I did not pick that up before sending the design off ...
- Thu Jan 23, 2020 11:45 pm
- Forum: General Discussion and Questions
- Topic: SD Card Not Working - MPY: can't mount SD card
- Replies: 6
- Views: 3609
SD Card Not Working - MPY: can't mount SD card
I have been developing a data logger using MicroPython 1.12 and I am currently up to PCB revision 3. The first two revisions worked fine with the SD card and it mounted as normal when you plug the USB into a PC and I could see the SD card. The third revision of my PCB, the SD card is slightly furthe...
- Fri Nov 15, 2019 2:19 pm
- Forum: General Discussion and Questions
- Topic: Reverse engineer Micropython bytecode (.mpy) vs Python bytecode (.pyc)
- Replies: 2
- Views: 3055
Reverse engineer Micropython bytecode (.mpy) vs Python bytecode (.pyc)
I would like to know how easy it is to reverse engineer Micropython bytecode (.mpy) vs Python bytecode (.pyc)? I have a product which I will need to supply updates in DFU format for the STM32 and while you can set fuses to prevent reading the flash memory on the STM32, I am interested to know how ea...
- Fri Nov 15, 2019 2:03 pm
- Forum: General Discussion and Questions
- Topic: Pyboard machine.deepsleep not waking from RTC, PA0, PC13 when other ICs have power
- Replies: 4
- Views: 3131
Re: Pyboard machine.deepsleep not waking from RTC, PA0, PC13 when other ICs have power
The problem ended up being the MCP23S17 chip has an IO-RESET pin which was not pulled high (resets on low). This meant that in deep sleep, the STM32 was no longer controlling this pin so it went low putting the chip into reset which was preventing PA0 from triggered the wake up interrupt. The fix wa...