Go to advanced search

by dwelch67
Mon Apr 09, 2018 5:54 pm
Forum: Bare metal, Assembly language
Topic: Use a FT232H-Chip to debug Pi 1 B+ via JTag + OpenOCD config
Replies: 32
Views: 4397

Re: Use a FT232H-Chip to debug Pi 1 B+ via JTag + OpenOCD config

I apt-get install libftdi-dev Then try this from my post above (stock unmodified openocd) ./configure --enable-legacy-ft2232_libftdi make If you want to use the new driver (--enable ftdi) then use one of those interface configs. flyswatter has interface ftdi ftdi_device_desc "Flyswatter" ftdi_vid_pi...
by dwelch67
Mon Apr 09, 2018 1:09 pm
Forum: Bare metal, Assembly language
Topic: Use a FT232H-Chip to debug Pi 1 B+ via JTag + OpenOCD config
Replies: 32
Views: 4397

Re: Use a FT232H-Chip to debug Pi 1 B+ via JTag + OpenOCD config

try configuring and building with the legacy ftdi, ft2232 is not you your list correct? it is in mine:

1: ft2232
2: ftdi
3: usb_blaster
4: usbprog
5: jlink
6: vsllink
7: rlink
8: ulink
9: arm-jtag-ew
10: hla
11: osbdm
12: opendous
13: aice
14: cmsis-dap
by dwelch67
Sat Apr 07, 2018 3:11 am
Forum: Bare metal, Assembly language
Topic: Use a FT232H-Chip to debug Pi 1 B+ via JTag + OpenOCD config
Replies: 32
Views: 4397

Re: Use a FT232H-Chip to debug Pi 1 B+ via JTag + OpenOCD config

Okay this is in part why I dont do jtag, takes me a few seconds to get the uart hooked up to use the uart based bootloader. counting the pins just cant get that right, in part, my example code for the original pi did have gpio4. but that was the original P1 header the longer pi zero and other boards...
by dwelch67
Wed Apr 04, 2018 3:57 am
Forum: Bare metal, Assembly language
Topic: Use a FT232H-Chip to debug Pi 1 B+ via JTag + OpenOCD config
Replies: 32
Views: 4397

Re: Use a FT232H-Chip to debug Pi 1 B+ via JTag + OpenOCD config

Ordered the adafruit breakout, prefer mini/micro b to a male usb A connector...Should be here in a couple of days...
by dwelch67
Wed Apr 04, 2018 3:40 am
Forum: Bare metal, Assembly language
Topic: Use a FT232H-Chip to debug Pi 1 B+ via JTag + OpenOCD config
Replies: 32
Views: 4397

Re: Use a FT232H-Chip to debug Pi 1 B+ via JTag + OpenOCD config

wow I totally didnt read your question at all, i assumed you were talking pi3 and was trying to show a uart alternative. May have to buy some of these ft232h boards you found...
by dwelch67
Wed Apr 04, 2018 3:39 am
Forum: Bare metal, Assembly language
Topic: Use a FT232H-Chip to debug Pi 1 B+ via JTag + OpenOCD config
Replies: 32
Views: 4397

Re: Use a FT232H-Chip to debug Pi 1 B+ via JTag + OpenOCD config

Misread your question thought you were working the pi3 not the pi1. At work I have to build my own openocd from sources, the apt-get one doesnt work. there is a bug in the new ftdi drivers where you can specify more in the .cfg file, you dont have to specify one of the interface boards compiled into...
by dwelch67
Sun Apr 01, 2018 8:49 pm
Forum: Bare metal, Assembly language
Topic: Use a FT232H-Chip to debug Pi 1 B+ via JTag + OpenOCD config
Replies: 32
Views: 4397

Re: Use a FT232H-Chip to debug Pi 1 B+ via JTag + OpenOCD config

I have a simple uart based bootloader, so I use the reset switch to start over, then the bootloader loads from the sd card. Download the next program/experiment through the bootloader. never have to pull the sd card out again. Most everywhere else I use JTAG with an FTDI running JTAG, two wires to h...
by dwelch67
Fri Mar 30, 2018 7:29 pm
Forum: Bare metal, Assembly language
Topic: Pi 3B+ Activity LED
Replies: 23
Views: 8069

