Go to advanced search

by dwelch67
Tue May 15, 2018 8:17 pm
Forum: Bare metal
Topic: CortexM0+/M4 libraries on raspberry pi B+
Replies: 1
Views: 144

Re: CortexM0+/M4 libraries on raspberry pi B+

the binaries, no. the cortex-m part of it is one problem the bigger problem is that the processor itself is the least of your worries, the processor is just a means to get at the peripherals which will vary widely not only across arm based processors but even within the cortex-m0 world for example y...
by dwelch67
Fri May 11, 2018 7:12 pm
Forum: Bare metal
Topic: prevent crashes from unaligned memory accesses when porting code
Replies: 4
Views: 226

Re: prevent crashes from unaligned memory accesses when porting code

or fix the code such that it doesnt misuse structures like that.
by dwelch67
Sun Apr 22, 2018 11:57 pm
Forum: Bare metal
Topic: Use a FT232H-Chip to debug Pi 1 B+ via JTag + OpenOCD config
Replies: 32
Views: 2020

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

Why not use the ftdi board as a uart to access a bootloader? No reason to remove the sd card more than one more time. Only two wires to hook up rather than 5 or 6. No reason to do the sd card dance if you cant get jtag to work.
by dwelch67
Sun Apr 22, 2018 12:59 am
Forum: Bare metal
Topic: Use a FT232H-Chip to debug Pi 1 B+ via JTag + OpenOCD config
Replies: 32
Views: 2020

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

Are you not able to halt, load a program, and resume?
by dwelch67
Sun Apr 22, 2018 12:58 am
Forum: Bare metal
Topic: Use a FT232H-Chip to debug Pi 1 B+ via JTag + OpenOCD config
Replies: 32
Views: 2020

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

Reading back...I have no use for step so never tried (well it is been many many years). halt, load_image, resume, mdw, mww are basically all I need/use. With microcontrollers I use the flash commands if supported. To get as far as you have gotten the jtag is working just fine, new hardware shouldnt ...
by dwelch67
Sun Apr 22, 2018 12:44 am
Forum: Bare metal
Topic: Use a FT232H-Chip to debug Pi 1 B+ via JTag + OpenOCD config
Replies: 32
Views: 2020

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

St-link is a two wire SWD, a sort of jtag transport, or basically not JTAG. Dont see how this could possibly work, you dont have the right signals.
by dwelch67
Thu Apr 19, 2018 12:32 am
Forum: Bare metal
Topic: Use a FT232H-Chip to debug Pi 1 B+ via JTag + OpenOCD config
Replies: 32
Views: 2020

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

Yep, FT232H most recently. Have used FT2232h have used FT4232h, jlink, all work just fine.
by dwelch67
Thu Apr 12, 2018 6:59 pm
Forum: Bare metal
Topic: Use a FT232H-Chip to debug Pi 1 B+ via JTag + OpenOCD config
Replies: 32
Views: 2020

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

telnet is typically 4444, but it is in the file, just need to match what you selected and what you are trying to telnet to. telnet_port 4444 #gdb_port 0 #tcl_port 0 $ telnet localhost 4444 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. Open On-Chip Debugger > server window sho...
by dwelch67
Thu Apr 12, 2018 3:11 am
Forum: Bare metal
Topic: Use a FT232H-Chip to debug Pi 1 B+ via JTag + OpenOCD config
Replies: 32
Views: 2020

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

You had left me no choice but to just shot gun it and toss out all kinds of things to try. I have no clue what your new problem is. if you exit openocd and re-run it does this change? if you telnet in and halt and dump memory or registers does it work? are you connecting with gdb and maybe it is tic...
by dwelch67
Wed Apr 11, 2018 9:41 pm
Forum: Bare metal
Topic: low cost or free assembler books / tutorials?
Replies: 10
Views: 749

Re: low cost or free assembler books / tutorials?

assembly language is defined by the assembler the program that reads it. GNU has a bad habit of mangling languages created by the chip vendors, but that is fair since the assembler defines the assembly language. GNU assembler most definitely is not compatible with ARMs assembly language from ARMs to...
by dwelch67
Wed Apr 11, 2018 4:24 am
Forum: Bare metal
Topic: Use a FT232H-Chip to debug Pi 1 B+ via JTag + OpenOCD config
Replies: 32
Views: 2020

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

