Search found 15 matches
- Fri Nov 18, 2022 10:35 am
- Forum: General discussion
- Topic: STM32L082 dual bank - example code
- Replies: 7
- Views: 13419
Re: STM32L082 dual bank - example code
Was solved - check https://github.com/stm32duino/Arduino_C ... sions/1866
- Tue Aug 30, 2022 10:13 am
- Forum: General discussion
- Topic: STM32L0 - how to check available RAM memory
- Replies: 3
- Views: 3279
STM32L0 - how to check available RAM memory
Hi,
I am working on a project using the STM32L082. And during the code execution I would like to monitor the available RAM memory.
Does anybody know if there is a standard function available to monitor the available memory (RAM)?
Thans a lot
I am working on a project using the STM32L082. And during the code execution I would like to monitor the available RAM memory.
Does anybody know if there is a standard function available to monitor the available memory (RAM)?
Thans a lot
- Sat Feb 12, 2022 2:10 pm
- Forum: General discussion
- Topic: STM32L082 dual bank - example code
- Replies: 7
- Views: 13419
Re: STM32L082 dual bank - example code
Thanks. CubeProgrammer tells me rev Z // so should be all good.
However have not been able to get it running yet. Will update here once I made some progress
However have not been able to get it running yet. Will update here once I made some progress
- Thu Feb 10, 2022 2:21 pm
- Forum: General discussion
- Topic: STM32L082 dual bank - example code
- Replies: 7
- Views: 13419
Re: STM32L082 dual bank - example code
Do I understand correct that when the first value of bank2 is an SRAM address it is considered valid?
Right. In Cortex M architecture, a binary always starts by Stack Pointer address, which should be in RAM.
Thus 1st U32 value of your bank2 should correspond to Stack Pointer, and is considered ...
Right. In Cortex M architecture, a binary always starts by Stack Pointer address, which should be in RAM.
Thus 1st U32 value of your bank2 should correspond to Stack Pointer, and is considered ...
- Thu Feb 10, 2022 12:33 pm
- Forum: General discussion
- Topic: STM32L082 dual bank - example code
- Replies: 7
- Views: 13419
Re: STM32L082 dual bank - example code
Hi ABOSTM,
Thanks for the information
Explanations of Bank2 mechanism is detailed in Reference Manual RM0376
paragraphe § 3.3.2 Dual-bank boot capability
So you need to take car of BOOT0 pin.
The BOOT0 pin I have grounded on my PCB. In the STM docs (par 3.3.2 you refer to or AN2606) it is ...
Thanks for the information
Explanations of Bank2 mechanism is detailed in Reference Manual RM0376
paragraphe § 3.3.2 Dual-bank boot capability
So you need to take car of BOOT0 pin.
The BOOT0 pin I have grounded on my PCB. In the STM docs (par 3.3.2 you refer to or AN2606) it is ...
- Wed Feb 09, 2022 5:51 pm
- Forum: General discussion
- Topic: STM32L082 dual bank - example code
- Replies: 7
- Views: 13419
STM32L082 dual bank - example code
Hello,
I am looking for your sample code on how to use the dual bank mechanism on the STM3L082.
My goal is to download the new firmware
Write it into bank 2 (starting from 0x0801 8000) (use the HEX generated by platformIO
Bank1 always remains as it is (with original firmware)
BFB2 is set to ...
I am looking for your sample code on how to use the dual bank mechanism on the STM3L082.
My goal is to download the new firmware
Write it into bank 2 (starting from 0x0801 8000) (use the HEX generated by platformIO
Bank1 always remains as it is (with original firmware)
BFB2 is set to ...
- Tue Feb 16, 2021 7:26 am
- Forum: General discussion
- Topic: STM32 - detachInterrupt and deepSleep
- Replies: 8
- Views: 16875
Re: STM32 - detachInterrupt and deepSleep
Thanks for the suggestion / going to test it tonight and share the results.
- Thu Feb 11, 2021 3:08 pm
- Forum: General discussion
- Topic: STM32 - detachInterrupt and deepSleep
- Replies: 8
- Views: 16875
Re: STM32 - detachInterrupt and deepSleep
Was not able to solve it and decided to switch off (power down thru MCU) the sensor instead of using the detachInterrupt().
Still looking for the solution and detach the Interrupt.
Still looking for the solution and detach the Interrupt.
- Wed Feb 10, 2021 4:52 pm
- Forum: General discussion
- Topic: STM32 - detachInterrupt and deepSleep
- Replies: 8
- Views: 16875
Re: STM32 - detachInterrupt and deepSleep
Implemented the clearPendingInterrupt () (see below). It is going to sleep now but the interrupt is not detached (as in deepSleep the MCU wakes up from the sensor INT).
void sleepLight2(bool useIntFromSensor)
{
#ifdef DEBUG
Serial.print(F("sleepLight: Int on (1) or off (0): "));
Serial ...
void sleepLight2(bool useIntFromSensor)
{
#ifdef DEBUG
Serial.print(F("sleepLight: Int on (1) or off (0): "));
Serial ...
- Wed Feb 10, 2021 4:20 pm
- Forum: General discussion
- Topic: STM32 - detachInterrupt and deepSleep
- Replies: 8
- Views: 16875
Re: STM32 - detachInterrupt and deepSleep
Thanks for the feedback.
Clearing potential pending interrupt might be the cause. Will have a look at it.
For the 328p processor I cleared the INTs by setting the following (but of course obsoleted for the STM32):
// Atmega 328P (obsoleted)
// EIFR = bit (INTF0); // clear flag for interrupt 0 ...
Clearing potential pending interrupt might be the cause. Will have a look at it.
For the 328p processor I cleared the INTs by setting the following (but of course obsoleted for the STM32):
// Atmega 328P (obsoleted)
// EIFR = bit (INTF0); // clear flag for interrupt 0 ...