Search found 1656 matches

by ag123
Thu Apr 11, 2024 2:43 pm
Forum: IDE's
Topic: Generic_F030RCT missing?
Replies: 12
Views: 809

Re: Generic_F030RCT missing?

Binary size difference appears to be Newlib Standard vs Newlib nano setting... Not entirely sure what newlib is... :D Clock situation still appears to be happening. I once tried things like -nostdlib -nostartfiles -nodefaultlibs https://gcc.gnu.org/onlinedocs/gcc-4.4.2/gcc/Link-Options.html and the...
by ag123
Wed Mar 27, 2024 2:32 am
Forum: General discussion
Topic: Hardware Serial returning gibberish.
Replies: 3
Views: 348

Re: Hardware Serial returning gibberish.

many GPS device initialize at 9600 baud, not 57600 baud. and various of them offer commands to set the baud rates after initially connecting at 9600 bps if you do not know the actual GPS bauds, to avoid getting gibberish, you would need to practically test every practical known baud, till one that d...
by ag123
Tue Mar 26, 2024 2:12 pm
Forum: General discussion
Topic: strange USART behaviour
Replies: 6
Views: 612

Re: strange USART behaviour

for uart, your *baud rates* and line discipline (e.g. 8N1) matters. for usb (CDC) serial, it doesn't matter, there is no baud rates, it is straight 12 Mbps USB full speeds based on the specs. so if you are using uart and the other side is not at the same baud rates, all data will be garbled. for uar...
by ag123
Wed Mar 20, 2024 12:28 pm
Forum: General discussion
Topic: ToneAC on stm32
Replies: 1
Views: 292

Re: ToneAC on stm32

you can try playing with the hardware timer and PWM https://github.com/stm32duino/Arduino_Core_STM32/wiki/HardwareTimer-library https://github.com/stm32duino/STM32Examples/tree/main/examples/Peripherals/HardwareTimer but that if that is some form of sigma delta DAC https://en.wikipedia.org/wiki/Delt...
by ag123
Mon Mar 18, 2024 7:27 am
Forum: General discussion
Topic: STM32SD adjust file timestamps?
Replies: 4
Views: 369

Re: STM32SD adjust file timestamps?

apparently STM32SD https://github.com/stm32duino/STM32SD depends on FatFs https://github.com/stm32duino/FatFs which has a getfattime() callback https://github.com/stm32duino/FatFs/blob/bf405bad29c66accd9df5570084ad80a8c78cd11/src/ff.h#L295 https://github.com/stm32duino/FatFs/blob/bf405bad29c66accd9d...
by ag123
Thu Mar 14, 2024 3:34 pm
Forum: General discussion
Topic: I2C communication does not work.
Replies: 3
Views: 220

Re: I2C communication does not work.

I2C requires a 'different skillset' vs playing with uart, uart is point to point, it is only 2 devices a sender and the other a receiver and vice versa. but of course it is up to one to make things complicated by adding RS485, RS422 etc, but that is off-topic. Then that for i2c, many devices share t...
by ag123
Thu Mar 14, 2024 4:02 am
Forum: General discussion
Topic: I2C communication does not work.
Replies: 3
Views: 220

Re: I2C communication does not work.

that device has uart
https://en.gassensor.com.cn/Product_fil ... cation.pdf
have you tried that?
uart just take different pins and is normally accessible at Serial1, Serial2 etc.
by ag123
Thu Mar 14, 2024 3:45 am
Forum: General discussion
Topic: Bootloader, what should I do?
Replies: 2
Views: 102

Re: Bootloader, what should I do?

for STM32F103 get a st-link v2 https://www.adafruit.com/product/2548 https://www.st.com/en/development-tools/st-link-v2.html https://www.digikey.sg/en/products/detail/stmicroelectronics/ST-LINK-V2/2214535 https://octopart.com/search?q=st-link+v2&currency=USD&specs=0 or a usb-uart (3.3v) dong...
by ag123
Wed Mar 13, 2024 2:35 pm
Forum: General discussion
Topic: STM32F407VGT6 programming issues
Replies: 4
Views: 306

Re: STM32F407VGT6 programming issues

I found this article from a google search https://community.st.com/t5/stm32-mcus-wireless/how-to-i-fix-stm32cubeprogrammer-no-stm32-target-found-after/td-p/257858 If i set the ST-LINK configuration to: Mode: Normal Reset Mode: Software Reset Then, I can successfully connect if I: Press and hold the ...
by ag123
Wed Mar 13, 2024 4:40 am
Forum: General discussion
Topic: STM32F407VGT6 programming issues
Replies: 4
Views: 306

Re: STM32F407VGT6 programming issues

one thing to try is to press and hold reset when you flash the sketch over st-link, this is called 'connect under reset'. If the tool chain is properly installed, sometimes that will override the write protection. flash a simple sketch such as to blink the led, so that you know if after all it is wo...

Go to advanced search