Questions tagged [stm32l152]
29 questions
2
votes
3 answers
keep some RAM values on reset cortex m3
Is there any way to keep some ram values or global variables after clicking on reset button on the board or on Kiel
I am using STM32L152ZE

user1069711
- 59
- 1
- 7
1
vote
2 answers
How to turn on LED on stm32 board using assembly language that generated by llvm?
My English skill is poor because I'm not a native English speaker. Please understand.
I compiled some test code that operating alright in IAR with LLVM infra but the generated code was not operated on my test board.
Detail are as follows.
Test…

jjw
- 282
- 3
- 20
1
vote
4 answers
In Application Programming issue
I'm working on project on STM32L152RCT6, where i have to build a mechanism to self update the code from the newly gated file(HEX file).
For that i have implemented such mechanism like boot loader where it checks for the new firmware if there it it…

Huzaifah
- 60
- 6
1
vote
1 answer
stm32l152 as I2C slave not acknowledging address
Im using two stm32l152 discovery boars. One is configured as master and the other as slave. I have acknowladge enabled on both of them, but when the master sends the address the slave doesn't send the ack bit at the 9 clock pulse. The ports are set…

urbu
- 11
- 2
1
vote
1 answer
STM32L151 - Debugger starts up at wrong address.. sometimes
I just started working on a STM32L151 microcontroller. I've setup the debugger to break at first instruction (not main), but when I start debugging the program counter stops at 0x1ff00b84 which isn't even a part of the flash (starting at 0x8000000…

Jolle
- 1,336
- 5
- 24
- 36
1
vote
1 answer
Stm32 cortex-m3 memory remap
I am working on a stm32l152 now.
My boot up vector table is located on flash 0x0800 0000, where there is a valid reset handler vector and stack pointer. The rest of the exception/interrupt vectors are just endless loops.
Then I setup another vector…

foob
- 293
- 1
- 4
- 12
1
vote
1 answer
How to configure the GPIO pins on an STM32L152?
I got an STM32L discovery board that contains an stm32l152rb microprocessor. I try to program that board in assembly without any library at all. So far I succeeded in writing linker scripts and a basic routine that copies the .data section into the…

fuz
- 88,405
- 25
- 200
- 352
0
votes
1 answer
How to setup UART on STM32 Nucleo board for a peripheral UART device?
What I've been trying to do is send UART communications from an STM32 L152RE Nucleo board to an ESP32, however when I attempt to send these communications I get nothing on the ESP serial monitor. What I am able to see is the STM32 sending messages…

Aaron Underwood
- 11
- 2
0
votes
0 answers
Writing array to flash which is uint16_t. I am using a STM32L053 nucleo., get a hard fault error. How to convert uint16_t array to write to flash?
This is the how I'm trying to write to flash
Basically I pass my uint16_t array to a function called FLASH_WriteA which accepts the array, the destination array or the location and the length
void FLASH_WriteA(uint16_t * src, uint16_t * dest,…
0
votes
1 answer
STM32L0xx: Get the clock speed
For the life of me, I cannot find a way to get the clock speed for STM32L0 chips in libopencm3. There's got to be a way, right?
In STM32Cube, there's the SystemCoreClock variable.
In ChibiOs, there's the STM32_SYSCLK variable.
Is there no variable…

Jeremy Gillick
- 2,560
- 3
- 27
- 35
0
votes
2 answers
Backup or read settings of a nucleo board stm32
I was wondering if it is possible to back up or read the settings of a nucleo board stm32. It is set up as a P-NUCLEO-LRWAN1 Nucleo pack. Which uses LoRaWAN to send data to a gateway and it works perfectly. I was now wondering if I could change the…

mionnaise
- 188
- 1
- 18
0
votes
1 answer
Global variables are not initialized after program start
I am programming STM32L152 that connected to my PC via UART.
I use GNU Tools ARM Embedded version 6.2 2016q4.
Compiler control string:
-mcpu=cortex-m3; -mthumb; -Wall; -ffunction-sections; -g; -O0; -DSTM32L152RB; -DSTM32L1XX_MD; -I.;
Linker…

Konstantin T.
- 994
- 8
- 22
0
votes
1 answer
Migrating NUCLEO152RE to STM32L073
I have a code on NUCLEOL152RE i want to migrate this code to STM32L073RZ
What are the step i have to be done to migrate this code from NUCLEO152RE to STM32L073.
0
votes
0 answers
How to overwrite flash memory on STM32L series of microcontrollers
I am trying to write a known pattern (ie 0xFFFFFFFF or 0x00000000) on top of already written flash memory, to invalidate portions of it for a primitive file system. But it doesn't work for me on the STM32L series as it does on the STM32F series.
I…

Mark Lakata
- 19,989
- 5
- 106
- 123