Search found 1673 matches

by ag123
Wed Nov 29, 2023 10:14 pm
Forum: Libraries & Hardware
Topic: The Blue Pill: 5V tolerant vs 3.3V standard pins
Replies: 1
Views: 5717

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
by ag123
Sun Nov 26, 2023 4:16 pm
Forum: General discussion
Topic: How to create an STM32 program using Arduino (trouble)
Replies: 5
Views: 14442

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...
by ag123
Fri Nov 24, 2023 2:07 pm
Forum: General discussion
Topic: How to create an STM32 program using Arduino (trouble)
Replies: 5
Views: 14442

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...
by ag123
Fri Nov 24, 2023 1:08 pm
Forum: General discussion
Topic: How to create an STM32 program using Arduino (trouble)
Replies: 5
Views: 14442

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...
by ag123
Thu Nov 23, 2023 3:31 pm
Forum: General discussion
Topic: Any inline assembler tutorial?
Replies: 5
Views: 7525

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","...
by ag123
Thu Nov 23, 2023 3:03 pm
Forum: General discussion
Topic: Any inline assembler tutorial?
Replies: 5
Views: 7525

Re: Any inline assembler tutorial?

it is possible to write assembly, but that c/c++ codes tend to be more readable and maintainable. in terms of savings, you can possibly write / make smaller binaries with assembly. But for my purpose, as I'd rather simply get a chip with a more comfortable margin of sram and flash, I'd make do with ...
by ag123
Thu Nov 23, 2023 3:43 am
Forum: General discussion
Topic: STM32F401CCU Black Pill not detected by Win 7
Replies: 9
Views: 12996

Re: STM32F401CCU Black Pill not detected by Win 7

You can try to install this: https://www.st.com/en/development-tools/stsw-link009.html Thanks I downloaded this and installed it. Made no difference I still have no COM port assigned to the STM32 in Device Manager. I should have noted STM32 Cube Programmer is installed. This is with the STLink plug...
by ag123
Wed Nov 22, 2023 11:15 am
Forum: General discussion
Topic: STM32F401CCU Black Pill not detected by Win 7
Replies: 9
Views: 12996

Re: STM32F401CCU Black Pill not detected by Win 7

in linux, there is something called https://github.com/jkulesza/usbreset what that does is to get the usb host controller to issue 'usb reset' (single ended zero) and enumerate (all) devices again. that normally works the same if you disconnect and reconnect your device, or perhaps try pressing rese...
by ag123
Wed Nov 22, 2023 7:18 am
Forum: General discussion
Topic: STM32F401CCU Black Pill not detected by Win 7
Replies: 9
Views: 12996

Re: STM32F401CCU Black Pill not detected by Win 7

well. you need to mention which core you are using. The 'official' STM core is here https://github.com/stm32duino/Arduino_Core_STM32 and wiki here https://github.com/stm32duino/Arduino_Core_STM32/wiki install instruction is here https://github.com/stm32duino/Arduino_Core_STM32/wiki/Getting-Started a...
by ag123
Sun Nov 19, 2023 9:33 pm
Forum: General discussion
Topic: Convert Arduino cod from stm
Replies: 2
Views: 5817

Re: Convert Arduino cod from stm

Codes like SPCR, SPIE, CPHA are likely registers and definitions relevant to other mcus (e.g. ATmega, etc). It would be necessary to review the functionalities / ref manuals for both the different processors e.g. ATmega and say an STM32 (a particular processor e.g. stm32f401) to understand how to tr...

Go to advanced search