Search found 1678 matches
- Sun Feb 18, 2024 8:48 pm
- Forum: General discussion
- Topic: Properly handling timer overflow ?
- Replies: 6
- Views: 850
Re: Properly handling timer overflow ?
assuming that you are using stm32f103. I think in stm32f103 the timers are 16 bits. but that it has a prescaler which is 16 bits I've not reviewed the codes really. But that keep rm0008 handy as it tells you what is ultimately available in the hardware. https://www.st.com/resource/en/reference_manua...
- Thu Feb 15, 2024 5:57 am
- Forum: General discussion
- Topic: How to access low level registers or How to set TIM1 to 128Mhz
- Replies: 10
- Views: 3439
Re: How to access low level registers or How to set TIM1 to 128Mhz
128 Mhz is probably above the cpu clock frequency e.g. for stm32f103c8 72 Mhz, you can probably at best get like 72 Mhz or more commonly half or less like 36 Mhz. for the 'official' STM core, the wiki is here https://github.com/stm32duino/Arduino_Core_STM32/wiki hardware timer API is documented here...
- Tue Jan 16, 2024 5:20 am
- Forum: General discussion
- Topic: Seek assist-Arduino GIGA R1 (STM32H7) RTC usage
- Replies: 7
- Views: 1688
Re: Seek assist-Arduino GIGA R1 (STM32H7) RTC usage
for this board/chip, note that you would need the 'official' STM core https://github.com/stm32duino/Arduino_Core_STM32 https://github.com/stm32duino/Arduino_Core_STM32/wiki in part has it has the full STM32 HAL stack in tow, a fat footprint, but that is the reason the 'support' is bundled. and you c...
- Tue Jan 09, 2024 2:23 pm
- Forum: General discussion
- Topic: Happy new year 2k24
- Replies: 5
- Views: 1655
Re: Happy new year 2k24
happy new year
- Wed Dec 06, 2023 11:38 am
- Forum: General discussion
- Topic: #ifdef not working
- Replies: 3
- Views: 10781
Re: #ifdef not working
it may work if you #include "todayLib.c" instead ( of "todayLib.h" )
- Wed Nov 29, 2023 10:14 pm
- Forum: Libraries & Hardware
- Topic: The Blue Pill: 5V tolerant vs 3.3V standard pins
- Replies: 1
- Views: 6490
Re: The Blue Pill: 5V tolerant vs 3.3V standard pins
Accordingly, tolerant pins have diodes that sink currents, but they still require a high enough resistor to limit the currents going into the pin.
For non-tolerant pins you are taking your chances
http://www.emcu.eu/000/STM32_5VtolerantIO.pdf
For non-tolerant pins you are taking your chances
http://www.emcu.eu/000/STM32_5VtolerantIO.pdf
- Sun Nov 26, 2023 4:16 pm
- Forum: General discussion
- Topic: How to create an STM32 program using Arduino (trouble)
- Replies: 5
- Views: 15310
Re: How to create an STM32 program using Arduino (trouble)
if you use st-link (and only with st-link) , there is a method called connect under reset. i.e. press reset on stm32f103 board, and try to flash using st-link v2 accordingly, it is one way to override write/copy protection if indeed the device is locked. Normally to do those things I use Opencd from...
- Fri Nov 24, 2023 2:07 pm
- Forum: General discussion
- Topic: How to create an STM32 program using Arduino (trouble)
- Replies: 5
- Views: 15310
Re: How to create an STM32 program using Arduino (trouble)
for the (old) libmaple (roger's) core use this repository for the core https://github.com/rogerclarkmelbourne/Arduino_STM32 there is a wiki here https://github.com/rogerclarkmelbourne/Arduino_STM32/wiki but you still need the st-link v2 dongle to program the board / chip. it is likely 'harder' to se...
- Fri Nov 24, 2023 1:08 pm
- Forum: General discussion
- Topic: How to create an STM32 program using Arduino (trouble)
- Replies: 5
- Views: 15310
Re: How to create an STM32 program using Arduino (trouble)
Try using this core instead, deemed the 'official' STM core https://github.com/stm32duino/Arduino_Core_STM32/wiki/Getting-Started https://github.com/stm32duino/Arduino_Core_STM32 https://github.com/stm32duino/Arduino_Core_STM32/wiki and to program that board stm32f103c8, you would need a st-link don...
- Thu Nov 23, 2023 3:31 pm
- Forum: General discussion
- Topic: Any inline assembler tutorial?
- Replies: 5
- Views: 8054
Re: Any inline assembler tutorial?
these days, for *convenience*, and with microcontrollers with generous sram and flash, some don't even bother with c/c++ and simply script away. https://micropython.org/ https://circuitpython.org/ e.g. if you have a good library, writing to a sd card can be simply f = open("file.txt","...