Search found 75 matches

by Bambo
Wed Feb 08, 2023 11:07 am
Forum: General discussion
Topic: CRC module causing an assert to fail.
Replies: 2
Views: 518

Re: CRC module causing an assert to fail.

fpiSTM wrote: Fri Feb 03, 2023 2:08 pm I guess, You got this issue because you enabled the ASSERT.
As the handle hcrc does not init explicitly this field it is set to 0 which is not a correct value.

I've made a PR:
https://github.com/stm32duino/Arduino_C ... /pull/1941

This PR fixed the issue
by Bambo
Fri Feb 03, 2023 11:28 am
Forum: General discussion
Topic: CRC module causing an assert to fail.
Replies: 2
Views: 518

CRC module causing an assert to fail.

m trying to get an stm32l452re running but when i try to run my program, it fails at line 165 in stm32l4xx_hal_crc.c: /* makes sure the input data format (bytes, halfwords or words stream) * is properly specified by user */ assert_param(IS_CRC_INPUTDATA_FORMAT(hcrc->InputDataFormat)); When called fr...
by Bambo
Fri Feb 03, 2023 10:47 am
Forum: General discussion
Topic: Problems with Serial ports (STM32Duino 2.4.0)
Replies: 8
Views: 1207

Re: Problems with Serial ports (STM32Duino 2.4.0)

Update: I managed to get the debugger working again and found that my Sysclock_Config() function was not being called on startup since it was being missed from compilation. Adding #include "Sysclock_Config.h" (which contains the function definition) the correct initialization code now runs.
by Bambo
Wed Feb 01, 2023 1:58 pm
Forum: General discussion
Topic: Problems with Serial ports (STM32Duino 2.4.0)
Replies: 8
Views: 1207

Re: Problems with Serial ports (STM32Duino 2.4.0)

Looking at the Nucleo L452RE definition, by default Serial is mapped on SerialLP1 using PA2, PA3. Your code does not change this as you simply re-set the same pins so it will always use the LPUART1. https://github.com/stm32duino/Arduino_Core_STM32/blob/21dce35952408002a1c6770db406b073339a0bd4/varia...
by Bambo
Wed Feb 01, 2023 11:20 am
Forum: General discussion
Topic: Problems with Serial ports (STM32Duino 2.4.0)
Replies: 8
Views: 1207

Re: Problems with Serial ports (STM32Duino 2.4.0)

Which board? I'm using a home made board with an STM32L452RE onboard which was working great with previous versions, but now doesn't want to work after upgrading to 2.4.0. Why boards.txt is empty? The local boards.txt is empty because i don't know what should be there. Why enable all HAL module usi...
by Bambo
Wed Feb 01, 2023 10:58 am
Forum: General discussion
Topic: Problems with Serial ports (STM32Duino 2.4.0)
Replies: 8
Views: 1207

Problems with Serial ports (STM32Duino 2.4.0)

Hi, i'm trying to make a short program that prints to the serial monitor i have connected to an stm32 based board. The problem is that when i re-map the Serial (SerialLP1 is default) to use different pins, the serial monitor doesn't receive any information. I have a DHT11 setup with its Rx connected...
by Bambo
Wed Aug 04, 2021 3:05 pm
Forum: General discussion
Topic: Problem with SDMMC interface CMD55?
Replies: 1
Views: 1478

Re: Problem with SDMMC interface CMD55?

Update:

I've configured the SDMMC clock to be 8MHz and starting with a clock div of 78 to bring it to 100KHz for initialization but it doesn't seem to affect it.
by Bambo
Wed Aug 04, 2021 1:40 pm
Forum: General discussion
Topic: Problem with SDMMC interface CMD55?
Replies: 1
Views: 1478

Problem with SDMMC interface CMD55?

Hi, I'm currently working on a project that uses a MicroSD SDHC card as its storage. At the moment i'm having problems with initializing SD cards. Sometimes the SD will initialize ok but other times the same cards won't. I've pinned the bug down to a particular line of code but I am having no luck a...
by Bambo
Sun Jun 06, 2021 1:14 pm
Forum: Projects
Topic: DMA RingBuffer for embedded devices
Replies: 0
Views: 1480

DMA RingBuffer for embedded devices

Hi! I've made this Ring Buffer to use for spooling data between devices that run at different rates. Single items can be appended to it, and then large chunks can be read at once. It's designed to be used with the STM32SD card, which allows large block writing with DMA access. To use it with the DMA...
by Bambo
Thu May 27, 2021 3:47 pm
Forum: General discussion
Topic: SD card write errors with hardware timer?
Replies: 2
Views: 2373

Re: SD card write errors with hardware timer?

Looks like i must try to use DMA instead of polling.

Does anyone know how to switch STM32SD to DMA mode?

Go to advanced search