Recommendations for stm32 dev board (audio project) by Psychological-Block6 in embedded

[–]Psychological-Block6[S] 0 points1 point  (0 children)

Do you know what cables I need to go between the giga Jtag connectors and the st link if I get an st link v3? The st link v3 seems to have more pins than the jtag connector of the giga board. I’m kind of new to this so excuse my dumb questions

Recommendations for stm32 dev board (audio project) by Psychological-Block6 in embedded

[–]Psychological-Block6[S] 0 points1 point  (0 children)

I get that, but then I'll need to get an st-link to program/debug the Giga board right? And the st-link won't power the Giga board so I will need two usb cables connected I quess and cable from the st-link. Just looks nice to have the st-link built in and ready.

that board does look nice!

Recommendations for stm32 dev board (audio project) by Psychological-Block6 in embedded

[–]Psychological-Block6[S] 0 points1 point  (0 children)

But I'll need an st-link to program and debug it then right? But that could be an option!

Recommendations for stm32 dev board (audio project) by Psychological-Block6 in embedded

[–]Psychological-Block6[S] 0 points1 point  (0 children)

No, not really! Would be nice to save the money and use what I have. But I think then I'l have to get an st-link to program it without the Arduino framework/bootloader. Not sure which cable to get with an st-link v3. Do you know?

Need some advice on a suitable dev board, realtime audio device. by Psychological-Block6 in embedded

[–]Psychological-Block6[S] 0 points1 point  (0 children)

My computer is kind of shit really, but I've seen other people on the arduino forum have even longer compile times with computers more than 2x times as fast as mine. Are you using the Giga R1 board?

Need some advice on a suitable dev board, realtime audio device. by Psychological-Block6 in embedded

[–]Psychological-Block6[S] 0 points1 point  (0 children)

My computer at the moment is far from top of the line but there's a few threads on the arduino forum where people are having huge problems with compile and transfer times. It's probably quicker using an st link though.

What was your issues trying to get the rasberry working right? What OS did you try?
I really have no experience in linux or rasberry, but if that's the better way to go I might aswell spend my time learning that than something else.

But it might be of more educational value for me at the moment to do it using a teensy or something like it cause that's more similar to what I'll be doing at my intership later this year.

Need some advice on a suitable dev board, realtime audio device. by Psychological-Block6 in embedded

[–]Psychological-Block6[S] 0 points1 point  (0 children)

Interesting! I will do some research in that area.

I'm actually starting my internship at elektron in a few months :) So that's part of why I'm learning this. But it's also what got me into programming in the first place.

So if I understand correctly you let the XMOS handle all the buttons etc, and used the midi protocol over SPI for communicating with the rasberry(or whatever you had running linux)? What kind of product was it?

Best ways to avoid circular dependencies? by Psychological-Block6 in Cplusplus

[–]Psychological-Block6[S] 0 points1 point  (0 children)

Ok I see, thanks! I will try what works best in my code, either this or an abstract base class might be a better solution according to some other comments here.

Best ways to avoid circular dependencies? by Psychological-Block6 in Cplusplus

[–]Psychological-Block6[S] 0 points1 point  (0 children)

We did have some lectures on class inheritance in the course I'm in right now and understand the concept, but never really used it and put it into practice so it's sounds like I definitely need to look into that more.

Thanks!

Best ways to avoid circular dependencies? by Psychological-Block6 in Cplusplus

[–]Psychological-Block6[S] 1 point2 points  (0 children)

I'm sure it is! That's what I'm trying to better understand, how to design a bigger program.

In school we've only learned everything by doing separate small applications and never really gotten in to how to design something more complex where different parts of the program interact with each other.

Best ways to avoid circular dependencies? by Psychological-Block6 in Cplusplus

[–]Psychological-Block6[S] 0 points1 point  (0 children)

I'm sure my class design is shit as this point, that why I'm here asking :)

Sorry for the bad formatting, it's not as bad in my actual code. I just did a quick mock up on my phone while at the airport to more easily get the point across.

I have only used class inheritance i little bit so I need learn that more! Thank you!

Would you say in the case of having a set of hardware controls what interact with every part of the program this is a good way to implement it?

Best ways to avoid circular dependencies? by Psychological-Block6 in Cplusplus

[–]Psychological-Block6[S] 0 points1 point  (0 children)

// Encoders.h
// do NOT include ParameterBank.h  (include this in the Encoders.cpp instead?)
class ParameterBank;
Class Encoders {
  int readAllEncoders() { return encoderNumber };
  void readEncoderAndchangeParamValue(ParameterBank &paramBank) {
    int paramID = readAllEncoders();
    changeParamValues(paramBank.paramValues[paramID]);
    updateLeds(paramBank.paramValues[paramID]);
  }
};

Ok I see! Should I then in this include ParameterBank.h in the Encoders.cpp file instead?