WEBVTT

00:00:00.000 --> 00:00:01.320
<v Chris Gammell>This is The Amp Hour Podcast.

00:00:02.760 --> 00:00:05.480
<v Chris Gammell>Released August 20th, 2017.

00:00:07.800 --> 00:00:09.680
<v Chris Gammell>Episode 356.

00:00:11.500 --> 00:00:13.920
<v Chris Gammell>An interview with Piotr Ezdintensky.

00:00:30.000 --> 00:00:32.060
<v Chris Gammell>Welcome to The Amp Hour.

00:00:32.300 --> 00:00:34.320
<v Chris Gammell>I'm Chris Gammell of Contextual Electronics.

00:00:34.680 --> 00:00:37.680
<v Piotr Ezdintensky>And I'm Piotr Ezdintensky from One Bit Squared.

00:00:38.020 --> 00:00:38.860
<v Piotr Ezdintensky>Welcome. How are you doing?

00:00:39.220 --> 00:00:41.360
<v Piotr Ezdintensky>Very good. Thank you very much for having me.

00:00:41.360 --> 00:00:43.220
<v Chris Gammell>Well, I feel a little embarrassed now.

00:00:43.300 --> 00:00:44.760
<v Chris Gammell>I was like, oh, I've been calling him Peter.

00:00:45.020 --> 00:00:46.640
<v Chris Gammell>But that's not right.

00:00:47.060 --> 00:00:48.400
<v Piotr Ezdintensky>Oh, no, that's totally fine.

00:00:48.640 --> 00:00:52.420
<v Piotr Ezdintensky>I'm actually totally fine with being called Peter.

00:00:52.780 --> 00:00:57.500
<v Piotr Ezdintensky>That's totally fine with me because it makes everything easier.

00:00:57.800 --> 00:00:59.700
<v Piotr Ezdintensky>And I don't mind.

00:01:00.620 --> 00:01:04.300
<v Chris Gammell>So you were pronouncing it in Polish.

00:01:04.480 --> 00:01:04.840
<v Chris Gammell>Is that right?

00:01:05.200 --> 00:01:05.760
<v Chris Gammell>That's correct.

00:01:05.900 --> 00:01:06.000
<v Chris Gammell>Yeah.

00:01:06.780 --> 00:01:09.660
<v Chris Gammell>And we met at DEF CON a couple weeks ago.

00:01:10.080 --> 00:01:11.000
<v Chris Gammell>And we were hanging out, obviously.

00:01:11.520 --> 00:01:16.180
<v Chris Gammell>But people in the audience probably have heard us talking about your projects.

00:01:16.660 --> 00:01:20.200
<v Chris Gammell>But maybe you could give me a little bit of background on where you're coming from

00:01:20.200 --> 00:01:22.920
<v Chris Gammell>and what you've been working on in the past couple years.

00:01:23.920 --> 00:01:29.220
<v Piotr Ezdintensky>So, well, it's difficult to decide where to start with things.

00:01:29.220 --> 00:01:37.820
<v Piotr Ezdintensky>But I think the interesting thing is where the current stuff that I'm working on basically started.

00:01:38.060 --> 00:01:40.640
<v Piotr Ezdintensky>I was designing autopilots for UAV.

00:01:40.640 --> 00:01:48.960
<v Piotr Ezdintensky>Actually, at the very beginning where the UAV and drone stuff was coming about.

00:01:49.460 --> 00:01:49.600
<v Chris Gammell>Okay.

00:01:49.700 --> 00:01:50.560
<v Chris Gammell>And what's beginning?

00:01:50.860 --> 00:01:52.380
<v Chris Gammell>Like, give us a year.

00:01:52.380 --> 00:01:53.620
<v Piotr Ezdintensky>2004?

00:01:53.620 --> 00:01:54.380
<v Piotr Ezdintensky>2004?

00:01:55.260 --> 00:01:56.120
<v Piotr Ezdintensky>Somewhere around that?

00:01:56.320 --> 00:01:56.480
<v Piotr Ezdintensky>Sure.

00:01:56.580 --> 00:01:56.720
<v Piotr Ezdintensky>Yeah.

00:01:57.040 --> 00:02:03.280
<v Piotr Ezdintensky>So I was involved in it more for hobby reasons and then eventually got a job.

00:02:03.280 --> 00:02:09.300
<v Piotr Ezdintensky>And then through different channels, I eventually started designing my own autopilots.

00:02:10.060 --> 00:02:15.080
<v Piotr Ezdintensky>And that was around 2009, somewhere around that time.

00:02:15.080 --> 00:02:23.580
<v Piotr Ezdintensky>And eventually, after moving to the US and moving to Oregon, I founded OneWidSquared,

00:02:24.180 --> 00:02:35.860
<v Piotr Ezdintensky>where we basically built electronics for UAV that are open hardware and open source for mostly targeting paparazzi UAV.

00:02:35.860 --> 00:02:42.380
<v Piotr Ezdintensky>It's pretty much the grandfather of all open source UAV autopilot systems.

00:02:42.700 --> 00:02:42.940
<v Piotr Ezdintensky>Really?

00:02:43.180 --> 00:02:43.380
<v Piotr Ezdintensky>Okay.

00:02:43.500 --> 00:02:43.940
<v Piotr Ezdintensky>That's awesome.

00:02:43.940 --> 00:02:51.800
<v Piotr Ezdintensky>It was started in 2003 by a few guys at ENAC.

00:02:52.140 --> 00:02:55.460
<v Piotr Ezdintensky>It's Ecole Nationale de l'Aviation Civile.

00:02:56.500 --> 00:02:57.400
<v Chris Gammell>It sounds French.

00:02:57.660 --> 00:02:57.740
<v Chris Gammell>Yeah.

00:02:58.080 --> 00:02:59.520
<v Piotr Ezdintensky>Yes, it is very French.

00:03:00.480 --> 00:03:03.580
<v Piotr Ezdintensky>Yeah, they are in Toulouse in France.

00:03:03.720 --> 00:03:10.440
<v Piotr Ezdintensky>And these two guys wanted to compete in a competition for autonomous robotic UAV.

00:03:10.440 --> 00:03:14.180
<v Piotr Ezdintensky>And they basically said, well, let's build something.

00:03:14.600 --> 00:03:15.740
<v Piotr Ezdintensky>And this is where it started.

00:03:16.960 --> 00:03:22.800
<v Piotr Ezdintensky>And yeah, and they published everything they made because European researchers, that's how they roll.

00:03:24.260 --> 00:03:25.120
<v Chris Gammell>Good for them.

00:03:25.460 --> 00:03:25.980
<v Piotr Ezdintensky>Yeah.

00:03:26.200 --> 00:03:29.780
<v Piotr Ezdintensky>And eventually, that became paparazzi UAV.

00:03:30.480 --> 00:03:38.640
<v Piotr Ezdintensky>And much, much, much later, I joined that group and was helping out and building some autopilots for those guys.

00:03:38.640 --> 00:03:41.720
<v Chris Gammell>And so, how do you define an autopilot?

00:03:41.780 --> 00:03:44.820
<v Chris Gammell>I guess we've talked about drones on here.

00:03:44.920 --> 00:03:46.460
<v Chris Gammell>And we've had Chris Anderson on in the past.

00:03:46.680 --> 00:03:49.780
<v Chris Gammell>And I guess maybe a couple other drone people.

00:03:50.060 --> 00:03:52.520
<v Chris Gammell>But how do you define an autopilot?

00:03:52.640 --> 00:03:53.840
<v Chris Gammell>Like what its function is?

00:03:54.640 --> 00:04:01.060
<v Piotr Ezdintensky>So, for me, it is if it can fly itself completely autonomously without human interaction, that's an autopilot.

00:04:01.920 --> 00:04:06.260
<v Chris Gammell>So, like you don't even have to give it a – it's just like powered on and it goes kind of thing or what?

00:04:06.380 --> 00:04:07.140
<v Piotr Ezdintensky>Pretty much, yeah.

00:04:07.240 --> 00:04:07.440
<v Chris Gammell>Okay.

00:04:07.440 --> 00:04:07.640
<v Chris Gammell>Yeah.

00:04:08.680 --> 00:04:13.420
<v Piotr Ezdintensky>There is many definitions and really depends on the person you ask.

00:04:13.480 --> 00:04:15.720
<v Piotr Ezdintensky>It's like you have a room of 100 people.

00:04:15.880 --> 00:04:19.520
<v Piotr Ezdintensky>You ask them the question and you get 100 answers, right?

00:04:19.520 --> 00:04:35.100
<v Piotr Ezdintensky>But for us, especially because paparazzi is such a university and research-driven environment, that is the definition that in that group we would use.

00:04:35.100 --> 00:04:36.500
<v Chris Gammell>Okay.

00:04:36.500 --> 00:04:37.180
<v Chris Gammell>Cool.

00:04:37.300 --> 00:04:37.500
<v Piotr Ezdintensky>Yeah.

00:04:37.600 --> 00:04:38.480
<v Chris Gammell>I mean, yeah.

00:04:38.500 --> 00:04:40.580
<v Chris Gammell>And you have to kind of put a line in the sand somewhere, right?

00:04:40.580 --> 00:04:48.200
<v Chris Gammell>Because I'm guessing if you kind of move back in the definitions a little bit, it's like, well, does it self-stabilize or does it just do waypoints or does it do all this?

00:04:48.360 --> 00:04:48.560
<v Chris Gammell>Yeah.

00:04:48.560 --> 00:04:48.640
<v Chris Gammell>Yeah.

00:04:48.640 --> 00:04:52.540
<v Chris Gammell>There's like lots of different steps that it can – where you can define it, right?

00:04:52.940 --> 00:04:53.240
<v Piotr Ezdintensky>Yeah.

00:04:53.300 --> 00:04:53.480
<v Piotr Ezdintensky>Yeah.

00:04:53.480 --> 00:04:53.540
<v Piotr Ezdintensky>Yeah.

00:04:53.540 --> 00:04:54.460
<v Piotr Ezdintensky>That's right.

00:04:54.460 --> 00:04:56.840
<v Piotr Ezdintensky>This is the interesting thing.

00:04:56.840 --> 00:05:00.560
<v Piotr Ezdintensky>So, there is also many levels on the autonomy scale.

00:05:01.120 --> 00:05:10.600
<v Piotr Ezdintensky>For example, a lot of the UAV autopilot systems that are quite widespread, you might be able to set it in hover mode.

00:05:10.600 --> 00:05:16.280
<v Piotr Ezdintensky>It will stay in a position or it will be able to go through waypoints that you set on some tablet or something.

00:05:17.380 --> 00:05:28.620
<v Piotr Ezdintensky>What, for example, paparazzi is really setting itself off from other platforms is the fact that it can actually reason about what it is doing.

00:05:29.000 --> 00:05:29.400
<v Piotr Ezdintensky>Interesting.

00:05:29.400 --> 00:05:30.000
<v Piotr Ezdintensky>Okay.

00:05:30.000 --> 00:05:49.120
<v Piotr Ezdintensky>So, the cool thing is you have the so-called blocks and the blocks is like a sequence of instructions that are written in a domain-specific language where you can say and give it like definitions when it should do what.

00:05:49.120 --> 00:05:58.760
<v Piotr Ezdintensky>For example, you can read out sensors from the aircraft and tell it when the sensors reach a certain threshold, then jump to another block.

00:05:58.760 --> 00:06:04.760
<v Piotr Ezdintensky>So, basically, like a very simplified and very concurrent programming language.

00:06:05.680 --> 00:06:05.940
<v Chris Gammell>Okay.

00:06:06.060 --> 00:06:07.480
<v Chris Gammell>Almost like a state machine almost?

00:06:07.860 --> 00:06:08.160
<v Chris Gammell>Yes.

00:06:08.280 --> 00:06:08.540
<v Piotr Ezdintensky>Yes.

00:06:08.680 --> 00:06:08.860
<v Chris Gammell>Okay.

00:06:09.400 --> 00:06:09.680
<v Piotr Ezdintensky>Yeah.

00:06:09.880 --> 00:06:21.740
<v Piotr Ezdintensky>And because usually you just set a few waypoints and if you want to fly more than one aircraft, then you have to set the waypoints to all of them and then you press a button on all of them, then they take off simultaneously.

00:06:21.740 --> 00:06:30.220
<v Piotr Ezdintensky>But if you have a tree in front of you and then you will not be able to adapt the flight plan.

00:06:30.320 --> 00:06:32.300
<v Piotr Ezdintensky>Of course, these things are changing.

00:06:33.420 --> 00:06:41.460
<v Piotr Ezdintensky>And like, for example, DJI is making their aircraft and they have eyes now and they see obstacles and can avoid them.

00:06:41.520 --> 00:06:43.380
<v Piotr Ezdintensky>But it is not a very flexible system.

00:06:43.960 --> 00:06:46.220
<v Piotr Ezdintensky>The paparazzi thing is meant to be modified.

00:06:46.220 --> 00:06:52.420
<v Chris Gammell>And you said it's mostly research-based or is it actually being implemented in commercial drones as well?

00:06:53.740 --> 00:06:59.020
<v Piotr Ezdintensky>I know that there are commercial drones, but they are rarely admitting that they use it.

00:06:59.660 --> 00:07:00.100
<v Chris Gammell>Right.

00:07:01.220 --> 00:07:04.640
<v Chris Gammell>Borrowing heavily from – they're heavily inspired by the code base?

00:07:04.940 --> 00:07:05.380
<v Piotr Ezdintensky>Yeah.

00:07:06.020 --> 00:07:07.280
<v Piotr Ezdintensky>Yeah, you could say that.

00:07:07.360 --> 00:07:07.580
<v Piotr Ezdintensky>Yeah.

00:07:07.580 --> 00:07:07.940
<v Chris Gammell>Okay.

00:07:08.580 --> 00:07:15.460
<v Chris Gammell>And so how does – I mean, it sounds like that's a very software-intensive kind of – maybe firmware-intensive kind of enterprise.

00:07:15.660 --> 00:07:17.400
<v Chris Gammell>But what does that look like on the hardware side?

00:07:19.280 --> 00:07:20.020
<v Piotr Ezdintensky>Well, yeah.

00:07:20.140 --> 00:07:23.180
<v Piotr Ezdintensky>So, yeah, the software is the heavy part.

00:07:23.180 --> 00:07:38.800
<v Piotr Ezdintensky>But on the hardware side, what we try to do is provide the necessary interfaces and sensors that the people using the software would need.

00:07:38.960 --> 00:07:50.040
<v Piotr Ezdintensky>For example, having a CAN bus on the aircraft or on the autopilot because they want a secure communication between the subsystems.

00:07:50.040 --> 00:07:59.680
<v Piotr Ezdintensky>So, yeah, this is something we added very early on before there came about standards for the UAV CAN bus communications.

00:08:00.700 --> 00:08:03.420
<v Piotr Ezdintensky>Then we switched to STM32.

00:08:04.740 --> 00:08:17.200
<v Piotr Ezdintensky>I think – I wouldn't bet my money on it, but we were, if not the first one, very early on with this switch, going away from Arduino and AVR.

00:08:17.200 --> 00:08:18.860
<v Piotr Ezdintensky>We dropped it.

00:08:19.280 --> 00:08:21.800
<v Piotr Ezdintensky>I think this happened like in 2008.

00:08:21.940 --> 00:08:32.660
<v Piotr Ezdintensky>We dropped AVR support because you barely could run any – like you had to really disable most of the functionality to be able to put it on that platform.

00:08:33.180 --> 00:08:33.680
<v Chris Gammell>Got it.

00:08:33.700 --> 00:08:33.900
<v Chris Gammell>Okay.

00:08:34.200 --> 00:08:38.300
<v Chris Gammell>But it's still an embedded platform as well.

00:08:38.620 --> 00:08:39.420
<v Piotr Ezdintensky>Yeah, yeah, yeah.

00:08:39.480 --> 00:08:39.640
<v Piotr Ezdintensky>Okay.

00:08:39.640 --> 00:08:41.920
<v Piotr Ezdintensky>So, this is also interesting.

00:08:42.120 --> 00:08:43.640
<v Piotr Ezdintensky>So, Paparazzi is very flexible.

00:08:43.900 --> 00:08:46.200
<v Piotr Ezdintensky>We support a ton of different platforms.

00:08:46.860 --> 00:08:49.700
<v Piotr Ezdintensky>We have AVR and we have LPC.

00:08:49.960 --> 00:08:55.080
<v Piotr Ezdintensky>We have STM32, F4, F3, and now F7.

00:08:55.940 --> 00:08:59.840
<v Piotr Ezdintensky>And there is also a Linux version of it.

00:08:59.920 --> 00:09:03.780
<v Piotr Ezdintensky>So, you can run it on some drones that just run Linux on them.

00:09:04.220 --> 00:09:06.840
<v Piotr Ezdintensky>So, it's quite a flexible platform.

00:09:06.840 --> 00:09:09.680
<v Chris Gammell>Yeah, that sounds like a headache to maintain though.

00:09:11.220 --> 00:09:13.600
<v Piotr Ezdintensky>Well, headache, yes.

00:09:13.760 --> 00:09:14.580
<v Piotr Ezdintensky>In a sense, yes.

00:09:14.660 --> 00:09:21.100
<v Piotr Ezdintensky>But on the other hand, the architecture was meant to do that for a very long time.

00:09:21.300 --> 00:09:21.520
<v Chris Gammell>Okay.

00:09:21.640 --> 00:09:22.840
<v Piotr Ezdintensky>So, we have all the abstractions.

00:09:22.840 --> 00:09:24.100
<v Chris Gammell>Hardware abstraction layers and stuff.

00:09:24.100 --> 00:09:24.700
<v Piotr Ezdintensky>Exactly.

00:09:24.920 --> 00:09:25.040
<v Piotr Ezdintensky>Yeah.

00:09:25.080 --> 00:09:26.160
<v Piotr Ezdintensky>We have the abstractions.

00:09:26.280 --> 00:09:27.160
<v Piotr Ezdintensky>We have the interface.

00:09:27.360 --> 00:09:28.880
<v Piotr Ezdintensky>So, we have the APIs.

00:09:29.380 --> 00:09:35.260
<v Piotr Ezdintensky>We have the unit testing and continuous integration stuff running.

00:09:35.460 --> 00:09:46.020
<v Piotr Ezdintensky>So, if things break here or you add some feature that breaks somewhere else, then we are trying to be able to automatically find this regression.

00:09:46.020 --> 00:09:47.020
<v Piotr Ezdintensky>Got it.

00:09:47.180 --> 00:09:47.660
<v Chris Gammell>Okay.

00:09:48.300 --> 00:09:48.840
<v Chris Gammell>Oh, that's great.

00:09:48.940 --> 00:09:50.140
<v Chris Gammell>I mean, that's the right way.

00:09:50.180 --> 00:09:54.520
<v Chris Gammell>That sounds like it's not really an academic kind of situation.

00:09:54.880 --> 00:09:55.660
<v Chris Gammell>Sorry, that sounds bad.

00:09:57.660 --> 00:09:57.960
<v Piotr Ezdintensky>Yeah.

00:09:58.180 --> 00:09:58.280
<v Piotr Ezdintensky>Yeah.

00:09:58.460 --> 00:09:58.640
<v Piotr Ezdintensky>No.

00:09:59.240 --> 00:10:14.860
<v Piotr Ezdintensky>The people that are running the project, Felix Rues, who is the maintainer currently, he's doing an amazing job to keep this like a standard to all our code base and all our additions and where it goes at a very high level.

00:10:14.860 --> 00:10:15.100
<v Chris Gammell>Yeah.

00:10:15.120 --> 00:10:16.300
<v Chris Gammell>I can imagine that running away.

00:10:16.400 --> 00:10:22.200
<v Chris Gammell>I mean, like anytime you can support multiple process architectures too, it can get pretty messy pretty quick, right?

00:10:22.640 --> 00:10:23.080
<v Piotr Ezdintensky>Yeah.

00:10:23.220 --> 00:10:28.420
<v Piotr Ezdintensky>But eventually, that's why eventually we also say, okay, we have to drop this.

00:10:28.600 --> 00:10:30.220
<v Piotr Ezdintensky>Barely anyone is using that anymore.

00:10:30.300 --> 00:10:30.600
<v Piotr Ezdintensky>Right.

00:10:30.740 --> 00:10:30.860
<v Piotr Ezdintensky>Yeah.

00:10:31.220 --> 00:10:32.880
<v Piotr Ezdintensky>Let's get rid of that part.

00:10:33.040 --> 00:10:33.480
<v Piotr Ezdintensky>But yeah.

00:10:33.600 --> 00:10:33.760
<v Piotr Ezdintensky>Right.

00:10:34.780 --> 00:10:38.960
<v Chris Gammell>And then is it like selectively integrating for whatever peripherals you have on hand?

00:10:39.060 --> 00:10:40.200
<v Chris Gammell>Is that kind of how that works?

00:10:40.200 --> 00:10:40.380
<v Chris Gammell>Sure.

00:10:41.080 --> 00:10:47.580
<v Piotr Ezdintensky>So we have, so these are the airframe files.

00:10:47.580 --> 00:10:50.220
<v Piotr Ezdintensky>So we have this like XML definition file.

00:10:50.400 --> 00:10:51.700
<v Piotr Ezdintensky>It's like, yeah, it is XML.

00:10:51.960 --> 00:10:52.300
<v Piotr Ezdintensky>I know.

00:10:52.960 --> 00:10:57.540
<v Piotr Ezdintensky>But it is pretty readable.

00:10:57.540 --> 00:11:02.440
<v Piotr Ezdintensky>So you can add and remove features and switch between modules that you load.

00:11:02.700 --> 00:11:10.160
<v Piotr Ezdintensky>So you can configure the whole thing, what you compile into your autopilot software based on that.

00:11:10.300 --> 00:11:16.440
<v Piotr Ezdintensky>So you can, and we are trying to make it as intelligent without being too intelligent.

00:11:16.840 --> 00:11:16.980
<v Piotr Ezdintensky>Right.

00:11:17.080 --> 00:11:25.760
<v Chris Gammell>Where it's like when you try and add a new piece of hardware, then it's like you're trying to bolt that on because it's intelligence is actually just really customized for whatever setup you had.

00:11:25.760 --> 00:11:26.360
<v Piotr Ezdintensky>Yeah.

00:11:26.360 --> 00:11:26.420
<v Piotr Ezdintensky>Yeah.

00:11:26.520 --> 00:11:26.660
<v Piotr Ezdintensky>Yeah.

00:11:26.740 --> 00:11:27.240
<v Piotr Ezdintensky>Correctly.

00:11:27.520 --> 00:11:29.860
<v Piotr Ezdintensky>And it is all C code.

00:11:30.120 --> 00:11:44.180
<v Piotr Ezdintensky>So besides the generated stuff, there's like also layers of code generation that are happening, but we are trying to keep it simple enough that you can understand what is actually going on in the system.

00:11:44.360 --> 00:11:44.660
<v Piotr Ezdintensky>That's great.

00:11:44.660 --> 00:11:55.740
<v Piotr Ezdintensky>It has a steeper learning curve than something that is just one directory with a few files, but you pay always a price for flexibility and capability with complexity.

00:11:56.260 --> 00:12:00.240
<v Piotr Ezdintensky>So we are trying to walk this fine line of where it makes sense.

00:12:00.520 --> 00:12:00.660
<v Chris Gammell>Right.

00:12:00.900 --> 00:12:01.120
<v Chris Gammell>Yeah.

00:12:01.120 --> 00:12:05.000
<v Chris Gammell>So how does it actually work then?

00:12:05.100 --> 00:12:08.300
<v Chris Gammell>Is it a real-time operating system or is it just a super loop?

00:12:09.460 --> 00:12:10.440
<v Piotr Ezdintensky>So, yeah.

00:12:10.600 --> 00:12:16.080
<v Piotr Ezdintensky>So that's a great question because there is a complicated answer for that.

00:12:16.900 --> 00:12:17.260
<v Piotr Ezdintensky>Let me guess.

00:12:17.320 --> 00:12:17.640
<v Chris Gammell>Wait, wait, wait.

00:12:17.720 --> 00:12:20.560
<v Chris Gammell>You invented something new that's halfway between those two things.

00:12:21.040 --> 00:12:22.360
<v Chris Gammell>We support both.

00:12:22.700 --> 00:12:23.620
<v Chris Gammell>Oh, that's even worse.

00:12:23.620 --> 00:12:43.960
<v Piotr Ezdintensky>So what happened is originally it was basically prioritized like task switcher, something similar to what you had on the Apollo missions where you had tasks that there is a timer that is running at a certain frequency.

00:12:44.400 --> 00:12:48.280
<v Piotr Ezdintensky>Let's say 512 hertz because it's easy to divide them.

00:12:48.280 --> 00:12:59.720
<v Piotr Ezdintensky>But anyways, so then you have that and this is calling a main function that is calling tasks one after another that are based on their priority.

00:13:00.040 --> 00:13:03.800
<v Piotr Ezdintensky>And if the time runs out, the other tasks don't get executed.

00:13:04.240 --> 00:13:04.420
<v Chris Gammell>Got it.

00:13:04.660 --> 00:13:07.340
<v Piotr Ezdintensky>It's very robust and very easy to understand.

00:13:07.340 --> 00:13:29.400
<v Piotr Ezdintensky>So the only really big disadvantage is that if you have an estimator, estimator meaning you take sensor data and you want to calculate the attitude or position of the aircraft and that attitude estimator takes longer than one cycle, we cannot divide it.

00:13:29.540 --> 00:13:30.720
<v Piotr Ezdintensky>We cannot divide it out.

00:13:30.900 --> 00:13:32.800
<v Piotr Ezdintensky>You would need preemption for this.

00:13:33.720 --> 00:13:35.380
<v Chris Gammell>Can you explain what that means?

00:13:35.380 --> 00:13:41.740
<v Piotr Ezdintensky>So it means while you're running the algorithm that is calculating the attitude.

00:13:41.920 --> 00:13:48.120
<v Piotr Ezdintensky>So you have a magnetometer and you have gyroscopes, you have accelerometers.

00:13:48.380 --> 00:13:54.760
<v Piotr Ezdintensky>So you take all that sensor data in and based on that sensor data, you are trying to figure out am I level?

00:13:55.040 --> 00:14:00.040
<v Piotr Ezdintensky>Am I like tilted 45 degrees or what's going on with me in the real world?

00:14:00.640 --> 00:14:03.640
<v Piotr Ezdintensky>So for that, you use an estimator.

00:14:03.640 --> 00:14:07.640
<v Piotr Ezdintensky>And there are many different calculations that you can do.

00:14:07.840 --> 00:14:16.000
<v Piotr Ezdintensky>One of them is just complementary filters that are very easy to calculate.

00:14:16.280 --> 00:14:20.020
<v Piotr Ezdintensky>And then you can go into extended Kalman filters that are very complicated.

00:14:20.360 --> 00:14:20.460
<v Chris Gammell>Right.

00:14:20.980 --> 00:14:25.460
<v Chris Gammell>And probably as the complication goes up, the number of crunching you have to do.

00:14:25.460 --> 00:14:26.080
<v Chris Gammell>Yeah, exactly.

00:14:26.080 --> 00:14:26.360
<v Chris Gammell>It's crazy.

00:14:26.820 --> 00:14:27.020
<v Piotr Ezdintensky>Yeah.

00:14:27.100 --> 00:14:32.880
<v Piotr Ezdintensky>And then you have like quaternion based extended Kalman filter with 12 states.

00:14:33.440 --> 00:14:38.200
<v Piotr Ezdintensky>And then suddenly this takes longer than one 500th of a second.

00:14:38.200 --> 00:14:38.380
<v Chris Gammell>Right.

00:14:38.380 --> 00:14:38.520
<v Chris Gammell>Right.

00:14:38.520 --> 00:14:38.900
<v Chris Gammell>Exactly.

00:14:39.140 --> 00:14:39.360
<v Chris Gammell>Right.

00:14:39.780 --> 00:14:41.820
<v Chris Gammell>All of the cycles get to go towards that thing, huh?

00:14:41.820 --> 00:14:42.380
<v Piotr Ezdintensky>Yeah.

00:14:42.380 --> 00:14:42.500
<v Piotr Ezdintensky>Yeah.

00:14:42.500 --> 00:14:42.740
<v Piotr Ezdintensky>Yeah.

00:14:42.740 --> 00:14:42.820
<v Piotr Ezdintensky>Yeah.

00:14:42.820 --> 00:14:48.220
<v Piotr Ezdintensky>That's well, that's these kinds of things also ask for more powerful processors eventually.

00:14:48.220 --> 00:14:51.580
<v Piotr Ezdintensky>And if you start adding vision, things really go nuts.

00:14:51.580 --> 00:14:52.060
<v Piotr Ezdintensky>Right.

00:14:52.060 --> 00:15:01.420
<v Piotr Ezdintensky>So let's say we want to do such a calculation and we still want to run our control loop that

00:15:01.420 --> 00:15:11.220
<v Piotr Ezdintensky>is telling either the servos of the aircraft or the motors on a quadrocopter to adjust fast.

00:15:11.400 --> 00:15:13.200
<v Piotr Ezdintensky>And you still want to run that loop fast.

00:15:13.200 --> 00:15:30.560
<v Piotr Ezdintensky>And it is not, depending on the situation, you sometimes don't have to calculate the altitude every cycle, but you would want to distribute it between the cycles that you adjust your actuators.

00:15:30.740 --> 00:15:31.220
<v Piotr Ezdintensky>That's the word.

