Search found 23 matches

by heliochronix
Mon Sep 14, 2020 5:53 pm
Forum: General Support
Topic: Shared SPI Bus with IRQ Architecture
Replies: 4
Views: 114

Re: Shared SPI Bus with IRQ Architecture

Hello again, I'm continuing work on this implementation, and I'm trying to understand the Events system to see if I can leverage it to wake up the appropriate threads via an event, but I think I might be missing something. Basically, as it currently stands I have the following IRQ related code, and ...
by heliochronix
Thu Sep 10, 2020 7:24 pm
Forum: General Support
Topic: Shared SPI Bus with IRQ Architecture
Replies: 4
Views: 114

Re: Shared SPI Bus with IRQ Architecture

Okay, so I should implement a driver worker that handles this basically. Makes sense. I can probably incorporate the dispatch code into that as well. Thank you for the advice!
by heliochronix
Thu Sep 10, 2020 7:15 pm
Forum: General Support
Topic: Shared SPI Bus with IRQ Architecture
Replies: 4
Views: 114

Shared SPI Bus with IRQ Architecture

Hello everyone, I'm curious if anyone has experience with or knows what would be the "best practice" for implementing a driver for two devices on a shared SPI bus. Basically, I have two radio chips (AX5043) on one SPI bus, and I'm writing a ChibiOS style driver for them. Both chips provide...
by heliochronix
Mon Aug 24, 2020 4:59 pm
Forum: Bug Reports
Topic: SDC driver uses reserved CMD for erase Topic is solved
Replies: 4
Views: 260

Re: SDC driver uses reserved CMD for erase Topic is solved

Ah okay, fair enough.

I guess generally speaking it's not needed. I was trying to test some alternatives to FatFS for more fault tolerant space applications, and some of them expect an erase function. I think I worked around it though by just having the erase functions do a write of 0xFFFFFFFF.
by heliochronix
Fri Aug 21, 2020 12:06 am
Forum: Bug Reports
Topic: SDC driver uses reserved CMD for erase Topic is solved
Replies: 4
Views: 260

Re: SDC driver uses reserved CMD for erase Topic is solved

Looking into this more, while CMD35 and CMD36 indicate the command succeeded, they are not drop-in replacements for what CMD32 and CMD33 were. Apparently CMD32/CMD33 erase a range of sectors (blocks), while CMD35/CMD36 erase a range of groups of blocks that could be 16-32 blocks long (so START 1 END...
by heliochronix
Wed Aug 19, 2020 7:41 pm
Forum: Bug Reports
Topic: SDC driver uses reserved CMD for erase Topic is solved
Replies: 4
Views: 260

SDC driver uses reserved CMD for erase Topic is solved

ChibiOS version: stable_20.3.x@13804 Compiler: gcc (GCC) 10.1.0 Platform/board: Custom board implementing STM32F446RE and 4-bit eMMC Problem: sdcErase() uses the reserved commands CMD32 and CMD33 according to the STM32F446xx Reference Manual Table 200. This causes the SDIOv1 driver to respond with H...
by heliochronix
Tue Oct 01, 2019 12:07 am
Forum: ChibiOS/HAL
Topic: MFS on top of MMC/SD drivers
Replies: 3
Views: 951

Re: MFS on top of MMC/SD drivers

Hello, That's a good point. Mostly we wanted to try it on MMC/SD for ease of swapping out and checking during the development/testing phase of our project. I'll take a look at littlefs to see if it'll work for us. The goal is to have redundant checksum'd firmware images and configuration information...
by heliochronix
Tue Oct 01, 2019 12:02 am
Forum: Bug Reports
Topic: STM32F446 wrong PLLSAI source for CK48MSEL_PLLALT Topic is solved
Replies: 9
Views: 860

Re: STM32F446 wrong PLLSAI source for CK48MSEL_PLLALT Topic is solved

Hello,

It looks like the patch set never sets STM32_PLL48CLK to STM32_CK48MSEL_ALTSRC.
by heliochronix
Thu Sep 26, 2019 5:58 pm
Forum: ChibiOS/HAL
Topic: MFS on top of MMC/SD drivers
Replies: 3
Views: 951

MFS on top of MMC/SD drivers

Hello everyone, I'm currently working on a project that would benefit greatly from the MFS complex driver. I'm trying to figure out if it's possible to use this with one of the SD/MMC drivers I have available for my platform to implement the MFS BaseFlash object. My platform is an STM32F446RE, so I ...
by heliochronix
Wed Sep 25, 2019 6:41 pm
Forum: Bug Reports
Topic: STM32F446 wrong PLLSAI source for CK48MSEL_PLLALT Topic is solved
Replies: 9
Views: 860

STM32F446 wrong PLLSAI source for CK48MSEL_PLLALT Topic is solved

Hello, As of trunk@13027 I've discovered that STM32F446 should use PLLSAI_P_CLKOUT as its source when CK48MSEL is set to PLLALT. This differs from most of the other F4xx devices which use either PLLSAI_Q_CLKOUT or PLLI2S_Q_CLKOUT (which is what's currently coded), so this may require some slight cha...

Go to advanced search