Search found 15 matches

by Beuzekom
Tue Aug 30, 2022 10:13 am
Forum: General discussion
Topic: STM32L0 - how to check available RAM memory
Replies: 3
Views: 1881

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
by Beuzekom
Sat Feb 12, 2022 2:10 pm
Forum: General discussion
Topic: STM32L082 dual bank - example code
Replies: 7
Views: 9795

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

stm32l082-rev.png
stm32l082-rev.png (4.89 KiB) Viewed 9553 times
by Beuzekom
Thu Feb 10, 2022 2:21 pm
Forum: General discussion
Topic: STM32L082 dual bank - example code
Replies: 7
Views: 9795

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 vali...
by Beuzekom
Thu Feb 10, 2022 12:33 pm
Forum: General discussion
Topic: STM32L082 dual bank - example code
Replies: 7
Views: 9795

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 stated tha...
by Beuzekom
Wed Feb 09, 2022 5:51 pm
Forum: General discussion
Topic: STM32L082 dual bank - example code
Replies: 7
Views: 9795

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 1 MCU re...
by Beuzekom
Tue Feb 16, 2021 7:26 am
Forum: General discussion
Topic: STM32 - detachInterrupt and deepSleep
Replies: 8
Views: 10132

Re: STM32 - detachInterrupt and deepSleep

Thanks for the suggestion / going to test it tonight and share the results.
by Beuzekom
Thu Feb 11, 2021 3:08 pm
Forum: General discussion
Topic: STM32 - detachInterrupt and deepSleep
Replies: 8
Views: 10132

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.
by Beuzekom
Wed Feb 10, 2021 4:52 pm
Forum: General discussion
Topic: STM32 - detachInterrupt and deepSleep
Replies: 8
Views: 10132

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.pri...
by Beuzekom
Wed Feb 10, 2021 4:20 pm
Forum: General discussion
Topic: STM32 - detachInterrupt and deepSleep
Replies: 8
Views: 10132

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 (D2) /...

Go to advanced search