00:15:31.560 --> 00:15:32.700
<v Piotr Ezdintensky>That's what I was looking for.

00:15:32.700 --> 00:15:32.720
<v Piotr Ezdintensky>Gotcha.

00:15:32.720 --> 00:15:32.900
<v Piotr Ezdintensky>Okay.

00:15:32.900 --> 00:15:50.420
<v Piotr Ezdintensky>And when that happens, you need to basically interrupt the calculation, run this task that is setting the actuators and then come back to calculating your attitude.

00:15:50.740 --> 00:15:52.580
<v Chris Gammell>And why do you need to interrupt for that?

00:15:52.980 --> 00:15:56.380
<v Piotr Ezdintensky>Because it takes longer than the one 500th of a second.

00:15:56.580 --> 00:15:57.260
<v Chris Gammell>Oh, I see.

00:15:57.380 --> 00:15:57.580
<v Chris Gammell>Okay.

00:15:57.680 --> 00:15:57.880
<v Chris Gammell>Okay.

00:15:57.880 --> 00:16:05.120
<v Chris Gammell>So, and that's just because mechanically it takes a while to actually turn a servo to its new position or what?

00:16:05.760 --> 00:16:17.480
<v Piotr Ezdintensky>For example, there are many reasons you might want to like do a feed forward control and you want to adjust it like smoothly into the future or something like that.

00:16:17.700 --> 00:16:17.940
<v Piotr Ezdintensky>Okay.

00:16:17.940 --> 00:16:29.780
<v Chris Gammell>So, it's just balancing the chunks of time that you have allotted and you never try and squeeze more than one task into that one 512th of a second, right?

00:16:30.200 --> 00:16:31.120
<v Piotr Ezdintensky>Yes, that's correct.

00:16:31.300 --> 00:16:35.540
<v Piotr Ezdintensky>And then this is where an RTOS is very useful to have.

00:16:36.160 --> 00:16:36.440
<v Chris Gammell>Okay.

00:16:36.820 --> 00:16:39.240
<v Chris Gammell>Because it doesn't wait for the one 512th.

00:16:39.280 --> 00:16:40.460
<v Chris Gammell>It just goes to the next thing.

00:16:40.460 --> 00:16:41.380
<v Piotr Ezdintensky>Yeah, yeah.

00:16:41.440 --> 00:16:48.160
<v Piotr Ezdintensky>It can then interrupt the task that is running at the moment with a higher priority task that would be the actuator task.

00:16:49.320 --> 00:16:53.680
<v Piotr Ezdintensky>And yeah, and the estimator task would just be interrupted.

00:16:54.100 --> 00:17:02.940
<v Piotr Ezdintensky>And that's why eventually there is an option for using GBOS instead.

00:17:02.940 --> 00:17:05.100
<v Piotr Ezdintensky>Oh, I have another idea.

00:17:05.440 --> 00:17:10.920
<v Piotr Ezdintensky>It's like one other thing that also got added was, for example, logging to an SD card.

00:17:11.300 --> 00:17:12.580
<v Piotr Ezdintensky>This can take forever.

00:17:12.900 --> 00:17:14.140
<v Piotr Ezdintensky>Okay, just to write all the data.

00:17:14.640 --> 00:17:16.580
<v Piotr Ezdintensky>Yeah, SD cards are very unpredictable.

00:17:16.940 --> 00:17:17.280
<v Piotr Ezdintensky>Got it.

00:17:17.420 --> 00:17:21.480
<v Piotr Ezdintensky>So, yeah, that's a simpler example, actually.

00:17:21.720 --> 00:17:22.700
<v Chris Gammell>Yeah, right.

00:17:22.740 --> 00:17:27.080
<v Chris Gammell>Just because it's a number of bits you might have to write or whatever, right?

00:17:27.100 --> 00:17:28.160
<v Chris Gammell>It just takes longer than...

00:17:28.160 --> 00:17:38.280
<v Piotr Ezdintensky>Yeah, it is also buffering, and if you have flash, flash is unpredictable how long it will take because they have, like, load balancing stuff inside the SD cards.

00:17:38.420 --> 00:17:38.580
<v Piotr Ezdintensky>Yep, yep.

00:17:39.100 --> 00:17:40.720
<v Piotr Ezdintensky>So, we're leveling.

00:17:42.860 --> 00:17:50.600
<v Piotr Ezdintensky>So, especially if you have a FAT file system, that can take also time when you have to rewrite the FAT table or something.

00:17:50.600 --> 00:17:59.040
<v Piotr Ezdintensky>I've seen really weird stuff happening where the whole SD card is just freezing for 200 milliseconds because it's thinking.

00:18:00.260 --> 00:18:01.160
<v Chris Gammell>Too smart, huh?

00:18:01.200 --> 00:18:01.760
<v Chris Gammell>It's too smart.

00:18:02.200 --> 00:18:02.860
<v Chris Gammell>Yeah, yeah, yeah.

00:18:03.700 --> 00:18:05.040
<v Chris Gammell>So, okay.

00:18:05.220 --> 00:18:08.020
<v Chris Gammell>So, you guys write either...

00:18:08.020 --> 00:18:11.920
<v Chris Gammell>So, you have these two different flavors of controlling the system.

00:18:11.920 --> 00:18:14.720
<v Chris Gammell>But how do you actually then...

00:18:14.720 --> 00:18:21.740
<v Chris Gammell>So, okay, I come in and I say, I want to use Paparazzi UAV, and I buy one of your boards, and I have...

00:18:21.740 --> 00:18:25.220
<v Chris Gammell>And I want to, like, then integrate a new sensor into it.

00:18:25.480 --> 00:18:26.480
<v Chris Gammell>What's the steps then?

00:18:28.120 --> 00:18:31.960
<v Piotr Ezdintensky>That depends if the sensor is already supported or not.

00:18:32.280 --> 00:18:33.220
<v Chris Gammell>Let's assume not.

00:18:33.500 --> 00:18:34.420
<v Piotr Ezdintensky>Let's assume not.

00:18:34.420 --> 00:18:43.720
<v Piotr Ezdintensky>Yeah, so usually that also brings the next question is the peripheral that you're using to attach the sensor with supported yet.

00:18:44.040 --> 00:18:44.300
<v Piotr Ezdintensky>Got it.

00:18:44.300 --> 00:18:46.580
<v Chris Gammell>So, like if it's on CAN bus or SPY or whatever, right?

00:18:46.900 --> 00:18:47.220
<v Piotr Ezdintensky>Yeah.

00:18:47.340 --> 00:18:51.880
<v Piotr Ezdintensky>If it is on SPY or CAN, then we have already the hardware abstraction layer for it.

00:18:52.100 --> 00:18:55.340
<v Piotr Ezdintensky>Or if you're using chibi OS, you can use the how from there.

00:18:55.340 --> 00:18:55.860
<v Piotr Ezdintensky>Okay.

00:18:55.860 --> 00:19:04.040
<v Piotr Ezdintensky>And then you just write your C file and hook it in with another task, basically.

00:19:04.380 --> 00:19:13.400
<v Piotr Ezdintensky>Or, like, you hook it into this, like, repetitive loop, either with updates or you write an interrupt handler for it.

00:19:13.640 --> 00:19:17.760
<v Piotr Ezdintensky>And you add it to the collection of drivers.

00:19:18.120 --> 00:19:23.880
<v Piotr Ezdintensky>And then you go into the XML file, add it, please include my new shiny thing.

00:19:23.940 --> 00:19:24.200
<v Piotr Ezdintensky>Right.

00:19:24.200 --> 00:19:25.860
<v Piotr Ezdintensky>And it is added.

00:19:26.260 --> 00:19:31.400
<v Chris Gammell>So, like most other systems, it's easier just to buy a pre-finished module and just plug it in, huh?

00:19:32.500 --> 00:19:34.260
<v Piotr Ezdintensky>Yeah, no, that's pretty much.

00:19:34.260 --> 00:19:51.880
<v Piotr Ezdintensky>This is, you saying that, that makes me chuckle because I ran many times into the situation where I was, oh, I need to show a GPS position from the, like, ship that I'm sitting on, for example.

00:19:51.880 --> 00:19:52.340
<v Piotr Ezdintensky>Uh-huh.

00:19:52.340 --> 00:19:57.220
<v Piotr Ezdintensky>And I was like, oh, now I have to write a module that is a plug-in paparazzi.

00:19:57.620 --> 00:20:01.880
<v Piotr Ezdintensky>Then I just grepped for it and it turned out someone already wrote one.

00:20:02.080 --> 00:20:02.380
<v Chris Gammell>Right.

00:20:02.400 --> 00:20:04.440
<v Piotr Ezdintensky>That happened to me so many times.

00:20:04.540 --> 00:20:05.100
<v Chris Gammell>That's great.

00:20:05.380 --> 00:20:06.920
<v Chris Gammell>Because the code base is so vast.

00:20:07.020 --> 00:20:09.280
<v Chris Gammell>Yeah, a big community especially, right?

00:20:09.380 --> 00:20:09.640
<v Chris Gammell>Yeah.

00:20:09.860 --> 00:20:09.980
<v Chris Gammell>Yeah.

00:20:09.980 --> 00:20:10.120
<v Chris Gammell>Yeah.

00:20:10.120 --> 00:20:11.920
<v Chris Gammell>That's awesome.

00:20:11.920 --> 00:20:16.560
<v Chris Gammell>And then what, you went out and just, did you, so what is the actual physical interface then?

00:20:16.640 --> 00:20:22.160
<v Chris Gammell>Is it like, I'm looking at a picture of what I think one is one, autopilot Chimera?

00:20:23.120 --> 00:20:24.580
<v Piotr Ezdintensky>Oh, Chimera, that's the new thing.

00:20:24.780 --> 00:20:24.920
<v Piotr Ezdintensky>Yeah.

00:20:24.920 --> 00:20:26.980
<v Piotr Ezdintensky>That's the guys in Etenac have done.

00:20:26.980 --> 00:20:27.060
<v Piotr Ezdintensky>Yeah.

00:20:27.380 --> 00:20:34.240
<v Piotr Ezdintensky>The autopilots that I made is the Lisa M and Lisa NX as well as the Lisa S.

00:20:34.820 --> 00:20:34.920
<v Piotr Ezdintensky>Okay.

00:20:35.320 --> 00:20:44.100
<v Piotr Ezdintensky>So, yeah, their autopilot basically is based on their requirements for include everything.

00:20:44.660 --> 00:20:45.800
<v Piotr Ezdintensky>That's why it's called Chimera.

00:20:46.060 --> 00:20:46.520
<v Chris Gammell>Got it.

00:20:46.620 --> 00:20:53.000
<v Piotr Ezdintensky>It has SD cards and STM32F7 and tons of connections and tons of interfaces.

00:20:53.360 --> 00:20:54.880
<v Chris Gammell>UARTs, SPYs, I2C.

00:20:54.880 --> 00:20:58.100
<v Piotr Ezdintensky>Yeah, so it basically should cover everything.

00:20:58.540 --> 00:21:05.360
<v Piotr Ezdintensky>And also because it's made by the university for the university, price doesn't matter for them.

00:21:05.520 --> 00:21:05.860
<v Chris Gammell>Uh-huh.

00:21:07.780 --> 00:21:14.400
<v Piotr Ezdintensky>In a sense, in quotes, because they're making their own hardware and it has to basically cover all the bases.

00:21:14.820 --> 00:21:14.960
<v Piotr Ezdintensky>Got it.

00:21:14.960 --> 00:21:23.240
<v Piotr Ezdintensky>If I tried to make an autopilot that does everything, it would be very difficult to provide it for any reasonable price.

00:21:23.560 --> 00:21:23.720
<v Chris Gammell>Yeah.

00:21:23.720 --> 00:21:24.000
<v Piotr Ezdintensky>Right.

00:21:25.000 --> 00:21:26.720
<v Chris Gammell>Just you mean with margins and everything too.

00:21:26.800 --> 00:21:29.360
<v Chris Gammell>They might not be trying to make a ton of margin to cover their...

00:21:29.360 --> 00:21:29.620
<v Piotr Ezdintensky>Yeah.

00:21:30.200 --> 00:21:35.020
<v Piotr Ezdintensky>There is a reseller in France that is making them as far as I know.

00:21:35.900 --> 00:21:40.400
<v Piotr Ezdintensky>But they have some local just a relationship with them, which is great.

00:21:40.880 --> 00:21:41.120
<v Chris Gammell>Cool.

00:21:41.120 --> 00:21:46.380
<v Chris Gammell>So, but most of the time it's like a standard pinout header kind of thing or how does that work?

00:21:46.380 --> 00:21:53.980
<v Piotr Ezdintensky>So, for example, the Lisa M, it has a bunch of Molex picoblade connectors.

00:21:54.340 --> 00:21:59.120
<v Piotr Ezdintensky>This is something we standardized to use for like a very long time.

00:21:59.120 --> 00:22:05.760
<v Piotr Ezdintensky>And then for the servos, it has the standard three pin connectors that you have for RC modeling.

00:22:05.760 --> 00:22:06.440
<v Chris Gammell>Okay.

00:22:06.440 --> 00:22:16.640
<v Piotr Ezdintensky>And then it has also a USB interface where you can plug in a cable to either upload a new firmware or get the telemetry out.

00:22:16.640 --> 00:22:20.640
<v Piotr Ezdintensky>But where usually it's...

00:22:20.640 --> 00:22:26.820
<v Piotr Ezdintensky>Most people actually have a Blackmagic probe, for example, to program this thing over the JTEC interface.

00:22:27.240 --> 00:22:27.460
<v Chris Gammell>Got it.

00:22:27.860 --> 00:22:28.100
<v Chris Gammell>Oh, yeah.

00:22:28.100 --> 00:22:29.040
<v Chris Gammell>And I just found the...

00:22:29.040 --> 00:22:32.220
<v Chris Gammell>There's a big wiki page around the Lisa M.

00:22:32.480 --> 00:22:33.760
<v Chris Gammell>So, I just finally found that.

00:22:33.820 --> 00:22:34.540
<v Chris Gammell>I see what you're talking about.

00:22:34.540 --> 00:22:39.140
<v Chris Gammell>So, these kind of like beige looking connectors are the standardized ones you're talking about?

00:22:39.580 --> 00:22:40.340
<v Piotr Ezdintensky>Yeah, yeah, yeah.

00:22:40.340 --> 00:22:40.540
<v Piotr Ezdintensky>Okay.

00:22:40.580 --> 00:22:42.560
<v Piotr Ezdintensky>So, yeah, this is picoblade.

00:22:43.640 --> 00:22:44.780
<v Piotr Ezdintensky>It's a Molex connector.

00:22:45.100 --> 00:22:47.240
<v Chris Gammell>Yeah, I mean, this is a really...

00:22:47.240 --> 00:22:48.760
<v Chris Gammell>Wow, that chip set on there is tiny.

00:22:49.680 --> 00:22:50.700
<v Chris Gammell>Is it the chip on the back?

00:22:50.720 --> 00:22:51.760
<v Chris Gammell>The chip must be on the back, right?

00:22:52.020 --> 00:22:56.020
<v Piotr Ezdintensky>The chip is on the back and the IMU is on the back.

00:22:56.020 --> 00:22:59.400
<v Piotr Ezdintensky>In the past, we had the IMU on a separate daughter board.

00:22:59.400 --> 00:23:04.880
<v Piotr Ezdintensky>I changed that recently, five years ago.

00:23:06.880 --> 00:23:07.800
<v Piotr Ezdintensky>Oh, I see.

00:23:07.900 --> 00:23:08.260
<v Chris Gammell>Time flies.

00:23:08.460 --> 00:23:08.700
<v Chris Gammell>Time flies.

00:23:08.700 --> 00:23:09.480
<v Piotr Ezdintensky>Yeah, time flies.

00:23:09.580 --> 00:23:14.180
<v Piotr Ezdintensky>No, it was like, I think, three or four years ago where I integrated the IMU.

00:23:14.300 --> 00:23:24.500
<v Piotr Ezdintensky>Because originally when I made it in around 2009, the early Lisa M's, the GPS...

00:23:24.500 --> 00:23:25.340
<v Piotr Ezdintensky>Oh, not GPS.

00:23:25.340 --> 00:23:32.820
<v Piotr Ezdintensky>The IMU was on a daughter board so I could re-spin the board more often while we are finding

00:23:32.820 --> 00:23:36.960
<v Piotr Ezdintensky>new sensors and better sensors and without having to update the whole board.

00:23:37.440 --> 00:23:39.000
<v Chris Gammell>So, this looks like it's...

00:23:39.000 --> 00:23:43.900
<v Chris Gammell>I mean, is it space constrained because of weight or why is it such a tight build as well?

00:23:44.780 --> 00:23:45.960
<v Piotr Ezdintensky>Oh, it's mostly weight, yeah.

00:23:46.020 --> 00:23:46.220
<v Piotr Ezdintensky>Okay.

00:23:46.500 --> 00:23:48.420
<v Piotr Ezdintensky>It's weight and also size.

00:23:48.840 --> 00:23:53.320
<v Piotr Ezdintensky>So, you see the Lisa M is like lengthy shaped.

00:23:53.660 --> 00:23:54.180
<v Piotr Ezdintensky>Yeah, yeah.

00:23:54.180 --> 00:23:58.640
<v Piotr Ezdintensky>The reason is so that it fits in small foam airplane cockpits.

00:23:59.380 --> 00:24:00.200
<v Chris Gammell>Oh, okay, okay.

00:24:00.440 --> 00:24:03.640
<v Chris Gammell>So, like, not just quadcopters but also...

00:24:03.640 --> 00:24:04.020
<v Chris Gammell>Yeah.

00:24:04.180 --> 00:24:08.720
<v Piotr Ezdintensky>Yeah, Apparazzi grew out of the airplane UAV field.

00:24:09.020 --> 00:24:11.780
<v Piotr Ezdintensky>So, that was the stuff that it supported first.

00:24:12.420 --> 00:24:12.800
<v Piotr Ezdintensky>Got it.

00:24:13.140 --> 00:24:19.800
<v Piotr Ezdintensky>So, if you start using the ground station, there is still some references that are a little

00:24:19.800 --> 00:24:28.440
<v Piotr Ezdintensky>bit odd for a quadrocopter because they are terminology that is useful for airplanes.

00:24:28.940 --> 00:24:33.900
<v Piotr Ezdintensky>It still applies for quadrocopters but it is the other projects.

00:24:34.260 --> 00:24:37.680
<v Piotr Ezdintensky>Very often they created their own lingo, I would say.

00:24:37.680 --> 00:24:38.180
<v Piotr Ezdintensky>Got it.

00:24:38.180 --> 00:24:42.640
<v Piotr Ezdintensky>And this is based on the airplane terminology.

00:24:42.640 --> 00:24:43.820
<v Piotr Ezdintensky>Mm-hmm.

00:24:43.820 --> 00:24:47.760
<v Chris Gammell>And this is the F105 family, STM32, F105.

00:24:48.880 --> 00:24:49.900
<v Chris Gammell>What made you choose that?

00:24:49.900 --> 00:24:51.960
<v Piotr Ezdintensky>That was an F105.

00:24:52.200 --> 00:24:52.320
<v Piotr Ezdintensky>Yeah.

00:24:52.440 --> 00:24:54.020
<v Piotr Ezdintensky>So, Lisa M was F105.

00:24:54.140 --> 00:24:56.660
<v Piotr Ezdintensky>Lisa M is an F4.

00:24:56.660 --> 00:24:59.340
<v Chris Gammell>What makes you choose one or the other?

00:24:59.760 --> 00:25:03.200
<v Chris Gammell>I mean, is there memory size, processing power, is it peripherals?

00:25:03.920 --> 00:25:04.320
<v Chris Gammell>All the above.

00:25:04.340 --> 00:25:08.860
<v Piotr Ezdintensky>When I designed the F1 in, there was no F4s.

00:25:09.240 --> 00:25:10.400
<v Chris Gammell>Oh, that'll do it.

00:25:12.000 --> 00:25:12.440
<v Piotr Ezdintensky>Yeah.

00:25:12.600 --> 00:25:15.120
<v Piotr Ezdintensky>So, that was before...

00:25:15.120 --> 00:25:19.840
<v Piotr Ezdintensky>Roughly around that time, they started expanding into the F2.

00:25:20.640 --> 00:25:20.920
<v Piotr Ezdintensky>Mm-hmm.

00:25:21.520 --> 00:25:23.480
<v Piotr Ezdintensky>F2 is also still a Cortex-M3.

00:25:24.000 --> 00:25:25.220
<v Piotr Ezdintensky>Like, this is all weird.

00:25:25.220 --> 00:25:29.300
<v Piotr Ezdintensky>ST is an interesting company, how they are naming their products.

00:25:29.520 --> 00:25:30.620
<v Piotr Ezdintensky>It's a little bit misleading.

00:25:31.360 --> 00:25:35.760
<v Piotr Ezdintensky>So, they have this lineup of STM32, F, and then a number.

00:25:36.080 --> 00:25:39.500
<v Piotr Ezdintensky>And the F1 is actually a Cortex-M4 core.

00:25:40.060 --> 00:25:40.520
<v Chris Gammell>Oh, really?

00:25:40.600 --> 00:25:41.060
<v Chris Gammell>I didn't know that.

00:25:41.140 --> 00:25:41.240
<v Chris Gammell>Okay.

00:25:41.640 --> 00:25:43.700
<v Piotr Ezdintensky>No, Cortex-M3, I'm so sorry.

00:25:44.180 --> 00:25:45.880
<v Piotr Ezdintensky>Cortex-M3 core.

00:25:46.320 --> 00:25:51.780
<v Piotr Ezdintensky>And then the F4 is a Cortex-M4 core, which makes sense.

00:25:51.980 --> 00:25:52.260
<v Piotr Ezdintensky>Mm-hmm.

00:25:52.260 --> 00:25:54.120
<v Piotr Ezdintensky>But then you have the F3.

00:25:54.120 --> 00:25:55.980
<v Piotr Ezdintensky>It's also a Cortex-M4 core.

00:25:56.300 --> 00:25:56.600
<v Chris Gammell>Right.

00:25:57.040 --> 00:25:59.760
<v Piotr Ezdintensky>And then F2 is Cortex-M3 core.

00:26:00.200 --> 00:26:00.380
<v Piotr Ezdintensky>Right.

00:26:00.580 --> 00:26:01.700
<v Piotr Ezdintensky>It's a little bit weird.

00:26:01.820 --> 00:26:02.680
<v Piotr Ezdintensky>But if you look at the list...

00:26:02.680 --> 00:26:05.200
<v Chris Gammell>It felt like they were kind of just doing it by generations, almost.

00:26:05.360 --> 00:26:09.140
<v Chris Gammell>Like, I've used the F0, which is an M0 family, and that works out.

00:26:09.180 --> 00:26:10.220
<v Chris Gammell>But then the F1 is next.

00:26:10.420 --> 00:26:14.440
<v Chris Gammell>M3, F2, M3, F3, M4.

00:26:15.140 --> 00:26:15.620
<v Chris Gammell>Yeah, you're right.

00:26:15.660 --> 00:26:16.020
<v Chris Gammell>It sucks.

00:26:16.020 --> 00:26:16.260
<v Chris Gammell>Yeah.

00:26:16.260 --> 00:26:16.700
<v Piotr Ezdintensky>But...

00:26:16.700 --> 00:26:17.920
<v Piotr Ezdintensky>But yeah.

00:26:19.300 --> 00:26:21.500
<v Piotr Ezdintensky>Sometimes it aligns, sometimes it doesn't.

00:26:23.040 --> 00:26:23.300
<v Chris Gammell>Okay.

00:26:24.960 --> 00:26:26.020
<v Chris Gammell>Well, this is...

00:26:26.020 --> 00:26:28.200
<v Chris Gammell>I mean, it seems like this got a ton of stuff on here.

00:26:29.680 --> 00:26:30.840
<v Chris Gammell>How much...

00:26:30.840 --> 00:26:32.700
<v Chris Gammell>Like, how do you track adoption?

00:26:32.840 --> 00:26:34.100
<v Chris Gammell>How do you know where this is?

00:26:34.180 --> 00:26:36.160
<v Chris Gammell>I mean, I guess you're selling these boards, so that helps, huh?

00:26:36.160 --> 00:26:36.560
<v Chris Gammell>Yeah.

00:26:37.360 --> 00:26:37.760
<v Piotr Ezdintensky>Yeah.

00:26:37.760 --> 00:26:38.120
<v Piotr Ezdintensky>Yeah.

00:26:38.680 --> 00:26:40.060
<v Piotr Ezdintensky>It's difficult to say.

00:26:41.240 --> 00:26:46.420
<v Piotr Ezdintensky>So, Lisa M was going up and down, and the whole UAV stuff.

00:26:46.840 --> 00:26:56.680
<v Piotr Ezdintensky>It's interesting that we ended up talking mostly about the UAV autopilot, because I'm still doing it quite a lot, and it's great.

00:26:56.680 --> 00:27:08.400
<v Piotr Ezdintensky>And especially the Lisa S, that is really, really tiny, is doing very well, and people really like it, because it's a 20 by 20 millimeter board.

00:27:08.520 --> 00:27:08.840
<v Piotr Ezdintensky>Yeah.

00:27:09.080 --> 00:27:10.200
<v Piotr Ezdintensky>This is very tiny.

00:27:10.220 --> 00:27:14.700
<v Piotr Ezdintensky>And it has GPS built in, and it has all the sensors you need for autonomous flight.

00:27:14.960 --> 00:27:20.780
<v Piotr Ezdintensky>And then it has, like, a tiny daughter board for all the RC remote control stuff and telemetry.

00:27:22.520 --> 00:27:23.080
<v Piotr Ezdintensky>Yeah.

00:27:23.840 --> 00:27:25.460
<v Piotr Ezdintensky>I hear you searching for it.

00:27:25.460 --> 00:27:26.740
<v Chris Gammell>No, no, I'm just typing.

00:27:26.880 --> 00:27:29.100
<v Chris Gammell>I'm just making sure I keep notes on this stuff, because...

00:27:29.100 --> 00:27:31.560
<v Chris Gammell>But, yeah, this is crazy tiny on it.

00:27:31.600 --> 00:27:34.380
<v Chris Gammell>And so, it's just using a GPS module in the back.

00:27:34.560 --> 00:27:36.520
<v Chris Gammell>But so, how does this work, then, with just the...

00:27:36.520 --> 00:27:40.400
<v Chris Gammell>So, this one has just edge connectors, it looks like.

00:27:40.980 --> 00:27:42.240
<v Chris Gammell>These aren't...

00:27:42.240 --> 00:27:44.400
<v Chris Gammell>Are these actual connectors on there, or is it...

00:27:44.400 --> 00:27:45.320
<v Chris Gammell>They look like point one.

00:27:45.320 --> 00:27:49.620
<v Piotr Ezdintensky>So, originally, when I was designing it, I was actually thinking about putting just pads on there.

00:27:49.780 --> 00:27:50.820
<v Piotr Ezdintensky>So, you solder it in.

00:27:51.080 --> 00:27:51.320
<v Piotr Ezdintensky>Yeah.

00:27:51.320 --> 00:27:54.960
<v Piotr Ezdintensky>But to make things a little bit easier for...

00:27:54.960 --> 00:28:06.100
<v Piotr Ezdintensky>To make it easier for a broader audience to use, the 0.05-inch pitch connectors are already paining their ass enough.

00:28:07.380 --> 00:28:10.660
<v Piotr Ezdintensky>So, yeah, I added some breakout boards.

00:28:10.740 --> 00:28:14.860
<v Piotr Ezdintensky>So, you have connectors for, like, a brushed quadrocopter, for example.

00:28:15.180 --> 00:28:17.440
<v Piotr Ezdintensky>There's, like, a special breakout board for this.

00:28:17.660 --> 00:28:18.000
<v Piotr Ezdintensky>Got it.

00:28:18.000 --> 00:28:19.440
<v Piotr Ezdintensky>So, you can just plug it in.

00:28:20.140 --> 00:28:21.640
<v Piotr Ezdintensky>It's not...

00:28:21.640 --> 00:28:25.140
<v Piotr Ezdintensky>It's trading off weight versus ease of use.

00:28:25.960 --> 00:28:31.480
<v Piotr Ezdintensky>And that's why the Lisa S, if you look at the board, the tabs around it are perforated.

00:28:31.480 --> 00:28:34.740
<v Piotr Ezdintensky>So, you can break them off in case you want to save a few grams more.

00:28:34.960 --> 00:28:35.160
<v Piotr Ezdintensky>Got it.

00:28:35.160 --> 00:28:36.240
<v Piotr Ezdintensky>Like, milligrams, actually.

00:28:36.440 --> 00:28:36.640
<v Chris Gammell>Yeah.

00:28:36.640 --> 00:28:36.860
<v Chris Gammell>Yeah.

00:28:37.220 --> 00:28:38.220
<v Chris Gammell>Yeah, these are...

00:28:38.220 --> 00:28:39.940
<v Chris Gammell>I mean, this is already pretty small and lightweight.

00:28:40.160 --> 00:28:41.600
<v Chris Gammell>So, I mean, I guess they're just...

00:28:41.600 --> 00:28:43.320
<v Chris Gammell>People are really, really trying to optimize this stuff.

00:28:44.020 --> 00:28:44.720
<v Piotr Ezdintensky>Yeah, yeah.

00:28:44.720 --> 00:28:52.060
<v Piotr Ezdintensky>It's used on a flapping wing, really tiny, like, flapping wing aircraft sometimes.

