EmbeddedRelated.com

STM32L412 ADC Input Specs

Started by Rick C in comp.arch.embedded4 years ago 8 replies

Maybe someone can help me out with this. I'm looking at the data sheet for the STM32L412xx trying to find details on the mapping of the input...

Maybe someone can help me out with this. I'm looking at the data sheet for the STM32L412xx trying to find details on the mapping of the input voltage range to the 12 bit code produced. It might appear that the Vref+ and Vref- pins define the exact range, but it seems unusual that it could be equal to the power rails. With Vref+ = 3.3V and Vref- = 0 volts does 0V on the input


Anybody here using STM32F4xx parts ?

Started by boB in comp.arch.embedded5 years ago 9 replies

Using the STM32F443 Cortex M4 with DMA2 feeding TIM1 and TIM8 CCRx registers for PWM generation. Curious if anybody here is using these...

Using the STM32F443 Cortex M4 with DMA2 feeding TIM1 and TIM8 CCRx registers for PWM generation. Curious if anybody here is using these parts as well ? boB


STM32F0x1 Sleep Mode Conundrum

Started by Tim Wescott in comp.arch.embedded10 years ago 12 replies

Any time I ask a really specific question here it always seems to go by the wayside. But what the heck -- it's Friday, it's late, and my @#$%...

Any time I ask a really specific question here it always seems to go by the wayside. But what the heck -- it's Friday, it's late, and my @#$% processor won't go to sleep!!! Anyone have any mileage with the ST Arm Cortex parts and sleep mode? I've got a STM32F303 that doesn't really need it that goes to sleep beautifully, and I've got an STM32F051 in an application where low power is...


stm32f103rct6 with more ram then expected

Started by kristoff in comp.arch.embedded7 years ago 7 replies

Hi, Some time ago, I boght a cheap devboard from a well known Chinese webshop with a STM32F103RCT6 chip on it. According to the...

