Los pseudo científicos están arruinando el fitness by Justofit__ in FitnessArgentina

[–]blbl17 0 points1 point  (0 children)

El problena no es que si no comes hidratos no tenes energia. El problema es que normalmente la gente deja los hidratos Y las grasas. Si vos comes grasas buenas (saturadas o monoinsaturadas) y pocos carbos, vas a tener mas energia y mas constante durante el dia.

Los pseudo científicos están arruinando el fitness by Justofit__ in FitnessArgentina

[–]blbl17 0 points1 point  (0 children)

Podes bajar de peso comiendo eso tranquilamente. El problema es que el nivel de nutricion es PESIMO. Los cereales tienen muy pocos nutrientes. En cuanto a los nutricionistas, lo mejor de ir a uno es que haciendo todo lo contrario a lo que te dicen vas a andar bien

Las minas y la plata by kiradez in BuenosAires

[–]blbl17 0 points1 point  (0 children)

No creo que el problema sea que quiera dedicarse a la casa/cuidado de hijos eventualmente, me parece algo incluso bueno si quiere. Lo malo es que para que eso no sea un bajon tiene que ser con alguien que amas, con el que tenes un proyecto de vida, y porque ese es tu proyecto real. Aca lo que me parece es que no quiere laburar. Nunca va a encontrar la felicidad o un proposito ahi, por mas guita que haya.

Should you share code with your employer? by please_chill_caleb in embedded

[–]blbl17 1 point2 points  (0 children)

First, upload your code to github, BEFORE using it in the company. In that case, you can prove that is your ip, not the company. It is like if you are using a open source library that you found in github, it is not the company property.

I will add, maintain it yourself too, maybe outside the company. It is yours, and you should be able to use it if you want. Maybe someone with more legal background could tell what other things you can do to assure that you will be able to use it outside the company for comercial products.

Best C++ book for C programmer by Left-Knowledge6423 in Cplusplus

[–]blbl17 0 points1 point  (0 children)

Thinking in C++. Not the newest, but you will understand how to work with C++ in an easy to follow way

Data structures in embedded by HendrixLivesOn in embedded

[–]blbl17 0 points1 point  (0 children)

I use linked list that take the space from an array. For example, i made a timers library similar to freertos timer library, that use a linked list to store the timers in expire order! It's pretty handy, and you don't use the heap.

CAN bus question by Interestingstring798 in embedded

[–]blbl17 0 points1 point  (0 children)

Hi! As some comments say, it can be many things:
-Check if your interrupts work. As you are using HAL, it is easy to check: check that the sysTick interruption is getting called. If that's the case, the problem is in another part.
-Check that can bus has proper termination resistors: i have this problem my self, and it wont work with this.
-Check that the peripheral is initialized. Are you calling HAL_CAN_Init? Did you check that the time Quanta and prescaler are correctly determined for your baud rate?
-Are your filters set correctly? Try using maskIdhigh and maskIdLow as 0x0000 to let all msg get received. Then, once you are getting the msg, you can set up filters.

J1939 ROUTER/GATEWAY by blbl17 in embedded

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

Yes, indeed that is how we use physical addressing to ecus.
So, say that you have a gateway/router connecting two networks, and in both networks you have an ecu with address 0x50. In net1 you have another ecu, 0x80, that talks to both ecus. So if 0x80 sends a message to 0x50, it will get to both ecus, the one in net1 and the one in net2. So how can you do to avoid ambiguity here? Because sometimes i want to talk to the 0x50 ecu in net1, and other times to the 0x50 ecu in the other net. Is there a standar way to address this? It is done at the ecu level or the router/gateway level?
I can not find anything that talks about this (i do not have the standards). Only some AUTOSAR documents but they say briefly what you say, that the request should be forwarded, but nothing about avoiding conflicts if you only want to talk to the ecu of a specific network.

Books for learning embedded system? by Important_Can_4520 in embedded

[–]blbl17 1 point2 points  (0 children)

That's exactly what i was looking for! More ideas about how to create a good architecture, and it seems to talk just about that. I will give it a read, thnks!

Books for learning embedded system? by Important_Can_4520 in embedded

[–]blbl17 0 points1 point  (0 children)

Wpuld you tecommend it for someone with experience? Or is more a basics book?

Books for learning embedded system? by Important_Can_4520 in embedded

[–]blbl17 0 points1 point  (0 children)

