Search
Setup for Free
DIIS
DevHeads IoT Integration Server
•
14mo ago
segfaultdev.elf
Now it is working fine and I am using uart for debugging
Now it is working fine and I am using uart for debugging
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
S
segfaultdev.elf
Now it is working fine and I am using uart for debugging
T
Techist
•
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
OP
•
11/8/24, 7:27 PM
the issue was how I treated FreeRTOS
S
segfaultdev.elf
OP
•
11/8/24, 7:27 PM
i added rtos as a library to my project
S
segfaultdev.elf
OP
•
11/8/24, 7:28 PM
for that reason when compiling ISRs weren
’t linked perfectly
S
segfaultdev.elf
OP
•
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
OP
•
11/8/24, 7:30 PM
for that I added FreeRTOS as a source to my code
T
Techist
•
11/8/24, 7:30 PM
Ohhhhh
, that makes much sense
.
S
segfaultdev.elf
OP
•
11/8/24, 7:30 PM
and everything working just fine
T
Techist
•
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
OP
•
11/8/24, 7:31 PM
To be honest I am more comfortable in this way
S
segfaultdev.elf
OP
•
11/8/24, 7:31 PM
Every time I face some issues like this
S
segfaultdev.elf
OP
•
11/8/24, 7:31 PM
it teaches me a lot
T
Techist
•
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
OP
•
11/8/24, 7:32 PM
For example I learned this because of the issue
T
Techist
•
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
OP
•
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
OP
•
11/8/24, 7:33 PM
so for now I will give it a try
S
segfaultdev.elf
OP
•
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
OP
•
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
•
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
OP
•
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
•
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
OP
•
11/8/24, 7:39 PM
no
S
segfaultdev.elf
OP
•
11/8/24, 7:39 PM
you can check debug
.c
S
segfaultdev.elf
OP
•
11/8/24, 7:39 PM
for better information
S
segfaultdev.elf
OP
•
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
OP
•
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
•
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
OP
•
11/8/24, 7:41 PM
in which file
?
S
segfaultdev.elf
OP
•
11/8/24, 7:42 PM
in main
.c those configurations I did it was for rapid testing
S
segfaultdev.elf
OP
•
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
•
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
OP
•
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
•
11/8/24, 7:43 PM
Ooh
, makes much sense
.
Yeah
, I saw you your cmsis lib
.
T
Techist
•
11/8/24, 7:43 PM
Kudos
S
segfaultdev.elf
OP
•
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
OP
•
11/8/24, 7:45 PM
in the past I used to call my uart
_send
_char inside
_io
_putchar
S
segfaultdev.elf
OP
•
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
OP
•
11/8/24, 7:46 PM
which is more than enough to logging data
T
Techist
•
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
OP
•
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
OP
•
11/8/24, 7:49 PM
I am sending it as a buffer
S
segfaultdev.elf
OP
•
11/8/24, 7:49 PM
:excusemewhat
:
S
segfaultdev.elf
I am sending it as a buffer
T
Techist
•
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
OP
•
11/8/24, 7:50 PM
yeah but in a single function call
T
Techist
•
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
OP
•
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
•
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
OP
•
11/8/24, 7:52 PM
thanks man
S
segfaultdev.elf
OP
•
11/8/24, 7:52 PM
it feels really good to share the process with someone
Next page
Similar Threads
Looking for project ideas and examples for AVR ATmega32 with UART
DIIS
DevHeads IoT Integration Server / 🪲-firmware-and-baremetal
17mo ago
Monitoring and Debugging Tools
DIIS
DevHeads IoT Integration Server / 🟩-pcb-and-analog
3y ago
Configuring PIC24FJ128GC010 for Sensor Module and UART with MPLAB X IDE
DIIS
DevHeads IoT Integration Server / 🪲-firmware-and-baremetal
2y ago
Garbled Characters in HAL_UART_Transmit_IT on STM32 F303RE Causes and Solutions
DIIS
DevHeads IoT Integration Server / 🪲-firmware-and-baremetal
13mo ago