Search found 18 matches

by diamondjimkoehler
Fri Jan 11, 2019 7:38 pm
Forum: TrueSTUDIO for STM32 discussions
Topic: Sequence of multiple ADC convrsions change
Replies: 1
Views: 415

Sequence of multiple ADC convrsions change

I am running TrueSTUDIO 9.2 ona 64-bit Linux system. I have an application where I want to do the ADC for three channels of analog input 900 times to get a fixed array of 2700 samples. I have a set this up a Nucleo F103 board. I created the project using STM32 CubeMX and have set ADC1 to scan 3 chan...
by diamondjimkoehler
Thu Jan 03, 2019 5:29 pm
Forum: TrueSTUDIO for STM32 discussions
Topic: Error:no device found on target
Replies: 2
Views: 1642

Error:no device found on target

I am running TrueSTUDIO 9.2 on a 64-bit Linux machine. The version of Linux is Mint 18.3 which is basically Ubuntu 16.04. I have been trying to develop code for a 'blue pill' (STM32F103C8) using a cheap Chinese ST-LINK/V2 module. Sometimes, everything seems to work properly and I can download and de...
by diamondjimkoehler
Fri Dec 14, 2018 12:07 am
Forum: TrueSTUDIO for STM32 discussions
Topic: TrueSTUDIO ADC clock problem
Replies: 1
Views: 219

TrueSTUDIO ADC clock problem

I'm running Linux Mint 19 which is based on Ubuntu 18.02. Using TrueSTUDIO version 9.1, I have been investigating the ADC process in a "blue pill" which has a STM32F103C6 processor. This board has a 8 MHz crystal as the main clock and the PLL is set to multiply this by 9. The ADC clock was...
by diamondjimkoehler
Thu Dec 13, 2018 7:11 pm
Forum: TrueSTUDIO for STM32 discussions
Topic: STM32CubeMX A/D clock setup
Replies: 1
Views: 185

Re: STM32CubeMX A/D clock setup

Oops ... please disregard this previous post of mine. I have some other problems and STM32CubeMX does not seem to be one of them. When I looked at the code written by STM32CubeMX, I see that it did correctly configure the clock. Why the compiled program executed the A/D conversion so fast is some ot...
by diamondjimkoehler
Wed Dec 12, 2018 6:49 pm
Forum: TrueSTUDIO for STM32 discussions
Topic: STM32CubeMX A/D clock setup
Replies: 1
Views: 185

STM32CubeMX A/D clock setup

Hi, I have setup a little blue pill STM32F103 as an A/D converter. Using STM32CubeMX, I have set the ADC clock to be 12 MHz. I am sampling with a 7.5 cycle set-up time. The A/D conversion should thus be about 12.5 + 7.5 cycles and should thus take about 1.75 microS. My program uses the software poll...
by diamondjimkoehler
Tue Dec 11, 2018 5:02 am
Forum: TrueSTUDIO for STM32 discussions
Topic: Debug Problem: Connect under reset
Replies: 1
Views: 834

Re: Debug Problem: Connect under reset

I had a similar problem: the STLINK on a STM32 NucleoF103 board worked just fine under TrueSTUDIO. But when I connected it to a 'blue pill' (cheap Chinese STM32F103 board), I got a 'target not found' error message. I noticed that the STLINK connector on the Nucleo board had a fifth pin labelled NRST...
by diamondjimkoehler
Sun Dec 09, 2018 11:30 pm
Forum: TrueSTUDIO for STM32 discussions
Topic: HAL overhead
Replies: 6
Views: 574

Re: HAL overhead

Hi all, I have just rewritten the ADC code to use both the HAL calls and the CMSIS calls and see a profound difference. The code I am using is shown here: ptr = 0; while (ptr < total_sample_number) { // HAL_ADC_Start(&hadc1); ADC1->CR2 |= ADC_CR2_ADON; // set the ADON bit in the ADC_SR // while(...
by diamondjimkoehler
Mon Nov 26, 2018 5:15 pm
Forum: TrueSTUDIO for STM32 discussions
Topic: HAL overhead
Replies: 6
Views: 574

Re: HAL overhead

Thank you very much ... that is exactly the information I wanted/needed. I appreciate the help! Thinking that perhaps the Debug configuration was adding a lot of extra code, I thought I should also change to the Release configuration in TrueSTUDIO. I am using the Linux version of TrueSTUDIO and, whe...
by diamondjimkoehler
Sun Nov 25, 2018 2:40 pm
Forum: TrueSTUDIO for STM32 discussions
Topic: HAL overhead
Replies: 6
Views: 574

Re: HAL overhead

Of course it is not a TrueSTUDIO problem. I am just trying to understand why it takes so long to make a simple A/D conversion using the Hardware Abstraction Layer to do so. I would like to write some code, in the TrueSTUDIO IDE, which accesses the registers directly and do not know how to do it with...
by diamondjimkoehler
Sun Nov 25, 2018 12:49 am
Forum: TrueSTUDIO for STM32 discussions
Topic: HAL overhead
Replies: 6
Views: 574

HAL overhead

Hi, I want to do some fast A/D conversions using one of the little blue pills which has a STM32F103 on it. According to the reference manual, an A/D conversion should take about 12.5 clock cycles and I have set the sampling time to 1.5 cycles so about 14 cycles overall. I've set the ADC clock to 12 ...

Go to advanced search