Roger's core is used for boards with 12MHZ crystal not 8Mhz.
GD32F103 run at 108Mhz-8Mhz(crystal) not 72-8Mhz.
If you change the xtal on the board for 12Mhz you can use old rogers core.
Blinking will still work regardless of the Xtal used.
Search found 26 matches
- Sun Jul 18, 2021 7:06 pm
- Forum: Custom design boards
- Topic: Board with GD32F103
- Replies: 6
- Views: 12441
- Wed Aug 26, 2020 2:39 pm
- Forum: Ideas & suggestions
- Topic: Bare metal STM32 programming
- Replies: 26
- Views: 53281
Re: Bare metal STM32 programming
Some functions you may need in a project and you cannot find them in arduino. like: RCC_DeInit();//In standard STM32 library NVIC_SystemReset();//CMSIS and you need to improvise(like bare metal programming) if you work in an Arduino environment. I like flexibility not to be bound by a specific ortho...
- Sat Aug 22, 2020 10:39 am
- Forum: Ideas & suggestions
- Topic: Bare metal STM32 programming
- Replies: 26
- Views: 53281
Re: Bare metal STM32 programming
I don't need help just a discussion. I don't think is complicated.And I used many times code compiled in Arduino IDE. Working directly with registers. It feels to me faster to write code and easier to understand.Sometimes I combine the bare metal code with direct functions from libmaple See an examp...
- Tue Aug 18, 2020 9:55 am
- Forum: Ideas & suggestions
- Topic: Bare metal STM32 programming
- Replies: 26
- Views: 53281
Bare metal STM32 programming
Idea: A topic about using bare metal STM32 programming based on Maple core and its derivatives.It can be compiled in ARduino IDE.Code snippets,what to look for,familiarization with. I have used many times direct register manipulation in many of my codes.I just wonder if there are some topics on this...
- Sat May 09, 2020 9:47 am
- Forum: General discussion
- Topic: 1-Wire bootloader.
- Replies: 1
- Views: 2011
1-Wire bootloader.
Anybody knows of an 1-wire bootloader for STM32F1?
Using any mcu pin to flash a F1 chip.
Using any mcu pin to flash a F1 chip.
- Sat Mar 14, 2020 9:33 am
- Forum: General discussion
- Topic: STM32F1 DMA
- Replies: 2
- Views: 3253
Re: STM32F1 DMA
simpler.
RCC_BASE->AHBENR |= RCC_AHBENR_DMA1EN ; // Enable clock on DMA1
//--
TIMER2_BASE->DIER = TIMER_DIER_CC3DE ;//Capture/Compare 3 DMA request enable
RCC_BASE->AHBENR |= RCC_AHBENR_DMA1EN ; // Enable clock on DMA1
//--
TIMER2_BASE->DIER = TIMER_DIER_CC3DE ;//Capture/Compare 3 DMA request enable
- Sat Feb 01, 2020 9:26 pm
- Forum: General discussion
- Topic: [SOLVED]Interesting problem
- Replies: 46
- Views: 61757
Re: [SOLVED]Interesting problem
Lol! Looks like my core is old. I use void enableDebugPorts(void) { afio_cfg_debug_ports(AFIO_DEBUG_FULL_SWJ); } and working while. afio_cfg_debug_ports(AFIO_DEBUG_SW_ONLY); is not. ********************************************************************* edit: using first afio_cfg_debug_ports(AFIO_DEBU...
- Sat Feb 01, 2020 12:16 pm
- Forum: General discussion
- Topic: [SOLVED]Interesting problem
- Replies: 46
- Views: 61757
Re: [SOLVED]Interesting problem
Another issue, While I can connect with STlink with enableDebugPorts() It is not very useful because I have JTAG pins in use while SWD pins are not used. I tried afio_cfg_debug_ports(AFIO_DEBUG_SW_ONLY); but I get "Cannot connect to the target" message. Is there some work around, to use wi...
- Thu Jan 30, 2020 5:00 pm
- Forum: General discussion
- Topic: [SOLVED]Interesting problem
- Replies: 46
- Views: 61757
Re: Interesting problem
Tested with
enableDebugPorts();
Working like a charm.
Thank you guys.
Best community here.
enableDebugPorts();
Working like a charm.
Thank you guys.
Best community here.
- Wed Jan 29, 2020 7:23 am
- Forum: General discussion
- Topic: [SOLVED]Interesting problem
- Replies: 46
- Views: 61757
Re: Interesting problem
Ahhh I may have an older version of the core?! In my boards.txt genericSTM32F103C.menu.upload_method.serialMethod=Serial genericSTM32F103C.menu.upload_method.serialMethod.upload.protocol=maple_serial genericSTM32F103C.menu.upload_method.serialMethod.upload.tool=serial_upload I thing stevestrong sugg...