Search found 23 matches

by luca_stm32
Fri Jan 03, 2025 9:53 am
Forum: General discussion
Topic: Compilation problem with 2.9.0 core (and 2.8.0)
Replies: 7
Views: 554

Re: Compilation problem with 2.9.0 core (and 2.8.0)

If it is possible, I prefer to send it to you in private.
Is there a way to send you the files?
by luca_stm32
Fri Jan 03, 2025 9:23 am
Forum: General discussion
Topic: Compilation problem with 2.9.0 core (and 2.8.0)
Replies: 7
Views: 554

Re: Compilation problem with 2.9.0 core (and 2.8.0)

Goodmornng fpiSTM.
My board is a custom board using a STM32F103RE micro.

My Arduino IDE Tool configuration is:
Board Part Number: Generic F103RETX
C Runtime Library: NewLib Nano (default)
USB Support: CDC
U(S)ART Support: Enabled
USB Speed: Low/Full Speed

My perplexity is that the same schetck ...
by luca_stm32
Fri Jan 03, 2025 8:56 am
Forum: General discussion
Topic: Compilation problem with 2.9.0 core (and 2.8.0)
Replies: 7
Views: 554

Re: Compilation problem with 2.9.0 core (and 2.8.0)

Upgrade.
Today I started arduino-ide with the following settings:
./arduino-ide --no-sandbox >/tmp/logfile.txt 2>/tmp/errfile.txt

In errfile.txt I noticed following warnings:
2025-01-03T08:49:29.425Z root WARN URI <file:///home/luca/.arduino15/packages/STMicroelectronics/hardware/stm32/2.9.0/system ...
by luca_stm32
Thu Jan 02, 2025 7:31 pm
Forum: General discussion
Topic: Compilation problem with 2.9.0 core (and 2.8.0)
Replies: 7
Views: 554

Compilation problem with 2.9.0 core (and 2.8.0)

Hi everybody and happy new year.

In this days, I tried to recompile an old sketch with 2.9.0 core but it fails and Output console show so many errors that I can't see the first one and I don't know how to redirect Output console messages to file.
Here are some:
/home/luca/.arduino15/packages ...
by luca_stm32
Mon Jul 17, 2023 4:45 pm
Forum: IDE's
Topic: Arduino IDE 2 & Debug feature
Replies: 45
Views: 101216

Re: Arduino IDE 2 & Debug feature

Hi all.

Following this link https://github.com/vsergeev/arm-bmw-sw/issues/1 I found that using reset_config none separate instead reset_config srst_only in file openocd.cfg (under variants directory), you can debug without connect reset pin to ST-Link programmer.
I tried using a Bluepill and it ...
by luca_stm32
Sat Apr 15, 2023 4:45 pm
Forum: Code snippets
Topic: [STM32F103] ADC & DMA continuous sampling 1 channel
Replies: 3
Views: 18524

Re: [STM32F103] ADC & DMA continuous sampling 1 channel

Thanks fpiSTM!
Adding -DHAL_ADC_MODULE_ONLY in build_opt.h resolved the situation.

Yesterday I added -DHAL_ADC_MODULE_ONLY option in hal_conf_custom.h and a lot of errors appared.

Thanks again.
Luca
by luca_stm32
Sat Apr 15, 2023 3:46 pm
Forum: Code snippets
Topic: [STM32F103] ADC & DMA continuous sampling 1 channel
Replies: 3
Views: 18524

[STM32F103] ADC & DMA continuous sampling 1 channel

Hi everybody.
I'm writing a little piece of code in order to acquire one analog channel (PA1) in DMA mode.

I followed https://www.stm32duino.com/viewtopic.php?t=110 and using STM32CUBEMX I wrote this code:

uint32_t adc_val[1];

DMA_HandleTypeDef hdma_adc1;
ADC_HandleTypeDef hadc1;

/**
* @brief ...
by luca_stm32
Sun Apr 02, 2023 10:35 am
Forum: IDE's
Topic: Arduino IDE 2 & Debug feature
Replies: 45
Views: 101216

Re: Arduino IDE 2 & Debug feature

Ok, I found the issue: my STLink clone doesn't had the RST connection (even if it was labeled as RST on output connector) :-(

I made the connection and now debugger is working!

Luca
by luca_stm32
Sun Apr 02, 2023 7:29 am
Forum: IDE's
Topic: Arduino IDE 2 & Debug feature
Replies: 45
Views: 101216

Re: Arduino IDE 2 & Debug feature

How can I check which gdb program is used when debugger session started?
by luca_stm32
Sat Apr 01, 2023 6:21 pm
Forum: IDE's
Topic: Arduino IDE 2 & Debug feature
Replies: 45
Views: 101216

Re: Arduino IDE 2 & Debug feature

Hi fpiSTM.
The first board on which I tried was a home made board. I connected STLink with the board via SWDIO SWCLK. I tried also to connect reset pin of the STLink with target reset, but still the same error.

So I moved to a BluePill board and Blink sketch. Same connections as above (SWDIO, SWCLK ...

Go to advanced search