Vedder nunchuck FW-Bootloader *Solved*

Report your hardware problems here. Include as many details as possible with pictures to get the best possible help and feedback.
Blasto
Posts: 21
Joined: 19 Dec 2015, 03:45
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1236: count(): Parameter must be an array or an object that implements Countable

Vedder nunchuck FW-Bootloader *Solved*

Postby Blasto » 05 Jan 2016, 22:42

I am currently in the process of soldering a NunchukRF 5.1 and it dawned on me... how i am supposed to program the initial FW/bootloader on it? I have a discovery board, should I barnacle myself on the SWD pins of the mcu?
Last edited by Blasto on 12 Jan 2016, 04:35, edited 1 time in total.

Blasto
Posts: 21
Joined: 19 Dec 2015, 03:45
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1236: count(): Parameter must be an array or an object that implements Countable

Re: Vedder nunchuck FW-Bootloader

Postby Blasto » 06 Jan 2016, 15:21

plz correct me if i am wrong,

but after doing some research, the STM32F100C8T6B comes with the bootloader already embedded to target the flash through the UART thus being able to reprogram it directly via USB without the discovery board.

Is this assumption correct?

Blasto
Posts: 21
Joined: 19 Dec 2015, 03:45
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1236: count(): Parameter must be an array or an object that implements Countable

Re: Vedder nunchuck FW-Bootloader

Postby Blasto » 12 Jan 2016, 04:30

Got my nunchuck programmed thanks to Chaka. Here are the steps I followed:
Using Ubuntu and assuming that I had some previous dependencies loaded from uploading some previous VESC FW.

sudo apt-get install git
git clone https://github.com/ARMinARM/stm32flash
cd stm32flash
sudo make install

mkdir nunchuk_mod
cd nunchuk_mod
git clone https://github.com/vedderb/nunchuk_mod.git nunchuk_mod-firmware
cd nunchuk_mod-firmware
make upload

Blasto
Posts: 21
Joined: 19 Dec 2015, 03:45
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1236: count(): Parameter must be an array or an object that implements Countable

Re: Vedder nunchuck FW-Bootloader *Solved*

Postby Blasto » 02 Feb 2016, 04:04

This is probably an easy one for those who know what they are doing.

I am trying to update the firmware of the nunchuk,
navigated to the nunchuk_mod-firmware folder
git pull (saw some files where modified)
make upload...

I get a bunch of errors like this:

Makefile:91: ChibiOS_3.0.2/os/common/ports/ARMCMx/compilers/GCC/mk/startup_stm32f1xx.mk: No such file or directory

well I am stuck at this point, my Ubuntu skillz (not so mad skillz) don't allow me to verify if the path is good.

benjamin
Site Admin
Posts: 280
Joined: 15 Dec 2015, 08:38
Location: Sweden
Contact:

Re: Vedder nunchuck FW-Bootloader *Solved*

Postby benjamin » 02 Feb 2016, 16:59

It looks like a forgot to add some files (such as the whole chibios 3 directory). I just added the missing files, so if you run git pull again it should work.

Blasto
Posts: 21
Joined: 19 Dec 2015, 03:45
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1236: count(): Parameter must be an array or an object that implements Countable

Re: Vedder nunchuck FW-Bootloader *Solved*

Postby Blasto » 03 Feb 2016, 02:25

Awesome Ben! that worked and the nunchuk connected instantly to the VESC w FW 2.13 after configuring the proper address (15d, 1111b)

These are the steps I followed to update the nunchuk, navigated to the nunchuk_mod-firmware folder. In my case it is: (in a new terminal)

cd nunchuk
cd stm32flash
cd nunchuk_mod
cd nunchuk_mod-firmware
git pull
make upload

benjamin
Site Admin
Posts: 280
Joined: 15 Dec 2015, 08:38
Location: Sweden
Contact:

Re: Vedder nunchuck FW-Bootloader *Solved*

Postby benjamin » 03 Feb 2016, 13:40

nice that you got it running. How does the nunchuk work so far?

Blasto
Posts: 21
Joined: 19 Dec 2015, 03:45
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1236: count(): Parameter must be an array or an object that implements Countable

Re: Vedder nunchuck FW-Bootloader *Solved*

Postby Blasto » 04 Feb 2016, 05:19

I'm still bench testing at the moment, haven't chosen a deck yet and it's the dead of winter here at the moment. I'm just making sure i'll be ready when the season begins.

When I receive the battery for the chuk, I'll post the completed build.

Blasto
Posts: 21
Joined: 19 Dec 2015, 03:45
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1236: count(): Parameter must be an array or an object that implements Countable

Re: Vedder nunchuck FW-Bootloader *Solved*

Postby Blasto » 15 Feb 2016, 20:29

2 240ma batteries and installed a light pipe

IMG_3018.JPG
IMG_3018.JPG (91.96 KiB) Viewed 4106 times

IMG_3019.JPG
IMG_3019.JPG (72.99 KiB) Viewed 4106 times

IMG_3020.JPG
IMG_3020.JPG (91.73 KiB) Viewed 4106 times

Blasto
Posts: 21
Joined: 19 Dec 2015, 03:45
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1236: count(): Parameter must be an array or an object that implements Countable

Re: Vedder nunchuck FW-Bootloader *Solved*

Postby Blasto » 15 Feb 2016, 20:30

IMG_3029.JPG
IMG_3029.JPG (66.27 KiB) Viewed 4106 times


IMG_3028.JPG
IMG_3028.JPG (67.41 KiB) Viewed 4106 times


image2 (1).JPG
image2 (1).JPG (75.2 KiB) Viewed 4106 times


[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1236: count(): Parameter must be an array or an object that implements Countable

Return to “Hardware Problems”

Who is online

Users browsing this forum: MSN [Bot] and 1 guest