Mechanical engineer developing skills in an increasingly digital landscape. Hoping to design products which integrate mechanical and electrical systems with embedded control.

Re: Determining the index of a value in a struct

Reply posted 2 months ago (08/05/2021)
@mrfirmware, you beat me to it!MaxThere is helpful information on offsetof here https://en.cppreference.com/w/c/types/offsetof. That page also includes a web-based...

Re: HardFault during erasing Flash in debug mode

Reply posted 2 months ago (07/09/2021)
If you’re having trouble identifying the kind of hard fault, you might take a look at this article. https://interrupt.memfault.com/blog/cortex-m-fault-debug

Re: Variable Array Sizes when Instantiating?

Reply posted 3 months ago (06/28/2021)
Hi Max,Do you want the user to be able to reconfigure the display dynamically through a PC interface, or will changing the number of strings etc. require a recompile? If...

Re: Five different ways of incrementing a variable in C?

Reply posted 6 months ago (03/16/2021)
The prefix or postfix increment/decrement operator requires an lvalue and returns the value pre-modification. Since an rvalue (temporary) is returned, you can’t...

Re: SDKs and project management

Reply posted 7 months ago (02/11/2021)
Along this line, I’ve been experimenting with Docker and VSCode as a build environment. VSCode has a remote development option, so I can edit the sources in my...

Re: What are the odds? (Random Numbers)

Reply posted 8 months ago (02/02/2021)
...

Re: Karnaugh Map Minimizations

Reply posted 10 months ago (11/24/2020)
Hi Max,I hadn't heard of K-maps before - I guess it didn't come up in mechatronics class. It looks like a really useful tool as I had a use case just the other day....

Re: Assert() If You Test Pre/Post Conditions

Reply posted 11 months ago (11/06/2020)
Thank you, Matthew, Miro, and mr_bandit, for your advice and new resources to check out. As a follow up, are there any testing frameworks you would recommend? I've...

Assert() If You Test Pre/Post Conditions

New thread started 11 months ago
I'm trying out test driven development (TDD) and would appreciate some advice. If you are an engineer who practices TDD or unit testing, I would like to know if...

Re: How to Get and Keep a Job

Reply posted 12 months ago (09/24/2020)
I received my bachelor’s degree in 2013, so I’d like to share some advice aimed at engineering students who have some time left in university.Prefer an engineering...
Do you have any link to the gpiod library documentation or source code?

Re: When is a State Machine not a State Machine?

Reply posted 1 year ago (07/20/2020)
I would argue that this code describes a state machine with the two states you have indicated: LED_OFF and LED_ON.The transitions between the states are triggered...

Re: Advice on resetting local function variables

Reply posted 1 year ago (06/28/2020)
You might find Miro Samek’s free e-book helpful. It covers OOP design principles but with a focus on C

Re: To Cast, or Not to Cast

Reply posted 1 year ago (06/26/2020)
Hello Max, Though I’m still an amateur, I’ll share my opinion based on what I’ve picked up from self-study. Don’t take what I say on faith, but run some...
Could it be related to your target triple? I see you have arm-linux-gnueabi, but I think there’s another version specifically for hardware floating point: arm-linux-gnueabihf....

Re: Block diagram software

Reply posted 1 year ago (04/09/2020)
I’ve tried Modelio which is free and works with UML and SysML.PlantUML is an interesting program from generating UML diagrams from a basic markup language. It...

Re: Rolling over before reaching 256 (8051)

Reply posted 2 years ago (02/08/2020)
Hi mik3ca,It sounds like you’re trying to reserve a few byte values for control, but if these values show up in your data, you need to replace them so your serial...

Re: Low level programming

Reply posted 3 years ago (03/18/2019)
This thread is a little old, but I think I’m in a similar place to you. You’ve already gotten lots of good advice from the experienced members of the forum;...

Re: ADC Read Sequencing for Motor Control

Reply posted 3 years ago (05/31/2018)
...

ADC Read Sequencing for Motor Control

New thread started 3 years ago
I am studying embedded control by working on a BLDC motor control with the NXP FRDM-KV11Z development board (Kinetis microcontroller). I’ve read enough articles...

Use this form to contact waydan

Before you can contact a member of the *Related Sites:

  • You must be logged in (register here)
  • You must confirm you email address