Search
Setup for Free
DIIS
DevHeads IoT Integration Server
•
14mo ago
Techist
Are you using any interrupt service routine for any other peripheral in your project? Say UART?
Are you using any interrupt service routine for any other peripheral in your project
? Say UART
?
DevHeads IoT Integration Server
Join
The DevHeads IoT Integration Server accelerates technology engineering by helping pro devs learn, share and collaborate.
2,938
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
T
Techist
Are you using any interrupt service routine for any other peripheral in your pro...
S
segfaultdev.elf
•
11/8/24, 7:26 PM
Now it is working fine and I am using uart for debugging
S
segfaultdev.elf
Now it is working fine and I am using uart for debugging
T
Techist
OP
•
11/8/24, 7:27 PM
Ok
, mind to share how you fixed it
?
T
Techist
Ok, mind to share how you fixed it?
S
segfaultdev.elf
•
11/8/24, 7:27 PM
the issue was how I treated FreeRTOS
S
segfaultdev.elf
•
11/8/24, 7:27 PM
i added rtos as a library to my project
S
segfaultdev.elf
•
11/8/24, 7:28 PM
for that reason when compiling ISRs weren
’t linked perfectly
S
segfaultdev.elf
•
11/8/24, 7:29 PM
since ISR
’s are weekly declared so if my linker found them first their symbols are resolved and it won
’t look for strongly implemented ISR
’s which were implemented by FreeRTOS
S
segfaultdev.elf
•
11/8/24, 7:30 PM
for that I added FreeRTOS as a source to my code
T
Techist
OP
•
11/8/24, 7:30 PM
Ohhhhh
, that makes much sense
.
S
segfaultdev.elf
•
11/8/24, 7:30 PM
and everything working just fine
T
Techist
OP
•
11/8/24, 7:31 PM
You could use Cubemx next time to avoid such problem
.
T
Techist
You could use Cubemx next time to avoid such problem.
S
segfaultdev.elf
•
11/8/24, 7:31 PM
To be honest I am more comfortable in this way
S
segfaultdev.elf
•
11/8/24, 7:31 PM
Every time I face some issues like this
S
segfaultdev.elf
•
11/8/24, 7:31 PM
it teaches me a lot
T
Techist
OP
•
11/8/24, 7:32 PM
It
's fine
, then
.
That
's how I learnt FreeRTOS my self
.
S
segfaultdev.elf
since ISR’s are weekly declared so if my linker found them first their symbols a...
S
segfaultdev.elf
•
11/8/24, 7:32 PM
For example I learned this because of the issue
T
Techist
OP
•
11/8/24, 7:32 PM
I only suggested using cubemx because it
's more easier to use
.
And it does all configurations underhood for you
.
T
Techist
I only suggested using cubemx because it's more easier to use. And it does all ...
S
segfaultdev.elf
•
11/8/24, 7:33 PM
I know that maybe for rapid development I will use it but i am still learning
S
segfaultdev.elf
•
11/8/24, 7:33 PM
so for now I will give it a try
S
segfaultdev.elf
•
11/8/24, 7:34 PM
https://github.com/undefined2001/FreeRTOS-BlackPill.git
GitHub
GitHub - undefined2001/FreeRTOS-BlackPill: This repository contains...
This repository contains the necessary code to operate a STM32F411CEU6
- undefined2001
/FreeRTOS
-BlackPill
S
segfaultdev.elf
•
11/8/24, 7:34 PM
in case if you want to share some of your words in this
S
segfaultdev.elf
I know that maybe for rapid development I will use it but i am still learning
T
Techist
OP
•
11/8/24, 7:34 PM
Perfect
.
Been awhile I worked on freeRTOS though
.
T
Techist
Perfect. Been awhile I worked on freeRTOS though.
S
segfaultdev.elf
•
11/8/24, 7:38 PM
even though it doesn
’t make much sense but I love to write my own driver
S
segfaultdev.elf
https://github.com/undefined2001/FreeRTOS-BlackPill.git
T
Techist
OP
•
11/8/24, 7:38 PM
I see you are using uart for logging purpose right
?
Where are you calling the uart write function
?
_io
_puts private function
?
S
segfaultdev.elf
•
11/8/24, 7:39 PM
no
S
segfaultdev.elf
•
11/8/24, 7:39 PM
you can check debug
.c
S
segfaultdev.elf
•
11/8/24, 7:39 PM
for better information
S
segfaultdev.elf
•
11/8/24, 7:40 PM
_io
_puts is called by a system call which is
_write that is kinda overhead to what i exactly need
S
segfaultdev.elf
•
11/8/24, 7:40 PM
so I just wrote my printk to do the job
S
segfaultdev.elf
even though it doesn’t make much sense but I love to write my own driver
T
Techist
OP
•
11/8/24, 7:41 PM
Yeah
, I get you
.
That
's fine
.
You should define your mask values and bit positions as macros too
.
You
'd have a hard time understanding that code in months to come
.
T
Techist
Yeah, I get you. That's fine. You should define your mask values and bit posit...
S
segfaultdev.elf
•
11/8/24, 7:41 PM
in which file
?
S
segfaultdev.elf
•
11/8/24, 7:42 PM
in main
.c those configurations I did it was for rapid testing
S
segfaultdev.elf
•
11/8/24, 7:42 PM
I usually use CMSIS so those are already defined
S
segfaultdev.elf
_io_puts is called by a system call which is _write that is kinda overhead to wh...
T
Techist
OP
•
11/8/24, 7:43 PM
Placing your uart write in io
_puts should be able to achieve the same result
.
I think so
.
T
Techist
Placing your uart write in io_puts should be able to achieve the same result. ...
S
segfaultdev.elf
•
11/8/24, 7:43 PM
yeah no doubt about it
S
segfaultdev.elf
I usually use CMSIS so those are already defined
T
Techist
OP
•
11/8/24, 7:43 PM
Ooh
, makes much sense
.
Yeah
, I saw you your cmsis lib
.
T
Techist
OP
•
11/8/24, 7:43 PM
Kudos
S
segfaultdev.elf
•
11/8/24, 7:44 PM
but printf is invoking some system call which is more resource hungry so I get the functionality I need but a bit less cost
S
segfaultdev.elf
•
11/8/24, 7:45 PM
in the past I used to call my uart
_send
_char inside
_io
_putchar
S
segfaultdev.elf
•
11/8/24, 7:46 PM
also printf might use a larger buffer to store data i only made my buffer for 100 characters
S
segfaultdev.elf
•
11/8/24, 7:46 PM
which is more than enough to logging data
T
Techist
OP
•
11/8/24, 7:48 PM
Well
, the printk implementation is fine anyways
.
It
's justiable if you are using it for learning purpose
.
S
segfaultdev.elf
•
11/8/24, 7:48 PM
also i thought it would better rather than sending character by character in each
_io
_putchar call
S
segfaultdev.elf
•
11/8/24, 7:49 PM
I am sending it as a buffer
S
segfaultdev.elf
•
11/8/24, 7:49 PM
:excusemewhat
:
S
segfaultdev.elf
I am sending it as a buffer
T
Techist
OP
•
11/8/24, 7:50 PM
Your uart driver still sends it per character
, lol
.
T
Techist
Your uart driver still sends it per character, lol.
S
segfaultdev.elf
•
11/8/24, 7:50 PM
yeah but in a single function call
T
Techist
OP
•
11/8/24, 7:50 PM
So it doesn
't make much difference
, lol
T
Techist
So it doesn't make much difference, lol
S
segfaultdev.elf
•
11/8/24, 7:50 PM
maybe but it was one of my initial thoughts
S
segfaultdev.elf
maybe but it was one of my initial thoughts
T
Techist
OP
•
11/8/24, 7:51 PM
It
's entirely fine
.
I need to join a meeting now
.
I
'm glad to know that you fixed your bugs
.
Happy building
.
T
Techist
It's entirely fine. I need to join a meeting now. I'm glad to know that you fix...
S
segfaultdev.elf
•
11/8/24, 7:52 PM
thanks man
Next page
Similar Threads
How do I implement an interrupt service routine (ISR) in FreeRTOS?
DIIS
DevHeads IoT Integration Server / 📦-middleware-and-os
2y ago
How to Manually Program an Interrupt Service Routine (ISR) for STM32F4 MCU Without Using Libraries?
DIIS
DevHeads IoT Integration Server / 🪲-firmware-and-baremetal
16mo ago
develop FreeRTOS project where two tasks need to write to the same UART peripheral
DIIS
DevHeads IoT Integration Server / 📦-middleware-and-os
2y ago
5 best practices for writing interrupt service routines
DIIS
DevHeads IoT Integration Server / devheads-feed
2y ago