GithubHelp home page GithubHelp logo

Comments (6)

rbalik avatar rbalik commented on September 25, 2024 1

So for now I'm going to drop some notes in here so people can get started and then can work on a more formal doc over the coming weeks.

So the way initial programming works is you have to program the user and system micros by plugging in certain pins into the raspberry pi and using openocd to write to the flash on each micro.

Here are the pins to plug in (note this only works with the Dash 1.2):

Dash -> RPi
R18 (SYS SWD CLK) -> BCM 25 (22)
L18 (SYS SWD IO) -> BCM 24 (18)
R10 (SYS RESET) -> BCM 18 (12)
L17 (USR SWD CLK) -> BCM 21 (40)
L16 (USR SWD IO) -> BCM 20 (38)
L15 (USR RESET) -> BCM 16 (36)
R2 (GND) -> GND (6)

These next two are optional, but we use them in the factory to easily run some tests and verify installation is ok. You can do this over USB instead if you want. (You might also need to reconfigure something on the pi for these pins to show up as a serial port)

L08 (UART TX) -> BCM 15 (10)
L06 (UART RX) -> BCM 14 (8)

You'll need to compile openocd from source on the Pi because the version in apt doesn't support everything needed. Fortunately there are instructions for this here: https://movr0.com/2016/09/02/use-raspberry-pi-23-as-a-jtagswd-adapter/

Openocd config files are attached here:
openocd-dashconfig.tar.gz

Firmware binaries are here
dashfirmware.tar.gz

The commands you'll run are:
sudo openocd -f system0.cfg -f system_boot.cfg -c program dash_system_module_firmware_0.10.1.bin 0x6000 verify reset exit

sudo openocd -f user0.cfg -f user_boot.cfg -c program repl_0.11.0.bin 0x8000 verify reset exit

Let me know if you run into any trouble here. I'll try to put this into a better formatted doc soon.

from dash-hardware.

1tron1 avatar 1tron1 commented on September 25, 2024

@rbalik is there any update on this? We're interested in using the Ublox module but adding BT and Wifi chipset on board and so any help on this front would help us get our new boards up and going with Holo quicker.

from dash-hardware.

rbalik avatar rbalik commented on September 25, 2024

Sorry that I haven't had a chance to get this all written up yet. I might be able to put something together over the next few days.

from dash-hardware.

1tron1 avatar 1tron1 commented on September 25, 2024

@rbalik thanks!

from dash-hardware.

labiancoCgi avatar labiancoCgi commented on September 25, 2024

Hi @rbalik, I am trying to program the Dash MCUs by using the JLINK J-flash lite. Is there any reason why this would not work?

If not, do you know the initial address at which to program the binaries.

Thanks!

from dash-hardware.

rbalik avatar rbalik commented on September 25, 2024

Been a while since I looked at this but it seems like it should work if you're using the right pins. I think the addresses in those openocd commands are the starting addresses

from dash-hardware.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.