00:28:52.360 --> 00:28:55.480
<v Piotr Ezdintensky>So, really, a milligram counts there.

00:28:55.760 --> 00:28:55.960
<v Chris Gammell>Yeah.

00:28:56.300 --> 00:28:56.860
<v Chris Gammell>That's crazy.

00:28:58.420 --> 00:28:59.960
<v Chris Gammell>Well, so, you mentioned...

00:28:59.960 --> 00:29:03.180
<v Chris Gammell>I mean, you mentioned the Blackmagic probe.

00:29:03.220 --> 00:29:07.080
<v Chris Gammell>And I saw the header that looked familiar on the Lisa M, right?

00:29:07.780 --> 00:29:08.140
<v Chris Gammell>Mm-hmm.

00:29:08.140 --> 00:29:10.500
<v Chris Gammell>That 5-pin or 10-pin JTAG that you put on there.

00:29:10.960 --> 00:29:13.680
<v Chris Gammell>But why don't we transition into talking about that?

00:29:13.680 --> 00:29:15.120
<v Chris Gammell>I mean, so, that's the main way that...

00:29:15.120 --> 00:29:15.700
<v Chris Gammell>That's where...

00:29:15.700 --> 00:29:17.180
<v Chris Gammell>Is this where the project grew out of?

00:29:17.560 --> 00:29:20.580
<v Chris Gammell>People probably have heard us talking about the Blackmagic on here in the past.

00:29:20.880 --> 00:29:21.940
<v Chris Gammell>But is this what it grew out of?

00:29:21.960 --> 00:29:23.060
<v Chris Gammell>And then, kind of, what is it?

00:29:24.540 --> 00:29:26.420
<v Piotr Ezdintensky>So, in a sense, yeah.

00:29:26.660 --> 00:29:33.840
<v Piotr Ezdintensky>So, just before I moved to the US, I was working at the robotics lab at TU Munich.

00:29:33.840 --> 00:29:37.840
<v Piotr Ezdintensky>And while I was there...

00:29:39.260 --> 00:29:42.120
<v Piotr Ezdintensky>So, I was actually hired to write Common Lisp for them.

00:29:42.460 --> 00:29:42.700
<v Piotr Ezdintensky>But...

00:29:42.700 --> 00:29:46.200
<v Piotr Ezdintensky>So, I was doing mostly software stuff.

00:29:46.560 --> 00:29:46.800
<v Piotr Ezdintensky>But...

00:29:46.800 --> 00:29:46.880
<v Piotr Ezdintensky>I did.

00:29:47.220 --> 00:29:48.800
<v Chris Gammell>I was listening to your...

00:29:48.800 --> 00:29:52.000
<v Chris Gammell>So, well, you were on Embedded back in December.

00:29:52.320 --> 00:29:55.320
<v Chris Gammell>And you mentioned that as your favorite programming language, too.

00:29:55.540 --> 00:29:56.440
<v Chris Gammell>Which is weird.

00:29:56.440 --> 00:29:57.000
<v Chris Gammell>And...

00:29:57.000 --> 00:29:58.200
<v Chris Gammell>But...

00:29:58.200 --> 00:30:02.900
<v Piotr Ezdintensky>It's not weird if you realize how amazing it is.

00:30:03.000 --> 00:30:03.200
<v Piotr Ezdintensky>Right.

00:30:03.780 --> 00:30:04.260
<v Chris Gammell>Okay.

00:30:04.300 --> 00:30:06.520
<v Chris Gammell>Well, we'll leave that conversation for Embedded.

00:30:07.200 --> 00:30:07.880
<v Chris Gammell>That seems like...

00:30:07.880 --> 00:30:08.660
<v Chris Gammell>Yeah.

00:30:09.040 --> 00:30:09.760
<v Piotr Ezdintensky>Yeah, no.

00:30:10.140 --> 00:30:15.980
<v Piotr Ezdintensky>So, basically, I was already very interested in hardware back then.

00:30:15.980 --> 00:30:16.980
<v Piotr Ezdintensky>And...

00:30:16.980 --> 00:30:21.980
<v Piotr Ezdintensky>At the lab, we were building our own robots.

00:30:23.000 --> 00:30:36.740
<v Piotr Ezdintensky>And one of the researchers was looking for a hardware that he could use to read out mouse sensors that he could embed into the fingers of the robot.

00:30:37.560 --> 00:30:41.660
<v Piotr Ezdintensky>So that they can do vision recognition of the surfaces.

00:30:42.000 --> 00:30:42.580
<v Chris Gammell>Oh, wow.

00:30:42.680 --> 00:30:42.900
<v Chris Gammell>Okay.

00:30:42.900 --> 00:30:47.640
<v Piotr Ezdintensky>So, I designed a board that could connect to those sensors.

00:30:48.160 --> 00:30:54.040
<v Piotr Ezdintensky>And I designed an STM32 board to connect with it.

00:30:54.260 --> 00:30:56.560
<v Piotr Ezdintensky>And we needed a JTEC programmer.

00:30:56.820 --> 00:30:59.180
<v Piotr Ezdintensky>So I designed Floss JTEC.

00:30:59.280 --> 00:31:01.240
<v Piotr Ezdintensky>That was basically an FTDI chip on a board.

00:31:01.600 --> 00:31:01.920
<v Chris Gammell>Okay.

00:31:03.260 --> 00:31:08.900
<v Piotr Ezdintensky>And that board had already the form factor that is now...

00:31:09.660 --> 00:31:12.740
<v Piotr Ezdintensky>When you look at the Blackmagic probe, that's the same form factor.

00:31:12.900 --> 00:31:13.900
<v Piotr Ezdintensky>But...

00:31:13.900 --> 00:31:13.900
<v Speaker ?>

00:31:13.900 --> 00:31:24.080
<v Piotr Ezdintensky>After doing this, I was still interested in all stuff JTEC and debugging and programming our microcontrollers.

00:31:24.080 --> 00:31:34.080
<v Piotr Ezdintensky>And also, while doing all that, I was not very happy with the licensing that ST had for their programming libraries.

00:31:34.480 --> 00:31:40.920
<v Piotr Ezdintensky>So, with a friend of mine, with Uwe Hermann, we started the project called LibOpenCM3.

00:31:40.920 --> 00:31:41.920
<v Piotr Ezdintensky>Okay.

00:31:41.920 --> 00:31:41.940
<v Chris Gammell>Okay.

00:31:41.940 --> 00:31:41.960
<v Chris Gammell>Okay.

00:31:41.960 --> 00:31:42.420
<v Chris Gammell>Okay.

00:31:42.420 --> 00:31:55.920
<v Piotr Ezdintensky>And, again, through that project, Gareth McMullen, who also was scratching his own itch, namely, that OpenOCD was not...

00:31:55.920 --> 00:32:00.920
<v Piotr Ezdintensky>Like, it was difficult for him to use because it couldn't detect the target itself.

00:32:00.920 --> 00:32:07.100
<v Piotr Ezdintensky>You had to dig through config files and then have the man in the middle and so on and so forth.

00:32:07.100 --> 00:32:08.100
<v Piotr Ezdintensky>And so on and so forth.

00:32:08.100 --> 00:32:20.100
<v Piotr Ezdintensky>And he decided, let me see how hard it would be to implement a JTEC debugger that has a GDB interface directly built in.

00:32:20.100 --> 00:32:25.760
<v Piotr Ezdintensky>And so he started writing that software and realized, oh, the specifications are all out there.

00:32:25.940 --> 00:32:27.220
<v Piotr Ezdintensky>It's not that complicated.

00:32:27.600 --> 00:32:28.980
<v Piotr Ezdintensky>Let me implement that.

00:32:29.700 --> 00:32:35.860
<v Piotr Ezdintensky>And he somehow decided to use LibOpenCM3 for it.

00:32:36.140 --> 00:32:36.820
<v Chris Gammell>Ah, interesting.

00:32:36.820 --> 00:32:42.020
<v Piotr Ezdintensky>And he contacted me and was, oh, you guys don't have a USB stack yet.

00:32:42.280 --> 00:32:43.800
<v Piotr Ezdintensky>Here, take this.

00:32:45.020 --> 00:32:46.440
<v Chris Gammell>That's a good way to make friends, I think.

00:32:47.140 --> 00:32:47.360
<v Chris Gammell>Yeah.

00:32:48.440 --> 00:32:56.360
<v Chris Gammell>Well, before we keep going into that, though, can you kind of break down why some of this stuff was tough in the past, right?

00:32:56.360 --> 00:33:03.180
<v Chris Gammell>So I felt the OpenOCD and GDB stuff, the pain of that in the past.

00:33:03.260 --> 00:33:10.900
<v Chris Gammell>But maybe, you know, like what was so painful that made you guys jump into this as well instead of using an existing solution?

00:33:10.980 --> 00:33:12.360
<v Chris Gammell>I know you said licensing, but...

00:33:13.040 --> 00:33:16.840
<v Piotr Ezdintensky>So LibOpenCM3, it's basically low-level hardware library.

00:33:16.840 --> 00:33:27.240
<v Piotr Ezdintensky>So the ST stuff was licensed in a way where it was not compatible with open source projects.

00:33:28.320 --> 00:33:31.060
<v Piotr Ezdintensky>They improved things, as far as I know.

00:33:31.780 --> 00:33:37.540
<v Piotr Ezdintensky>So the headers are actually more of a BSD license type of thing these days.

00:33:37.800 --> 00:33:43.200
<v Piotr Ezdintensky>But when you start browsing through their libraries, you still find some junk where it says,

00:33:43.200 --> 00:33:49.500
<v Piotr Ezdintensky>you must not use this header file that is specific to our peripherals on someone else's hardware,

00:33:49.740 --> 00:33:54.520
<v Piotr Ezdintensky>which is quite silly, too, because it's their specific hardware.

00:33:55.160 --> 00:33:55.240
<v Piotr Ezdintensky>Right.

00:33:55.600 --> 00:34:03.120
<v Piotr Ezdintensky>But this clause of being discriminatory, quote unquote, is incompatible with open source licenses.

00:34:03.400 --> 00:34:03.600
<v Piotr Ezdintensky>Right.

00:34:03.720 --> 00:34:05.700
<v Piotr Ezdintensky>Just blanket statement here.

00:34:05.700 --> 00:34:11.900
<v Piotr Ezdintensky>And so this was a very sticking point for us.

00:34:11.900 --> 00:34:17.500
<v Piotr Ezdintensky>Also, we were finding a bunch of bugs in their libraries.

00:34:18.200 --> 00:34:20.900
<v Piotr Ezdintensky>And there was no good way.

00:34:21.260 --> 00:34:27.800
<v Piotr Ezdintensky>And still, as far as I know, I'm hoping that maybe someone who is listening to the podcast will tell me that I'm wrong.

00:34:28.600 --> 00:34:34.080
<v Piotr Ezdintensky>That there's no good way of contributing changes and fixes to the ST libraries back.

00:34:34.440 --> 00:34:34.540
<v Piotr Ezdintensky>Right.

00:34:34.540 --> 00:34:39.280
<v Piotr Ezdintensky>It's not like a Git repository where you can send a pull request and say, look, here is a back.

00:34:39.340 --> 00:34:39.920
<v Piotr Ezdintensky>I fixed it.

00:34:40.120 --> 00:34:40.300
<v Chris Gammell>Right.

00:34:40.300 --> 00:34:50.780
<v Piotr Ezdintensky>So all that put together, we were both of us, Uwe and I grew up writing and using open source software.

00:34:50.780 --> 00:35:06.320
<v Piotr Ezdintensky>So we were used to the way how to interact with the software we are using by being able to contribute back to it, to modify it, to fix it when we need to, need to make sure that it works.

00:35:06.320 --> 00:35:21.980
<v Piotr Ezdintensky>And that's why that was out of all those reasons we decided to venture into this massive project of writing a low-level hardware library, which is very silly when you think about it.

00:35:22.140 --> 00:35:25.960
<v Piotr Ezdintensky>But we felt that this would be useful.

00:35:26.120 --> 00:35:28.400
<v Piotr Ezdintensky>I thought we were writing it for ourselves.

00:35:28.680 --> 00:35:28.820
<v Chris Gammell>Right.

00:35:28.820 --> 00:35:28.860
<v Chris Gammell>Right.

00:35:28.900 --> 00:35:29.240
<v Chris Gammell>Of course.

00:35:29.680 --> 00:35:29.820
<v Piotr Ezdintensky>Right.

00:35:29.940 --> 00:35:38.720
<v Piotr Ezdintensky>But then, to our big surprise, people started coming in and contributing and using it and liking it.

00:35:38.960 --> 00:35:42.420
<v Chris Gammell>And just to be clear, this is for STM parts specifically, right?

00:35:42.780 --> 00:35:43.880
<v Piotr Ezdintensky>It used to be.

00:35:43.960 --> 00:35:45.080
<v Piotr Ezdintensky>By now, it's not anymore.

00:35:45.160 --> 00:35:45.600
<v Piotr Ezdintensky>Oh, interesting.

00:35:45.860 --> 00:35:46.000
<v Piotr Ezdintensky>Okay.

00:35:46.000 --> 00:35:51.420
<v Piotr Ezdintensky>So it started out as actually LibOpenSTM.

00:35:53.100 --> 00:35:56.140
<v Piotr Ezdintensky>So that changed.

00:35:56.300 --> 00:35:58.900
<v Piotr Ezdintensky>We changed the name of the project already once.

00:35:59.020 --> 00:36:08.820
<v Piotr Ezdintensky>That's why it is called LibOpenCM3, which should probably be called now LibOpenCortex or something like that.

00:36:08.820 --> 00:36:09.440
<v Piotr Ezdintensky>Right.

00:36:09.780 --> 00:36:13.640
<v Piotr Ezdintensky>Because now we support all the different vendor.

00:36:13.840 --> 00:36:14.700
<v Piotr Ezdintensky>Oh, CM3.

00:36:14.700 --> 00:36:15.800
<v Chris Gammell>I just got it.

00:36:15.900 --> 00:36:17.080
<v Chris Gammell>CM3 is Cortex-M3.

00:36:17.820 --> 00:36:18.080
<v Chris Gammell>Yeah.

00:36:18.440 --> 00:36:18.620
<v Piotr Ezdintensky>Yeah.

00:36:19.040 --> 00:36:19.340
<v Chris Gammell>Got it.

00:36:19.800 --> 00:36:25.100
<v Piotr Ezdintensky>So we have support for a lot of Cortex-based chips.

00:36:25.540 --> 00:36:33.480
<v Piotr Ezdintensky>And we don't have Cortex-A stuff as far as I know yet, but a lot of Cortex-M stuff.

00:36:34.100 --> 00:36:39.640
<v Chris Gammell>And so when you say low-level, what are you actually implementing?

00:36:39.640 --> 00:36:43.820
<v Chris Gammell>You are abstracting out pieces like hardware registers and stuff like that?

00:36:43.820 --> 00:36:44.120
<v Chris Gammell>Yeah.

00:36:44.620 --> 00:36:45.120
<v Piotr Ezdintensky>Yeah.

00:36:45.280 --> 00:36:48.580
<v Piotr Ezdintensky>That's basically half of it is.

00:36:48.980 --> 00:36:51.780
<v Piotr Ezdintensky>So there are several corner cases.

00:36:52.120 --> 00:37:05.940
<v Piotr Ezdintensky>So in essence, it is a lot of header files that have defines that define where in memory are the memory-mived IO registers to configure the hardware.

00:37:05.940 --> 00:37:06.540
<v Chris Gammell>Right.

00:37:06.600 --> 00:37:12.800
<v Chris Gammell>So you want to find the spy port on the F105 or whatever it is, the SD32F105.

00:37:12.820 --> 00:37:18.320
<v Piotr Ezdintensky>Yeah, it is a set address like 0x4000200 or something.

00:37:18.320 --> 00:37:18.520
<v Piotr Ezdintensky>Right.

00:37:18.760 --> 00:37:20.480
<v Chris Gammell>And that is what – yeah, you're right.

00:37:20.480 --> 00:37:23.580
<v Chris Gammell>A lot of the vendors will give you that stuff sometimes.

00:37:23.840 --> 00:37:25.380
<v Chris Gammell>Well, usually.

00:37:25.560 --> 00:37:25.660
<v Chris Gammell>Yeah.

00:37:25.780 --> 00:37:25.980
<v Chris Gammell>Yeah.

00:37:26.120 --> 00:37:26.500
<v Chris Gammell>They should.

00:37:27.400 --> 00:37:32.380
<v Piotr Ezdintensky>They usually also do or generate it or you can buy it or whatever.

00:37:32.380 --> 00:37:39.640
<v Piotr Ezdintensky>And the problem with SD at that time was that these headers had like a weird license.

00:37:39.940 --> 00:37:40.200
<v Piotr Ezdintensky>Got it.

00:37:40.520 --> 00:37:40.840
<v Piotr Ezdintensky>Got it.

00:37:41.140 --> 00:37:45.220
<v Piotr Ezdintensky>So the other thing that it does, it has the initialization code.

00:37:45.400 --> 00:37:53.920
<v Piotr Ezdintensky>So basically the vector table definition and the startup code that you need to get the chip up and running.

00:37:54.320 --> 00:37:54.580
<v Chris Gammell>Okay.

00:37:54.800 --> 00:37:57.880
<v Chris Gammell>So that's like – is that the stuff that's usually written in assembly and stuff like that?

00:37:58.340 --> 00:37:59.540
<v Piotr Ezdintensky>Yeah, that's – yeah.

00:37:59.540 --> 00:38:01.600
<v Chris Gammell>Like the bootstrapping and all that stuff?

00:38:02.040 --> 00:38:02.360
<v Piotr Ezdintensky>Yeah, yeah.

00:38:02.440 --> 00:38:03.640
<v Piotr Ezdintensky>That's usually in assembly.

00:38:04.040 --> 00:38:06.780
<v Piotr Ezdintensky>We wrote everything in C because we could.

00:38:07.180 --> 00:38:07.500
<v Piotr Ezdintensky>Oh, cool.

00:38:08.420 --> 00:38:13.040
<v Piotr Ezdintensky>It was – it's basically the arm – the more modern arm chips.

00:38:13.400 --> 00:38:17.320
<v Piotr Ezdintensky>They are nice in that respect that you can actually write that stuff in C.

00:38:17.880 --> 00:38:18.160
<v Piotr Ezdintensky>Yeah.

00:38:18.620 --> 00:38:19.980
<v Piotr Ezdintensky>So you don't have any assembly there.

00:38:19.980 --> 00:38:23.040
<v Chris Gammell>My experience with that is – well, not writing it, but looking at it at least.

00:38:23.140 --> 00:38:26.980
<v Chris Gammell>And it was all for all the older freescale stuff, the Coldfire family.

00:38:27.600 --> 00:38:28.020
<v Chris Gammell>Coldfire.

00:38:28.020 --> 00:38:39.900
<v Piotr Ezdintensky>I am not familiar enough with that family, but I know that in the past you needed some specific assembly instructions to get a chip.

00:38:39.900 --> 00:38:40.040
<v Piotr Ezdintensky>Right.

00:38:40.100 --> 00:38:44.340
<v Chris Gammell>You're trying to like go to the beginning of the memory map or go to this address or whatever.

00:38:44.460 --> 00:38:48.540
<v Chris Gammell>Like jump here, jump there, do this thing, push this there, that kind of stuff, right?

00:38:48.840 --> 00:38:49.160
<v Piotr Ezdintensky>Yeah.

00:38:49.260 --> 00:38:55.700
<v Piotr Ezdintensky>Or call specific instructions that are initializing the vector table and enabling the interrupts and doing the stuff like that.

00:38:55.700 --> 00:38:56.680
<v Chris Gammell>Right, right, right, right.

00:38:56.680 --> 00:38:57.040
<v Chris Gammell>Yeah.

00:38:57.040 --> 00:38:57.320
<v Chris Gammell>Yeah.

00:38:57.320 --> 00:38:57.680
<v Chris Gammell>Yeah.

00:38:57.680 --> 00:38:58.660
<v Chris Gammell>And flipping all the switches.

00:38:59.500 --> 00:39:00.180
<v Piotr Ezdintensky>Yeah, exactly.

00:39:00.440 --> 00:39:09.260
<v Piotr Ezdintensky>And the third part of LipOvenCM is like a thin layer of beautification, I would call it.

00:39:09.260 --> 00:39:11.980
<v Piotr Ezdintensky>It's convenience functions, how we call it.

00:39:11.980 --> 00:39:12.340
<v Chris Gammell>Okay.

00:39:12.900 --> 00:39:14.980
<v Chris Gammell>Macros or like actual functions?

00:39:14.980 --> 00:39:27.320
<v Piotr Ezdintensky>No, actual functions, actual code that are not – so instead of twiddling bits in registers, you can call those functions to do the same thing.

00:39:27.320 --> 00:39:30.420
<v Chris Gammell>How about a simple example?

00:39:30.420 --> 00:39:42.960
<v Piotr Ezdintensky>So GPIO set then brackets GPIO a bank and GPIO 13 for the pin instead of writing –

00:39:42.960 --> 00:39:43.000
<v Piotr Ezdintensky>Right.

00:39:43.680 --> 00:39:46.420
<v Chris Gammell>And or whatever or the –

00:39:46.420 --> 00:39:47.520
<v Chris Gammell>Or –

00:39:47.520 --> 00:39:50.080
<v Chris Gammell>Oring in a mask or something like that.

00:39:50.160 --> 00:39:50.480
<v Chris Gammell>Correct.

00:39:50.480 --> 00:39:50.800
<v Chris Gammell>Yes.

00:39:50.800 --> 00:39:51.420
<v Chris Gammell>Yeah, like – sorry.

00:39:51.660 --> 00:39:51.780
<v Chris Gammell>Yeah.

00:39:52.300 --> 00:39:53.840
<v Piotr Ezdintensky>Yeah, no, that's exactly right.

00:39:54.000 --> 00:39:54.180
<v Piotr Ezdintensky>Yeah.

00:39:54.280 --> 00:40:04.120
<v Piotr Ezdintensky>So instead of doing bit operations and shifting the bit to the right position and setting it into the register, you can just call a function with two parameters.

00:40:04.120 --> 00:40:10.080
<v Piotr Ezdintensky>It's the bank and the GPIO pin and then it will set it or reset it or toggle it.

00:40:10.340 --> 00:40:19.120
<v Chris Gammell>And that kind of thing actually doesn't – at the end of the day, that takes up more code space, but it doesn't actually – when it actually compiles down, it kind of goes away, right?

00:40:19.200 --> 00:40:20.440
<v Chris Gammell>I mean, like it's –

00:40:20.440 --> 00:40:20.700
<v Chris Gammell>Yeah.

00:40:20.700 --> 00:40:26.120
<v Chris Gammell>If you're using that kind of thing, it just – the compiler figures out, oh, you're trying to do this other operation that happened anyways.

00:40:27.060 --> 00:40:30.360
<v Piotr Ezdintensky>Yeah, today's C compilers are pretty smart.

00:40:30.360 --> 00:40:46.360
<v Piotr Ezdintensky>And I'm running less and less into people that say that I can write more efficient assembly than the C compiler can generate, which is true.

00:40:46.540 --> 00:40:57.320
<v Piotr Ezdintensky>You have to be – there is still situations where you want to write assembly, for example, to do the SIMD instructions in – so single instruction, multiple data stuff.

00:40:57.320 --> 00:41:07.740
<v Piotr Ezdintensky>You still, in many cases, want to write it by hand because there are not really good triggers from C to do that.

00:41:08.560 --> 00:41:12.320
<v Piotr Ezdintensky>But this is a very specific application and very specific situations.

00:41:13.120 --> 00:41:16.580
<v Piotr Ezdintensky>A friend of mine who you met, Jared Boone.

00:41:16.980 --> 00:41:17.260
<v Chris Gammell>Oh, yeah.

00:41:17.460 --> 00:41:17.580
<v Piotr Ezdintensky>Yeah.

00:41:18.020 --> 00:41:24.440
<v Piotr Ezdintensky>He is writing his radio filters with SIMD instructions to accelerate them.

00:41:24.820 --> 00:41:25.140
<v Piotr Ezdintensky>Got it.

00:41:25.140 --> 00:41:41.340
<v Chris Gammell>Yeah, I think the main thing that – again, I don't do this often, but the people that I've observed, it's like you at least need to be able to look at the generated assembly after the compiler goes through and then be like, okay, that looks right enough, right?

00:41:41.440 --> 00:41:48.760
<v Chris Gammell>So it's like recognizing when it's doing something really dumb and then fixing it and not letting it balloon out your code before you don't –

00:41:48.760 --> 00:41:48.800
<v Chris Gammell>Yeah.

00:41:48.800 --> 00:41:53.540
<v Piotr Ezdintensky>Another thing to say is early optimization is the root of all evil.

00:41:54.540 --> 00:41:54.940
<v Piotr Ezdintensky>Right.

00:41:54.940 --> 00:42:08.100
<v Piotr Ezdintensky>And so if you write something in C or some other language, even if it is not very efficient, but you can write that code quickly and get to a certain spot faster that way.

00:42:08.260 --> 00:42:08.760
<v Piotr Ezdintensky>That works enough.

00:42:08.780 --> 00:42:10.580
<v Piotr Ezdintensky>And then realize – yeah, that works enough.

00:42:10.580 --> 00:42:15.780
<v Piotr Ezdintensky>And then realize where the issues are and bottlenecks and start addressing those.

00:42:15.780 --> 00:42:22.940
<v Piotr Ezdintensky>You still probably will end up with the result you are looking for faster, hopefully.

00:42:23.760 --> 00:42:31.900
<v Piotr Ezdintensky>And it is almost most definitely easier to maintain than a lot of assembly code.

00:42:32.020 --> 00:42:32.680
<v Chris Gammell>Yeah, exactly.

00:42:32.680 --> 00:42:36.680
<v Chris Gammell>I kind of think of it the difference between like prototype and production, right?

00:42:36.720 --> 00:42:44.280
<v Chris Gammell>At prototype stage, you should be not necessarily slapping stuff together, but you should be getting stuff working and then refining that.

00:42:44.380 --> 00:42:54.820
<v Chris Gammell>But then if it's in production and you need it to be like cheap and you need it to be fast and you need it to be super efficient, that's when you spend the time actually rejigging all the code in order to get that stuff.

00:42:54.820 --> 00:42:56.700
<v Piotr Ezdintensky>Yeah, exactly.

00:42:56.700 --> 00:42:57.720
<v Piotr Ezdintensky>Exactly right.

00:42:57.900 --> 00:42:58.000
<v Piotr Ezdintensky>Yeah.

00:42:58.300 --> 00:43:00.060
<v Piotr Ezdintensky>So you build a quick prototype.

00:43:00.320 --> 00:43:04.840
<v Piotr Ezdintensky>You figure out if it is even feasible what you are trying to do and then start optimizing.

00:43:05.260 --> 00:43:05.520
<v Chris Gammell>Got it.

00:43:06.460 --> 00:43:06.860
<v Chris Gammell>Okay.

00:43:07.020 --> 00:43:09.120
<v Chris Gammell>So you met Gareth.

00:43:09.120 --> 00:43:10.580
<v Piotr Ezdintensky>We went off on a tangent there.

00:43:10.580 --> 00:43:11.140
<v Chris Gammell>No, no, that's good.

00:43:11.220 --> 00:43:11.560
<v Chris Gammell>No, that's good.

00:43:11.960 --> 00:43:16.500
<v Chris Gammell>You met Gareth and he was working on this OpenOCD GDB stuff.

00:43:16.840 --> 00:43:22.220
<v Chris Gammell>I actually met – you had luckily had mentioned to Gareth that he should show up at the Auckland meetup.

00:43:22.280 --> 00:43:23.160
<v Chris Gammell>So I got to meet him as well.

00:43:23.160 --> 00:43:24.800
<v Chris Gammell>And I was like, oh, okay.

00:43:24.980 --> 00:43:25.320
<v Chris Gammell>Well, hello.

00:43:26.160 --> 00:43:26.900
<v Chris Gammell>That was great.

00:43:27.460 --> 00:43:29.760
<v Chris Gammell>Hello to all the Aucklanders, Aucklandites.

00:43:31.380 --> 00:43:43.040
<v Chris Gammell>But what is – so why is it better to use like the libopencm3 versus – it was just because it was faster and accessible?

00:43:43.220 --> 00:43:45.200
<v Chris Gammell>Is that kind of the thing or because it wanted to be open or what?

00:43:45.840 --> 00:43:47.400
<v Piotr Ezdintensky>He wanted it to be open.

00:43:47.400 --> 00:43:54.780
<v Piotr Ezdintensky>He designed it from beginning to be open source because he sees it as a tool for himself.

00:43:55.340 --> 00:44:00.700
<v Piotr Ezdintensky>And that's how we continue seeing it and that it is a tool that we were using.

00:44:00.800 --> 00:44:08.140
<v Piotr Ezdintensky>That's why I started using it for all the autopilot stuff myself and then stopped making the Floss JTAG.

00:44:08.140 --> 00:44:08.440
<v Piotr Ezdintensky>Okay.

00:44:08.960 --> 00:44:11.100
<v Piotr Ezdintensky>Because it was better.

00:44:11.200 --> 00:44:12.280
<v Piotr Ezdintensky>It was easier to use.

00:44:12.360 --> 00:44:13.340
<v Piotr Ezdintensky>You just plug it in.