Hi, Some time ago, I boght a cheap devboard from a well known Chinese webshop with a STM32F103RCT6 chip on it. According to the datasheets, that chip has 48 KB of RAM and 256 KB of flashrom. However, when using the linux arm-gdb and the st-util and st-info, they say that the chip actually has 64 KB of RAM (so more then exptected). Using gdb (writing to memory and reading bac...


Stack after reset for STM32F with gdb

Started by Fredxx in comp.arch.embedded11 years ago 9 replies

I'm using Eclipse (Kepler release) GCC ARM Tools 4.7 OpenOCD 0.7.0 Its not clear how I can setup the Debug Configuration in order...

I'm using Eclipse (Kepler release) GCC ARM Tools 4.7 OpenOCD 0.7.0 Its not clear how I can setup the Debug Configuration in order to ensure a Reset. Currently the Stack point is not being reset to the value of _estack in g_pfnVectors and on clicking on "Debug" the program counter is at the Reset Handler and SP = 0x00000000 I am presuming that I need to place some commands...


Eclipse setup for STM32F

Started by Fredxx in comp.arch.embedded11 years ago 14 replies

I can get the build and basic debug working, but wondering if there was any easy way of viewing or manually changing CPU internal...

I can get the build and basic debug working, but wondering if there was any easy way of viewing or manually changing CPU internal registers, such as SPI and GPIO? I'm currently stumped and wondering if this is actually achievable?


STM32 CUBE project

Started by Ed Lee in comp.arch.embedded3 years ago 9 replies

So, i created the ADC1 & PIOC13 blinker, bit it does me no good without knowing what the analog values are. But when i try to create an USB_CDC...

So, i created the ADC1 & PIOC13 blinker, bit it does me no good without knowing what the analog values are. But when i try to create an USB_CDC device, it complaints about: ADC1: partly disable conflit with USB_FS_OTG: device mode only Does it mean i can't use USB and ADC together? By the way, how do i tell the IDE to keep it's hand off my codes? It keeps whipping out my codes when c...


How to change stm32 m4 adc channel?

Started by Ed Lee in comp.arch.embedded3 years ago 10 replies

Does anyone know how to do it in register level? I see many code examples using: ADC_ChannelConfTypeDef sConfig = {ADC_CHANNEL_0, 1,...

Does anyone know how to do it in register level? I see many code examples using: ADC_ChannelConfTypeDef sConfig = {ADC_CHANNEL_0, 1, ADC_SAMPLETIME_28CYCLES}; HAL_ADC_ConfigChannel(&hadc1, &sConfig); or ADC_RegularChannelConfig(ADC1, ADC_channel_0, 1, ADC_SampleTime_480Cycles); but i don't have access to these routines from arm-gcc. By the way, i am using this to read the adc data: ...


CubeMX and FreeRTOS: Systick

Started by pozz in comp.arch.embedded4 years ago 12 replies

As you know, I'm playing with STM32 and CubeMX autogeneration code tool. I don't like ST HAL libraries generated by CubeMX, but this is my first...

As you know, I'm playing with STM32 and CubeMX autogeneration code tool. I don't like ST HAL libraries generated by CubeMX, but this is my first approach to STM32 MCUs and CubeMX tool lets me have a fully-functional project in minutes. Maybe I will rewrite some HAL drivers in the future, but at the moment I'd like to leave with them. Now I have to add FreeRTOS and this is very simple wi...


OpenSTM32 (Eclipse) debugger trying to write RAM section

Started by John Speth in comp.arch.embedded6 years ago

Hi Folks- I'm having a problem in which the OpenSTM32 System Workbench debugger reports ?Warn : no flash bank found for address 20000000?...

Hi Folks- I'm having a problem in which the OpenSTM32 System Workbench debugger reports ?Warn : no flash bank found for address 20000000? when I flash my STM32 target using System Workbench. The debugger then fails the binary compare process and prevents me from debugging. My linker script defines a memory region called DTCM which is mapped to RAM starting at 0x20000000 for 64K b


Cortex-M buses

Started by Anonymous in comp.arch.embedded1 year ago

I want to understand impact of buses/wait states on Cortex-M preformance. It seems that documentation about this seem to be scatterd or...

I want to understand impact of buses/wait states on Cortex-M preformance. It seems that documentation about this seem to be scatterd or unavailable (I would appreciate pointers to appropriate documentation). I was unable to find answers in documentation so I did some testing. Below part of my results. I run tests on STM32F030, STM32F103, STM32F407, STM32411 and two chinese clones, namly ...


IDE for STM32f series

Started by Mike Perkins in comp.arch.embedded7 years ago 14 replies

A year or two ago I put together an IDE using eclipse, gnu arm tools, openocd with a st link JTAG adaptor. I can't seem to get a working...

A year or two ago I put together an IDE using eclipse, gnu arm tools, openocd with a st link JTAG adaptor. I can't seem to get a working system together, and further more some links aren't working I have used to install add-ins for Mars 2. Mars 2 was the system I know worked. Is there a blow by blow account of how to install this with either Neon or Oxygen, or should I bit the bullet...


STMicroelectronics Introduces STM32F0 based on the Cortex-M0

Started by Bill Giovino in comp.arch.embedded12 years ago 6 replies

http://microcontroller.com/news/STMicroelectronics_STM32F0.asp Article includes a block diagram, performance specifications, and a selection...

http://microcontroller.com/news/STMicroelectronics_STM32F0.asp Article includes a block diagram, performance specifications, and a selection guide. Bill Giovino http://Microcontroller.com


STM32F100RC -- GPIO in standby mode?

Started by Kirill Frolov in comp.arch.embedded12 years ago 3 replies

What is the state of GPIO pins when microcontroller is in standby mode? Each pin remembers it's own state: input, output, analog, pull-up,...

What is the state of GPIO pins when microcontroller is in standby mode? Each pin remembers it's own state: input, output, analog, pull-up, logic level on it? Which document (datasheet, etc) and where specifies this behaviour?


STM32F103Ze-sk linker script

Started by tblake in comp.arch.embedded14 years ago 2 replies

I have been given the task of getting a GCC cross compiler setup for STM32F101C4 which has not been a problem however I was given...

I have been given the task of getting a GCC cross compiler setup for STM32F101C4 which has not been a problem however I was given an STM32F103Ze-sk "IAR Kickstart Kit" to test my setup on. I am having problems writing my linker script has anyone done this? or have any advice on creating the SECTIONS portion of the linker script. Thanks --------------------------------------- ...


stm32f103: flash latency and baud rate calculation

Started by kristoff Bonne in comp.arch.embedded8 years ago 4 replies

Hi all, I am still relative new to low-level programming microcontrollers, currently doing some work on a STM32F103RB using forth. To...

Hi all, I am still relative new to low-level programming microcontrollers, currently doing some work on a STM32F103RB using forth. To get to know the device, I am now trying out some code to change the clock from internal8Mhz, to External48Mhz and External72Mhz. There are two things I do not really understand. 1/ What exactly is the purpose of the Flash Latency? You need to chang...


ADC sampletime on STM32F103

Started by kristoff in comp.arch.embedded8 years ago 7 replies

Hi, I'm currently learning how to use the ADC on a STM32F103RC. One of the parameters for reading the ADC is its sample-time. Just...

Hi, I'm currently learning how to use the ADC on a STM32F103RC. One of the parameters for reading the ADC is its sample-time. Just wondering. What is the reason for being able to set this? Why would one choice a sample-time longer then needed (i.e. 1.5 cycles)? Cheerio! Kr. Bonne.


Another STM32F103 clone?

Started by Anonymous in comp.arch.embedded1 year ago 19 replies

I have bought few Blue Pills on Aliexpress. I expected to receive boards with some of known clones. But what I get does not look like any...

I have bought few Blue Pills on Aliexpress. I expected to receive boards with some of known clones. But what I get does not look like any clone that I have heard of: - Cortex M4 with no FPU - 32k RAM - 128k flash - set of devices like STM32F103C8T6 Chip seems to be resonable compatible, but I noticed notable difference in I2C peripherial: bit 14 in OAR1 (own address register 1) se...


PCB grounding

Started by abrous in comp.arch.embedded13 years ago 1 reply

Hi to all, I am designing a PCB with a digital circuit based on a STM32F103 MCU with USB,LAN and RS232 ports. The power comes from an external...

Hi to all, I am designing a PCB with a digital circuit based on a STM32F103 MCU with USB,LAN and RS232 ports. The power comes from an external wall type 12V/2.5A switching type regulator. There are 3 grounds in my PCB : a digital ground (GND), a connector frame ground (FGND) which is connected to GND through a 3.9nF/1KV capacitor and the input ground (the common which comes from the external po...


OFFTOPIC?: arm-linux-gnueabi-gdb error with cortex-m3 code

Started by jackbenimble in comp.arch.embedded11 years ago 9 replies

So I have encountered a very odd gdb error that I cant make sense of. I am using version 4.4.5 of the gcc tools (arm-linux-gnueabi) and version...

So I have encountered a very odd gdb error that I cant make sense of. I am using version 4.4.5 of the gcc tools (arm-linux-gnueabi) and version 7.0.1 of the gdb (arm-linux-gnueabi) debugger. I am using stm32f103 cortex-m3 board Basically gdb seems to be clobbering the values passed to functions. Heres an example: Breakpoint 1, main () at apps/core/core_test.c:46 46 wdTemp = wdT...