Okay I am not sure where I have a pi1 B+ I know I have alt least one very likely two or more. I liked the A+ better and have more of those and easily found one. Pulled the sd card from my pi zero from the other day. my code from my raspberrypi-zero repo which I posted notmain.c a couple of comments ...
by dwelch67
Wed Apr 11, 2018 3:37 am
Forum: Bare metal
Topic: Use a FT232H-Chip to debug Pi 1 B+ via JTag + OpenOCD config
Replies: 32
Views: 2020

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

Hmm, I am used to FT2232 parts and FT4232 parts where all the ports are uarts by default without an eeprom. this part C0/C1 are not uarts by default...only D0/D1 dmesg -c [16991.857343] usb 1-3.4.1: new high-speed USB device number 10 using ehci-pci [16991.966096] usb 1-3.4.1: New USB device found, ...
by dwelch67
Wed Apr 11, 2018 3:24 am
Forum: Bare metal
Topic: Use a FT232H-Chip to debug Pi 1 B+ via JTag + OpenOCD config
Replies: 32
Views: 2020

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

Not the only one to get jtag working on the pi, pretty sure of that. Others may not have posted code or talked about it, certainly.
by dwelch67
Wed Apr 11, 2018 3:22 am
Forum: Bare metal
Topic: Use a FT232H-Chip to debug Pi 1 B+ via JTag + OpenOCD config
Replies: 32
Views: 2020

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

I used that code yes, and most recently this code: //------------------------------------------------------------------------- //------------------------------------------------------------------------- extern void PUT32 ( unsigned int, unsigned int ); extern unsigned int GET32 ( unsigned int ); ext...
by dwelch67
Mon Apr 09, 2018 9:31 pm
Forum: Bare metal
Topic: Use a FT232H-Chip to debug Pi 1 B+ via JTag + OpenOCD config
Replies: 32
Views: 2020

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

Check your wiring if you are using my old stuff then one pin is alt5 not alt4 and you have to get on that pin, ifyou use the pi-zero stuff I just did for you the other day, then all of them are alt4 and you use pin 37 or whatever instead of 7. You have to get all the connections right, you likely ha...
by dwelch67
Mon Apr 09, 2018 6:12 pm
Forum: Bare metal
Topic: low cost or free assembler books / tutorials?
Replies: 10
Views: 749

Re: low cost or free assembler books / tutorials?

printf and other C library calls are very uninteresting for disassembling. I recommend compile to object then disassemble rather than compile to assembly. They maximize the ghee whiz features of gnu assembler between the compiler and assembler, but if you disassemble all that fluff is gone you have ...
by dwelch67
Mon Apr 09, 2018 5:54 pm
Forum: Bare metal
Topic: Use a FT232H-Chip to debug Pi 1 B+ via JTag + OpenOCD config
Replies: 32
Views: 2020

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
Topic: Use a FT232H-Chip to debug Pi 1 B+ via JTag + OpenOCD config
Replies: 32
Views: 2020

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
Topic: Use a FT232H-Chip to debug Pi 1 B+ via JTag + OpenOCD config
Replies: 32
Views: 2020

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
Topic: Use a FT232H-Chip to debug Pi 1 B+ via JTag + OpenOCD config
Replies: 32
Views: 2020

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
Topic: Use a FT232H-Chip to debug Pi 1 B+ via JTag + OpenOCD config
Replies: 32
Views: 2020

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
Topic: Use a FT232H-Chip to debug Pi 1 B+ via JTag + OpenOCD config
Replies: 32
Views: 2020

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
Topic: Use a FT232H-Chip to debug Pi 1 B+ via JTag + OpenOCD config
Replies: 32
Views: 2020

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
Topic: Pi 3B+ Activity LED
Replies: 16
Views: 1714

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
Topic: Use a FT232H-Chip to debug Pi 1 B+ via JTag + OpenOCD config
Replies: 32
Views: 2020

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...

Go to advanced search