00:44:13.420 --> 00:44:22.040
<v Piotr Ezdintensky>You don't have to every few months send another patch that will take weeks to get incorporated into OpenOCD.

00:44:22.040 --> 00:44:27.140
<v Piotr Ezdintensky>And it just worked.

00:44:27.520 --> 00:44:28.840
<v Piotr Ezdintensky>That was the amazing part.

00:44:29.060 --> 00:44:44.120
<v Piotr Ezdintensky>Gareth did such an amazing job with his tool that I was amazed how easy to just plug it in and do your thing that you actually want to do, namely debug the thing that is not working.

00:44:44.240 --> 00:44:44.980
<v Chris Gammell>Right, right.

00:44:44.980 --> 00:44:48.040
<v Piotr Ezdintensky>Instead of fixing the tool to debug it with.

00:44:48.240 --> 00:44:48.340
<v Chris Gammell>Right.

00:44:48.760 --> 00:44:51.920
<v Chris Gammell>Which is what happens with OpenOCD a lot.

00:44:52.720 --> 00:44:53.240
<v Chris Gammell>Unfortunately.

00:44:53.780 --> 00:44:54.120
<v Chris Gammell>Yeah.

00:44:54.400 --> 00:44:56.120
<v Chris Gammell>It says, what kind of error is it throwing?

00:44:56.300 --> 00:44:56.580
<v Chris Gammell>Oh, yeah.

00:44:56.580 --> 00:44:59.640
<v Chris Gammell>You need to just like reinstall the full thing again.

00:44:59.780 --> 00:45:00.260
<v Chris Gammell>You'll be fine.

00:45:00.960 --> 00:45:05.260
<v Piotr Ezdintensky>But I have to moderate my statement about this a little bit.

00:45:06.020 --> 00:45:12.100
<v Piotr Ezdintensky>OpenOCD is amazing regarding the fact how much different hardware it supports.

00:45:12.280 --> 00:45:12.900
<v Chris Gammell>Oh, interesting.

00:45:12.900 --> 00:45:21.060
<v Piotr Ezdintensky>It's a huge, huge accomplishment of that project that it supports so many probes, so many targets.

00:45:21.820 --> 00:45:28.340
<v Piotr Ezdintensky>And it's a vast repository of knowledge that is assembled in there.

00:45:28.500 --> 00:45:33.740
<v Piotr Ezdintensky>So I don't want to be too harsh on OpenOCD because they have their place.

00:45:33.840 --> 00:45:35.420
<v Piotr Ezdintensky>They are doing an amazing job.

00:45:36.540 --> 00:45:37.900
<v Piotr Ezdintensky>And but for...

00:45:38.680 --> 00:45:42.400
<v Chris Gammell>I can complain about KiCat and yet still like, I mean, I'm worthless without it.

00:45:42.400 --> 00:45:45.740
<v Chris Gammell>So like, yeah, it still helps me every single day.

00:45:45.880 --> 00:45:46.840
<v Chris Gammell>So yeah, that's fine.

00:45:47.780 --> 00:45:48.220
<v Chris Gammell>Yeah.

00:45:48.280 --> 00:45:49.960
<v Chris Gammell>I just wanted to mention that.

00:45:50.100 --> 00:45:50.200
<v Chris Gammell>Got it.

00:45:50.940 --> 00:45:51.340
<v Chris Gammell>Yeah.

00:45:51.360 --> 00:45:52.400
<v Chris Gammell>You're so ungrateful, man.

00:45:52.480 --> 00:45:52.820
<v Chris Gammell>What up?

00:45:52.860 --> 00:45:53.440
<v Chris Gammell>What up with that?

00:45:55.620 --> 00:45:55.900
<v Piotr Ezdintensky>Yeah.

00:45:55.900 --> 00:45:56.260
<v Piotr Ezdintensky>Yeah.

00:45:56.260 --> 00:46:00.320
<v Piotr Ezdintensky>So we are learning from them too.

00:46:00.320 --> 00:46:02.260
<v Piotr Ezdintensky>And yeah.

00:46:02.460 --> 00:46:05.280
<v Piotr Ezdintensky>So OpenOCD has its place and it's doing a great job.

00:46:05.280 --> 00:46:12.900
<v Piotr Ezdintensky>But if I have the choice between using OpenOCD or Blackmagic Probe, if Blackmagic Probe supports

00:46:12.900 --> 00:46:20.840
<v Piotr Ezdintensky>that specific tool, then I will go for Blackmagic Probe because I will plug it in, plug it into

00:46:20.840 --> 00:46:21.420
<v Piotr Ezdintensky>my computer.

00:46:21.420 --> 00:46:25.700
<v Piotr Ezdintensky>And I will just show two generic serial ports.

00:46:26.840 --> 00:46:37.800
<v Piotr Ezdintensky>I start GDB or some other tool that has GDB built in, the GNU debugger from the open source

00:46:37.800 --> 00:46:38.280
<v Piotr Ezdintensky>tool chain.

00:46:38.580 --> 00:46:46.340
<v Piotr Ezdintensky>And so just to clarify and go into GDB, say target extended remote, the first serial port

00:46:46.340 --> 00:46:47.540
<v Piotr Ezdintensky>and I'm in.

00:46:48.080 --> 00:46:48.420
<v Chris Gammell>Oh, wow.

00:46:48.560 --> 00:46:48.760
<v Chris Gammell>Okay.

00:46:49.680 --> 00:46:50.400
<v Piotr Ezdintensky>That ain't bad.

00:46:51.260 --> 00:46:55.920
<v Piotr Ezdintensky>And also because these are generic serial ports, it works on pretty much everything.

00:46:55.920 --> 00:46:56.360
<v Piotr Ezdintensky>Right.

00:46:57.200 --> 00:47:03.500
<v Piotr Ezdintensky>And you go to a comp and also the tool chains for ARM, they are available on a lot.

00:47:03.620 --> 00:47:12.880
<v Piotr Ezdintensky>So thanks to the ARM company that they got a few developers to work on a genuine bare metal

00:47:12.880 --> 00:47:14.420
<v Piotr Ezdintensky>tool chain to release.

00:47:14.420 --> 00:47:17.960
<v Piotr Ezdintensky>It's the GCC ARM embedded.

00:47:19.460 --> 00:47:23.760
<v Piotr Ezdintensky>And because I was maintaining my own tool chain before that too.

00:47:23.960 --> 00:47:28.140
<v Piotr Ezdintensky>So thank God I don't have to do that part anymore.

00:47:28.320 --> 00:47:28.420
<v Piotr Ezdintensky>Yeah.

00:47:28.680 --> 00:47:28.780
<v Chris Gammell>Yeah.

00:47:29.560 --> 00:47:30.240
<v Piotr Ezdintensky>But...

00:47:30.240 --> 00:47:30.480
<v Chris Gammell>Okay.

00:47:30.580 --> 00:47:32.840
<v Chris Gammell>So let's take one step back again.

00:47:33.200 --> 00:47:33.500
<v Chris Gammell>Sure, sure.

00:47:33.820 --> 00:47:38.300
<v Chris Gammell>So first off, OneBitsy versus Blackmagic Probe, they are different things.

00:47:38.420 --> 00:47:39.460
<v Chris Gammell>You saw both of them, obviously.

00:47:39.900 --> 00:47:41.260
<v Chris Gammell>What is the main difference?

00:47:41.260 --> 00:47:46.600
<v Piotr Ezdintensky>Oh, so Blackmagic Probe is a tool to...

00:47:47.720 --> 00:47:53.420
<v Piotr Ezdintensky>Basically, it's a brain tap into the CPU and the OneBitsy is an evaluation board.

00:47:53.540 --> 00:47:58.080
<v Piotr Ezdintensky>It's like a board that has the CPU on it, all the peripherals that you need to get it

00:47:58.080 --> 00:47:58.360
<v Piotr Ezdintensky>running.

00:47:58.360 --> 00:48:01.740
<v Piotr Ezdintensky>And then you can build and prototype your project around it.

00:48:01.980 --> 00:48:06.360
<v Piotr Ezdintensky>It's basically like an Arduino with JTAC interface exposed.

00:48:07.340 --> 00:48:07.540
<v Chris Gammell>Got it.

00:48:07.800 --> 00:48:07.980
<v Piotr Ezdintensky>Okay.

00:48:08.060 --> 00:48:12.780
<v Piotr Ezdintensky>And it is meant to run very well together with the Blackmagic Probe.

00:48:12.880 --> 00:48:14.660
<v Piotr Ezdintensky>That is the debugger part of it.

00:48:15.080 --> 00:48:15.320
<v Chris Gammell>Got it.

00:48:15.320 --> 00:48:20.900
<v Piotr Ezdintensky>So this was also a conscious decision to not integrate Blackmagic Probe into the OneBitsy

00:48:20.900 --> 00:48:25.740
<v Piotr Ezdintensky>because a lot of the dev boards have their debugger on board.

00:48:26.740 --> 00:48:26.840
<v Piotr Ezdintensky>Yeah.

00:48:27.140 --> 00:48:31.800
<v Chris Gammell>It has like a separate chipset or something where it's like flowing through that, right?

00:48:32.100 --> 00:48:33.260
<v Piotr Ezdintensky>Yeah, that's right.

00:48:33.260 --> 00:48:42.220
<v Piotr Ezdintensky>And the problem, I wanted to do it differently than others for a reason because I think a

00:48:42.220 --> 00:48:50.020
<v Piotr Ezdintensky>good debugger needs a certain amount of parts on it, making the bill of materials higher

00:48:50.020 --> 00:48:50.960
<v Piotr Ezdintensky>than you would want.

00:48:50.960 --> 00:48:54.840
<v Chris Gammell>Pay more so you're not dragging that bomb cost with you to every new project, right?

00:48:54.840 --> 00:48:55.360
<v Chris Gammell>Yes.

00:48:55.500 --> 00:48:55.820
<v Chris Gammell>Yes.

00:48:55.860 --> 00:49:00.400
<v Piotr Ezdintensky>You are basically with every new project you are buying another JTAC debugger.

00:49:00.460 --> 00:49:00.680
<v Piotr Ezdintensky>Right.

00:49:00.740 --> 00:49:03.600
<v Piotr Ezdintensky>That is mediocre or good.

00:49:04.100 --> 00:49:04.320
<v Piotr Ezdintensky>Right.

00:49:04.560 --> 00:49:04.520
<v Speaker ?>Whatever.

00:49:04.680 --> 00:49:05.320
<v Piotr Ezdintensky>It does the job.

00:49:05.440 --> 00:49:08.240
<v Chris Gammell>That's like on the discovery board, right?

00:49:08.280 --> 00:49:13.160
<v Chris Gammell>So it has two STM32 F0 family parts on there, right?

00:49:13.160 --> 00:49:14.440
<v Chris Gammell>One is the programmer debugger.

00:49:14.680 --> 00:49:16.940
<v Chris Gammell>The other one is the actual target chip.

00:49:17.160 --> 00:49:23.220
<v Chris Gammell>And it's fine and it's cheap, but I think the part that's doing the debugging is not very

00:49:23.220 --> 00:49:23.620
<v Chris Gammell>powerful.

00:49:23.780 --> 00:49:24.260
<v Chris Gammell>That's the thing.

00:49:24.260 --> 00:49:25.440
<v Chris Gammell>It's not doing a lot.

00:49:26.060 --> 00:49:26.320
<v Piotr Ezdintensky>Yeah.

00:49:26.980 --> 00:49:28.920
<v Piotr Ezdintensky>Yeah, no, that's correct.

00:49:28.920 --> 00:49:36.640
<v Piotr Ezdintensky>And so even on the discovery boards, this is just to mention, the people did port Blackmagic

00:49:36.640 --> 00:49:39.520
<v Piotr Ezdintensky>probe firmware to the discovery board ST link chip.

00:49:39.840 --> 00:49:40.280
<v Chris Gammell>Oh, interesting.

00:49:40.440 --> 00:49:40.580
<v Chris Gammell>Okay.

00:49:40.920 --> 00:49:49.040
<v Piotr Ezdintensky>So if you are using the open source tools like GCC and GDB and use make files, command line

00:49:49.040 --> 00:49:57.920
<v Piotr Ezdintensky>or whatever, you might want to reflash your ST link on your discovery board with the Blackmagic

00:49:57.920 --> 00:49:58.440
<v Piotr Ezdintensky>probe firmware.

00:49:58.760 --> 00:49:59.420
<v Chris Gammell>That's interesting.

00:49:59.580 --> 00:49:59.780
<v Chris Gammell>Okay.

00:49:59.960 --> 00:50:00.540
<v Chris Gammell>Yeah, that's great.

00:50:00.540 --> 00:50:04.080
<v Chris Gammell>And that's a great, I mean, like, I mean, I think that the stuff that you guys have is

00:50:04.080 --> 00:50:05.460
<v Chris Gammell>very affordable.

00:50:05.460 --> 00:50:09.360
<v Chris Gammell>But if you wanted to do it for like 10 bucks too, to try it out, that's a really cheap way

00:50:09.360 --> 00:50:09.900
<v Chris Gammell>to try it out.

00:50:09.900 --> 00:50:10.340
<v Piotr Ezdintensky>Yeah.

00:50:10.460 --> 00:50:17.120
<v Piotr Ezdintensky>You can also buy an ST link to clone from China and flash Blackmagic probe on that one too.

00:50:17.380 --> 00:50:18.020
<v Chris Gammell>If you want to.

00:50:18.020 --> 00:50:20.820
<v Chris Gammell>So it's even less risk to flash.

00:50:20.820 --> 00:50:20.980
<v Chris Gammell>Yeah.

00:50:21.840 --> 00:50:22.280
<v Piotr Ezdintensky>Yeah.

00:50:22.280 --> 00:50:24.580
<v Piotr Ezdintensky>You can try it out and see if you like it.

00:50:24.740 --> 00:50:32.800
<v Piotr Ezdintensky>But just to make clear, the Blackmagic probes, besides having certain hardware, I can tell

00:50:32.800 --> 00:50:33.500
<v Piotr Ezdintensky>you what that is.

00:50:33.620 --> 00:50:40.260
<v Piotr Ezdintensky>But the nice thing about the Blackmagic probe and us selling it through OneBitSquared is

00:50:40.260 --> 00:50:44.020
<v Piotr Ezdintensky>that it is financing a lot of the further development of the project.

00:50:44.360 --> 00:50:44.460
<v Chris Gammell>Yeah.

00:50:44.460 --> 00:50:52.120
<v Piotr Ezdintensky>So people were asking me a few times or even criticizing that we are selling the Blackmagic

00:50:52.120 --> 00:50:54.220
<v Piotr Ezdintensky>probe for $60 for the hardware.

00:50:54.600 --> 00:50:54.800
<v Chris Gammell>Right.

00:50:54.860 --> 00:50:59.300
<v Chris Gammell>And then you sent them to all the vendor pages and you're like, yeah, okay, well, it's not

00:50:59.300 --> 00:51:01.340
<v Chris Gammell>$10,000 or $5,000.

00:51:01.780 --> 00:51:03.920
<v Chris Gammell>So how about you shut the hell up?

00:51:05.000 --> 00:51:05.940
<v Chris Gammell>You do that, right?

00:51:06.060 --> 00:51:06.820
<v Chris Gammell>That's what you told them?

00:51:06.940 --> 00:51:07.620
<v Chris Gammell>You're like...

00:51:07.620 --> 00:51:10.140
<v Piotr Ezdintensky>No, I'm trying to be nicer than that.

00:51:10.280 --> 00:51:10.560
<v Piotr Ezdintensky>But yeah.

00:51:10.780 --> 00:51:12.760
<v Chris Gammell>I wouldn't take no gruff.

00:51:13.540 --> 00:51:13.940
<v Piotr Ezdintensky>Yeah.

00:51:13.940 --> 00:51:21.760
<v Piotr Ezdintensky>So the main thing is, it seems that a lot of people think that if something is open source,

00:51:21.760 --> 00:51:23.100
<v Piotr Ezdintensky>it means it should be free.

00:51:23.780 --> 00:51:26.680
<v Piotr Ezdintensky>And that no one spent any time developing it.

00:51:26.940 --> 00:51:27.040
<v Piotr Ezdintensky>Right.

00:51:27.400 --> 00:51:30.000
<v Piotr Ezdintensky>And no one is spending time maintaining it.

00:51:30.180 --> 00:51:34.860
<v Piotr Ezdintensky>And we are doing it at night just for the fun of it because we love doing it.

00:51:35.080 --> 00:51:35.360
<v Chris Gammell>Right.

00:51:35.360 --> 00:51:37.260
<v Piotr Ezdintensky>In a sense, it's true.

00:51:37.600 --> 00:51:39.320
<v Piotr Ezdintensky>But on the other hand, I would like to...

00:51:39.320 --> 00:51:39.840
<v Chris Gammell>You are working at night.

00:51:39.920 --> 00:51:40.720
<v Chris Gammell>You do enjoy it.

00:51:41.380 --> 00:51:42.520
<v Piotr Ezdintensky>But you also like food.

00:51:43.180 --> 00:51:44.220
<v Piotr Ezdintensky>I also like food.

00:51:44.320 --> 00:51:45.980
<v Piotr Ezdintensky>I like having a roof over my head.

00:51:46.100 --> 00:51:46.280
<v Piotr Ezdintensky>Yeah.

00:51:46.340 --> 00:51:48.320
<v Piotr Ezdintensky>I like having internet connection.

00:51:48.320 --> 00:51:48.860
<v Piotr Ezdintensky>Right.

00:51:48.860 --> 00:51:49.300
<v Piotr Ezdintensky>So...

00:51:49.300 --> 00:51:51.280
<v Chris Gammell>See, I think that people ignore that too.

00:51:51.380 --> 00:51:52.460
<v Chris Gammell>Like, they'll be like, ah, whatever.

00:51:52.540 --> 00:51:53.180
<v Chris Gammell>That's on you, man.

00:51:53.320 --> 00:51:58.880
<v Chris Gammell>But I think it's like, if you do that comparison cost of like, no, seriously, debuggers are expensive

00:51:58.880 --> 00:52:00.660
<v Chris Gammell>from the traditional vendors.

00:52:00.880 --> 00:52:02.200
<v Chris Gammell>It's like, oh, wow.

00:52:02.280 --> 00:52:03.960
<v Chris Gammell>This is like a 20th of the cost.

00:52:04.180 --> 00:52:04.840
<v Chris Gammell>That's crazy.

00:52:04.840 --> 00:52:05.480
<v Piotr Ezdintensky>Yeah.

00:52:05.600 --> 00:52:07.080
<v Piotr Ezdintensky>No, that's correct.

00:52:07.500 --> 00:52:18.360
<v Piotr Ezdintensky>Also, because of the cost that includes some development costs in it, we can continue evolving

00:52:18.360 --> 00:52:19.740
<v Piotr Ezdintensky>and making it better over time.

00:52:19.900 --> 00:52:20.120
<v Chris Gammell>Right.

00:52:20.300 --> 00:52:26.020
<v Piotr Ezdintensky>We are spending time writing software, writing more unit tests, making it more stable, more

00:52:26.020 --> 00:52:27.360
<v Piotr Ezdintensky>like better.

00:52:27.640 --> 00:52:30.300
<v Piotr Ezdintensky>We are working on new hardware for the future.

00:52:30.300 --> 00:52:34.640
<v Piotr Ezdintensky>It all costs a huge amount of money to prototype hardware.

00:52:35.120 --> 00:52:35.180
<v Chris Gammell>Yeah.

00:52:35.920 --> 00:52:36.520
<v Piotr Ezdintensky>So...

00:52:36.520 --> 00:52:37.160
<v Piotr Ezdintensky>We know that one here.

00:52:38.560 --> 00:52:39.120
<v Piotr Ezdintensky>Yeah.

00:52:39.300 --> 00:52:40.020
<v Piotr Ezdintensky>So, yeah.

00:52:40.200 --> 00:52:42.300
<v Piotr Ezdintensky>So, we had...

00:52:42.300 --> 00:52:48.180
<v Piotr Ezdintensky>If you like Blackmagic Probe, you flashed it on your discovery board, just consider...

00:52:48.180 --> 00:52:51.340
<v Piotr Ezdintensky>It's like, if you really don't want to buy the hardware, that's fine.

00:52:52.000 --> 00:52:54.200
<v Piotr Ezdintensky>Maybe you donate some money on the website.

00:52:54.440 --> 00:52:55.620
<v Piotr Ezdintensky>That's great too.

00:52:56.100 --> 00:52:58.700
<v Piotr Ezdintensky>But buying the hardware, you get something for it.

00:52:58.700 --> 00:53:00.900
<v Piotr Ezdintensky>I think it is pretty decent.

00:53:01.680 --> 00:53:02.120
<v Piotr Ezdintensky>Hoping.

00:53:03.600 --> 00:53:03.920
<v Piotr Ezdintensky>And...

00:53:03.920 --> 00:53:06.200
<v Chris Gammell>Well, like, maybe that's a good thing to compare too.

00:53:06.340 --> 00:53:06.780
<v Chris Gammell>So, like, okay.

00:53:06.880 --> 00:53:12.740
<v Chris Gammell>So, between flashing it onto like a discovery board, ST-Link chip, and then using the Blackmagic

00:53:12.740 --> 00:53:15.720
<v Chris Gammell>Probe, what do you gain from using the discrete hardware?

00:53:16.660 --> 00:53:19.800
<v Piotr Ezdintensky>So, the discrete hardware, first of all, you can plug it into your project.

00:53:19.920 --> 00:53:20.380
<v Piotr Ezdintensky>That's one.

00:53:20.860 --> 00:53:23.900
<v Piotr Ezdintensky>But you could do that with the cheap ST-Link too.

00:53:23.900 --> 00:53:32.820
<v Piotr Ezdintensky>But what I did is I added dual supply transceivers on the front end.

00:53:33.060 --> 00:53:39.860
<v Piotr Ezdintensky>So, it allows translation of the signals down to 1.7 volts and up to 5 volts.

00:53:40.060 --> 00:53:40.540
<v Piotr Ezdintensky>Oh, that's nice.

00:53:40.540 --> 00:53:42.540
<v Piotr Ezdintensky>So, you can...

00:53:42.540 --> 00:53:50.300
<v Piotr Ezdintensky>It will work with more projects than just the 3.3 volt system of the discovery board.

00:53:50.540 --> 00:53:57.020
<v Piotr Ezdintensky>And you can use also low power targets that are this like STM32L zeros.

00:53:57.520 --> 00:53:57.940
<v Chris Gammell>Oh, yeah.

00:53:58.120 --> 00:53:58.660
<v Chris Gammell>Right, right, right.

00:53:58.700 --> 00:54:01.640
<v Chris Gammell>Like the super sipping the power kind of project stuff.

00:54:02.020 --> 00:54:02.580
<v Piotr Ezdintensky>Yeah, yeah.

00:54:02.580 --> 00:54:06.480
<v Piotr Ezdintensky>You can use that for this really low power, low voltage systems.

00:54:07.500 --> 00:54:13.040
<v Piotr Ezdintensky>Also, it has a bunch of additional LEDs so you know what is going on on it.

00:54:13.780 --> 00:54:21.040
<v Piotr Ezdintensky>It has a function where you can power the target.

00:54:21.040 --> 00:54:32.660
<v Piotr Ezdintensky>So, you go in GDB and you run monitor t-power enable and it will power your target using the power reference pin of the JTAG interface.

00:54:33.420 --> 00:54:37.340
<v Piotr Ezdintensky>And it has a built-in UART to serial.

00:54:38.480 --> 00:54:42.320
<v Piotr Ezdintensky>So, USB to serial adapter on the back of the board.

00:54:43.140 --> 00:54:49.280
<v Piotr Ezdintensky>So, it's actually more useful than one would think to have it in one package.

00:54:49.280 --> 00:54:55.040
<v Piotr Ezdintensky>So, you can just plug it in and have serial while you also have JTAG or SWD.

00:54:55.420 --> 00:54:56.640
<v Piotr Ezdintensky>We support both.

00:54:57.340 --> 00:54:57.680
<v Chris Gammell>That's great.

00:54:58.640 --> 00:54:59.080
<v Piotr Ezdintensky>Yeah.

00:54:59.280 --> 00:55:01.600
<v Piotr Ezdintensky>So, yeah.

00:55:01.880 --> 00:55:03.820
<v Piotr Ezdintensky>That's pretty much it.

00:55:03.960 --> 00:55:06.460
<v Piotr Ezdintensky>I might be forgetting something, but...

00:55:06.460 --> 00:55:09.200
<v Chris Gammell>Well, let's talk through the actual process too.

00:55:09.300 --> 00:55:11.580
<v Chris Gammell>I mean, like so people who haven't done...

00:55:11.580 --> 00:55:16.080
<v Chris Gammell>So, I think the interesting thing for me is that a lot of people come from the world of Arduino, right?

00:55:16.080 --> 00:55:20.100
<v Chris Gammell>For better or worse, I think it's great that they start like stepping in it.

00:55:20.140 --> 00:55:22.980
<v Chris Gammell>They're like, all right, I want to make a more complex project.

00:55:23.060 --> 00:55:25.820
<v Chris Gammell>I need to peer into the processor like you're talking about.

00:55:27.280 --> 00:55:33.960
<v Chris Gammell>So, people that are just getting started from that step, what are they going to see when they start hooking up a Blackmagic probe?

00:55:34.080 --> 00:55:35.240
<v Chris Gammell>Like what are they peering into then?

00:55:35.240 --> 00:55:36.240
<v Chris Gammell>Okay.

00:55:36.240 --> 00:55:37.240
<v Piotr Ezdintensky>Okay.

00:55:37.240 --> 00:55:40.240
<v Piotr Ezdintensky>So, the analogy I'm trying to make...

00:55:40.240 --> 00:55:50.240
<v Piotr Ezdintensky>So, if you have an Arduino project, you might run into some issue where you are not calculating the right thing and you don't know what is going on that is causing it.

00:55:50.240 --> 00:56:03.800
<v Piotr Ezdintensky>So, what you usually do, you add a print line somewhere or you blink an LED to measure or toggle a pin to connect to your oscilloscope or logic analyzer to try to figure out what this thing is doing.

00:56:04.240 --> 00:56:18.300
<v Piotr Ezdintensky>And this still is like tapping somewhere in the darkness, trying to realize what is going on inside the chip without actually seeing what the chip is doing.

00:56:18.300 --> 00:56:25.960
<v Piotr Ezdintensky>So, with the Blackmagic probe and you connect GDB to it, it will interrupt the program.

00:56:26.280 --> 00:56:26.980
<v Piotr Ezdintensky>So, stop it.

00:56:27.100 --> 00:56:28.860
<v Piotr Ezdintensky>Like basically stop the clock of the chip.

00:56:29.540 --> 00:56:41.340
<v Piotr Ezdintensky>And then you can step through it saying, please run one instruction more through the code and now tell me what is in this variable A, B, C, D.

00:56:42.180 --> 00:56:47.260
<v Piotr Ezdintensky>And then you run another step and you see how this variable starts changing or not.

00:56:47.260 --> 00:56:51.460
<v Piotr Ezdintensky>And then you see that, oh, my calculation was off by one.

00:56:51.860 --> 00:56:52.460
<v Chris Gammell>Oh, right.

00:56:53.460 --> 00:56:55.480
<v Chris Gammell>It's zero reference, not one reference.

00:56:56.020 --> 00:56:58.280
<v Chris Gammell>So, whatever other mistake that I always make.

00:56:59.620 --> 00:57:00.840
<v Piotr Ezdintensky>Yeah, exactly.

00:57:01.100 --> 00:57:13.700
<v Piotr Ezdintensky>Or just recently I was writing some sprite rendering stuff and I was incrementing a pointer to a list in the wrong direction.

00:57:14.000 --> 00:57:14.660
<v Piotr Ezdintensky>It was crashing.

00:57:14.660 --> 00:57:16.420
<v Chris Gammell>Yep, yep.

00:57:16.760 --> 00:57:19.800
<v Piotr Ezdintensky>So, basically if you have an embedded system, what happens?

00:57:19.920 --> 00:57:21.720
<v Piotr Ezdintensky>You blank screen, nothing is happening.

00:57:21.920 --> 00:57:22.060
<v Piotr Ezdintensky>Right.

00:57:22.420 --> 00:57:24.240
<v Piotr Ezdintensky>So, where do you start debugging this?

00:57:24.320 --> 00:57:35.020
<v Piotr Ezdintensky>It's like normally what I would do in the past is start adding printf and connecting a serial interface and seeing when do I see the printf?

00:57:35.020 --> 00:57:42.220
<v Piotr Ezdintensky>And then basically bisect the code half by half by half by half until you find the spot where it is crashing.

00:57:42.480 --> 00:57:43.220
<v Chris Gammell>Yep, yep.

00:57:43.260 --> 00:57:43.660
<v Chris Gammell>That's good.

00:57:43.780 --> 00:57:45.940
<v Piotr Ezdintensky>With the black magic probe, I just plugged it in.

00:57:46.320 --> 00:57:47.660
<v Piotr Ezdintensky>I started the code.

00:57:48.120 --> 00:57:51.040
<v Piotr Ezdintensky>GDB immediately jumped out, said sec fault.

00:57:51.440 --> 00:57:55.400
<v Piotr Ezdintensky>I ran backtrace and it said where it crashed.

00:57:55.740 --> 00:57:56.160
<v Chris Gammell>Really?

