Search found 165 matches

by dflogeras
Sat Nov 17, 2018 4:12 pm
Forum: Small Change Requests
Topic: Untagged structs in ChibiOS Topic is solved
Replies: 4
Views: 328

Re: Untagged structs in ChibiOS Topic is solved

Another patch, as above, but for untagged I2CConfig structs

i2c_config_untagged_struct.zip
(938 Bytes) Downloaded 9 times
by dflogeras
Thu Nov 01, 2018 12:29 pm
Forum: Small Change Requests
Topic: Add STM32L4 CRC support macros to RCC
Replies: 0
Views: 109

Add STM32L4 CRC support macros to RCC

stm32l4_crc_rcc.zip
(520 Bytes) Downloaded 7 times
by dflogeras
Thu Nov 01, 2018 11:13 am
Forum: STM32 Support
Topic: STM32Lxx and community CRC driver
Replies: 3
Views: 130

Re: STM32Lxx and community CRC driver

I still see the 'lp' parameter in the trunk r12399 https://sourceforge.net/p/chibios/svn2/HEAD/tree/trunk/os/hal/ports/STM32/STM32F0xx/stm32_rcc.h#l906 https://sourceforge.net/p/chibios/svn2/HEAD/tree/trunk/os/hal/ports/STM32/STM32F4xx/stm32_rcc.h#l1574 Etc.. I'm not sure how the crc demo for the F0...
by dflogeras
Thu Nov 01, 2018 12:32 am
Forum: STM32 Support
Topic: STM32Lxx and community CRC driver
Replies: 3
Views: 130

STM32Lxx and community CRC driver

I realize CRC is not officially supported, but hoping to gain some insight here if any authors watch the forums. I am looking to use CRC in an STM32L4 project. I see that the L4xx/stm32_rcc.h in mainline ChibiOS is missing the Enable/Disable/ResetCRC family of functions that the F0/3/4/7 files conta...
by dflogeras
Fri Oct 05, 2018 12:00 pm
Forum: Bug Reports
Topic: Extra checks for L4xx peripheral clocks Topic is solved
Replies: 1
Views: 183

Extra checks for L4xx peripheral clocks Topic is solved

As discussed here:
viewtopic.php?f=16&t=4844

I've thrown together a quick patch for review
L4xx_HSI16_checks.zip
(615 Bytes) Downloaded 8 times


Please treat as a general idea, as I wasn't near a computer with an ARM toolchain and couldn't do a sanity test compile.
by dflogeras
Fri Oct 05, 2018 11:31 am
Forum: STM32 Support
Topic: STM32L433 and I2C
Replies: 4
Views: 201

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: 201

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: 201

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: 201

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: 167

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...

Go to advanced search