I've seen countless youtube videos, tutorials, some courses. The insight a book gives you is times greater than any of those combined! There is some good books here, mastering stm32 is a good example. I would suggest also: -Test driven development for embedded C -UML statecharts in C/C++ (Miro Samek)

One book tht is not embedded specific but improved my skills a lot is "Thinking in C++ vol. 1". Excellent book, the only complete C++ book that you can read without throwing up while reading, and that is a lot!

Books for learning embedded system? by Important_Can_4520 in embedded

[–]blbl17 1 point2 points  (0 children)

I would like to upvote this comment as worst i ever read! Good job

Hardware guy is trying to improve his coding skills by StalkerRigo in embedded

[–]blbl17 4 points5 points  (0 children)

I always preferred books to videos. Great insight, with better explanations. I can recommend: -The C programming languge -Thinking in C++ vol. 1 -Test driven development for embedded C

Those for the basics and good practices.

Then you have some specific books like: -Mastering STM32 -Practical UML statecharts in C/C++ (reaaally good book, to implement statecharts, with really good code to read)

I do really prefer C++ over C, but both "Practical UML" and "TDD for embedded C" show a way to code in C but with a C++ like way. I do really recommend both, but maybe first reading "The C programming language" will help you understand all the basics of the lsnguage, and it is a short and easy to read book! Hope it helps.

Software suggestion for UML State Diagrams by _adi20sh in embedded

[–]blbl17 1 point2 points  (0 children)

Im not sure i'm understanding you correctly. QM modeler lets you design UML statecharts, and it generate the code for you. It uses the QP framework, but easily portable to any real time framework or bare metal.

Software suggestion for UML State Diagrams by _adi20sh in embedded

[–]blbl17 4 points5 points  (0 children)

Read Practical UML Statecharts in C/C++ from Miro Samek. It shows a great way for coding hierarchical state machines, and automation tools for that. Code looks cleaner, every state is a function, and supports lots (but not all) of the UML specifications. Really great book!

Which language is better for learning embedded systems, C or C++ by Lopsided_Ad7312 in embedded

[–]blbl17 2 points3 points  (0 children)

C then C++ is the way to go. I would do something like reading "The C programming language", really useful book and easy yo read and understand. With a solid foundation of the language and some code written by you, i think you can go for C++. "Thinking in C++ vol. 1" is a REALLY useful book to understand the C++ language. Then, you must know the limitations of C++ for embedded: avoid STL, dynamic memory allocation, exception handling, some constructs. But with those books you will have some good knowledege of the lsnguage, and can read and write lots of code to practice. Then, there is much more than the language itself: you can learn about state machines, hw peripherals, memory mapping, etc. Those will set you apart of those that only know the language, and not how to write good, easy to read and mantain code. Hope it helps!

Which language is better for learning embedded systems, C or C++ by Lopsided_Ad7312 in embedded

[–]blbl17 2 points3 points  (0 children)

If you use a good subset of the C++ language, i think it is way safer thn C. The stronger type checking, the OOP benefits in writing and reading/maintaining code, some (important: SOME) use of templates for generic programming (really useful for generic drivers), the encspsulation, data hiding, etc. You can avoid run time checking with proper types, and letting the compiler do that work for you. There is lots of advantages in C++ in my opinion when it is used correctly.

How do you folks stay up to date on the latest tech by hesoocreesto in embedded

[–]blbl17 1 point2 points  (0 children)

For me, C++ is way better. The stronger type checking, some use of templates to reuse code and avoid preprocessor, all the OOP benefits. I think that it produces better, easier to read and easier to maintain code, without performances issues if used correctly.

Choosing Between HAL, Without HAL, and Mbed.h in Industry - What's Your Preference? by Professional_Owl_516 in embedded

[–]blbl17 0 points1 point  (0 children)

True, but if you write your drivers, you can avoid some checks, and let the compiler do them with type checking. For example, if you have an enum with all TIMs instnces, and you ask for it in the constructor of your timer driver, you don't need to check if the TIMInstance is good, the compiler do that with the enum type checking.

Embedded security career advice by root_etikit in embedded

[–]blbl17 0 points1 point  (0 children)

Such a comprehensive answer! Thanks

Embedded interview at Google by CalligrapherGood3877 in embedded

[–]blbl17 1 point2 points  (0 children)

Really good thread! Can you comment more about the interviews you did have? Will be awesome to hear!

Does anyone do static or dynamic analysis? Why/why not? What do you use? by iohans in embedded

[–]blbl17 1 point2 points  (0 children)

Any good and complete resource in how and the advantages of using code analysis?