00:57:56.160 --> 00:58:03.680
<v Piotr Ezdintensky>Including the parameters to the function that I called and it took me, I don't know, a few minutes to figure out.

00:58:03.840 --> 00:58:04.060
<v Piotr Ezdintensky>Right.

00:58:04.180 --> 00:58:05.780
<v Piotr Ezdintensky>Versus a day and a half, right?

00:58:06.620 --> 00:58:08.080
<v Piotr Ezdintensky>Which is totally possible.

00:58:08.220 --> 00:58:09.580
<v Chris Gammell>Oh, man.

00:58:09.680 --> 00:58:09.840
<v Chris Gammell>Yeah.

00:58:10.000 --> 00:58:11.280
<v Chris Gammell>People that are debugging.

00:58:11.280 --> 00:58:13.480
<v Chris Gammell>Hello, anyone who's listening while debugging.

00:58:13.800 --> 00:58:13.900
<v Chris Gammell>Hello.

00:58:14.680 --> 00:58:15.920
<v Chris Gammell>We feel your pain, man.

00:58:16.060 --> 00:58:16.680
<v Chris Gammell>We feel it.

00:58:17.100 --> 00:58:19.540
<v Chris Gammell>There's a black magic probe with your name on it.

00:58:21.340 --> 00:58:22.420
<v Chris Gammell>Mutually beneficial here.

00:58:22.580 --> 00:58:23.340
<v Chris Gammell>Yeah, that's great.

00:58:23.980 --> 00:58:29.960
<v Chris Gammell>So, why aren't people using these more already?

00:58:30.080 --> 00:58:31.720
<v Chris Gammell>I mean, not the black magic, but like why?

00:58:32.940 --> 00:58:33.740
<v Chris Gammell>Debuggers in general?

00:58:33.860 --> 00:58:34.460
<v Chris Gammell>Yeah, in general.

00:58:34.460 --> 00:58:38.600
<v Chris Gammell>I guess, I mean, is it just because of support or because of tool chains or what?

00:58:38.600 --> 00:58:45.620
<v Piotr Ezdintensky>So, I'm being told, I'm asking that question quite often myself.

00:58:46.100 --> 00:59:00.460
<v Piotr Ezdintensky>And I think a lot of people, so if you came from software development area, you will be looking forward to having those tools because this is normal to have on a normal desktop to be able to debug and step through your code.

00:59:00.460 --> 00:59:01.540
<v Piotr Ezdintensky>It's nothing special.

00:59:01.540 --> 00:59:09.500
<v Piotr Ezdintensky>But in the Arduino world, I think a lot of people are not aware that this exists in software.

00:59:10.540 --> 00:59:18.400
<v Piotr Ezdintensky>And the AVR is, I'm being taught, well, I used AVR in the past and I wish it had proper debugging myself.

00:59:18.660 --> 00:59:23.740
<v Piotr Ezdintensky>But some people are saying, oh, it is so simple that it is pretty easy to debug it without it.

00:59:23.740 --> 00:59:26.300
<v Chris Gammell>Well, that works until it doesn't, right?

00:59:26.700 --> 00:59:35.240
<v Piotr Ezdintensky>Yeah, but I was running into day-long bonanzas of trying to figure out why something is crashing on AVR 2.

00:59:35.540 --> 00:59:35.780
<v Chris Gammell>Yeah.

00:59:36.280 --> 00:59:41.440
<v Piotr Ezdintensky>So, I'm not really buying that argument, but this is the excuse that I hear.

00:59:42.820 --> 00:59:45.260
<v Chris Gammell>Well, I think it's easier to keep doing what you're doing, right?

00:59:45.300 --> 00:59:46.520
<v Chris Gammell>That's probably one reason.

00:59:46.520 --> 00:59:50.600
<v Piotr Ezdintensky>But staying with AVR in general, that's probably what is going on.

00:59:50.760 --> 00:59:55.340
<v Piotr Ezdintensky>I think a lot of people are being introduced to Arduino using the AVR.

00:59:56.220 --> 01:00:01.540
<v Piotr Ezdintensky>And they are just used in evil, you know.

01:00:02.120 --> 01:00:02.260
<v Piotr Ezdintensky>Right.

01:00:03.680 --> 01:00:05.640
<v Chris Gammell>Well, yeah, we kind of talked about that earlier too, right?

01:00:05.640 --> 01:00:09.240
<v Chris Gammell>It's like I need to get to the point where it's the firmware that works, right?

01:00:09.240 --> 01:00:12.200
<v Chris Gammell>And the same thing happens with, you know, some hardware that just works.

01:00:12.680 --> 01:00:12.960
<v Piotr Ezdintensky>Right.

01:00:13.240 --> 01:00:14.560
<v Chris Gammell>Well, it's great until it doesn't, right?

01:00:14.560 --> 01:00:16.540
<v Piotr Ezdintensky>Yeah, no, that's exactly right.

01:00:17.140 --> 01:00:25.240
<v Piotr Ezdintensky>And Arduino does a really good job to onboard people that have no technical background, which is awesome.

01:00:25.420 --> 01:00:25.980
<v Chris Gammell>Yep, I agree.

01:00:26.140 --> 01:00:28.780
<v Piotr Ezdintensky>We need more hardware developers.

01:00:29.080 --> 01:00:30.680
<v Piotr Ezdintensky>I think the more the merrier.

01:00:30.940 --> 01:00:31.500
<v Chris Gammell>Yep, I agree.

01:00:32.060 --> 01:00:32.980
<v Chris Gammell>I'm trying to make more.

01:00:34.200 --> 01:00:36.400
<v Piotr Ezdintensky>Yeah, that's exactly right.

01:00:36.400 --> 01:00:44.960
<v Piotr Ezdintensky>But I wish that world was a little bit more open to providing tools that are actually good.

01:00:45.260 --> 01:00:45.540
<v Chris Gammell>Right.

01:00:46.380 --> 01:00:49.480
<v Piotr Ezdintensky>And so that people are not learning bad habits.

01:00:49.480 --> 01:01:01.620
<v Piotr Ezdintensky>And this is the perfect example is for anyone who grew up somewhere in the 80s or 90s is if you learned basic, you probably acquired some horrible, nasty habits.

01:01:01.620 --> 01:01:02.420
<v Piotr Ezdintensky>Go to 10.

01:01:02.420 --> 01:01:02.620
<v Piotr Ezdintensky>Go to 10.

01:01:02.620 --> 01:01:03.140
<v Piotr Ezdintensky>Go to 10.

01:01:03.140 --> 01:01:03.440
<v Piotr Ezdintensky>Yeah.

01:01:03.820 --> 01:01:04.260
<v Piotr Ezdintensky>Yeah.

01:01:04.380 --> 01:01:11.500
<v Piotr Ezdintensky>And anyone who I know who learned basic and then had to unlearn those would agree with me.

01:01:11.720 --> 01:01:11.860
<v Chris Gammell>Right.

01:01:11.860 --> 01:01:14.160
<v Piotr Ezdintensky>And this is the same thing here.

01:01:14.280 --> 01:01:18.140
<v Piotr Ezdintensky>It's like you have the Arduino and you learn some habits.

01:01:18.280 --> 01:01:20.560
<v Piotr Ezdintensky>It's great because it's easy to start with.

01:01:20.760 --> 01:01:24.960
<v Piotr Ezdintensky>But if you actually then need to fix something, then you have to start digging.

01:01:24.960 --> 01:01:45.240
<v Piotr Ezdintensky>What I like to say about this is a lot of these platforms, and I'm not saying specifically Arduino, I think it is going through the whole embedded system stuff too, is they are trying to gloss over complexity in false indication of simplicity.

01:01:46.360 --> 01:01:49.480
<v Piotr Ezdintensky>So basically trying to make things look easy.

01:01:49.620 --> 01:01:51.000
<v Piotr Ezdintensky>Oh, use our product.

01:01:51.100 --> 01:01:52.400
<v Piotr Ezdintensky>It's so easy to use.

01:01:52.560 --> 01:01:53.520
<v Piotr Ezdintensky>Here, have an example.

01:01:53.520 --> 01:01:54.620
<v Piotr Ezdintensky>You flash it, it works.

01:01:54.960 --> 01:01:55.220
<v Chris Gammell>Right.

01:01:55.220 --> 01:02:05.380
<v Piotr Ezdintensky>And then when you start actually trying to use it and make it into the thing that you envisioned, things become difficult.

01:02:06.280 --> 01:02:12.860
<v Piotr Ezdintensky>So the learning curve, embedded system learning curve is quite steep, in my opinion.

01:02:13.060 --> 01:02:18.540
<v Piotr Ezdintensky>And if you really want to learn how to use this stuff, you should try to understand how it works.

01:02:18.760 --> 01:02:23.800
<v Piotr Ezdintensky>And having all those abstraction layers that are hiding that complexity is making it even harder.

01:02:23.800 --> 01:02:24.400
<v Chris Gammell>Right.

01:02:24.400 --> 01:02:24.480
<v Chris Gammell>Right.

01:02:24.940 --> 01:02:25.060
<v Chris Gammell>Right.

01:02:25.060 --> 01:02:25.860
<v Piotr Ezdintensky>At least to me.

01:02:25.860 --> 01:02:26.860
<v Piotr Ezdintensky>But, yeah.

01:02:27.620 --> 01:02:32.420
<v Chris Gammell>Well, I mean, but at a certain level, you stop as well because, like you said, you prettified some of that code.

01:02:32.640 --> 01:02:36.500
<v Chris Gammell>You make sure that it's not all super rough to do.

01:02:36.500 --> 01:02:44.900
<v Chris Gammell>But it's just a balance of, you know, how much do you abstract away and how much do you, you know, ask the people dive in and kind of understand what's going on underneath the hood, right?

01:02:45.320 --> 01:02:45.620
<v Piotr Ezdintensky>Yeah.

01:02:45.740 --> 01:02:48.220
<v Piotr Ezdintensky>But the example is, for example, the SD libraries.

01:02:48.420 --> 01:02:57.340
<v Piotr Ezdintensky>The SD libraries, the stuff, how the functions are called, or even on the register level stuff, they are called differently than in the data sheet.

01:02:57.340 --> 01:02:59.860
<v Piotr Ezdintensky>And you're like, what are you people doing?

01:03:00.020 --> 01:03:03.720
<v Piotr Ezdintensky>How am I supposed to figure it out when something breaks?

01:03:04.080 --> 01:03:04.200
<v Chris Gammell>Right.

01:03:04.460 --> 01:03:04.680
<v Chris Gammell>Yeah.

01:03:04.680 --> 01:03:11.440
<v Chris Gammell>And that's always the problem, especially when it's like bouncing you between 40 different, you know, reference file or source files and header files and everything.

01:03:11.440 --> 01:03:11.700
<v Chris Gammell>Right.

01:03:11.700 --> 01:03:14.380
<v Chris Gammell>And you're like, where is it defined?

01:03:15.060 --> 01:03:15.240
<v Speaker ?>Yeah.

01:03:15.640 --> 01:03:20.420
<v Piotr Ezdintensky>Or a stack of PDFs that are cross-referencing themselves.

01:03:20.600 --> 01:03:20.680
<v Piotr Ezdintensky>Right.

01:03:20.680 --> 01:03:21.460
<v Piotr Ezdintensky>That happens too.

01:03:21.780 --> 01:03:21.940
<v Chris Gammell>Yeah.

01:03:23.280 --> 01:03:27.540
<v Piotr Ezdintensky>Fortunately, SD's data sheets are quite decent, I would say.

01:03:27.980 --> 01:03:29.080
<v Piotr Ezdintensky>They are not the worst.

01:03:29.500 --> 01:03:29.940
<v Piotr Ezdintensky>Seen worse.

01:03:30.680 --> 01:03:38.380
<v Chris Gammell>I'm sure of all the things that people are going to, you know, leave in the comments section, there will be some very strong opinions about how sufficient the SD parts or the data sheets are.

01:03:38.380 --> 01:03:38.840
<v Chris Gammell>Oh, yeah.

01:03:38.920 --> 01:03:39.440
<v Chris Gammell>No, of course.

01:03:39.440 --> 01:03:43.220
<v Piotr Ezdintensky>People hate the SD parts, people hate other parts too.

01:03:43.440 --> 01:03:43.620
<v Piotr Ezdintensky>Right.

01:03:43.960 --> 01:03:47.580
<v Piotr Ezdintensky>I am biased because I started with the SD parts.

01:03:47.640 --> 01:03:47.900
<v Piotr Ezdintensky>Right.

01:03:47.980 --> 01:03:50.140
<v Piotr Ezdintensky>I am aware of it and I know it.

01:03:50.300 --> 01:03:54.200
<v Piotr Ezdintensky>And I know that, for example, LPC has really wonderful peripherals.

01:03:55.120 --> 01:03:59.840
<v Piotr Ezdintensky>For example, the super flexible serial interface that it has is really awesome.

01:03:59.840 --> 01:04:16.560
<v Piotr Ezdintensky>But there is this activation energy barrier where you start a project and you are weighing your cost of switching to a new part and learning a new system versus the amount of time you want to spend on it.

01:04:16.560 --> 01:04:32.040
<v Piotr Ezdintensky>And I try to be aware of what features the alternatives have in case I have a project where I will realize I have to use that other part because it will save me a ton of time.

01:04:32.400 --> 01:04:32.440
<v Chris Gammell>Yeah.

01:04:32.660 --> 01:04:32.960
<v Chris Gammell>Right.

01:04:32.960 --> 01:04:33.300
<v Chris Gammell>Exactly.

01:04:33.420 --> 01:04:36.600
<v Chris Gammell>And that's when you go learn it, which is always the wrong time to do it.

01:04:36.620 --> 01:04:37.760
<v Chris Gammell>But it's like you're going to do it anyways.

01:04:37.860 --> 01:04:37.980
<v Chris Gammell>Right.

01:04:38.020 --> 01:04:38.180
<v Chris Gammell>Yeah.

01:04:38.180 --> 01:04:41.480
<v Chris Gammell>Same thing with like learning debugging as a standalone skill.

01:04:41.780 --> 01:04:44.140
<v Chris Gammell>It's tough to do that when you should do it.

01:04:44.140 --> 01:04:47.080
<v Chris Gammell>When you should be doing it is before you're actually debugging.

01:04:47.080 --> 01:04:52.540
<v Chris Gammell>Most people learn it, learn it when they're like, oh, crap, I need to learn how to debug this thing right now.

01:04:53.340 --> 01:04:53.480
<v Piotr Ezdintensky>Yeah.

01:04:53.560 --> 01:04:53.680
<v Piotr Ezdintensky>No.

01:04:53.920 --> 01:04:54.300
<v Piotr Ezdintensky>Yeah.

01:04:54.540 --> 01:04:54.980
<v Piotr Ezdintensky>Exactly.

01:04:55.200 --> 01:05:06.060
<v Piotr Ezdintensky>And you end up trying to learn how to use GDB the night before release of the thing you have to deliver or something.

01:05:06.140 --> 01:05:06.720
<v Piotr Ezdintensky>Oh, God.

01:05:07.240 --> 01:05:07.940
<v Piotr Ezdintensky>It's terrible.

01:05:08.680 --> 01:05:08.800
<v Piotr Ezdintensky>Right.

01:05:09.260 --> 01:05:10.260
<v Piotr Ezdintensky>Been there, done that.

01:05:12.360 --> 01:05:13.280
<v Chris Gammell>Oh, man.

01:05:13.320 --> 01:05:13.740
<v Chris Gammell>That's funny.

01:05:14.740 --> 01:05:14.960
<v Chris Gammell>Yeah.

01:05:14.960 --> 01:05:15.040
<v Chris Gammell>Yeah.

01:05:15.520 --> 01:05:18.300
<v Chris Gammell>So I had two questions about this.

01:05:18.480 --> 01:05:23.880
<v Chris Gammell>One is, you're doing all your development with make files and command line and stuff like that?

01:05:24.400 --> 01:05:24.680
<v Chris Gammell>Yeah.

01:05:24.680 --> 01:05:24.900
<v Chris Gammell>Yeah.

01:05:25.160 --> 01:05:25.360
<v Chris Gammell>Okay.

01:05:25.840 --> 01:05:32.680
<v Chris Gammell>So the next question is, how do you usually suggest that people go and start with this stuff?

01:05:33.020 --> 01:05:43.420
<v Chris Gammell>So you were doing a class at DEF CON, but how else should people get to know the Blackmagic probe and actually using this in a real world situation?

01:05:43.420 --> 01:05:47.100
<v Piotr Ezdintensky>That really depends on the person.

01:05:47.100 --> 01:05:50.980
<v Piotr Ezdintensky>I just had an apropos conversation today.

01:05:52.660 --> 01:05:55.380
<v Piotr Ezdintensky>Every person is learning in a different way.

01:05:55.700 --> 01:06:00.740
<v Piotr Ezdintensky>So it really depends on what type of learning one prefers.

01:06:01.120 --> 01:06:07.500
<v Piotr Ezdintensky>There are really good books that can be picked up about GCC, GDB stuff.

01:06:07.500 --> 01:06:10.580
<v Piotr Ezdintensky>So maybe let me rewind a little bit.

01:06:10.760 --> 01:06:22.440
<v Piotr Ezdintensky>So I am of the opinion that if you are actually interested in embedded systems and you want to learn this stuff, try to learn it from bottom up.

01:06:22.440 --> 01:06:26.820
<v Piotr Ezdintensky>So try to understand how the registers work, how this stuff works.

01:06:27.520 --> 01:06:30.680
<v Piotr Ezdintensky>That's a separate thing from learning how to program.

01:06:31.180 --> 01:06:31.820
<v Chris Gammell>Okay.

01:06:31.820 --> 01:06:42.720
<v Piotr Ezdintensky>You might want to learn how to do basic stuff in C or Python or stuff like that first, or even use Arduino to get going in programming.

01:06:43.200 --> 01:06:43.300
<v Piotr Ezdintensky>Right.

01:06:43.380 --> 01:06:53.640
<v Piotr Ezdintensky>But if you want to learn about embedded systems and actually become fast at what you're doing, you want to understand the tools bottom up.

01:06:53.640 --> 01:06:56.280
<v Piotr Ezdintensky>You don't have to get there then later.

01:06:56.860 --> 01:07:05.480
<v Piotr Ezdintensky>But if you know what is going on under the hood, it's much easier to reason about it when it is not doing what you think it should.

01:07:05.800 --> 01:07:10.500
<v Chris Gammell>So do you mean, so what is the depth of understanding under the hood?

01:07:10.640 --> 01:07:17.060
<v Chris Gammell>So is it memory is a physical thing and you're actually flipping transistors, which represents bits, which represents that?

01:07:17.060 --> 01:07:21.000
<v Chris Gammell>Or is it like, I need to understand the data flow all the way through the processor?

01:07:21.460 --> 01:07:23.060
<v Piotr Ezdintensky>Data flow through the processor.

01:07:23.380 --> 01:07:23.720
<v Piotr Ezdintensky>Interesting.

01:07:24.140 --> 01:07:31.580
<v Piotr Ezdintensky>I'm personally interested also in how the bits are being flipped or going even on silicon level.

01:07:31.800 --> 01:07:36.240
<v Piotr Ezdintensky>I think the RISC-V stuff is just, it's super exciting.

01:07:37.180 --> 01:07:38.520
<v Piotr Ezdintensky>The open source, the V5?

01:07:38.920 --> 01:07:39.800
<v Piotr Ezdintensky>The V5, yeah.

01:07:39.960 --> 01:07:40.160
<v Piotr Ezdintensky>Okay.

01:07:41.600 --> 01:07:43.160
<v Piotr Ezdintensky>What is the company called?

01:07:43.260 --> 01:07:43.680
<v Piotr Ezdintensky>Sci-5?

01:07:44.360 --> 01:07:44.600
<v Piotr Ezdintensky>Yeah.

01:07:44.600 --> 01:07:53.840
<v Piotr Ezdintensky>These guys are doing an amazing job of making it, like you can read the HDL code of it and actually dig into that.

01:07:54.160 --> 01:07:56.240
<v Piotr Ezdintensky>But it's a completely separate thing.

01:07:56.360 --> 01:07:58.180
<v Piotr Ezdintensky>Now there's a Saturday night, guys.

01:07:59.240 --> 01:07:59.680
<v Piotr Ezdintensky>Yeah.

01:07:59.680 --> 01:08:04.300
<v Piotr Ezdintensky>This is what you do to go to read before sleep.

01:08:04.500 --> 01:08:04.840
<v Chris Gammell>Oh, yeah.

01:08:04.940 --> 01:08:05.140
<v Chris Gammell>Right.

01:08:05.180 --> 01:08:05.500
<v Chris Gammell>Exactly.

01:08:06.180 --> 01:08:06.360
<v Chris Gammell>Yeah.

01:08:08.160 --> 01:08:14.420
<v Piotr Ezdintensky>Anyways, but for embedded programming, you want to understand how a machine works.

01:08:14.420 --> 01:08:15.160
<v Piotr Ezdintensky>In a sense.

01:08:15.880 --> 01:08:18.560
<v Chris Gammell>And so, when should that happen, though?

01:08:18.660 --> 01:08:25.980
<v Chris Gammell>Like, again, in terms of sequence, you said learn Python first, learn some programming stuff, maybe even dive into the hardware, software barrier.

01:08:26.320 --> 01:08:28.220
<v Chris Gammell>Maybe with Rint, we know if you don't put too much of that.

01:08:28.220 --> 01:08:28.460
<v Piotr Ezdintensky>Yeah.

01:08:28.660 --> 01:08:33.500
<v Piotr Ezdintensky>I don't think these days you really have to learn assembly immediately either.

01:08:34.080 --> 01:08:34.180
<v Piotr Ezdintensky>Okay.

01:08:34.940 --> 01:08:38.180
<v Piotr Ezdintensky>I don't think this is that far that you have to go with it.

01:08:38.180 --> 01:08:42.360
<v Piotr Ezdintensky>But understanding how the mechanics work, how interrupts are being triggered.

01:08:43.080 --> 01:08:43.880
<v Chris Gammell>Oh, that's interesting.

01:08:44.040 --> 01:08:44.160
<v Chris Gammell>Yeah.

01:08:44.680 --> 01:08:45.120
<v Piotr Ezdintensky>How.

01:08:45.540 --> 01:08:46.760
<v Chris Gammell>Because it's actually bouncing out.

01:08:46.900 --> 01:08:47.540
<v Chris Gammell>It's like doing it.

01:08:47.680 --> 01:08:51.740
<v Chris Gammell>So, an interrupt is a physical thing, but then it also moves to a different memory location, all that kind of stuff.

01:08:51.740 --> 01:08:51.980
<v Chris Gammell>Yeah.

01:08:51.980 --> 01:08:55.740
<v Piotr Ezdintensky>Or using a separate set of registers, depending on the architecture you're using.

01:08:55.740 --> 01:08:55.920
<v Piotr Ezdintensky>Sure.

01:08:56.000 --> 01:08:56.160
<v Chris Gammell>Yeah.

01:08:56.840 --> 01:09:01.020
<v Piotr Ezdintensky>Having some understanding of that will save you a lot of headaches later on.

01:09:01.340 --> 01:09:09.620
<v Piotr Ezdintensky>Because if you don't, then you will have to learn it eventually because you will run into those issues.

01:09:10.100 --> 01:09:11.020
<v Chris Gammell>I'm 33.

01:09:11.280 --> 01:09:12.600
<v Chris Gammell>I will not have to.

01:09:13.700 --> 01:09:15.820
<v Chris Gammell>I should, but I don't think I'll have to.

01:09:15.940 --> 01:09:16.040
<v Chris Gammell>Maybe.

01:09:16.040 --> 01:09:19.280
<v Piotr Ezdintensky>It depends on what level of development you are working on, too.

01:09:19.780 --> 01:09:20.300
<v Piotr Ezdintensky>And also.

01:09:20.300 --> 01:09:21.840
<v Chris Gammell>If you want to write anything fast, how about that?

01:09:21.880 --> 01:09:24.940
<v Chris Gammell>If you want to write anything fast or good or reliable, probably, yeah.

01:09:25.720 --> 01:09:25.960
<v Piotr Ezdintensky>Yeah.

01:09:26.140 --> 01:09:33.200
<v Piotr Ezdintensky>So, going from there, so going on that end of things, you want to go from A to B faster.

01:09:34.020 --> 01:09:40.180
<v Piotr Ezdintensky>What I usually do is go on the OneBitC website.

01:09:40.180 --> 01:09:45.660
<v Piotr Ezdintensky>So, let's put it in the framework of this stuff that I'm using.

01:09:45.660 --> 01:09:49.400
<v Piotr Ezdintensky>So, take a OneBitC, go on the OneBitC website.

01:09:49.700 --> 01:09:53.880
<v Piotr Ezdintensky>There is a GitHub repository that you can just clone that contains a ton of examples.

01:09:54.960 --> 01:09:58.220
<v Piotr Ezdintensky>Just take those examples and start modifying them.

01:09:58.660 --> 01:10:05.660
<v Piotr Ezdintensky>That's how I, I think, learned how to program in the first place is using other people's code and modifying it.

01:10:06.360 --> 01:10:08.460
<v Chris Gammell>So, you're saying, like, take a OneBitC, which is the hardware.

01:10:08.960 --> 01:10:09.280
<v Chris Gammell>Mm-hmm.

01:10:09.580 --> 01:10:10.720
<v Chris Gammell>Clone this thing.

01:10:10.840 --> 01:10:11.580
<v Chris Gammell>Get it built up.

01:10:11.740 --> 01:10:13.180
<v Chris Gammell>And then actually plug in.

01:10:13.180 --> 01:10:14.940
<v Chris Gammell>So, like, I'm looking at the repository.

01:10:15.200 --> 01:10:17.140
<v Chris Gammell>It looks like there's a LCD driver, right?

01:10:17.480 --> 01:10:17.640
<v Chris Gammell>Right.

01:10:17.640 --> 01:10:28.280
<v Chris Gammell>So, hook up a driver with the pins where they're supposed to be and then go drive that LCD with this code, you're saying, and make it actually hello world to the display.

01:10:28.280 --> 01:10:47.480
<v Piotr Ezdintensky>So, in the OneBitC-examples repository, if you go in there, there are, like, how to send data over UART, how to use SPI, how to blink an LED, how to read out a button, how to send data over USB.

01:10:47.480 --> 01:10:49.580
<v Piotr Ezdintensky>It's like, for example, USB.

01:10:50.040 --> 01:10:54.100
<v Piotr Ezdintensky>You could go start understanding the whole protocol and the whole stack.

01:10:54.180 --> 01:10:55.640
<v Piotr Ezdintensky>You don't really have to do that.

01:10:55.760 --> 01:10:56.860
<v Chris Gammell>No, no, I'm not going to do that.

01:10:56.860 --> 01:11:01.500
<v Piotr Ezdintensky>That's not what I was trying to say with the bottom-up approach.

01:11:01.760 --> 01:11:01.880
<v Piotr Ezdintensky>Right.

01:11:01.880 --> 01:11:07.020
<v Piotr Ezdintensky>It's more on the level of learn at least the part, how do you toggle a GPIO.

01:11:07.540 --> 01:11:08.080
<v Piotr Ezdintensky>Oh, okay.

01:11:08.180 --> 01:11:13.060
<v Piotr Ezdintensky>Now I understand roughly how this, like, interaction of the gears looks like.

01:11:13.720 --> 01:11:20.120
<v Piotr Ezdintensky>It will be in some similar way also with USB with much more code and much more complicated than this.

01:11:20.340 --> 01:11:20.580
<v Chris Gammell>Right.

01:11:20.580 --> 01:11:21.500
<v Piotr Ezdintensky>So, okay.

01:11:21.740 --> 01:11:28.620
<v Chris Gammell>And, yeah, so looking at your readme on this example thing, too, you're also showing, like, how do you build this thing, right?

01:11:28.620 --> 01:11:33.140
<v Chris Gammell>How do you get all the necessary includes in there, right?

01:11:33.140 --> 01:11:34.320
<v Chris Gammell>So, you've got all that stuff in there.

01:11:34.680 --> 01:11:50.500
<v Chris Gammell>And you're saying that, so this almost reminds me of, like, so to use an analogy, this almost feels like people who are using Arduino, they go and click on the examples tab, and then they go and select some sketch that exists already, and they go change the blink frequency, right?

01:11:50.500 --> 01:11:50.780
<v Chris Gammell>Yeah, of course.

01:11:50.780 --> 01:12:00.460
<v Chris Gammell>In this case, you're doing the same thing, but you're actually just building the project with the make files and all that other stuff, and then, again, blinking the LED at maybe a different frequency.

01:12:00.460 --> 01:12:07.820
<v Piotr Ezdintensky>The biggest difference is that instead of using the Arduino IDE, you use your own text editor that you like or hate.

01:12:08.820 --> 01:12:09.340
<v Chris Gammell>Right.

01:12:09.620 --> 01:12:11.880
<v Piotr Ezdintensky>So, that's the biggest difference there.

01:12:12.120 --> 01:12:15.900
<v Piotr Ezdintensky>It's you, and you go on the command line to run the commands.

01:12:16.220 --> 01:12:16.320
<v Piotr Ezdintensky>Yeah.

01:12:16.320 --> 01:12:29.320
<v Piotr Ezdintensky>There is, I know for a fact that this stuff also works with Eclipse, and the problem is I'm not a Windows user or an Eclipse lover.

01:12:29.700 --> 01:12:31.020
<v Piotr Ezdintensky>A UI user?

