Search found 9 matches

by msadeghz
Mon Feb 01, 2021 6:46 am
Forum: Custom design boards
Topic: STM32G070KB support
Replies: 14
Views: 9344

Re: STM32G070KB support

yes, that's why it doesn't work with the current version of the core you used. in fact the core remap to the pin 22/23. So simply comment the code as mentioned in the GH issue and no remap will be done. thank you, now I want to use spi, I give 0xFF when want to read a register, I have checked by os...
by msadeghz
Sun Jan 31, 2021 2:20 pm
Forum: Custom design boards
Topic: STM32G070KB support
Replies: 14
Views: 9344

Re: STM32G070KB support

done,
thank you! :)
by msadeghz
Sun Jan 31, 2021 1:58 pm
Forum: Custom design boards
Topic: STM32G070KB support
Replies: 14
Views: 9344

Re: STM32G070KB support

Ahah! I've just remember why it does not work with USART1. ;) This is linked to the pin used: PA9/PA10. On G0 those pins could be remapped on PA11/PA12. https://github.com/stm32duino/Arduino_Core_STM32/issues/1180 This will be fixed in the next core release. As a workaround, simply comments the cod...
by msadeghz
Sun Jan 31, 2021 1:48 pm
Forum: Custom design boards
Topic: STM32G070KB support
Replies: 14
Views: 9344

Re: STM32G070KB support

SERIAL_UART_INSTANCE is the number of the USART instance. In that case USART1. The Serial naming is explained in the Wiki: https://github.com/stm32duino/wiki/wiki/API#hardwareserial The STM32 MCU's have several U(S)ART peripherals. By convenience, the U(S)ARTx number is used to define the Serialxin...
by msadeghz
Sun Jan 31, 2021 1:06 pm
Forum: Custom design boards
Topic: STM32G070KB support
Replies: 14
Views: 9344

Re: STM32G070KB support

See the wiki😉 I have enabled uarts by HAL_UART_MODULE_ENABLED macro and use Serial.begin(115200) to use uart1, but I haven't anything on uart1_tx for test I have commented usart1 pins in variant.h and periphaeralpins.h files, but arduino IDE doesn't get error and compile successfully! part of varia...
by msadeghz
Sun Jan 31, 2021 11:11 am
Forum: Custom design boards
Topic: STM32G070KB support
Replies: 14
Views: 9344

Re: STM32G070KB support

I have seen and do anything said in wiki, I can program blink and it works.
by msadeghz
Sat Jan 30, 2021 7:45 pm
Forum: Custom design boards
Topic: STM32G070KB support
Replies: 14
Views: 9344

Re: STM32G070KB support

I don't what is SERIAL_UART_INSTANCE meaning?
how can I use other uarts?
by msadeghz
Sat Jan 30, 2021 7:43 pm
Forum: Custom design boards
Topic: STM32G070KB support
Replies: 14
Views: 9344

Re: STM32G070KB support

you can find the attached image,
I put uart1 pins for tx and rx, as I set them in peripheralPins.h file.
by msadeghz
Sat Jan 30, 2021 5:06 pm
Forum: Custom design boards
Topic: STM32G070KB support
Replies: 14
Views: 9344

STM32G070KB support

Hi there, I have created new variant for stm32g070kb chip and I have checked the blink test and it's working find. I wanted to test the communications like uart, as a default interface called Serial. but I don't see anything on Uart1 tx pin, and software serial is not working at all. which parts sho...

Go to advanced search