Search found 190 matches

by dflogeras
Fri Oct 05, 2018 11:31 am
Forum: STM32 Support
Topic: STM32L433 and I2C
Replies: 4
Views: 749

Re: STM32L433 and I2C

Thanks Giovanni, will do In case anyone else finds this thread in the future and sees the above config, it was also necessary to add OPENDRAIN as follows palSetPadMode(GPIOB, 8, PAL_MODE_ALTERNATE(4) | PAL_STM32_PUPDR_PULLUP | PAL_STM32_OTYPE_OPENDRAIN | PAL_STM32_OSPEED_HIGH); palSetPadMode(GPIOB, ...
by dflogeras
Thu Oct 04, 2018 7:43 pm
Forum: STM32 Support
Topic: STM32L433 and I2C
Replies: 4
Views: 749

Re: STM32L433 and I2C

Found my issue, I failed to start the HSI16 clock in mcuconf.h

Would it be possible to add a compile time check for this?
by dflogeras
Thu Oct 04, 2018 6:20 pm
Forum: STM32 Support
Topic: STM32L433 and I2C
Replies: 4
Views: 749

Re: STM32L433 and I2C

Forgot this, like I said I pulled it right out of the RM (although curiously CUBE gets a different answer)

Code: Select all

static const I2CConfig i2cconfig = {
  STM32_TIMINGR_PRESC(0U) |
  STM32_TIMINGR_SCLDEL(1U) | STM32_TIMINGR_SDADEL(0U) |
  STM32_TIMINGR_SCLH(6U)  | STM32_TIMINGR_SCLL(10U),
  0,
  0
};
by dflogeras
Thu Oct 04, 2018 6:18 pm
Forum: STM32 Support
Topic: STM32L433 and I2C
Replies: 4
Views: 749

STM32L433 and I2C

Hi, I'm playing with the STM32L433-Nucleo64 board. As I mentioned in a previous thread, I'm using the STM32L443xx in my board.h since 433 isn't in the registry but shares almost everything with the 443 with the exception of missing the AES peripheral which I'm not touching. I'm using ChibiOS_18 All ...
by dflogeras
Thu Sep 27, 2018 11:05 pm
Forum: STM32 Support
Topic: Dynamically turning on/off FPU
Replies: 1
Views: 422

Dynamically turning on/off FPU

Just wondering if anyone has played around with enabling/disabling the FPU on an STM32 on the fly. AFAICT, currently it is either initialized at boot time, or not, but once on it is on. I was just wondering if an application could feasibly turn it off when not in use, and re-enable it as required. W...
by dflogeras
Sun Sep 23, 2018 5:37 pm
Forum: Small Change Requests
Topic: Untagged structs in ChibiOS Topic is solved
Replies: 4
Views: 941

Re: Untagged structs in ChibiOS Topic is solved

All good,

Here's a patch, it applies cleanly to trunk as well as 17.6.x and 18.2.x branches in case you want to incorporate it into them.

spi_config_untagged_struct.zip
patch for untagged SPIConfig type
(780 Bytes) Downloaded 41 times
by dflogeras
Sat Sep 22, 2018 2:11 pm
Forum: Small Change Requests
Topic: Untagged structs in ChibiOS Topic is solved
Replies: 4
Views: 941

Untagged structs in ChibiOS Topic is solved

Hi, I've noticed at least one (SPIConfig) untagged struct. I've been toying with introducing more C++ into my pet projects, and one thing this prevents is doing C++ forward declaration. Is this done for a specific reason in Chibi, or just an oversight/nobody cared until me? Specifically the differen...
by dflogeras
Mon Sep 10, 2018 11:38 pm
Forum: STM32 Support
Topic: STM32L433 Nucleo-64
Replies: 2
Views: 564

Re: STM32L433 Nucleo-64

Thanks Giovanni, As it turns out, I was lazy and let google find the schematic for the L433-nucleo. What it gave me was for a different nucleo and I was stupid and didn't check it thoroughly, I just confirmed where the SPI1 bus was broken out to the Arduino expansion header. It turns out, on the L43...
by dflogeras
Mon Sep 10, 2018 4:50 pm
Forum: STM32 Support
Topic: STM32L433 Nucleo-64
Replies: 2
Views: 564

STM32L433 Nucleo-64

Hi, I've been messing around with the STM32L433 nucleo64 board, and as mentioned in this thread: http://www.chibios.com/forum/viewtopic.php?t=4331 There is no direct support for the chip in the registry yet, but STM32L432 is a close cousin without the LCD controller. I've got a sample project up, us...
by dflogeras
Wed Sep 05, 2018 4:54 pm
Forum: Bug Reports
Topic: SDMMC2 on STM32F7 Discovery Topic is solved
Replies: 28
Views: 4319

Re: SDMMC2 on STM32F7 Discovery Topic is solved

Interesting. If you leave that parameter NULL, it chooses the default SDCConfig, which in 18.2.1 is to use 4bit interface. Perhaps your card cannot handle that? It worked that way for me.

What did you set your local SDCConfig to?

Dave

Go to advanced search