01:12:31.420 --> 01:12:35.300
<v Piotr Ezdintensky>So, I'm a little bit dragging my feet on documenting how to do that.

01:12:35.420 --> 01:12:36.480
<v Piotr Ezdintensky>I'm aware of that.

01:12:36.760 --> 01:12:39.540
<v Piotr Ezdintensky>I have been screamed at enough already about this.

01:12:39.540 --> 01:12:40.020
<v Chris Gammell>Okay.

01:12:40.300 --> 01:12:43.420
<v Chris Gammell>So, please don't leave the comments in the comment section on the amp hour.

01:12:43.900 --> 01:12:44.260
<v Chris Gammell>Please.

01:12:44.940 --> 01:12:47.620
<v Chris Gammell>We'll give you an email address that you can, at the end of the show, you can email.

01:12:47.660 --> 01:12:47.660
<v Speaker ?>

01:12:47.680 --> 01:13:02.500
<v Piotr Ezdintensky>So, I'm actually looking forward to someone who really uses that stuff to step up and join the project and maintain that documentation, because I know these things are changing over time.

01:13:02.500 --> 01:13:02.820
<v Chris Gammell>Yeah.

01:13:03.180 --> 01:13:04.120
<v Chris Gammell>So, we were doing that.

01:13:04.240 --> 01:13:10.840
<v Chris Gammell>So, for contextual electronics, we did some Eclipse stuff, and the embedded guys that were working with me did a really good job, I thought.

01:13:10.960 --> 01:13:18.060
<v Chris Gammell>But it was like, even within the amount of time when we started and finished, Eclipse changed enough that the menu options all changed and all that other stuff.

01:13:18.160 --> 01:13:19.500
<v Chris Gammell>And it's so dependent on...

01:13:19.500 --> 01:13:26.020
<v Piotr Ezdintensky>All the screenshots you made for which menu to go to will be outdated within a few months.

01:13:26.020 --> 01:13:26.160
<v Piotr Ezdintensky>Exactly.

01:13:26.400 --> 01:13:31.440
<v Chris Gammell>And it's like, I think building from the command line is its own skill.

01:13:31.620 --> 01:13:33.520
<v Chris Gammell>And yes, it is confusing, I think, at first.

01:13:34.600 --> 01:13:36.640
<v Chris Gammell>But, you know, especially people that aren't...

01:13:36.640 --> 01:13:42.480
<v Chris Gammell>Well, obviously, Dave isn't here, but he's not a big Unix-based building and stuff.

01:13:42.640 --> 01:13:45.280
<v Chris Gammell>Anyone could follow directions, but it's just confusing, right?

01:13:45.300 --> 01:13:45.980
<v Chris Gammell>You see, like, make.

01:13:46.100 --> 01:13:47.560
<v Chris Gammell>What does it even mean, right?

01:13:47.560 --> 01:13:50.720
<v Chris Gammell>It's like, okay, I get it, but it took a while.

01:13:50.940 --> 01:13:51.980
<v Piotr Ezdintensky>No, I understand that.

01:13:52.120 --> 01:13:55.240
<v Piotr Ezdintensky>But that's why I think IDEs have their place, too.

01:13:55.740 --> 01:13:55.940
<v Chris Gammell>Yeah.

01:13:56.020 --> 01:13:56.820
<v Chris Gammell>Right, right, right.

01:13:56.820 --> 01:14:02.480
<v Piotr Ezdintensky>So, that's why we also have preliminary platform I.O. support.

01:14:03.900 --> 01:14:04.560
<v Chris Gammell>Oh, yeah.

01:14:04.580 --> 01:14:06.080
<v Chris Gammell>You were telling me about this at DEF CON, weren't you?

01:14:06.160 --> 01:14:07.620
<v Chris Gammell>I think you were really excited about this.

01:14:07.800 --> 01:14:08.260
<v Chris Gammell>Yeah, yeah.

01:14:08.360 --> 01:14:09.180
<v Chris Gammell>Someone was recently.

01:14:09.380 --> 01:14:09.560
<v Piotr Ezdintensky>Yeah.

01:14:09.560 --> 01:14:16.140
<v Piotr Ezdintensky>So, platform I.O. is also actually a command line tool.

01:14:16.140 --> 01:14:21.980
<v Piotr Ezdintensky>But these guys created a set of plugins for the Atom text editor.

01:14:22.400 --> 01:14:22.900
<v Chris Gammell>Yep.

01:14:22.900 --> 01:14:35.540
<v Piotr Ezdintensky>And we wrote a board support file repository thingy to support OneBitC in platform I.O.

01:14:35.960 --> 01:14:36.340
<v Piotr Ezdintensky>Cool.

01:14:36.340 --> 01:14:44.160
<v Piotr Ezdintensky>So, that makes things a little bit easier because you have all the buttons and the shortcuts to run, make, just like in Eclipse.

01:14:44.160 --> 01:14:44.640
<v Piotr Ezdintensky>Yeah.

01:14:44.780 --> 01:14:54.040
<v Piotr Ezdintensky>And as far as I know, so, just until recently, there was no GDB debugging capability within the platform I.O. thing.

01:14:54.140 --> 01:14:56.500
<v Piotr Ezdintensky>But I think they added it not so long ago.

01:14:56.880 --> 01:14:57.040
<v Piotr Ezdintensky>Okay.

01:14:57.040 --> 01:15:05.100
<v Piotr Ezdintensky>We had, Gareth wrote actually a plugin for Atom to do GDB debugging with monitoring variables.

01:15:05.640 --> 01:15:06.600
<v Piotr Ezdintensky>This is where UI has.

01:15:06.600 --> 01:15:07.260
<v Piotr Ezdintensky>Oh, that's nice actually.

01:15:07.480 --> 01:15:07.600
<v Piotr Ezdintensky>Yeah.

01:15:07.660 --> 01:15:07.880
<v Piotr Ezdintensky>Yeah.

01:15:07.880 --> 01:15:14.560
<v Piotr Ezdintensky>This is where the UI has totally a place is being able to visualize the data.

01:15:14.880 --> 01:15:15.380
<v Chris Gammell>Multiple windows.

01:15:15.380 --> 01:15:16.120
<v Chris Gammell>Yeah, exactly.

01:15:16.260 --> 01:15:22.940
<v Chris Gammell>You're seeing like, oh, like, variable one is set to 13 currently when I do a breakpoint or when I'm stepping through code.

01:15:23.020 --> 01:15:24.480
<v Chris Gammell>You just kind of watch the value change.

01:15:25.020 --> 01:15:25.240
<v Piotr Ezdintensky>Yeah.

01:15:25.520 --> 01:15:25.820
<v Piotr Ezdintensky>Yeah.

01:15:25.940 --> 01:15:29.280
<v Piotr Ezdintensky>And there is a window that has all the watch variables.

01:15:29.500 --> 01:15:32.800
<v Piotr Ezdintensky>So, you run your code and you see the variables changing on the fly.

01:15:33.440 --> 01:15:38.580
<v Piotr Ezdintensky>And then you see all the breakpoints that you have set and so on and so forth.

01:15:38.740 --> 01:15:39.540
<v Piotr Ezdintensky>So, that's great.

01:15:39.540 --> 01:15:46.380
<v Piotr Ezdintensky>There is also some text interfaces for GDB that you can put on top of GDB that are really good, very powerful.

01:15:47.140 --> 01:15:53.060
<v Piotr Ezdintensky>There is also Radara 2 that we are working on getting support into to do live debugging.

01:15:54.240 --> 01:15:59.180
<v Piotr Ezdintensky>That's not fully finished, but we have a quite dedicated guy working on this.

01:15:59.180 --> 01:16:09.640
<v Piotr Ezdintensky>Then, also, Platform.io got support or has plugins for Visual Studio Code now.

01:16:10.560 --> 01:16:10.760
<v Piotr Ezdintensky>Okay.

01:16:10.760 --> 01:16:13.420
<v Piotr Ezdintensky>And yet, don't mistake it for Visual Studio.

01:16:13.620 --> 01:16:14.800
<v Piotr Ezdintensky>These are two different things.

01:16:14.960 --> 01:16:19.120
<v Chris Gammell>Is this like how Windows or, sorry, Microsoft open source some of the stuff?

01:16:19.460 --> 01:16:26.420
<v Piotr Ezdintensky>So, Visual Studio Code is basically a modern age text editor just like Sublime Text is or Atom is.

01:16:26.420 --> 01:16:27.160
<v Chris Gammell>Oh, okay.

01:16:27.260 --> 01:16:32.980
<v Chris Gammell>So, like formatting around, I understand that this is a variable or this is a type or whatever, that kind of thing?

01:16:33.300 --> 01:16:33.600
<v Piotr Ezdintensky>No, no.

01:16:33.880 --> 01:16:38.180
<v Piotr Ezdintensky>A text editor for files, for like programming and writing text files.

01:16:38.380 --> 01:16:38.600
<v Chris Gammell>Right.

01:16:38.640 --> 01:16:46.020
<v Chris Gammell>But when I type import into, if it knows that it's a C file and I type import, it's like it calls that out with a different color or something.

01:16:46.020 --> 01:16:46.120
<v Chris Gammell>Oh, yeah.

01:16:46.240 --> 01:16:46.760
<v Chris Gammell>That's what I mean.

01:16:46.900 --> 01:16:47.580
<v Chris Gammell>Like that kind of stuff.

01:16:48.020 --> 01:16:48.160
<v Piotr Ezdintensky>Yeah.

01:16:48.260 --> 01:16:55.360
<v Piotr Ezdintensky>This is the modern stuff and having plugins and having like a store basically to add plugins into your text editor.

01:16:55.360 --> 01:16:55.880
<v Piotr Ezdintensky>Right, right.

01:16:55.880 --> 01:17:05.400
<v Piotr Ezdintensky>That's, as far, I think this started earlier than that, but something that I used first that had that very strongly integrated was Sublime Text.

01:17:05.780 --> 01:17:05.980
<v Chris Gammell>Yep.

01:17:06.260 --> 01:17:06.340
<v Chris Gammell>Yeah.

01:17:06.800 --> 01:17:08.220
<v Piotr Ezdintensky>I really love Sublime.

01:17:08.320 --> 01:17:09.180
<v Piotr Ezdintensky>I still use it.

01:17:09.380 --> 01:17:10.600
<v Chris Gammell>I'm taking notes on it right now.

01:17:11.120 --> 01:17:13.660
<v Chris Gammell>It always reminds me that I should still buy a license and I should.

01:17:14.560 --> 01:17:15.760
<v Piotr Ezdintensky>I bought a license.

01:17:16.200 --> 01:17:16.700
<v Piotr Ezdintensky>Good, good.

01:17:16.700 --> 01:17:18.920
<v Piotr Ezdintensky>I can pat myself on the shoulder on that one.

01:17:19.700 --> 01:17:20.720
<v Chris Gammell>I don't write that much code.

01:17:20.800 --> 01:17:21.780
<v Chris Gammell>I mostly keep notes in it.

01:17:22.020 --> 01:17:22.800
<v Piotr Ezdintensky>Yeah, no, no.

01:17:23.940 --> 01:17:25.880
<v Piotr Ezdintensky>That's totally fine.

01:17:26.100 --> 01:17:30.360
<v Piotr Ezdintensky>And I think Sublime, this is the problem with Sublime.

01:17:30.360 --> 01:17:39.080
<v Piotr Ezdintensky>Why we focused on Atom was the fact that you need a license and that it has the nag screens and it's not completely open source.

01:17:39.080 --> 01:17:44.360
<v Piotr Ezdintensky>It would be a little bit hypocritical if we said, oh, this is the way to go.

01:17:45.880 --> 01:17:51.900
<v Piotr Ezdintensky>Still, I know that people are using Sublime with the whole setup that OneBitC has.

01:17:51.900 --> 01:17:53.220
<v Piotr Ezdintensky>So this is the nice thing.

01:17:53.360 --> 01:18:01.280
<v Piotr Ezdintensky>At OneBitC, you can program it in so many ways because it is just requiring the low-level command line stuff.

01:18:02.180 --> 01:18:10.000
<v Piotr Ezdintensky>And so you want to use the, what is the Windows Text Editor to program your code?

01:18:10.000 --> 01:18:10.180
<v Piotr Ezdintensky>TextEdit.

01:18:10.600 --> 01:18:11.060
<v Piotr Ezdintensky>TextEdit.

01:18:11.220 --> 01:18:11.580
<v Piotr Ezdintensky>Notepad.

01:18:12.460 --> 01:18:12.940
<v Piotr Ezdintensky>Notepad.

01:18:13.020 --> 01:18:13.820
<v Piotr Ezdintensky>You're welcome to.

01:18:14.140 --> 01:18:18.360
<v Piotr Ezdintensky>And so you can use almost the tools that you want.

01:18:18.360 --> 01:18:25.580
<v Piotr Ezdintensky>And I did hear that the Eclipse stuff, people are having sometimes trouble with it, but we will eventually have that too.

01:18:25.680 --> 01:18:28.800
<v Piotr Ezdintensky>And I know that it works because several people managed to set it up.

01:18:29.120 --> 01:18:29.360
<v Chris Gammell>Okay.

01:18:29.740 --> 01:18:30.020
<v Chris Gammell>Oh, cool.

01:18:30.520 --> 01:18:32.080
<v Chris Gammell>At the end of the day, it's just talking.

01:18:32.260 --> 01:18:35.980
<v Chris Gammell>I mean, it's really just a pretty face on the same thing that's happening behind the scenes, right?

01:18:35.980 --> 01:18:43.760
<v Chris Gammell>Of doing new files, building, you know, calling these different functions or whatever's happening or scripts and then building up the stuff you need.

01:18:44.440 --> 01:18:45.420
<v Chris Gammell>Yeah, that's correct.

01:18:45.560 --> 01:18:45.680
<v Chris Gammell>Yeah.

01:18:45.680 --> 01:18:51.000
<v Chris Gammell>I had a question about the, so the actual physical thing that's happening as well.

01:18:51.500 --> 01:19:01.280
<v Chris Gammell>So when I started up GDB and it's talking to the Blackmagic probe and it's actually, you know, stepping through code, that's all happening through the JTAG interface?

01:19:01.480 --> 01:19:01.820
<v Chris Gammell>That's right?

01:19:02.540 --> 01:19:02.920
<v Piotr Ezdintensky>Yes.

01:19:03.060 --> 01:19:04.000
<v Piotr Ezdintensky>Or SWD.

01:19:04.560 --> 01:19:05.140
<v Chris Gammell>Or SWD.

01:19:05.140 --> 01:19:10.540
<v Chris Gammell>So, but the question I had about it is, so you mentioned like watch variables and if I'm watching 10 different variables.

01:19:10.540 --> 01:19:11.200
<v Chris Gammell>Mm-hmm.

01:19:11.200 --> 01:19:21.320
<v Chris Gammell>And so it's actually going in and probing and saying, so when it's stepping to the next instruction or whatever's happening, right?

01:19:21.480 --> 01:19:23.340
<v Chris Gammell>It's saying I've got these 10 variables.

01:19:23.480 --> 01:19:29.080
<v Chris Gammell>It's actually going, looking those up in memory, pulling those back out and then doing all these other things.

01:19:29.080 --> 01:19:31.180
<v Chris Gammell>But that's all happening over JTAG or SWD?

01:19:31.860 --> 01:19:34.260
<v Piotr Ezdintensky>Yeah, that's all happening over that interface.

01:19:35.080 --> 01:19:41.540
<v Piotr Ezdintensky>So GDB itself actually is issuing a lot of commands with every step that it is.

01:19:41.900 --> 01:19:44.140
<v Piotr Ezdintensky>So, and it is sending it to the remote target.

01:19:44.140 --> 01:19:52.120
<v Piotr Ezdintensky>So the interesting thing here is to understand what the like chain of command here is.

01:19:52.340 --> 01:19:53.100
<v Piotr Ezdintensky>So GDB is...

01:19:53.100 --> 01:19:53.820
<v Piotr Ezdintensky>That's a good way to say it.

01:19:53.860 --> 01:19:54.240
<v Piotr Ezdintensky>I like that.

01:19:54.660 --> 01:19:57.960
<v Piotr Ezdintensky>It is the driving force of the kind of everything.

01:19:57.960 --> 01:19:58.520
<v Piotr Ezdintensky>It's the general.

01:19:58.940 --> 01:19:59.900
<v Piotr Ezdintensky>It's the general, yeah.

01:20:00.080 --> 01:20:04.800
<v Piotr Ezdintensky>Well, depends on if you go to layer eight, the guy between chair and keyboard.

01:20:06.320 --> 01:20:07.120
<v Chris Gammell>Poor lady.

01:20:07.120 --> 01:20:14.120
<v Chris Gammell>No, the pebcacable client that you're talking about there is...

01:20:14.980 --> 01:20:17.680
<v Chris Gammell>I don't know what it would be.

01:20:17.780 --> 01:20:18.980
<v Chris Gammell>The dunce or the joker?

01:20:19.720 --> 01:20:20.180
<v Chris Gammell>Yeah.

01:20:21.780 --> 01:20:22.260
<v Piotr Ezdintensky>Yeah.

01:20:22.460 --> 01:20:26.240
<v Piotr Ezdintensky>So basically GDB is generating commands.

01:20:26.380 --> 01:20:29.320
<v Piotr Ezdintensky>It is sending it over the serial interface to the Blackmagic probe.

01:20:29.620 --> 01:20:35.120
<v Piotr Ezdintensky>And the Blackmagic probe is taking those commands and converting them to JTAG commands.

01:20:35.120 --> 01:20:39.660
<v Piotr Ezdintensky>And this is, again, also a layered onion of stuff.

01:20:39.920 --> 01:20:42.720
<v Piotr Ezdintensky>JTAG is as much of a standard as XML is a standard.

01:20:43.240 --> 01:20:43.340
<v Chris Gammell>Right.

01:20:44.220 --> 01:20:46.020
<v Chris Gammell>Is that saying that it is or it isn't?

01:20:46.240 --> 01:20:48.820
<v Chris Gammell>Because XML, I'm not sure if you're like being disparaging again.

01:20:49.520 --> 01:20:49.900
<v Piotr Ezdintensky>Yeah, no.

01:20:50.460 --> 01:20:52.540
<v Piotr Ezdintensky>In this case, I'm being disparaging, yes.

01:20:52.540 --> 01:20:53.120
<v Piotr Ezdintensky>Okay, yes.

01:20:53.120 --> 01:20:59.340
<v Piotr Ezdintensky>Because JTAG is mostly just a signal layer definition.

01:20:59.980 --> 01:21:00.100
<v Piotr Ezdintensky>Okay.

01:21:00.100 --> 01:21:05.240
<v Piotr Ezdintensky>And then you have the state machine of the, what is it called?

01:21:05.500 --> 01:21:09.680
<v Piotr Ezdintensky>DAP, debug access port.

01:21:09.680 --> 01:21:14.940
<v Piotr Ezdintensky>And there is a state machine where you shift in bits into like a shift register.

01:21:15.060 --> 01:21:20.300
<v Piotr Ezdintensky>Then you issue commands with and run the state machine inside the device.

01:21:20.300 --> 01:21:25.900
<v Piotr Ezdintensky>But the state machine, again, in itself, the amount of commands that the state machine then interprets

01:21:25.900 --> 01:21:29.060
<v Piotr Ezdintensky>is depending on the device that you have connected there.

01:21:29.060 --> 01:21:38.180
<v Piotr Ezdintensky>So the interesting thing is that the reason why Blackmagic Probe mostly supports only ARM Cortex

01:21:38.180 --> 01:21:45.880
<v Piotr Ezdintensky>strips, like Cortex-M mostly, and we have some alpha support for Cortex-A, is that all that

01:21:45.880 --> 01:21:52.840
<v Piotr Ezdintensky>stuff is defined by the ARM debug interface version 5, ADF 5.

01:21:52.840 --> 01:21:53.760
<v Chris Gammell>Okay.

01:21:53.760 --> 01:22:00.620
<v Piotr Ezdintensky>It's a pretty large document that is specifying more layers of the complexity how the JTAG interface

01:22:00.620 --> 01:22:02.660
<v Piotr Ezdintensky>works or the SWD interface works.

01:22:02.660 --> 01:22:09.980
<v Piotr Ezdintensky>Because whatever it is, JTAG or SWD, the commands that are running on top of that are pretty much

01:22:09.980 --> 01:22:10.400
<v Piotr Ezdintensky>the same.

01:22:10.820 --> 01:22:10.940
<v Chris Gammell>Okay.

01:22:11.180 --> 01:22:19.800
<v Chris Gammell>So are you basically, did you have to then go and implement this ADF inside the processor

01:22:19.800 --> 01:22:20.960
<v Chris Gammell>on the Blackmagic Probe?

01:22:20.980 --> 01:22:21.480
<v Chris Gammell>Is that the idea?

01:22:21.920 --> 01:22:22.300
<v Piotr Ezdintensky>Yes.

01:22:22.300 --> 01:22:22.660
<v Piotr Ezdintensky>Yes.

01:22:22.660 --> 01:22:22.840
<v Piotr Ezdintensky>Okay.

01:22:23.100 --> 01:22:30.340
<v Piotr Ezdintensky>So it has to know how to translate the commands from GDB, read memory address so-and-so into

01:22:30.340 --> 01:22:35.620
<v Piotr Ezdintensky>the correct ADF 5 commands to read out from the matrix or from the...

01:22:35.620 --> 01:22:35.840
<v Piotr Ezdintensky>Okay.

01:22:36.140 --> 01:22:39.880
<v Chris Gammell>And so does that mean that the Blackmagic Probe is primarily acting as a translator between

01:22:39.880 --> 01:22:44.040
<v Chris Gammell>GDB and the commands that talk through the JTAG port?

01:22:44.180 --> 01:22:44.340
<v Chris Gammell>Is that...

01:22:44.340 --> 01:22:44.500
<v Chris Gammell>Yeah.

01:22:44.820 --> 01:22:45.220
<v Piotr Ezdintensky>That's kind of...

01:22:45.220 --> 01:22:45.920
<v Piotr Ezdintensky>Exactly right.

01:22:45.920 --> 01:22:52.340
<v Piotr Ezdintensky>So the easy thing to say would be it is a GDB remote protocol to JTAG converter.

01:22:52.740 --> 01:22:53.060
<v Chris Gammell>Okay.

01:22:53.420 --> 01:22:53.660
<v Speaker ?>Yeah.

01:22:54.140 --> 01:22:55.440
<v Chris Gammell>You should have used that as a name.

01:22:55.500 --> 01:22:56.100
<v Chris Gammell>It's catchy, man.

01:22:56.820 --> 01:22:57.420
<v Chris Gammell>Oh, yeah.

01:22:58.280 --> 01:22:59.380
<v Chris Gammell>That really sounds...

01:22:59.380 --> 01:23:01.280
<v Chris Gammell>Or whatever you just said.

01:23:01.780 --> 01:23:02.160
<v Piotr Ezdintensky>Yeah.

01:23:02.200 --> 01:23:06.020
<v Piotr Ezdintensky>It really sounds like a good title for a scientific paper.

01:23:06.140 --> 01:23:06.400
<v Chris Gammell>Yeah.

01:23:06.400 --> 01:23:06.700
<v Chris Gammell>Right.

01:23:07.020 --> 01:23:10.380
<v Chris Gammell>Or you could have just made it an acronym and it would have been like the Fluffenwurr.

01:23:10.380 --> 01:23:11.160
<v Chris Gammell>You know what I mean?

01:23:11.160 --> 01:23:12.520
<v Piotr Ezdintensky>Perfect.

01:23:12.720 --> 01:23:13.220
<v Piotr Ezdintensky>I love that.

01:23:13.220 --> 01:23:13.300
<v Chris Gammell>Yeah.

01:23:13.440 --> 01:23:13.660
<v Chris Gammell>Right.

01:23:13.840 --> 01:23:13.980
<v Chris Gammell>Right.

01:23:14.060 --> 01:23:14.360
<v Chris Gammell>Yes.

01:23:14.360 --> 01:23:14.980
<v Chris Gammell>That would work.

01:23:15.340 --> 01:23:15.480
<v Chris Gammell>Yeah.

01:23:15.740 --> 01:23:16.100
<v Chris Gammell>Okay.

01:23:16.140 --> 01:23:16.620
<v Chris Gammell>That's interesting.

01:23:17.620 --> 01:23:23.760
<v Chris Gammell>But that means that you and Gareth and I forget your other collaborator, Uwe?

01:23:24.400 --> 01:23:24.840
<v Piotr Ezdintensky>Uwe.

01:23:25.260 --> 01:23:25.740
<v Piotr Ezdintensky>Yeah.

01:23:26.300 --> 01:23:29.860
<v Piotr Ezdintensky>Uwe was library staff for the low-level staff.

01:23:30.820 --> 01:23:37.280
<v Piotr Ezdintensky>And Gareth is the genius who came up with the whole translation layer and the whole firmware

01:23:37.280 --> 01:23:38.440
<v Piotr Ezdintensky>for the Blackmagic Probe.

01:23:38.440 --> 01:23:42.640
<v Chris Gammell>So that means you guys have to actually speak both languages, quote unquote languages or command

01:23:42.640 --> 01:23:44.300
<v Chris Gammell>sets, I suppose, is the best way to say it.

01:23:44.840 --> 01:23:49.740
<v Chris Gammell>So like if someone puts a GDB command output in front of you, you kind of know what it's

01:23:49.740 --> 01:23:50.420
<v Chris Gammell>saying to do?

01:23:50.660 --> 01:23:52.120
<v Chris Gammell>Or is it actually readable enough?

01:23:52.680 --> 01:23:54.500
<v Piotr Ezdintensky>It is quite readable.

01:23:54.500 --> 01:24:00.380
<v Piotr Ezdintensky>I personally have to admit that I'm not as fluent in that as Gareth is.

01:24:00.380 --> 01:24:08.200
<v Piotr Ezdintensky>But there is a special command in GDB where you tell it to print exactly what it is sending

01:24:08.200 --> 01:24:09.480
<v Piotr Ezdintensky>over the serial interface.

01:24:10.300 --> 01:24:15.160
<v Piotr Ezdintensky>This is very useful when you're debugging stuff and stuff doesn't do the right thing.

01:24:15.160 --> 01:24:15.840
<v Chris Gammell>Or something?

01:24:16.020 --> 01:24:16.280
<v Piotr Ezdintensky>Yeah.

01:24:16.420 --> 01:24:20.240
<v Piotr Ezdintensky>It's set debug something one.

01:24:20.860 --> 01:24:21.940
<v Piotr Ezdintensky>It's somewhere in the wiki.

01:24:22.120 --> 01:24:23.220
<v Piotr Ezdintensky>I always forget.

01:24:23.800 --> 01:24:27.000
<v Piotr Ezdintensky>But I have it in my config file just commented out when I need it.

01:24:27.000 --> 01:24:29.280
<v Piotr Ezdintensky>That's good.

01:24:29.460 --> 01:24:29.740
<v Piotr Ezdintensky>That's good.

01:24:30.020 --> 01:24:30.080
<v Piotr Ezdintensky>Yeah.

01:24:30.300 --> 01:24:36.000
<v Piotr Ezdintensky>And he's able to pretty quickly get behind what's going on in there.

01:24:36.180 --> 01:24:37.020
<v Piotr Ezdintensky>There is a document.

01:24:37.380 --> 01:24:44.700
<v Piotr Ezdintensky>So GDB itself has an official document that is specifying the remote protocol.

01:24:44.700 --> 01:24:45.420
<v Piotr Ezdintensky>Okay.

01:24:45.420 --> 01:24:53.320
<v Piotr Ezdintensky>The interesting tidbit here is they're defining the server part, meaning the Blackmagic probe,

01:24:53.460 --> 01:24:55.880
<v Piotr Ezdintensky>what it has to implement, but not vice versa.

01:24:56.660 --> 01:24:56.980
<v Chris Gammell>Okay.

01:24:57.280 --> 01:25:02.880
<v Piotr Ezdintensky>So the problem with that is when you have, for example, a tool like Radara2 that is like

01:25:02.880 --> 01:25:05.640
<v Piotr Ezdintensky>a disassembler and you can do...

01:25:05.640 --> 01:25:11.880
<v Piotr Ezdintensky>It's basically IDA, but open source and with Python scripts and whatever.

01:25:12.140 --> 01:25:12.460
<v Piotr Ezdintensky>Got it.

01:25:12.460 --> 01:25:12.800
<v Piotr Ezdintensky>Got it.

01:25:13.000 --> 01:25:18.880
<v Piotr Ezdintensky>Anyway, so they have to implement what GDB sends to the remote target.

01:25:19.160 --> 01:25:25.500
<v Piotr Ezdintensky>And because that site is not properly specified, it is still doing some weird stuff that the

01:25:25.500 --> 01:25:28.520
<v Piotr Ezdintensky>Blackmagic probe is not accepting sometimes.

01:25:28.700 --> 01:25:28.980
<v Chris Gammell>Okay.

01:25:28.980 --> 01:25:35.240
<v Piotr Ezdintensky>So because we implemented the specification of the client, but the specification is a little

01:25:35.240 --> 01:25:42.260
<v Piotr Ezdintensky>bit loose on one end or is implementing things or we are expecting certain things to come from

01:25:42.260 --> 01:25:42.600
<v Piotr Ezdintensky>GDB.

01:25:43.100 --> 01:25:51.640
<v Piotr Ezdintensky>So in most cases it is, oh, you implemented it not the way GDB would do that.

