How I decided to quickly program Can'abis

I use it often CAN Hacker'om. Well, as an expected result, it was necessary to test my theory(s) in the car and not on the table, quickly. It didn't work quickly, then the story.

We have a package of can-bridges from the famous Ali-bazaar available

it's fast and almost ready... I thought...

it's fast and almost ready… I thought…

I open the box, but what's inside isn't quite what they show on the internet,

programming connector missing

programming connector missing

I pick out the board, on the back I find pads for quick programming, but this is not what I expected SWD. We arm ourselves with a tester and find RX, TX, Boot0Well… it's already some kind of bread.

from edge GND, +3.3, Boot0, RX, TX

from edge GND, +3.3, Boot0, RX, TX

I'm soldering UART'inu, there were no long wires, all this is inconvenient, debugging does not work… I suffered, suffered… I remembered that I still have it in the stash from time immemorial stm32vldiscovery but there is 100%, in which there is no Can, but!

there is 100 percent

there is 100 percent

Once the famous @Artemka86 changed the processor on it for another one, with a can. Well, what can I say… I have a hair dryer,

  I'm blowing away the processors

I'm blowing away the processors

I change places,

I change the quartz, I stick the channel driver on a piece of breadboard...

I change the quartz, I stick the channel driver on a piece of breadboard…

aaaand…

I connect the device to the computer and it kindly asks me to go to the store to purchase the latest version. ST-Link 2 or even 2.1 or 3 at my choice… because version 1 is installed on Disco from birth. and it is not supported by the current software… Yes, yo mayo! I said… but I thought that there is no reason to give up so easily… (not enough) We go to Gukhl, flash version 2, flash the original updater to the latest available version. Aaaand… It starts working, but it is wildly glitchy and unstable… We go to Gukhl…

we solder the jumper to pins 25-27 and the transistor to the USB enumerator.

It starts working stably

It starts working stably

… programmer. But the target processor, i.e. the actual purpose of the whole event, ceases to be determined in principle. By hand and foot fornication I discover that it works if I hold down reset, start programming and then release reset… I go to guhl… At first there was a version that I forgot to pull Boot0 away from the pull-up, but no… Then I found a mention on easyelectronics that if the project was assembled in Cubase… and I “slopped” in it, it was possible to forget to connect debugging, and surprisingly, the unconnected one does not work… And!

Well, that was my case, debugging worked… Let's breathe a sigh of relief.

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *