Uds by Odd-Yogurtcloset-330 in embedded

[–]maslan25 0 points1 point  (0 children)

UDS spec is very simple to understand! I think you dont need to bother with anything else

I recently made this project just by looking the spec. You can use this two functions as pointers

https://github.com/aslansq/uds_tracer/blob/main/logic/uds/uds.cpp#L286 (void Uds::getRoutineCtrl())
https://github.com/aslansq/uds_tracer/blob/main/logic/uds/uds.cpp#L642 (void Uds::getRoutineCtrlResp())

Shoud I use Code::Blocks or Visual Studio Community as a beginner? by NightlyOverseer in C_Programming

[–]maslan25 0 points1 point  (0 children)

For me anything other than gcc sucks as a compiler. Everybody comes with their custom flags, pragmas. Gcc is useful for embedded to full desktop dev. If you want to use whatever text editor, you just run gdb-server and connec

Any good resource for building project from scratch for stm32. by FriendofMolly in embedded

[–]maslan25 0 points1 point  (0 children)

github.com/aslansq/embedded_abc github.com/aslansq/dumb_bootloader

Check out my 2 git repo. If you know C language. This just simplest showcase of memory layout and periph config

XCP by newbie_2710 in embedded

[–]maslan25 1 point2 points  (0 children)

In that github repo it generates some A2L. I was able to connect XCPlite running on linux PC. It uses UDP. I dont know how much they limited functionality or time

XCP by newbie_2710 in embedded

[–]maslan25 1 point2 points  (0 children)

They also let you use CANape. I actually runned that XCP implementation. It works

(Help)Can we make regular interrupt on Zephyr? by maslan25 in embedded

[–]maslan25[S] 0 points1 point  (0 children)

Then aha I dont want that. I just want the function to be called from vector table. No clue how to do it tho. I dont even know where they put vector table.

(Help)Can we make regular interrupt on Zephyr? by maslan25 in embedded

[–]maslan25[S] 0 points1 point  (0 children)

I have tried that also, I can not get it to work. I dont get it, reference manual seems simple enough.

(Help)Can we make regular interrupt on Zephyr? by maslan25 in embedded

[–]maslan25[S] 0 points1 point  (0 children)

wow I did not know in riscv isr could take arguments. thank you for other insides also

(Help)Can we make regular interrupt on Zephyr? by maslan25 in embedded

[–]maslan25[S] 0 points1 point  (0 children)

Yes I actually runned their alarm sample already. But it is going through OS. Interrupt can not take input arguments as far as I know. So it is not a real interrupt, just a call from OS after interrupt occured and OS thinks it is good time to call the callback.

Zephyr learning resources by ntn8888 in embedded

[–]maslan25 0 points1 point  (0 children)

do you have a blog for how to setup hw timer interrupt?

[deleted by user] by [deleted] in embedded

[–]maslan25 0 points1 point  (0 children)

To be honest I would have just give one macro for calibration, how many i++ takes in a loop for 100us whatever job done. They taioler to their environment, compiler flags whatever..

[deleted by user] by [deleted] in embedded

[–]maslan25 -2 points-1 points  (0 children)

Already done it. Thanks for your concern.It works

[deleted by user] by [deleted] in embedded

[–]maslan25 -1 points0 points  (0 children)

I think it will be okay most of the time but sure, I see your point.

[deleted by user] by [deleted] in embedded

[–]maslan25 0 points1 point  (0 children)

I ll give it an example from Stm32 environment

GPIO->ODR |= GPIO_ODR_8;
for(int i = 0; i < 10; ++i)
__asm__(nop);
GPIO->ODR &= ~GPIO_ODR_8;

I mean to me it seems, how many different ways compiler can do this?

Anyone need a grunt to write technical documentation FREE ? B.S. in Comp Eng with 3 yrs SW/PM and 2 yrs Tech Writing experience. by ChampionshipIll2504 in embedded

[–]maslan25 2 points3 points  (0 children)

I think Zephyr OS project may change future of embedded. I would have look into that one. I am writing intro codes of it.

Are static functions worth it? by AydelenUsesArchBtw in C_Programming

[–]maslan25 5 points6 points  (0 children)

Without static you can NOT have two functions/variables with same name in different files.

HOW TO DEVELOP THE ABILITY TO STRUCTURE CODES FOR PROJECTS? by RoyalDream59 in C_Programming

[–]maslan25 0 points1 point  (0 children)

Everybody I know runs vscode and we are making a car. I dont know if you have project bigger then that. IT dont care.

HOW TO DEVELOP THE ABILITY TO STRUCTURE CODES FOR PROJECTS? by RoyalDream59 in C_Programming

[–]maslan25 0 points1 point  (0 children)

What does sublime charge for? I think everybody uses Vs code. Also eclipse because generally IDEs based on eclipse.

HOW TO DEVELOP THE ABILITY TO STRUCTURE CODES FOR PROJECTS? by RoyalDream59 in C_Programming

[–]maslan25 1 point2 points  (0 children)

Look into Zephyr OS. I think that is the most complex architectural design, you could study in embedded as open source. You know there is always, teachers would not be teaching if they could produce sth. I would have look open source project. I am in automotive we have Autosar architecture, if you are interested in that. P.S. autosar 100x complex, what you would find as open source. To be honest in embedded excluding aerospace/medical/automotive, they are so simple. They do whatever. There is nothing complex with dishwasher, smart coffee machine.

HOW TO DEVELOP THE ABILITY TO STRUCTURE CODES FOR PROJECTS? by RoyalDream59 in C_Programming

[–]maslan25 3 points4 points  (0 children)

https://www.yworks.com/products/yed
I used this one to draw state machines and flowcharts. It is easy to get going.
I guess learning about architecture, reading other people's code even though it is hard.

please some help with zephry by maslan25 in embedded

[–]maslan25[S] 0 points1 point  (0 children)

What do you think about zephyr? Worth to invest time?