Re: Pi 3B+ Activity LED

I wasnt going to buy one but seeing this thread and they put the led on a gpio, I went ahead. The pin(hole) next to the reset (run) does not appear to be ground. found a nice ground nearby, but with the prior ones was pretty easy to solder in a mini switch. (this is for my reset so I dont have to un...
by dwelch67
Fri Mar 30, 2018 2:58 pm
Forum: Bare metal, Assembly language
Topic: Use a FT232H-Chip to debug Pi 1 B+ via JTag + OpenOCD config
Replies: 32
Views: 4397

Re: Use a FT232H-Chip to debug Pi 1 B+ via JTag + OpenOCD config

Not the path you are asking about, I think some folks have made progress on jtag. But there is a reset pin/hole on the board which you can put a switch on. Just got my pi3b+ and I dont think the hole next to it is ground so going to super glue a switch down then use wires to hook that to reset and t...
by dwelch67
Mon Mar 05, 2018 3:29 pm
Forum: Bare metal, Assembly language
Topic: Simple Blinking LED program not working on Raspberry PI 3
Replies: 9
Views: 3611

Re: [SOLVED] Simple Blinking LED program not working on Raspberry PI 3

how did you get it to work on a pi3? the led is not connected to a gpio pin unless they did yet another board layout/rev...
by dwelch67
Fri Feb 09, 2018 4:37 am
Forum: Bare metal, Assembly language
Topic: [SOLVED] Compilation for Cortex-M3 with ARM RPi 2B Toolchain
Replies: 2
Views: 1349

Re: Compilation for Cortex-M3 with ARM RPi 2B Toolchain

While this is a baremetal forum it is a raspberry pi forum not stm32. but anyway: I have many STM32 examples along side my raspberry pi repos. You can certainly use arm-whatever-gcc if you dont need C library functions as that gets operating system dependent and what operating system are you running...
by dwelch67
Wed Feb 07, 2018 9:35 pm
Forum: Bare metal, Assembly language
Topic: starting to make an os for rpi
Replies: 18
Views: 3124

Re: starting to make an os for rpi

and my desire to get more folks out of and through traps tends to get me into situations like this where i am doing more bad than good writing down opinions...
by dwelch67
Wed Feb 07, 2018 9:26 pm
Forum: Bare metal, Assembly language
Topic: starting to make an os for rpi
Replies: 18
Views: 3124

Re: starting to make an os for rpi

I did/do like your list, well presented. need to post that on its own somewhere. your requirements/goals are ...
by dwelch67
Wed Feb 07, 2018 9:24 pm
Forum: Bare metal, Assembly language
Topic: starting to make an os for rpi
Replies: 18
Views: 3124

Re: starting to make an os for rpi

I fully understand what you are saying. just trying to say that there is a line you cross where you need to ask questions, working in a vacuum is a bad idea for many reasons. Where than line lands matters. If you dont try to do any of the things in your list, basically ask for everything and do litt...
by dwelch67
Sun Feb 04, 2018 3:12 am
Forum: Bare metal, Assembly language
Topic: starting to make an os for rpi
Replies: 18
Views: 3124

Re: starting to make an os for rpi

While you need the things on bzt's list, that doesnt mean you have to learn them on your own in a vacuum. How you learn to read technical documentation, in part is by asking someone, a mentor or the general public as that is a thing now. Do learn how to ask the question, dont come in saying I am goi...
by dwelch67
Fri Feb 02, 2018 3:35 am
Forum: Bare metal, Assembly language
Topic: Pi3 GPIO and UART questions
Replies: 6
Views: 2201

Re: Pi3 GPIO and UART questions

I cant speak to the specific pi qemu port. But the ones I have dabbled with (used) they not only do not get into pin/pad controls and gpio muxes, they dont even fully implement the uart. You can simply write to the uart transmit register as fast as you can and the characters go out on the console, t...
by dwelch67
Fri Feb 02, 2018 3:31 am
Forum: Bare metal, Assembly language
Topic: starting to make an os for rpi
Replies: 18
Views: 3124

Re: starting to make an os for rpi

I see a number of folks use the term OS when later it seems they were just thinking baremetal. So I guess will see if that is the case here. Wanted to work on a baremetal program or wanted to write an operating system? Part of writing an operating system, is deciding on how and where programs are go...
by dwelch67
Thu Feb 01, 2018 10:36 am
Forum: Bare metal, Assembly language
Topic: starting to make an os for rpi
Replies: 18
Views: 3124

Re: starting to make an os for rpi

There are many other pre-built gnu packages. Did you try one of those, for example: https://launchpad.net/gcc-arm-embedded (which has now moved to an arm site directly) https://developer.arm.com/open-source/gnu-toolchain/gnu-rm Another: https://www.linaro.org/downloads/ I imagine the sticky tab at t...
by dwelch67
Sat Jan 27, 2018 7:16 pm
Forum: Bare metal, Assembly language
Topic: Using Dave Welch's bootloader07
Replies: 7
Views: 1069

Re: Using Dave Welch's bootloader07

yes ihex and srec (intel hex, motorola s record, good pages on wikipedia) are ascii file formats. I use ascii in minicom to send them over.

What if you cut and paste the .hex file (from a text editor or cat or other) and paste it into the minicom terminal, no download, just paste.
by dwelch67
Sat Jan 27, 2018 7:14 pm
Forum: Bare metal, Assembly language
Topic: Using Dave Welch's bootloader07
Replies: 7
Views: 1069

Re: Using Dave Welch's bootloader07

hmmm, interesting, I dont have a mac to try this with. what if you slow everything down, change it to 57600 on both sides or 9600, etc...
by dwelch67
Fri Jan 26, 2018 6:16 pm
Forum: Bare metal, Assembly language
Topic: Mini UART dropping data
Replies: 4
Views: 802

Re: Mini UART dropping data

nothing special not only am I able to keep up with xmodem I can dump a whole srecord in and keep up with that. using polling only. Perhaps the fifos are on in the uart but how big are they? it is a problem I have dealt with in the past and sadly hardware flow control often isnt, and when it is, you ...
by dwelch67
Fri Jan 26, 2018 6:13 pm
Forum: Bare metal, Assembly language
Topic: Mini UART dropping data
Replies: 4
Views: 802

Re: Mini UART dropping data

nothing special not only am I able to keep up with xmodem I can dump a whole srecord in and keep up with that. using polling only. Perhaps the fifos are on in the uart but how big are they? it is a problem I have dealt with in the past and sadly hardware flow control often isnt, and when it is, you ...
by dwelch67
Fri Jan 26, 2018 2:58 am
Forum: Bare metal, Assembly language
Topic: Understanding of RPi3 addresses
Replies: 3
Views: 841

Re: Understanding of RPi3 addresses

There are actually two processors in the broadcom BCM2835 the ARM6 and a Graphics processor specifically a videocore VC4 I assume you meant ARMv6. Just read up on it though, didnt know Apple was into arm that early, though the arm7(tdmi) was the first ARM after it was Acorn, but the ARM6 was the fi...
by dwelch67
Wed Jan 24, 2018 2:57 am
Forum: Bare metal, Assembly language
Topic: Baking Pi Update List
Replies: 12
Views: 1751

Re: Baking Pi Update List

as far as instruction sets, no reason to limit yourself, each new instruction set you learn becomes that much easier they are more similar than different in many respects (they have an add, an xor, a load a store, etc). before aarch64 arms thumb instruction set is the most portable, or the only one ...
by dwelch67
Wed Jan 24, 2018 1:05 am
Forum: Bare metal, Assembly language
Topic: Baking Pi Update List
Replies: 12
Views: 1751

Re: Baking Pi Update List

Just like you can still buy as well as make a profit with 8 bit processors, the 32 bit processors will not die any time soon. With respect to things like phone processors and set top box processors and tablets, those where consumers want that much more media this year than the year before, sure thos...

Go to advanced search