01:25:51.640 --> 01:25:53.140
<v Piotr Ezdintensky>I don't think this is right.

01:25:53.140 --> 01:25:55.020
<v Piotr Ezdintensky>You should fix that in Radara2.

01:25:55.480 --> 01:25:56.140
<v Chris Gammell>Ah, I see.

01:25:56.280 --> 01:25:56.480
<v Chris Gammell>Okay.

01:25:56.920 --> 01:25:58.900
<v Chris Gammell>So like translation errors kind of.

01:25:59.460 --> 01:25:59.660
<v Piotr Ezdintensky>Yeah.

01:25:59.800 --> 01:26:06.060
<v Piotr Ezdintensky>It's like, well, in Radara at the moment, the biggest bug that is stopping the show is that

01:26:06.060 --> 01:26:12.700
<v Piotr Ezdintensky>with every screen refresh, it is sending a ton of read memory commands.

01:26:12.700 --> 01:26:13.220
<v Chris Gammell>Oh.

01:26:13.220 --> 01:26:17.980
<v Piotr Ezdintensky>And when the application is running, you can't read memory.

01:26:18.320 --> 01:26:24.040
<v Piotr Ezdintensky>So it's like, I can't give you that memory and everything just goes nuts.

01:26:25.120 --> 01:26:27.560
<v Piotr Ezdintensky>So yeah, that's a bug we have to sort out.

01:26:27.700 --> 01:26:30.420
<v Piotr Ezdintensky>But anyways, eventually we will get that.

01:26:30.980 --> 01:26:31.240
<v Chris Gammell>Okay.

01:26:31.520 --> 01:26:31.960
<v Chris Gammell>That's good.

01:26:32.400 --> 01:26:33.260
<v Piotr Ezdintensky>Just a side note.

01:26:33.420 --> 01:26:33.560
<v Piotr Ezdintensky>Haha.

01:26:33.560 --> 01:26:34.200
<v Piotr Ezdintensky>Okay.

01:26:36.200 --> 01:26:36.480
<v Chris Gammell>Okay.

01:26:36.700 --> 01:26:37.680
<v Chris Gammell>So yeah.

01:26:37.800 --> 01:26:41.660
<v Chris Gammell>So, so walking down the chain against GDB, talking to Blackmagic, Blackmagic outputs,

01:26:41.740 --> 01:26:47.040
<v Chris Gammell>JTAG commands, JTAG commands are then probing internally to the registers that are on the chip

01:26:47.040 --> 01:26:51.500
<v Chris Gammell>and then pulling those data, the data back out, pushing it back up to GDB and then it shows

01:26:51.500 --> 01:26:51.840
<v Chris Gammell>it to you.

01:26:51.920 --> 01:26:52.460
<v Chris Gammell>That's kind of the idea.

01:26:52.960 --> 01:26:54.660
<v Piotr Ezdintensky>Yeah, that's, that's correct.

01:26:54.660 --> 01:26:57.220
<v Piotr Ezdintensky>And you can do magical things with this.

01:26:57.480 --> 01:27:03.160
<v Piotr Ezdintensky>It's, there is so-called semi-hosting, for example, and this is your application.

01:27:03.560 --> 01:27:09.480
<v Piotr Ezdintensky>Uh, triggering, uh, an exception within the chip, like a hardware exception and then GDB,

01:27:09.480 --> 01:27:15.880
<v Piotr Ezdintensky>uh, catching that and seeing and executing commands on the host computer.

01:27:16.040 --> 01:27:23.940
<v Piotr Ezdintensky>So for example, you can do print devs from the target into GDB by it basically making a

01:27:23.940 --> 01:27:29.920
<v Piotr Ezdintensky>system call into the host GDB or opening a file, reading a file.

01:27:30.260 --> 01:27:31.740
<v Piotr Ezdintensky>You can do these things.

01:27:31.740 --> 01:27:37.420
<v Piotr Ezdintensky>It's very useful and very powerful because then you can, for, for example, you are testing a device

01:27:37.420 --> 01:27:44.680
<v Piotr Ezdintensky>and you need a ton of data within your, your, uh, embedded device and you don't have an SD card,

01:27:44.800 --> 01:27:48.700
<v Piotr Ezdintensky>you don't have an interface, but you have JTAG that you just use to flash the firmware.

01:27:49.260 --> 01:27:49.380
<v Chris Gammell>Right.

01:27:49.500 --> 01:27:53.580
<v Chris Gammell>So say you wanted to like have like a, uh, a small audio file or something.

01:27:53.980 --> 01:27:59.320
<v Piotr Ezdintensky>For example, or you have some, uh, uh, test patterns for the pins that you are using.

01:27:59.320 --> 01:27:59.560
<v Piotr Ezdintensky>Sure.

01:27:59.560 --> 01:28:00.740
<v Chris Gammell>That makes a lot more sense.

01:28:00.740 --> 01:28:00.920
<v Chris Gammell>Yeah.

01:28:02.000 --> 01:28:09.540
<v Piotr Ezdintensky>Then you just, in your firmware and your target firmware, you just run open file name and this

01:28:09.540 --> 01:28:12.980
<v Piotr Ezdintensky>file is on the PC or on the computer where GDB is running.

01:28:13.220 --> 01:28:16.520
<v Piotr Ezdintensky>You open that file, read that data and execute your thing and you're done.

01:28:16.520 --> 01:28:17.120
<v Piotr Ezdintensky>Wow.

01:28:17.120 --> 01:28:23.860
<v Piotr Ezdintensky>So, uh, this is one of the many reasons and also GDB being, being possible to script a lot.

01:28:23.980 --> 01:28:28.480
<v Piotr Ezdintensky>It makes it an amazing tool for those people that are building test checks in factories.

01:28:28.840 --> 01:28:29.140
<v Chris Gammell>Mm-hmm.

01:28:29.580 --> 01:28:29.840
<v Chris Gammell>Yeah.

01:28:30.100 --> 01:28:32.980
<v Piotr Ezdintensky>Uh, so yeah, I've seen that happen quite a lot.

01:28:33.740 --> 01:28:34.580
<v Chris Gammell>That is awesome.

01:28:34.580 --> 01:28:39.700
<v Chris Gammell>Uh, and I think that's another step that people don't think about is that, you know, like that,

01:28:39.800 --> 01:28:46.160
<v Chris Gammell>those kind of like, uh, kind of towards the production side of things, but man, that is,

01:28:46.360 --> 01:28:49.300
<v Chris Gammell>uh, once you don't want to learn that one when it's the night before either.

01:28:49.780 --> 01:28:50.520
<v Piotr Ezdintensky>Yeah, no.

01:28:51.000 --> 01:28:56.300
<v Piotr Ezdintensky>So, um, someone mentioned that and I don't exactly remember who said that.

01:28:56.300 --> 01:29:01.780
<v Piotr Ezdintensky>Basically, if you have a big project, you have to allocate the same amount of time you

01:29:01.780 --> 01:29:07.840
<v Piotr Ezdintensky>spend on developing the hardware on developing the tools that will be used to test the hardware

01:29:07.840 --> 01:29:08.400
<v Piotr Ezdintensky>in production.

01:29:08.860 --> 01:29:08.900
<v Chris Gammell>Yeah.

01:29:09.160 --> 01:29:10.040
<v Chris Gammell>That sounds about right.

01:29:10.400 --> 01:29:12.040
<v Chris Gammell>Unless you don't care if your project works.

01:29:12.880 --> 01:29:13.240
<v Chris Gammell>Yeah.

01:29:13.460 --> 01:29:13.640
<v Chris Gammell>Yeah.

01:29:13.980 --> 01:29:14.500
<v Piotr Ezdintensky>Sure.

01:29:14.960 --> 01:29:21.260
<v Piotr Ezdintensky>You can also just design something, uh, on paper and send this thing to the factory and,

01:29:21.260 --> 01:29:23.360
<v Piotr Ezdintensky>and sell the thing that they sent back.

01:29:23.680 --> 01:29:24.000
<v Chris Gammell>Right.

01:29:24.160 --> 01:29:24.380
<v Chris Gammell>Yeah.

01:29:24.860 --> 01:29:26.120
<v Chris Gammell>Then take your money and run.

01:29:26.920 --> 01:29:27.160
<v Chris Gammell>Yeah.

01:29:27.420 --> 01:29:27.560
<v Chris Gammell>Yeah.

01:29:28.800 --> 01:29:31.820
<v Chris Gammell>Um, so, uh, I wanted to ask.

01:29:31.960 --> 01:29:32.700
<v Chris Gammell>You won't do it very often.

01:29:33.040 --> 01:29:33.340
<v Chris Gammell>Right.

01:29:33.500 --> 01:29:33.740
<v Chris Gammell>Yeah.

01:29:34.600 --> 01:29:40.860
<v Chris Gammell>The, um, when we saw each other at DEF CON, you were, you were wearing a custom badge,

01:29:40.960 --> 01:29:41.680
<v Chris Gammell>one of three.

01:29:42.080 --> 01:29:46.760
<v Chris Gammell>Um, and, uh, why don't you tell me about that real quick and then we probably should wrap up.

01:29:47.040 --> 01:29:47.500
<v Piotr Ezdintensky>Sure.

01:29:47.500 --> 01:29:47.580
<v Piotr Ezdintensky>Sure.

01:29:47.980 --> 01:29:55.520
<v Piotr Ezdintensky>So, um, when I was developing the OneBitC, I, I was thinking about some example projects for

01:29:55.520 --> 01:29:55.700
<v Piotr Ezdintensky>it.

01:29:55.700 --> 01:30:02.420
<v Piotr Ezdintensky>So, uh, one thing that I came up with, with, uh, a friend of mine, Bob Miller was to attach

01:30:02.420 --> 01:30:09.800
<v Piotr Ezdintensky>a display to it because he was developing, uh, like a, uh, very cool synthesizer himself and with display and stuff.

01:30:09.800 --> 01:30:09.840
<v Piotr Ezdintensky>Yeah.

01:30:10.260 --> 01:30:17.420
<v Piotr Ezdintensky>So, uh, we came up with the idea of connecting an LCD to the OneBitC over parallel and using

01:30:17.420 --> 01:30:24.420
<v Piotr Ezdintensky>a DMA to, um, send the data to the display because it has much higher bandwidth than SPI, what usually

01:30:24.420 --> 01:30:25.200
<v Piotr Ezdintensky>people are using.

01:30:25.360 --> 01:30:25.700
<v Chris Gammell>Right.

01:30:25.700 --> 01:30:26.100
<v Chris Gammell>Right.

01:30:26.200 --> 01:30:27.900
<v Piotr Ezdintensky>So this is where it started.

01:30:28.040 --> 01:30:29.840
<v Piotr Ezdintensky>And I was like, well, now we have a display.

01:30:29.980 --> 01:30:31.280
<v Piotr Ezdintensky>What can we do with a display?

01:30:31.500 --> 01:30:40.060
<v Piotr Ezdintensky>And, um, as there's a big movement of, uh, like a retro hardware nostalgia stuff going on

01:30:40.060 --> 01:30:42.000
<v Piotr Ezdintensky>that I also got sucked into.

01:30:42.000 --> 01:30:49.700
<v Piotr Ezdintensky>Um, and, uh, I, as a kid, I had a Game Boy and Game Boy and DMG, the like gray and square one.

01:30:50.020 --> 01:30:52.100
<v Piotr Ezdintensky>So I was like, you know what?

01:30:52.140 --> 01:30:53.380
<v Piotr Ezdintensky>I want to build a Game Boy.

01:30:54.840 --> 01:31:01.500
<v Piotr Ezdintensky>So, uh, I started designing stuff around it, uh, game pad and ideas, how to connect all that

01:31:01.500 --> 01:31:04.960
<v Piotr Ezdintensky>stuff together and basically use a OneBitC in the center of it.

01:31:05.620 --> 01:31:07.140
<v Piotr Ezdintensky>Uh, I wanted to do that.

01:31:07.140 --> 01:31:12.080
<v Piotr Ezdintensky>But I got, uh, to a certain point and then, uh, I had to stop because we were running the

01:31:12.080 --> 01:31:14.060
<v Piotr Ezdintensky>Kickstarter for the OneBitC and Blackmagic Pro.

01:31:14.880 --> 01:31:18.320
<v Piotr Ezdintensky>Uh, so I was very busy with that and fulfillment and all that stuff.

01:31:18.320 --> 01:31:20.060
<v Piotr Ezdintensky>So it was sitting there.

01:31:20.060 --> 01:31:26.820
<v Piotr Ezdintensky>And just after the Kickstarter, I, I was thinking I need, uh, I need to play with something that

01:31:26.820 --> 01:31:33.960
<v Piotr Ezdintensky>I'm just intrinsically motivated to work on and decided to, uh, put an arbitrary deadline

01:31:33.960 --> 01:31:38.480
<v Piotr Ezdintensky>for Defcon that I will make that Game Boy like thing work.

01:31:38.820 --> 01:31:42.600
<v Piotr Ezdintensky>So the OneBitC, OneUp, that's how it is called.

01:31:42.700 --> 01:31:44.780
<v Piotr Ezdintensky>And it can be found on Hackaday.io.

01:31:45.460 --> 01:31:51.420
<v Piotr Ezdintensky>Um, um, I managed to actually get the three prototypes assembled and working for Defcon.

01:31:51.420 --> 01:31:58.220
<v Piotr Ezdintensky>And, uh, um, I think people really liked what they saw.

01:31:58.360 --> 01:31:59.360
<v Piotr Ezdintensky>It is pretty cool.

01:31:59.460 --> 01:32:06.720
<v Piotr Ezdintensky>It can display, uh, video or, uh, generated like animated video with almost 80 frames per

01:32:06.720 --> 01:32:07.060
<v Piotr Ezdintensky>second.

01:32:07.160 --> 01:32:08.340
<v Piotr Ezdintensky>That's what I was getting towards.

01:32:08.520 --> 01:32:08.700
<v Chris Gammell>Is it?

01:32:08.700 --> 01:32:11.100
<v Chris Gammell>And yeah, so you said it's 80 frames per second, which is crazy.

01:32:11.100 --> 01:32:14.400
<v Chris Gammell>And then you also said that that was still only running like some small percentage of

01:32:14.400 --> 01:32:15.120
<v Chris Gammell>the processor, right?

01:32:15.340 --> 01:32:15.520
<v Piotr Ezdintensky>Yeah.

01:32:15.520 --> 01:32:22.160
<v Piotr Ezdintensky>For, so the pixel generation takes about it with the, what you saw was, uh, probably the,

01:32:22.160 --> 01:32:28.080
<v Piotr Ezdintensky>uh, tile, uh, based, uh, like, yeah, it looked like a Mandelbrot sort of, but like a modified

01:32:28.080 --> 01:32:33.160
<v Piotr Ezdintensky>that the Mandelbrot thing, uh, is, uh, actually called munching square.

01:32:33.340 --> 01:32:33.860
<v Chris Gammell>Okay.

01:32:34.080 --> 01:32:40.940
<v Piotr Ezdintensky>Uh, so Bob Miller, who, uh, was writing a lot of the code for the display, he, uh, came up

01:32:40.940 --> 01:32:41.240
<v Piotr Ezdintensky>with that.

01:32:41.240 --> 01:32:44.760
<v Piotr Ezdintensky>I had no idea what that was until I Googled for it.

01:32:44.840 --> 01:32:48.400
<v Piotr Ezdintensky>And it turns out this is one of the earliest graphics demos.

01:32:49.320 --> 01:32:51.140
<v Piotr Ezdintensky>It was found.

01:32:51.320 --> 01:32:52.680
<v Piotr Ezdintensky>It was found art.

01:32:53.040 --> 01:32:53.780
<v Piotr Ezdintensky>Oh, cool.

01:32:53.880 --> 01:32:59.200
<v Piotr Ezdintensky>Basically it's an XOR function on the pixels and it is completely surface filling and it

01:32:59.200 --> 01:33:01.280
<v Piotr Ezdintensky>was found on the PDP one.

01:33:02.060 --> 01:33:02.600
<v Chris Gammell>Oh, that's right.

01:33:02.660 --> 01:33:02.780
<v Chris Gammell>Yeah.

01:33:02.800 --> 01:33:04.060
<v Chris Gammell>You told me that when we were hanging out.

01:33:04.220 --> 01:33:04.320
<v Chris Gammell>Yeah.

01:33:04.540 --> 01:33:05.260
<v Chris Gammell>That's crazy.

01:33:05.260 --> 01:33:12.880
<v Piotr Ezdintensky>And all we did is basically with each iteration of that, uh, that weird psychedelic pattern

01:33:12.880 --> 01:33:17.100
<v Piotr Ezdintensky>that it is generating is rotate the pattern, the palette of colors.

01:33:17.300 --> 01:33:20.060
<v Piotr Ezdintensky>So it is fading and like moving and changing.

01:33:20.240 --> 01:33:27.560
<v Piotr Ezdintensky>And this, uh, takes about, um, like one third of the frame time to render.

01:33:27.560 --> 01:33:35.740
<v Piotr Ezdintensky>So you basically spent one third of the times the CPU spends on creating the pixels and all

01:33:35.740 --> 01:33:37.900
<v Piotr Ezdintensky>the rest of the time, it's not doing anything.

01:33:37.900 --> 01:33:38.960
<v Piotr Ezdintensky>It's in the background.

01:33:39.100 --> 01:33:43.020
<v Piotr Ezdintensky>The DMA interface is just blasting the bits out to the display.

01:33:43.380 --> 01:33:43.520
<v Chris Gammell>Yep.

01:33:43.700 --> 01:33:43.880
<v Chris Gammell>Yep.

01:33:44.380 --> 01:33:44.600
<v Chris Gammell>Right.

01:33:44.660 --> 01:33:49.200
<v Chris Gammell>And that's why the parallel interface, the DMA going through the parallel is, is powerful

01:33:49.200 --> 01:33:51.540
<v Chris Gammell>because it just goes, here's all your bits at once.

01:33:51.780 --> 01:33:52.120
<v Chris Gammell>Yeah.

01:33:52.120 --> 01:33:55.520
<v Piotr Ezdintensky>I seriously was not expecting that it will be that fast.

01:33:55.720 --> 01:33:57.980
<v Piotr Ezdintensky>Um, we were very concerned about this.

01:33:58.060 --> 01:34:01.760
<v Piotr Ezdintensky>Well, concerned in the sense, oh, we will never reach the 80 frames per second.

01:34:01.960 --> 01:34:08.040
<v Piotr Ezdintensky>So the interesting thing is all the ILI based displays internally, they have a clock that

01:34:08.040 --> 01:34:10.420
<v Piotr Ezdintensky>is running the display and refreshing the screen.

01:34:10.680 --> 01:34:15.500
<v Piotr Ezdintensky>And it runs roughly, uh, roughly around 80 frames per second.

01:34:15.500 --> 01:34:21.640
<v Piotr Ezdintensky>So what we wanted to get is actually Vsync because so that it doesn't have tearing when

01:34:21.640 --> 01:34:22.140
<v Piotr Ezdintensky>you animate.

01:34:22.580 --> 01:34:22.640
<v Piotr Ezdintensky>Yep.

01:34:22.900 --> 01:34:27.400
<v Piotr Ezdintensky>Um, and the problem was, well, we will never be able to get the pixels fast enough to the

01:34:27.400 --> 01:34:27.740
<v Piotr Ezdintensky>display.

01:34:27.860 --> 01:34:32.580
<v Piotr Ezdintensky>So let's not bother, but now we will be able to do it, which is pretty awesome.

01:34:32.580 --> 01:34:36.640
<v Chris Gammell>Vsync is you dump all the pixels and then the sync signal actually just turns them on to

01:34:36.640 --> 01:34:37.040
<v Chris Gammell>switch over.

01:34:37.120 --> 01:34:37.440
<v Chris Gammell>Is that the idea?

01:34:37.480 --> 01:34:38.000
<v Piotr Ezdintensky>No, no, no.

01:34:38.080 --> 01:34:43.000
<v Piotr Ezdintensky>It's, uh, it's actually, uh, we, we, there is a line coming from the display that is saying

01:34:43.000 --> 01:34:48.160
<v Piotr Ezdintensky>when the virtual beam is racing back to the top of the display.

01:34:48.360 --> 01:34:48.620
<v Chris Gammell>Okay.

01:34:48.760 --> 01:34:48.980
<v Chris Gammell>Okay.

01:34:48.980 --> 01:34:56.600
<v Piotr Ezdintensky>Uh, and, uh, when we read this out, we can, uh, synchronize the dump of data to the display

01:34:56.600 --> 01:34:59.760
<v Piotr Ezdintensky>with the refresh rate of the display itself.

01:34:59.980 --> 01:35:00.760
<v Chris Gammell>Oh, I see.

01:35:00.780 --> 01:35:01.020
<v Chris Gammell>I see.

01:35:01.020 --> 01:35:03.020
<v Chris Gammell>So you, you kind of dump it in the interim.

01:35:03.140 --> 01:35:03.800
<v Chris Gammell>Is that kind of the idea?

01:35:03.800 --> 01:35:04.000
<v Chris Gammell>Yes.

01:35:04.000 --> 01:35:07.000
<v Chris Gammell>Like as it's, it's like the type site type typewriter reset, right?

01:35:07.060 --> 01:35:10.080
<v Chris Gammell>When you push the, boy, there's an old, there's an old reference.

01:35:10.300 --> 01:35:10.600
<v Chris Gammell>Yeah.

01:35:10.600 --> 01:35:12.380
<v Chris Gammell>You see kids what a typewriter is.

01:35:12.380 --> 01:35:13.380
<v Chris Gammell>Yeah.

01:35:13.380 --> 01:35:17.540
<v Piotr Ezdintensky>The other term that, uh, people are using is beam racing.

01:35:18.080 --> 01:35:18.520
<v Piotr Ezdintensky>Right.

01:35:18.560 --> 01:35:19.520
<v Chris Gammell>That's from CRTs, right?

01:35:19.900 --> 01:35:20.240
<v Chris Gammell>Yes.

01:35:20.440 --> 01:35:20.720
<v Chris Gammell>Yes.

01:35:20.720 --> 01:35:26.740
<v Piotr Ezdintensky>And in a sense, we have to do that here too, because, uh, the, um, even though the STM32

01:35:26.740 --> 01:35:33.200
<v Piotr Ezdintensky>on the one bits, he has a lot of Ram, it's like 192 kilobytes of Ram, but it doesn't, still

01:35:33.200 --> 01:35:35.720
<v Piotr Ezdintensky>doesn't have enough Ram to have a full frame buffer in there.

01:35:35.720 --> 01:35:36.760
<v Chris Gammell>Ah, got it.

01:35:37.160 --> 01:35:44.780
<v Piotr Ezdintensky>So what we do is, uh, we use some of the memory, uh, that is accessible by the DMA, uh, to,

01:35:44.780 --> 01:35:48.460
<v Piotr Ezdintensky>uh, allocate blocks of pixels basically.

01:35:48.780 --> 01:35:55.820
<v Piotr Ezdintensky>And we fill those pixels with data, give it to the DMA and take another small chunk of

01:35:55.820 --> 01:35:57.620
<v Piotr Ezdintensky>memory, fill that with data.

01:35:57.760 --> 01:35:58.520
<v Chris Gammell>It's a bucket brigade.

01:35:59.060 --> 01:36:00.060
<v Piotr Ezdintensky>Yes, exactly.

01:36:00.300 --> 01:36:05.260
<v Piotr Ezdintensky>And while the one is being sent to the display, we are rendering the next one and so on and

01:36:05.260 --> 01:36:05.640
<v Piotr Ezdintensky>so forth.

01:36:05.720 --> 01:36:05.880
<v Piotr Ezdintensky>Yeah.

01:36:06.060 --> 01:36:12.520
<v Piotr Ezdintensky>So, uh, this is, this is pretty cool in the sense that, uh, well, we could also go just

01:36:12.520 --> 01:36:14.620
<v Piotr Ezdintensky>refresh sections of the screen and so on and so forth.

01:36:14.740 --> 01:36:15.000
<v Chris Gammell>But sure.

01:36:15.200 --> 01:36:15.320
<v Chris Gammell>Sure.

01:36:15.820 --> 01:36:18.420
<v Piotr Ezdintensky>Um, yeah, where I was getting with it.

01:36:18.680 --> 01:36:27.180
<v Piotr Ezdintensky>Um, I somehow lost the train of thought, but, um, well, yeah, so you, the, we were mostly

01:36:27.180 --> 01:36:28.300
<v Chris Gammell>talking about the performance of it.

01:36:28.440 --> 01:36:28.700
<v Chris Gammell>Oh yeah.

01:36:28.700 --> 01:36:28.920
<v Chris Gammell>Yeah.

01:36:28.920 --> 01:36:29.100
<v Chris Gammell>Yeah.

01:36:29.100 --> 01:36:29.160
<v Chris Gammell>Yeah.

01:36:29.160 --> 01:36:33.400
<v Piotr Ezdintensky>So, so, so, uh, it is basically beam racing with bigger chunks of memory.

01:36:33.500 --> 01:36:34.520
<v Piotr Ezdintensky>That's what I wanted to get.

01:36:34.600 --> 01:36:34.940
<v Piotr Ezdintensky>Got it.

01:36:35.060 --> 01:36:35.320
<v Chris Gammell>Okay.

01:36:35.320 --> 01:36:35.400
<v Chris Gammell>Yeah.

01:36:35.560 --> 01:36:35.880
<v Chris Gammell>All right.

01:36:35.880 --> 01:36:36.320
<v Chris Gammell>That's cool.

01:36:36.760 --> 01:36:37.400
<v Chris Gammell>That's really cool.

01:36:37.460 --> 01:36:40.560
<v Chris Gammell>And so what, where else are you seeing people use the one bit C like what, what is, what's

01:36:40.560 --> 01:36:45.940
<v Chris Gammell>a good, I mean, it seems kind of like a teensy sort of, I mean like maybe similar.

01:36:45.940 --> 01:36:51.280
<v Piotr Ezdintensky>Uh, you know, well, uh, uh, I know Paul who designed the teensy.

01:36:51.400 --> 01:36:53.540
<v Piotr Ezdintensky>I think the teensy is an awesome device.

01:36:53.540 --> 01:36:54.960
<v Piotr Ezdintensky>I really like it.

01:36:54.960 --> 01:37:01.200
<v Piotr Ezdintensky>Uh, and yes, uh, the one bit C is inspired.

01:37:01.200 --> 01:37:03.540
<v Piotr Ezdintensky>It's definitely inspired by the teensy.

01:37:03.540 --> 01:37:06.440
<v Piotr Ezdintensky>Uh, I really like the form factor.

01:37:06.440 --> 01:37:10.320
<v Chris Gammell>So, uh, and the teensy uses a free scale parts as well.

01:37:10.320 --> 01:37:10.540
<v Chris Gammell>Right.

01:37:10.540 --> 01:37:11.980
<v Chris Gammell>So it's using free scale.

01:37:11.980 --> 01:37:12.700
<v Piotr Ezdintensky>Yeah.

01:37:12.700 --> 01:37:19.180
<v Piotr Ezdintensky>Different family or different manufacturer, but also cortex M three's and fours, uh, or zeros,

01:37:19.320 --> 01:37:20.700
<v Piotr Ezdintensky>depending on which one you get.

01:37:21.060 --> 01:37:23.880
<v Piotr Ezdintensky>Uh, so it, it is an awesome device.

01:37:23.880 --> 01:37:26.480
<v Piotr Ezdintensky>The problem is it doesn't have the JTAC interface exposed.

01:37:26.480 --> 01:37:27.180
<v Piotr Ezdintensky>Got it.

01:37:27.300 --> 01:37:27.640
<v Piotr Ezdintensky>Got it.

01:37:27.640 --> 01:37:33.660
<v Piotr Ezdintensky>I would probably not have made the one bit C if the teensy had the JTAC interface exposed.

01:37:34.300 --> 01:37:34.740
<v Chris Gammell>Interesting.

01:37:34.920 --> 01:37:35.120
<v Chris Gammell>Okay.

01:37:35.440 --> 01:37:41.300
<v Chris Gammell>And so, uh, if, if, so, uh, black magic probe could work on a teensy, but it just doesn't

01:37:41.300 --> 01:37:42.240
<v Chris Gammell>have that interface at all.

01:37:42.240 --> 01:37:42.480
<v Chris Gammell>Yeah.

01:37:42.640 --> 01:37:46.460
<v Piotr Ezdintensky>So, so this is the interesting design decision that Paul made.

01:37:46.680 --> 01:37:53.400
<v Piotr Ezdintensky>He, where the SWD interfaces or the JTAC debugger is, he put his own chip in there and

01:37:53.400 --> 01:37:54.920
<v Piotr Ezdintensky>it is hardwired in there.

01:37:54.920 --> 01:37:56.600
<v Chris Gammell>So, oh, it's the bootloader chip, right?

01:37:56.720 --> 01:37:57.760
<v Piotr Ezdintensky>That's the bootloader chip.

01:37:57.960 --> 01:37:58.620
<v Piotr Ezdintensky>Right, right, right, right.

01:37:59.160 --> 01:38:04.760
<v Piotr Ezdintensky>So there is a tiny chip that is using the JTAC interface to, uh, load a little bit snippet

01:38:04.760 --> 01:38:07.920
<v Piotr Ezdintensky>of Ram executed code into the chip.

01:38:08.060 --> 01:38:14.480
<v Piotr Ezdintensky>This is what makes it, uh, work as well as it does because it doesn't occupy any memory

