btw those char definitions for _end , _estack don't seemed to be correct they should more correctly be unsigned char*, but I'm not sure too, there is likely some typedefs for these.
unless _end , _estack are after all markers predefined somewhere.
Search found 1928 matches
- Thu Aug 14, 2025 1:21 pm
- Forum: General discussion
- Topic: STM32FreeRTOS config bugged.
- Replies: 8
- Views: 7514
- Thu Aug 14, 2025 12:41 pm
- Forum: General discussion
- Topic: STM32FreeRTOS config bugged.
- Replies: 8
- Views: 7514
Re: STM32FreeRTOS config bugged.
well, not familiar with FreeRTOS
but I found some inspiration from
https://github.com/greiman/SdFat/blob/master/src/FreeStack.h
extern "C" char* sbrk(int incr);
inline int FreeStack() {
register uint32_t sp asm("sp");
return reinterpret_cast<char*>(sp) - reinterpret_cast<char*>(sbrk(0));
}
so ...
but I found some inspiration from
https://github.com/greiman/SdFat/blob/master/src/FreeStack.h
extern "C" char* sbrk(int incr);
inline int FreeStack() {
register uint32_t sp asm("sp");
return reinterpret_cast<char*>(sp) - reinterpret_cast<char*>(sbrk(0));
}
so ...
- Sun Aug 03, 2025 5:04 am
- Forum: General discussion
- Topic: Trouble using 3 UARTs simultaneous on STM32F405
- Replies: 7
- Views: 1273
Re: Trouble using 3 UARTs simultaneous on STM32F405
I reviewed the codes, and it is quite 'convoluted'
when HardwareSerial initializes
https://github.com/stm32duino/Arduino_Core_STM32/blob/main/cores/arduino/HardwareSerial.cpp#L133
it configures the pins according to PeripheralPins.c
https://github.com/stm32duino/Arduino_Core_STM32/blob/main ...
when HardwareSerial initializes
https://github.com/stm32duino/Arduino_Core_STM32/blob/main/cores/arduino/HardwareSerial.cpp#L133
it configures the pins according to PeripheralPins.c
https://github.com/stm32duino/Arduino_Core_STM32/blob/main ...
- Sat Aug 02, 2025 1:44 pm
- Forum: General discussion
- Topic: Trouble using 3 UARTs simultaneous on STM32F405
- Replies: 7
- Views: 1273
Re: Trouble using 3 UARTs simultaneous on STM32F405
from the arduino menu, if you select "USB Support - CDC (generic 'Serial' supersede U(S)ART"
USB-Serial become the definiition of Serial
hence when you issue
void setup() {
Serial.begin();
}
that goes to USB-Serial. Serial1 .. Serial4 are still there but those are HardwareSerial which goes to ...
USB-Serial become the definiition of Serial
hence when you issue
void setup() {
Serial.begin();
}
that goes to USB-Serial. Serial1 .. Serial4 are still there but those are HardwareSerial which goes to ...
- Sat Aug 02, 2025 5:36 am
- Forum: General discussion
- Topic: Trouble using 3 UARTs simultaneous on STM32F405
- Replies: 7
- Views: 1273
Re: Trouble using 3 UARTs simultaneous on STM32F405
In addition, for your board, if you want to use usb (e.g. usb serial) you should make a variant to use the HSE crystal, otherwise normally usb may not be stable.
https://github.com/stm32duino/Arduino_Core_STM32/wiki/Add-a-new-variant-%28board%29
as apparently the crystal on your board is 8 Mhz ...
https://github.com/stm32duino/Arduino_Core_STM32/wiki/Add-a-new-variant-%28board%29
as apparently the crystal on your board is 8 Mhz ...
- Sat Aug 02, 2025 4:35 am
- Forum: General discussion
- Topic: Trouble using 3 UARTs simultaneous on STM32F405
- Replies: 7
- Views: 1273
Re: Trouble using 3 UARTs simultaneous on STM32F405
I think Serial1 .. Serial4 are pre-defined and it is not necessary to re-define them
https://github.com/stm32duino/Arduino_Core_STM32/wiki/API#hardwareserial
for the pins to use look in PeripheralPins.c
https://github.com/stm32duino/Arduino_Core_STM32/blob/main/variants/STM32F4xx/F405RGT_F415RGT ...
https://github.com/stm32duino/Arduino_Core_STM32/wiki/API#hardwareserial
for the pins to use look in PeripheralPins.c
https://github.com/stm32duino/Arduino_Core_STM32/blob/main/variants/STM32F4xx/F405RGT_F415RGT ...
- Fri Aug 01, 2025 5:10 am
- Forum: General discussion
- Topic: Remote firmware update
- Replies: 2
- Views: 6161
Re: Remote firmware update
for single chip solution, you may want to try stm32wb55
https://github.com/stm32duino/STM32duinoBLE
https://github.com/stm32duino/Arduino_Core_STM32
but I've not tried this myself, it is more complicated than starting with plain vanilla stm32 soc without the BLE soc.
other ways are to use an ...
https://github.com/stm32duino/STM32duinoBLE
https://github.com/stm32duino/Arduino_Core_STM32
but I've not tried this myself, it is more complicated than starting with plain vanilla stm32 soc without the BLE soc.
other ways are to use an ...
- Sat Jul 19, 2025 4:08 pm
- Forum: General discussion
- Topic: Debugging H5 and/or H7 from within Arduino IDE: Can't get it to work
- Replies: 5
- Views: 1561
Re: Debugging H5 and/or H7 from within Arduino IDE: Can't get it to work
OK, I'm going to give Arduino another shot when the H7 board / CPU arrives.
I found a STM32H743VI board for $17 on Amazon. Wish me luck !
is it the same as this one?
https://www.aliexpress.com/item/1005006632336183.html
if it is it may 'work out of the box' e.g. with the WeAct ...
- Fri Jul 18, 2025 3:08 pm
- Forum: General discussion
- Topic: STM32 noob needs help with STM32H523V project
- Replies: 17
- Views: 5217
Re: STM32 noob needs help with STM32H523V project
on a different note I'm not sure what to do about the 'interrupt latency' issue.
I've been wanting to observe usb (full speed) signals, that'd cost a good oscilloscope
or that maybe I can improve on my little logic analyzer.
https://www.stm32duino.com/viewtopic.php?t=116
using a timer driving DMA ...
I've been wanting to observe usb (full speed) signals, that'd cost a good oscilloscope
or that maybe I can improve on my little logic analyzer.
https://www.stm32duino.com/viewtopic.php?t=116
using a timer driving DMA ...
- Fri Jul 18, 2025 2:55 pm
- Forum: General discussion
- Topic: STM32 noob needs help with STM32H523V project
- Replies: 17
- Views: 5217
Re: STM32 noob needs help with STM32H523V project
well you may want to consider buying a ready made board
e,g
https://weactstudio.aliexpress.com/
https://www.olimex.com/
etc
if one search in the online 'flea markets' (e.g. Aliexpress) there could be more offers from other than weactstudio.
then that of course there are the Nucleos and Discovery ...
e,g
https://weactstudio.aliexpress.com/
https://www.olimex.com/
etc
if one search in the online 'flea markets' (e.g. Aliexpress) there could be more offers from other than weactstudio.
then that of course there are the Nucleos and Discovery ...