Search found 19 matches
- Mon Jul 17, 2023 4:45 pm
- Forum: IDE's
- Topic: Arduino IDE 2 & Debug feature
- Replies: 45
- Views: 43862
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 work...
- Sat Apr 15, 2023 4:45 pm
- Forum: Code snippets
- Topic: [STM32F103] ADC & DMA continuous sampling 1 channel
- Replies: 3
- Views: 8849
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
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
- Sat Apr 15, 2023 3:46 pm
- Forum: Code snippets
- Topic: [STM32F103] ADC & DMA continuous sampling 1 channel
- Replies: 3
- Views: 8849
[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 ADC MS...
- Sun Apr 02, 2023 10:35 am
- Forum: IDE's
- Topic: Arduino IDE 2 & Debug feature
- Replies: 45
- Views: 43862
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
I made the connection and now debugger is working!
Luca
- Sun Apr 02, 2023 7:29 am
- Forum: IDE's
- Topic: Arduino IDE 2 & Debug feature
- Replies: 45
- Views: 43862
Re: Arduino IDE 2 & Debug feature
How can I check which gdb program is used when debugger session started?
- Sat Apr 01, 2023 6:21 pm
- Forum: IDE's
- Topic: Arduino IDE 2 & Debug feature
- Replies: 45
- Views: 43862
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 ...
- Sat Apr 01, 2023 8:35 am
- Forum: IDE's
- Topic: Arduino IDE 2 & Debug feature
- Replies: 45
- Views: 43862
Re: Arduino IDE 2 & Debug feature
Hi everybody. Yesterday I downloaded last STM32 core versione (2.5.0). I'm on a Linux 64 bit. I tried to debug an STM32F103RE board but I received this error: Failed to launch GDB: Error erasing flash with vFlashErase packet (from target-download) This is the gdb-server console: Waiting for gdb serv...
- Sat Feb 18, 2023 12:22 pm
- Forum: IDE's
- Topic: Arduino IDE 2 & Debug feature
- Replies: 45
- Views: 43862
Re: Arduino IDE 2 & Debug feature
I found that under STM32Programmer folder there is a folder with all SVD files for STM32 micros: is there a way to load SVD correct file automatically using platform.tx or board.txt?
- Sat Feb 18, 2023 10:43 am
- Forum: IDE's
- Topic: Arduino IDE 2 & Debug feature
- Replies: 45
- Views: 43862
Re: Arduino IDE 2 & Debug feature
What I noticed last eveving is that with Stlink 2.1 (chinese clone) and Arduino IDE 2.0.3 I can program the sketch on the target, but (with OpenOCD 10.0) I can't debug. In order to use debugger, I need to use Stlink 2 (chinese clone). Great job the inclusion of OpenOCD on STM32 tools: maybe with Ope...
- Thu Feb 16, 2023 8:35 pm
- Forum: IDE's
- Topic: Arduino IDE 2 & Debug feature
- Replies: 45
- Views: 43862
Re: Arduino IDE 2 & Debug feature
Can you compile the sketch?
If yes, can you program the device?
If yes, can you program the device?