01:38:14.480 --> 01:38:19.720
<v Piotr Ezdintensky>on the target chip compared to some other arm based, uh, Arduino compatible stuff.

01:38:19.720 --> 01:38:21.860
<v Chris Gammell>And then it's not like, it's not, uh, segmenting it all out.

01:38:21.940 --> 01:38:24.080
<v Chris Gammell>So it's not sharing even the memory space.

01:38:24.080 --> 01:38:26.260
<v Chris Gammell>There's no way to like overwrite one or the other, that kind of thing.

01:38:26.580 --> 01:38:26.800
<v Chris Gammell>No.

01:38:26.860 --> 01:38:27.180
<v Piotr Ezdintensky>Yeah.

01:38:27.440 --> 01:38:28.420
<v Piotr Ezdintensky>And it's genius.

01:38:28.540 --> 01:38:30.260
<v Piotr Ezdintensky>I think it is an awesome solution.

01:38:30.680 --> 01:38:35.700
<v Piotr Ezdintensky>The problem is that, uh, the older teensies didn't have any access to those pins.

01:38:35.780 --> 01:38:38.000
<v Piotr Ezdintensky>The newer stuff has the pads there.

01:38:38.000 --> 01:38:46.000
<v Piotr Ezdintensky>So you can try to get to the JTAC interface by, you can disable the bootloader chip using

01:38:46.000 --> 01:38:49.740
<v Piotr Ezdintensky>like some reset line and then you can solder some wires to get to it.

01:38:49.820 --> 01:38:55.820
<v Piotr Ezdintensky>But, uh, I, it's, it's great to have that now, but I wanted something that is really easy

01:38:55.820 --> 01:38:57.240
<v Piotr Ezdintensky>to use with the black magic probe.

01:38:57.340 --> 01:38:58.020
<v Piotr Ezdintensky>I wanted something.

01:38:58.140 --> 01:38:59.780
<v Chris Gammell>It's like a target platform almost, you know?

01:38:59.780 --> 01:39:00.000
<v Piotr Ezdintensky>Yeah.

01:39:00.080 --> 01:39:05.960
<v Piotr Ezdintensky>So the idea was I needed something to, uh, be able to tell people, look, you want to

01:39:05.960 --> 01:39:08.340
<v Piotr Ezdintensky>play with the black magic probe and try it out.

01:39:08.340 --> 01:39:15.000
<v Piotr Ezdintensky>So either you get the discovery board or you get the one bit C and the black magic probe

01:39:15.000 --> 01:39:15.980
<v Piotr Ezdintensky>and you're good to go.

01:39:15.980 --> 01:39:20.720
<v Piotr Ezdintensky>And I will continue adding more documentation and stuff like that.

01:39:21.080 --> 01:39:22.380
<v Piotr Ezdintensky>So that's where it started.

01:39:22.600 --> 01:39:27.140
<v Piotr Ezdintensky>And this is where it is moving and, uh, doing other stuff where it is useful.

01:39:27.660 --> 01:39:36.660
<v Piotr Ezdintensky>Uh, I think there's a lot of, um, uh, opportunity for, um, uh, audio related stuff with it because

01:39:36.660 --> 01:39:39.400
<v Piotr Ezdintensky>it has two built-in DAC outputs.

01:39:39.620 --> 01:39:40.220
<v Chris Gammell>Oh, nice.

01:39:40.320 --> 01:39:45.960
<v Piotr Ezdintensky>Um, then there is, uh, an interesting stuff one could do with USB because it's a

01:39:45.960 --> 01:39:47.600
<v Piotr Ezdintensky>it has two USB interfaces.

01:39:48.300 --> 01:39:50.920
<v Chris Gammell>Oh, so like, uh, doing like a pass through or something like that.

01:39:51.320 --> 01:39:51.760
<v Piotr Ezdintensky>Yeah.

01:39:52.060 --> 01:39:58.060
<v Piotr Ezdintensky>And, uh, and so the secondary USB interface is a high speed capable, but it needs an

01:39:58.060 --> 01:39:59.120
<v Piotr Ezdintensky>external file.

01:39:59.120 --> 01:40:06.000
<v Piotr Ezdintensky>So that's, that's the two, two add on boards that I really looking forward to get, uh, put

01:40:06.000 --> 01:40:11.940
<v Piotr Ezdintensky>together is one is a SD card because this, this part is easy to hook into it.

01:40:12.120 --> 01:40:12.640
<v Chris Gammell>And yeah.

01:40:12.640 --> 01:40:12.740
<v Piotr Ezdintensky>Yeah.

01:40:12.820 --> 01:40:17.520
<v Piotr Ezdintensky>And also the, uh, one bitsy has all the pins for the full SD IO interface.

01:40:17.520 --> 01:40:23.880
<v Piotr Ezdintensky>So high speed, I, uh, um, um, SPI, uh, not SPI SD card interface.

01:40:24.120 --> 01:40:24.520
<v Piotr Ezdintensky>Okay.

01:40:24.520 --> 01:40:30.720
<v Piotr Ezdintensky>Not this SPI one where it's a little bit slower, but like additional pins, more data lines.

01:40:30.880 --> 01:40:34.500
<v Chris Gammell>And so is there like a, is there like a hardware driver inside the chip that actually handles

01:40:34.500 --> 01:40:35.000
<v Chris Gammell>that stuff?

01:40:35.380 --> 01:40:35.580
<v Piotr Ezdintensky>Yeah.

01:40:35.580 --> 01:40:37.120
<v Piotr Ezdintensky>It has the peripheral built in.

01:40:37.200 --> 01:40:37.520
<v Chris Gammell>Got it.

01:40:37.820 --> 01:40:38.300
<v Chris Gammell>That's yeah.

01:40:38.300 --> 01:40:38.880
<v Chris Gammell>That's nice too.

01:40:38.880 --> 01:40:41.400
<v Chris Gammell>Cause then the, it's faster, but the function is probably simpler too.

01:40:41.400 --> 01:40:44.780
<v Chris Gammell>And well, maybe not simpler, but it's designed for that one thing.

01:40:44.940 --> 01:40:45.040
<v Chris Gammell>Right.

01:40:45.140 --> 01:40:45.420
<v Piotr Ezdintensky>Yeah.

01:40:45.520 --> 01:40:49.920
<v Piotr Ezdintensky>And the next thing is, I think the, because the one bitsy is completely open hardware,

01:40:50.040 --> 01:40:52.860
<v Piotr Ezdintensky>the design files in key cut are in the repository.

01:40:52.860 --> 01:40:58.140
<v Piotr Ezdintensky>So if you prototype something with the one bitsy, uh, at the end, you can just copy and paste

01:40:58.140 --> 01:41:02.340
<v Piotr Ezdintensky>the design into your thing that you're making and just use it.

01:41:02.340 --> 01:41:02.820
<v Piotr Ezdintensky>Yep.

01:41:02.920 --> 01:41:07.740
<v Piotr Ezdintensky>So, uh, I also have the key cut, uh, footprints for the teens, uh, one bitsy.

01:41:08.100 --> 01:41:14.420
<v Piotr Ezdintensky>Uh, so you can just, uh, put the footprint in your design too, and use the, um, uh, one

01:41:14.420 --> 01:41:16.600
<v Piotr Ezdintensky>bitsy in, in your, uh, project.

01:41:16.600 --> 01:41:19.740
<v Piotr Ezdintensky>So I'm trying to make it as accessible as possible.

01:41:19.980 --> 01:41:26.420
<v Piotr Ezdintensky>And by completely making it open hardware, I think it is, uh, a nice way to play with a

01:41:26.420 --> 01:41:29.320
<v Piotr Ezdintensky>smaller board because the discovery boards are usually very large.

01:41:29.500 --> 01:41:30.140
<v Chris Gammell>They are.

01:41:30.240 --> 01:41:30.640
<v Chris Gammell>Yeah, you're right.

01:41:30.700 --> 01:41:30.940
<v Chris Gammell>You're right.

01:41:30.940 --> 01:41:34.360
<v Chris Gammell>And yeah, and when you're like, you wouldn't try and like shoe, I mean, yes, you have access

01:41:34.360 --> 01:41:38.020
<v Chris Gammell>to pins whenever, but you wouldn't want to shoot, try and shoehorn that into a project

01:41:38.020 --> 01:41:40.220
<v Chris Gammell>unless you have a lot of, a lot of space on board.

01:41:40.260 --> 01:41:41.820
<v Chris Gammell>Like you wouldn't put it in a drone, for example.

01:41:42.380 --> 01:41:42.600
<v Chris Gammell>Yeah.

01:41:42.820 --> 01:41:43.180
<v Chris Gammell>Yeah.

01:41:43.400 --> 01:41:43.600
<v Piotr Ezdintensky>Yeah.

01:41:43.940 --> 01:41:46.600
<v Piotr Ezdintensky>So yeah, you, you, it has its place.

01:41:46.600 --> 01:41:51.220
<v Piotr Ezdintensky>I think it's, uh, also it's an STM 32 instead of some other stuff.

01:41:51.220 --> 01:41:59.420
<v Piotr Ezdintensky>So if you want to play with an STM 32 versus, uh, other fruit, I think is selling, uh, the, um,

01:41:59.420 --> 01:42:00.420
<v Piotr Ezdintensky>some chips.

01:42:00.420 --> 01:42:02.600
<v Piotr Ezdintensky>So if you like, uh, the 21 Ds.

01:42:02.600 --> 01:42:02.780
<v Chris Gammell>Yep.

01:42:02.840 --> 01:42:02.960
<v Chris Gammell>Yep.

01:42:02.960 --> 01:42:03.200
<v Chris Gammell>Yeah.

01:42:03.200 --> 01:42:07.600
<v Piotr Ezdintensky>You could, uh, you could get it either from other fruit or from, uh, spark fun.

01:42:07.640 --> 01:42:08.760
<v Piotr Ezdintensky>I think they're selling those.

01:42:08.760 --> 01:42:09.900
<v Piotr Ezdintensky>So, yeah.

01:42:10.500 --> 01:42:17.880
<v Chris Gammell>So, and, and just to clarify, so you said the, the teen C, the, the Adafruit, uh, SAM 21 Ds,

01:42:18.020 --> 01:42:22.020
<v Chris Gammell>the, all this stuff, it just has to be Cortex M three or four.

01:42:22.260 --> 01:42:22.500
<v Chris Gammell>Right.

01:42:22.500 --> 01:42:28.140
<v Piotr Ezdintensky>There, there, there are some specific ones that we don't have the ID in, uh, in the firmware

01:42:28.140 --> 01:42:31.360
<v Piotr Ezdintensky>of the black magic probe, but that's an easy ad.

01:42:31.680 --> 01:42:31.940
<v Chris Gammell>Okay.

01:42:31.940 --> 01:42:38.440
<v Piotr Ezdintensky>Uh, we are regularly getting new people come in and it's like, oh, I don't, it black magic

01:42:38.440 --> 01:42:41.060
<v Piotr Ezdintensky>probe doesn't seem to recognize my chip.

01:42:41.060 --> 01:42:45.060
<v Piotr Ezdintensky>And, uh, it, uh, it takes, doesn't take very long time.

01:42:45.060 --> 01:42:51.540
<v Piotr Ezdintensky>The easiest, if it is something more, very, more different than, uh, our rule is basically,

01:42:51.540 --> 01:42:59.080
<v Piotr Ezdintensky>uh, if you want it added, then, uh, send a dis, uh, like evaluation board of it to Gareth

01:42:59.080 --> 01:43:01.600
<v Piotr Ezdintensky>and me, and we will probably add it.

01:43:01.900 --> 01:43:02.420
<v Chris Gammell>Awesome.

01:43:02.820 --> 01:43:08.880
<v Piotr Ezdintensky>And if you are, uh, if you have a real time constraint and stress, then you can also pay

01:43:08.880 --> 01:43:09.920
<v Piotr Ezdintensky>us to make it even faster.

01:43:12.140 --> 01:43:13.980
<v Chris Gammell>What, what a convenient offering.

01:43:13.980 --> 01:43:17.460
<v Chris Gammell>Uh, speaking of, uh, so, okay.

01:43:17.460 --> 01:43:21.780
<v Chris Gammell>So people can buy, can buy these boards over on one bits squared.com.

01:43:21.780 --> 01:43:22.480
<v Chris Gammell>Is there a pack?

01:43:22.560 --> 01:43:26.880
<v Chris Gammell>Is there like a combo package so they can buy the black magic and the one bit C together?

01:43:27.340 --> 01:43:27.480
<v Piotr Ezdintensky>Yeah.

01:43:27.480 --> 01:43:32.040
<v Piotr Ezdintensky>On the one bit C website, you can choose an option, uh, to get the black magic probe with

01:43:32.040 --> 01:43:32.180
<v Piotr Ezdintensky>it.

01:43:32.580 --> 01:43:32.800
<v Chris Gammell>Nice.

01:43:32.880 --> 01:43:33.100
<v Chris Gammell>Okay.

01:43:33.220 --> 01:43:39.700
<v Chris Gammell>So one bit C one bit C.org, the number one bit C number one bit C.org.

01:43:39.780 --> 01:43:40.060
<v Chris Gammell>Right.

01:43:40.440 --> 01:43:43.500
<v Chris Gammell>And then, uh, pre pre pre order.

01:43:43.500 --> 01:43:44.500
<v Chris Gammell>Why is there a pre order link?

01:43:44.680 --> 01:43:45.880
<v Chris Gammell>Oh, this is still, oh, this is a Kickstarter.

01:43:46.080 --> 01:43:46.440
<v Chris Gammell>Of course.

01:43:46.980 --> 01:43:48.060
<v Chris Gammell>That was the Kickstarter.

01:43:48.200 --> 01:43:48.320
<v Piotr Ezdintensky>Yeah.

01:43:48.320 --> 01:43:51.000
<v Piotr Ezdintensky>I have to change that link to go directly to the store now.

01:43:51.200 --> 01:43:51.400
<v Chris Gammell>Yeah.

01:43:51.460 --> 01:43:51.660
<v Piotr Ezdintensky>Yeah.

01:43:51.660 --> 01:43:51.940
<v Chris Gammell>Okay.

01:43:52.160 --> 01:43:59.500
<v Piotr Ezdintensky>The Kickstarter still has a few like, uh, documentation things that, uh, yeah, I, I, I, I'm pretty sure

01:43:59.500 --> 01:44:04.120
<v Piotr Ezdintensky>I transferred everything into the wiki on GitHub, uh, of black magic probe.

01:44:04.120 --> 01:44:05.760
<v Piotr Ezdintensky>So it should be all synchronized.

01:44:06.200 --> 01:44:06.440
<v Chris Gammell>Okay.

01:44:06.980 --> 01:44:07.300
<v Piotr Ezdintensky>Yeah.

01:44:07.300 --> 01:44:10.240
<v Piotr Ezdintensky>I, I, the link will eventually get you there.

01:44:10.300 --> 01:44:13.240
<v Piotr Ezdintensky>It's like, there is a link to Kickstarter and then on Kickstarter, there's a link to

01:44:13.240 --> 01:44:14.040
<v Piotr Ezdintensky>the product page.

01:44:14.180 --> 01:44:18.620
<v Piotr Ezdintensky>But I, uh, now after the podcast, I probably will fix that.

01:44:18.620 --> 01:44:20.980
<v Chris Gammell>Well, you got, you got time.

01:44:21.080 --> 01:44:21.340
<v Chris Gammell>Don't worry.

01:44:21.440 --> 01:44:22.080
<v Chris Gammell>I'm slow at editing.

01:44:22.580 --> 01:44:24.380
<v Chris Gammell>Uh, that's great.

01:44:24.460 --> 01:44:25.600
<v Chris Gammell>And, and Kickstarter went well.

01:44:25.660 --> 01:44:26.980
<v Chris Gammell>I guess I didn't even ask that.

01:44:27.060 --> 01:44:29.400
<v Chris Gammell>I do remember coming there seeing it, you know, but.

01:44:29.400 --> 01:44:30.060
<v Piotr Ezdintensky>Oh yeah.

01:44:30.060 --> 01:44:30.800
<v Piotr Ezdintensky>It went great.

01:44:30.960 --> 01:44:34.080
<v Piotr Ezdintensky>Uh, it was, uh, it was really, really good.

01:44:34.220 --> 01:44:40.860
<v Piotr Ezdintensky>Uh, a lot of people were interested and, um, the main thing that I was most excited about

01:44:40.860 --> 01:44:46.600
<v Piotr Ezdintensky>was the fact that a lot of people that got the black magic probe also appeared in the

01:44:46.600 --> 01:44:48.860
<v Piotr Ezdintensky>Gitter chat channel.

01:44:49.400 --> 01:44:49.480
<v Chris Gammell>Right.

01:44:49.680 --> 01:44:51.020
<v Chris Gammell>And building community around it.

01:44:51.120 --> 01:44:51.580
<v Chris Gammell>That kind of thing.

01:44:51.640 --> 01:44:51.940
<v Piotr Ezdintensky>Yes.

01:44:52.040 --> 01:44:52.420
<v Piotr Ezdintensky>Yes.

01:44:52.420 --> 01:44:57.600
<v Piotr Ezdintensky>The community was not really growing, um, for a while.

01:44:57.600 --> 01:45:01.640
<v Piotr Ezdintensky>And now suddenly there's several new people.

01:45:02.100 --> 01:45:08.080
<v Piotr Ezdintensky>One of like someone is, uh, uh, writing a tracing code so that we can get real time

01:45:08.080 --> 01:45:09.320
<v Piotr Ezdintensky>tracing for the chips.

01:45:09.320 --> 01:45:13.380
<v Piotr Ezdintensky>And, uh, someone is working on the Radara 2 stuff after the Kickstarter.

01:45:14.100 --> 01:45:18.380
<v Piotr Ezdintensky>Uh, some people are adding additional documentation or chips and stuff like that.

01:45:18.380 --> 01:45:22.140
<v Piotr Ezdintensky>It's just, just so awesome to see the community grow.

01:45:22.740 --> 01:45:22.860
<v Speaker ?>Yeah.

01:45:23.100 --> 01:45:23.580
<v Chris Gammell>That's great.

01:45:23.680 --> 01:45:25.960
<v Chris Gammell>So, uh, we're, I guess that, that leads right into it.

01:45:25.960 --> 01:45:29.260
<v Chris Gammell>So where can people find you and the community online to, to join in?

01:45:29.660 --> 01:45:37.340
<v Piotr Ezdintensky>So, uh, probably going on, uh, black dash magic.org will lead you to the GitHub page.

01:45:37.840 --> 01:45:38.300
<v Chris Gammell>Okay.

01:45:38.900 --> 01:45:40.340
<v Piotr Ezdintensky>It's currently a redirect.

01:45:40.640 --> 01:45:42.960
<v Piotr Ezdintensky>Eventually there will be a proper website, hopefully.

01:45:42.960 --> 01:45:47.300
<v Piotr Ezdintensky>Uh, but yeah, that, that will direct you to the black magic probe project.

01:45:47.300 --> 01:45:49.120
<v Piotr Ezdintensky>Uh, then one bit squared.

01:45:49.320 --> 01:45:55.000
<v Piotr Ezdintensky>So the number one bit squared.com, uh, is my company's page.

01:45:55.700 --> 01:45:59.180
<v Piotr Ezdintensky>Um, then there is also one bit squared.de.

01:45:59.420 --> 01:46:00.560
<v Piotr Ezdintensky>That's the German store.

01:46:00.680 --> 01:46:06.660
<v Piotr Ezdintensky>So, uh, if you are in Europe, uh, you can buy from there and you, it will be faster there.

01:46:06.660 --> 01:46:09.920
<v Chris Gammell>And, uh, that's already taken care of that kind of stuff.

01:46:09.920 --> 01:46:10.240
<v Piotr Ezdintensky>Yeah.

01:46:10.240 --> 01:46:10.460
<v Piotr Ezdintensky>Yeah.

01:46:10.460 --> 01:46:10.520
<v Piotr Ezdintensky>Yeah.

01:46:10.520 --> 01:46:10.680
<v Piotr Ezdintensky>Yeah.

01:46:10.680 --> 01:46:15.960
<v Piotr Ezdintensky>So you don't, you don't have to deal with customs and stuff like that, which can take a while.

01:46:17.320 --> 01:46:17.720
<v Chris Gammell>Cool.

01:46:17.960 --> 01:46:18.580
<v Chris Gammell>That's great.

01:46:18.660 --> 01:46:20.260
<v Chris Gammell>And you're on Twitter as Esden, right?

01:46:20.600 --> 01:46:20.800
<v Chris Gammell>Yeah.

01:46:20.800 --> 01:46:21.900
<v Piotr Ezdintensky>I'm on Twitter as Esden.

01:46:22.200 --> 01:46:29.580
<v Piotr Ezdintensky>And, uh, also if you want to just chat, just come on, uh, um, gitter.im and there is a link

01:46:29.580 --> 01:46:30.580
<v Piotr Ezdintensky>on the project page.

01:46:32.220 --> 01:46:32.620
<v Chris Gammell>Great.

01:46:32.620 --> 01:46:32.940
<v Chris Gammell>Yeah.

01:46:33.060 --> 01:46:35.340
<v Chris Gammell>I, I didn't realize that was, how long has that been around?

01:46:35.400 --> 01:46:37.500
<v Chris Gammell>I, I keep seeing Gitter links.

01:46:37.620 --> 01:46:39.520
<v Chris Gammell>I don't really get them.

01:46:40.400 --> 01:46:40.840
<v Piotr Ezdintensky>Sorry.

01:46:40.880 --> 01:46:44.320
<v Piotr Ezdintensky>So Gitter, Gitter is basically Slack for open source projects.

01:46:44.660 --> 01:46:45.220
<v Chris Gammell>Oh, okay.

01:46:45.420 --> 01:46:46.720
<v Piotr Ezdintensky>That's how I would define it.

01:46:46.740 --> 01:46:54.400
<v Piotr Ezdintensky>And it is integrating very deeply with, uh, GitHub and it can scale for really large communities.

01:46:54.540 --> 01:46:56.360
<v Chris Gammell>And it free or not free?

01:46:56.540 --> 01:46:57.280
<v Piotr Ezdintensky>It's free.

01:46:57.280 --> 01:46:57.760
<v Piotr Ezdintensky>Okay.

01:46:57.760 --> 01:47:05.840
<v Piotr Ezdintensky>And it is now recently being bought by, uh, GitLab, making it, uh, like they are completely

01:47:05.840 --> 01:47:07.340
<v Piotr Ezdintensky>open sourcing the complete platform.

01:47:07.700 --> 01:47:08.040
<v Chris Gammell>Oh, wow.

01:47:08.100 --> 01:47:09.040
<v Chris Gammell>That's, that's fantastic.

01:47:09.260 --> 01:47:10.740
<v Piotr Ezdintensky>That is really fantastic.

01:47:11.100 --> 01:47:13.080
<v Piotr Ezdintensky>Uh, they are also doing a great job.

01:47:13.160 --> 01:47:15.920
<v Piotr Ezdintensky>This is a quite a stable platform by now.

01:47:16.000 --> 01:47:18.800
<v Piotr Ezdintensky>There is, uh, also an app for your phone as always.

01:47:18.960 --> 01:47:19.440
<v Piotr Ezdintensky>Of course.

01:47:19.440 --> 01:47:19.600
<v Chris Gammell>You need it.

01:47:19.600 --> 01:47:24.920
<v Chris Gammell>Gotta, gotta, gotta check the, uh, the repo pals while you're sitting on the can, right?

01:47:25.300 --> 01:47:25.640
<v Chris Gammell>Yeah.

01:47:25.640 --> 01:47:28.040
<v Piotr Ezdintensky>Or, or stuck on the airport.

01:47:28.420 --> 01:47:30.120
<v Piotr Ezdintensky>Well, that one's a little bit more legit.

01:47:32.180 --> 01:47:32.660
<v Piotr Ezdintensky>Yeah.

01:47:32.840 --> 01:47:33.700
<v Piotr Ezdintensky>So, yeah.

01:47:33.800 --> 01:47:39.460
<v Piotr Ezdintensky>And, uh, Gitter is, uh, I, the, the guys that are running the whole project are very communicative.

01:47:39.460 --> 01:47:45.580
<v Piotr Ezdintensky>You go into the Gitter, uh, HQ channel and you can actually talk directly with the developers.

01:47:46.040 --> 01:47:46.820
<v Piotr Ezdintensky>That's really nice.

01:47:46.920 --> 01:47:47.980
<v Piotr Ezdintensky>That's really nice.

01:47:48.080 --> 01:47:52.720
<v Piotr Ezdintensky>And, um, uh, they are trying really their best and they are worth supporting.

01:47:53.080 --> 01:47:53.340
<v Chris Gammell>Yeah.

01:47:53.620 --> 01:47:53.900
<v Chris Gammell>Cool.

01:47:53.900 --> 01:47:59.160
<v Piotr Ezdintensky>And, and because it integrates with GitHub so well, you get the complete history of stuff

01:47:59.160 --> 01:48:04.900
<v Piotr Ezdintensky>changing in your repository, uh, all the updates and when, and there is markdown in the, if

01:48:04.900 --> 01:48:10.600
<v Piotr Ezdintensky>you write your stuff, but it is very similar on that end for to, uh, Slack, if you are familiar

01:48:10.600 --> 01:48:10.960
<v Piotr Ezdintensky>with that.

01:48:11.040 --> 01:48:11.240
<v Chris Gammell>Yeah.

01:48:11.340 --> 01:48:11.640
<v Chris Gammell>Right.

01:48:11.720 --> 01:48:13.400
<v Chris Gammell>It's just, well, Slack.

01:48:13.400 --> 01:48:14.400
<v Piotr Ezdintensky>But yeah.

01:48:14.400 --> 01:48:15.720
<v Piotr Ezdintensky>And, and this is open.

01:48:15.720 --> 01:48:17.780
<v Piotr Ezdintensky>You can just go there and join the channel.

01:48:17.900 --> 01:48:22.200
<v Piotr Ezdintensky>You don't have to be invited or find the right server of Slack or whatever.

01:48:22.400 --> 01:48:26.160
<v Chris Gammell>It's a Heroku app that, uh, you know, has something that invites you or whatever.

01:48:26.700 --> 01:48:26.880
<v Piotr Ezdintensky>Yeah.

01:48:26.960 --> 01:48:27.180
<v Piotr Ezdintensky>Yeah.

01:48:27.180 --> 01:48:30.840
<v Piotr Ezdintensky>And you can search the complete platform for channels for different projects.

01:48:30.840 --> 01:48:35.420
<v Piotr Ezdintensky>It's, uh, it's meant for open and welcoming communities.

01:48:35.560 --> 01:48:36.060
<v Chris Gammell>That's nice.

01:48:36.060 --> 01:48:40.820
<v Chris Gammell>Well, the amp hour will not have a chat channel because me and Dave both don't chat, but,

01:48:40.880 --> 01:48:44.100
<v Chris Gammell>uh, but it's good for, it's good for people that are working on that stuff every day.

01:48:44.400 --> 01:48:44.720
<v Chris Gammell>Yeah.

01:48:44.800 --> 01:48:45.100
<v Chris Gammell>Yeah.

01:48:45.260 --> 01:48:46.600
<v Chris Gammell>It's good for communication.

01:48:47.080 --> 01:48:47.440
<v Chris Gammell>Awesome.

01:48:47.440 --> 01:48:50.340
<v Chris Gammell>Well, thank you for coming on and communicating with us today.

01:48:50.460 --> 01:48:55.020
<v Chris Gammell>It has been really cool hearing about this stuff and diving into the, the world of debugging.

01:48:55.160 --> 01:48:56.640
<v Chris Gammell>I think that people shift.

01:48:56.700 --> 01:49:00.100
<v Chris Gammell>They're not already doing, I think that this is a great way to get started and actually

01:49:00.100 --> 01:49:06.420
<v Chris Gammell>figure out some methods for, you know, some, some better embedded, um, code writing and

01:49:06.420 --> 01:49:07.220
<v Chris Gammell>debugging and everything.

01:49:07.840 --> 01:49:07.940
<v Piotr Ezdintensky>Yeah.

01:49:08.060 --> 01:49:08.400
<v Piotr Ezdintensky>Thank you.

01:49:08.400 --> 01:49:09.760
<v Piotr Ezdintensky>Thank you so much for having me.

01:49:09.840 --> 01:49:11.840
<v Piotr Ezdintensky>This is, uh, a lot of fun.

01:49:11.940 --> 01:49:14.420
<v Piotr Ezdintensky>We had so much fun talking at, uh, DEF CON.

01:49:14.420 --> 01:49:16.420
<v Piotr Ezdintensky>I'm glad we can do it in this venue too.

01:49:16.420 --> 01:49:16.940
<v Piotr Ezdintensky>Yeah.

01:49:17.040 --> 01:49:18.000
<v Piotr Ezdintensky>And, uh, yeah.

01:49:18.000 --> 01:49:19.240
<v Piotr Ezdintensky>Thank you so much for having me.

01:49:19.500 --> 01:49:20.440
<v Chris Gammell>I'm sure we'll talk soon.

01:49:20.860 --> 01:49:21.260
<v Piotr Ezdintensky>Thanks a lot.

01:49:21.800 --> 01:49:22.440
<v Piotr Ezdintensky>Have a good one.

01:49:22.480 --> 01:49:22.640
<v Piotr Ezdintensky>Bye.

01:49:22.640 --> 01:49:22.640
<v Speaker ?>
