Questions tagged [stm32l152]

29 questions
6
votes
1 answer

Configuring STM32 output ports for I2C

I am currently trying to get a pair of stm32l152 (discovery kit) to communicate via I2C. (i am not using the standard peripheral library provided by STM as i want to try to implement the i2c myself..) My configuration is as followed: 7-bit…
foob
  • 293
  • 1
  • 4
  • 12
3
votes
1 answer

STM32 not starting after programming with ST-LINK

I did a program using ST-Link debugger on a custom board. The program is working fine. However, when I program the chip using ST-Link utility, the program is not starting without the ST-Link connected. When the ST-Link is connected, the system…
Adrien
  • 79
  • 1
  • 6
3
votes
3 answers

STM32L151 RTC Alarm interrupt

I am having problem with RTC alarm interrupt of STM32L151. I want my program to go to RTC alarm interrupt every second but it does not work. My main funtion: int main(void) { HAL_Init(); SystemClock_Config(); MX_GPIO_Init(); MX_IWDG_Init(); …
uv_utna
  • 41
  • 1
  • 1
  • 3
3
votes
1 answer

STM32cubeMX Firmware Package

I start generate code in STM32cubeMX, and i got this message "The Firmware Package(STM32Cube FW_F4 V1.11.0)or one of its dependencies requiredby the Project is not available in your STM32CubeMX Repository". Can enyone tell me how to throw in?
3
votes
1 answer

Cannot run STM32 L1 Discovery board

I have fresh STM32 L1 discovery board, and it seems to be broken. But I am not completely sure. When connecting board via USB to the Linux machine, board starts perfectly fine, and the demo works just as described by vendor. But I am unable to…
mucka
  • 1,286
  • 3
  • 20
  • 36
3
votes
1 answer

PLL clock configuration

I'm using STM32L152RB board and I'm trying to configure system clock to use PLL clock but the RCC_FLAG_PLLRDY flag is getting set so the program is stuck in while loop. please let what I'm doing…
Mustak U
  • 115
  • 2
  • 11
3
votes
0 answers

USB Interrupt Masks not loading STM32L151CC

I'm currently encountering a strange issue with the STM USB libraries. I am able to successfully load firmware onto the STM32L152D-EVAL board (which uses an STM32L152ZD), however, I am unable to modify the same code to work on my form-factor board,…
ThomSirveaux
  • 141
  • 1
  • 4
3
votes
2 answers

Stuck with basic programming of STM32L-Discovery

I've got a STM32L-Discovery Board, which has got a STM32L152R8 microprocessor. I'm quite stuck trying to make basic things work. I've looked the examples given by ST (the current consumption touch sensor and the temperature sensor), and I think they…
Deivad
  • 31
  • 4
2
votes
1 answer

Using Rust crates for an STM32 microcontroller board

I'm currently trying to learn Rust (for embedded specifically), coming from a background of C for embedded systems and Python. So far, I've been reading Rust Programming Language and Rust for Embedded, and read a few blog posts on the web. I want my…
Rafael Boy
  • 287
  • 2
  • 8
2
votes
2 answers

How to calulate CRC of 1 byte using stm32l1 CRC unit

I'm trying to calculate the CRC of a one byte data input using the CRC calculation unit of the stm32l152. The CRC unit accepts only 32Bit inputs. I was able to get it calculate the CRC for a 32Bit data input, but now I'm struggling to get it to work…
david
  • 168
  • 1
  • 11
2
votes
0 answers

Memory allocation clarification required

Here is the picture of a variable placement in STM32L152VBX memory with IAR IDE (8.30). I am using C. _gprs_inited is a static variable (8bit), send_data_with_gprs is a function, _failed_gprs_counter is a static variable (8bit) declared inside…
Harikrishnan
  • 3,664
  • 7
  • 48
  • 77
2
votes
1 answer

No flash bank found for address 0x00000000

I am trying to flash my firmware into STM32L152, but instead I have: Open On-Chip Debugger 0.10.0+dev-00312-g1a3cbbf3 (2018-03-02-20:11) Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html adapter speed: 300…
joe.kovalski
  • 300
  • 1
  • 4
  • 14
2
votes
1 answer

I2C on STM32L152 does not work

I want to connect 2 devices with I2C. But I don't get the I2c working. I tried a lot and looked on a lot of website but still without any success. I connect my circuit to a oscilloscope and then I saw that there was noting send. I connected…
Martijn Bakker
  • 395
  • 1
  • 5
  • 15
2
votes
1 answer

microSD card initialization in SPI mode. ACMD41 always returns 0x01

I'm trying to interface a microSD card with a STM32L152-DISCOVERY board (STM32L152RCT6 ARM Cortex-M3), using SPI. The final goal is to use FatFs (http://elm-chan.org/fsw/ff/00index_e.html) to store sensor data on a SDcard that can be read also on a…
Alexis
  • 576
  • 1
  • 10
  • 29
2
votes
0 answers

Stop Momde, Allarm and stm32L152RE

I have a NUCLEO STM32L152RE. I want to use the low power features of this board and wrote this easy example. I use CubeMX to configure the board. I want to wake up every 3 minutes, but 6 minutes later the system freezes. /* Private variables */…
Ant
  • 281
  • 1
  • 4
  • 19
1
2