Search found 25 matches

by miki
Wed Aug 26, 2020 2:39 pm
Forum: Ideas & suggestions
Topic: Bare metal STM32 programming
Replies: 16
Views: 3639

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...
by miki
Sat Aug 22, 2020 10:39 am
Forum: Ideas & suggestions
Topic: Bare metal STM32 programming
Replies: 16
Views: 3639

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...
by miki
Tue Aug 18, 2020 9:55 am
Forum: Ideas & suggestions
Topic: Bare metal STM32 programming
Replies: 16
Views: 3639

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...
by miki
Sat May 09, 2020 9:47 am
Forum: General discussion
Topic: 1-Wire bootloader.
Replies: 1
Views: 558

1-Wire bootloader.

Anybody knows of an 1-wire bootloader for STM32F1?
Using any mcu pin to flash a F1 chip.
by miki
Sat Mar 14, 2020 9:33 am
Forum: General discussion
Topic: STM32F1 DMA
Replies: 2
Views: 941

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
by miki
Sat Feb 01, 2020 9:26 pm
Forum: General discussion
Topic: [SOLVED]Interesting problem
Replies: 41
Views: 7572

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...
by miki
Sat Feb 01, 2020 12:16 pm
Forum: General discussion
Topic: [SOLVED]Interesting problem
Replies: 41
Views: 7572

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 with STlink ...
by miki
Thu Jan 30, 2020 5:00 pm
Forum: General discussion
Topic: [SOLVED]Interesting problem
Replies: 41
Views: 7572

Re: Interesting problem

Tested with
enableDebugPorts();
Working like a charm.
Thank you guys.
Best community here.
by miki
Wed Jan 29, 2020 7:23 am
Forum: General discussion
Topic: [SOLVED]Interesting problem
Replies: 41
Views: 7572

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...
by miki
Tue Jan 28, 2020 10:26 pm
Forum: General discussion
Topic: [SOLVED]Interesting problem
Replies: 41
Views: 7572

Re: Interesting problem

Yes it works but after I flash the program this method don’t work anymore with stlink.i cannot change to serial back and forth every time i want flash the program.after I flash one time I cannot connect anymore with stlink without boot0 or reset pin.probably the program take swd pins as in use.but t...

Go to advanced search