Go to advanced search

by SonicWave
Sun Apr 22, 2018 7:24 am
Forum: Bare metal, Assembly language
Topic: Use a FT232H-Chip to debug Pi 1 B+ via JTag + OpenOCD config
Replies: 32
Views: 4809

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

or is gdb how you got there, try it without gdb, use the telnet interface instead. It's the same error as I posted above. Are you not able to halt, load a program, and resume? Halt is possible, but uploading and resuming not. I guess I will stick with the SD-card method then, I am tired of openOCD....
by SonicWave
Sat Apr 21, 2018 9:59 am
Forum: Bare metal, Assembly language
Topic: Use a FT232H-Chip to debug Pi 1 B+ via JTag + OpenOCD config
Replies: 32
Views: 4809

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

Is it possible to use a ST-Link V2, which is capable of JTAG, instead of a FT232H? I used the stlink.cfg of openocd with this command: [email protected]:~/Desktop/openocd$ openocd -f tcl/interface/stlink.cfg -f custom_configs/raspi.cfg Open On-Chip Debugger 0.10.0+dev-00391-gf00d9bb1 (2018-04-09-20:32) Li...
by SonicWave
Mon Apr 16, 2018 6:20 pm
Forum: Bare metal, Assembly language
Topic: Use a FT232H-Chip to debug Pi 1 B+ via JTag + OpenOCD config
Replies: 32
Views: 4809

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

So "halt" does work, but "step" doesn't: [email protected]:~/Desktop/openocd$ openocd -f custom_configs/ft232h.cfg -f custom_configs/raspi.cfg Open On-Chip Debugger 0.10.0+dev-00391-gf00d9bb1 (2018-04-09-20:32) Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html adapte...
by SonicWave
Thu Apr 12, 2018 6:01 pm
Forum: Bare metal, Assembly language
Topic: Use a FT232H-Chip to debug Pi 1 B+ via JTag + OpenOCD config
Replies: 32
Views: 4809

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 am sorry, I thought I did everything you said (UART / capture stuff with Saleae Logic)? if you exit openocd and re-run it does this change? The amount of warning messages differs from time to time: Info : r...
by SonicWave
Wed Apr 11, 2018 6:22 pm
Forum: Bare metal, Assembly language
Topic: Use a FT232H-Chip to debug Pi 1 B+ via JTag + OpenOCD config
Replies: 32
Views: 4809

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

(not the new pi3 b+ but the old lets call it pi1 b+ if this is a pi3 then you are a long way down the wrong path, your led is blinking so you say so I think you are on an old pi1): I mentioned it now quite a few times, but I will gladly repeat: I use a Raspberry Pi Model 1 B+ Does that result in a ...
by SonicWave
Tue Apr 10, 2018 4:26 pm
Forum: Bare metal, Assembly language
Topic: Use a FT232H-Chip to debug Pi 1 B+ via JTag + OpenOCD config
Replies: 32
Views: 4809

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

I am sorry that I take so much of your time but it seems, at least to me, that you are the only one on this forum who got JTAG working on the Pi. Check your wiring if you are using my old stuff then one pin is alt5 not alt4 I checked everything! Can you confirm, that this code is correct (the LED is...
by SonicWave
Mon Apr 09, 2018 7:41 pm
Forum: Bare metal, Assembly language
Topic: Use a FT232H-Chip to debug Pi 1 B+ via JTag + OpenOCD config
Replies: 32
Views: 4809

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

I apt-get install libftdi-dev I also did that. (stock unmodified openocd) ./configure --enable-legacy-ft2232_libftdi make Also did that. interface ftdi ftdi_vid_pid 0x0403 0x6010 ftdi_layout_init 0x0008 0x00fb I used this (changed PID according to dmesg): interface ftdi ftdi_vid_pid 0x0403 0x6014 f...
by SonicWave
Mon Apr 09, 2018 1:28 pm
Forum: Bare metal, Assembly language
Topic: Use a FT232H-Chip to debug Pi 1 B+ via JTag + OpenOCD config
Replies: 32
Views: 4809

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

try configuring and building with the legacy ftdi Is "--enable ftdi" sufficient? [email protected]:~/Desktop/openocd$ ./configure --enable-ftdi ft2232 is not you your list correct? I get this after ".configure": OpenOCD configuration summary -------------------------------------------------- MPSSE mode o...
by SonicWave
Sat Apr 07, 2018 8:04 am
Forum: Bare metal, Assembly language
Topic: Use a FT232H-Chip to debug Pi 1 B+ via JTag + OpenOCD config
Replies: 32
Views: 4809

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

Thanks a lot for your help! Because you got it working I am hopeful that it works on my setupt as well, sometimes. [email protected]:~/Desktop/openocd2/0.10.0-7-20180123-1217$ sudo lsusb [sudo] password for test: Bus 002 Device 003: ID 058f:6361 Alcor Micro Corp. Multimedia Card Reader Bus 002 Device 004:...
by SonicWave
Fri Apr 06, 2018 6:56 pm
Forum: Bare metal, Assembly language
Topic: Use a FT232H-Chip to debug Pi 1 B+ via JTag + OpenOCD config
Replies: 32
Views: 4809

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

At work I have to build my own openocd from sources, the apt-get one doesnt work. I compiled openOCD myself and it is still not working. There is a raspberry-native.cfg included (at openocd/scripts/interface/) with this content: # # Config for using Raspberry Pi's expansion header # # This is best ...
by SonicWave
Mon Apr 02, 2018 4:05 pm
Forum: Bare metal, Assembly language
Topic: Use a FT232H-Chip to debug Pi 1 B+ via JTag + OpenOCD config
Replies: 32
Views: 4809

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

The original pi required soldering
But what about the GPIOs 4, 22, 24, 25, 27 which can be used as JTAG by alternate functions (as described here: https://wiki.aalto.fi/download/attachme ... 322&api=v2)?
by SonicWave
Sat Mar 31, 2018 6:53 am
Forum: Bare metal, Assembly language
Topic: Bare Metal Hats?
Replies: 3
Views: 871

Re: Bare Metal Hats?

I do baremetal on Pi's nearly every day now and still feel no need for JTAG.
You don't get frustrated with the SD-Card method? Man I would love to get JTag working :(
by SonicWave
Fri Mar 30, 2018 4:43 pm
Forum: Bare metal, Assembly language
Topic: Use a FT232H-Chip to debug Pi 1 B+ via JTag + OpenOCD config
Replies: 32
Views: 4809

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

Thanks for your answer! Even with a reset switch it is still tedious to unplug the SD-card each time I want to try out a new program. I don't think this would be a replacement for JTAG. I think some folks have made progress on jtag I actually thought that JTag is already working with OpenOCD + JTag ...
by SonicWave
Thu Mar 29, 2018 7:22 pm
Forum: Bare metal, Assembly language
Topic: Problems with Mini-UART
Replies: 5
Views: 699

Re: Problems with Mini-UART

I do assume you set the baudrates on your terminal also to 57.600? To 460.800 Some terminals do not handle that properly I do use \r\n in my UART implementations when sending strings around... I tried that as well but it does not change anything. Does your terminal that is recieving the UART data "...
by SonicWave
Thu Mar 29, 2018 5:53 pm
Forum: Bare metal, Assembly language
Topic: Problems with Mini-UART
Replies: 5
Views: 699

Re: Problems with Mini-UART

Thanks for your answer. I disabled the irq for testing purposes: void writeString(char *str) { while(*str) { if((GET(AUX_MU_LSR_REG) & (1 << AUX_MU_LSR_REG_TRANS_EMPTY))); SET(AUX_MU_IO_REG,*str++); } } /* * ((250,000,000/460800)/8)-1 = 67 */ void initUART() { int ra; SET(AUX_EN_REG, 1 << AUX_EN_REG...
by SonicWave
Thu Mar 29, 2018 5:00 pm
Forum: Bare metal, Assembly language
Topic: Use a FT232H-Chip to debug Pi 1 B+ via JTag + OpenOCD config
Replies: 32
Views: 4809

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

Instead of ripping my SD-card apart I want to debug and upload programs comfortably via jtag without restarting my Pi by plugging power in and out. I use this FT232H-Chip: https://www.ebay.com/itm/FT232H-High-Speed-Multifunction-USB-to-JTAG-UART-FIFO-SPI-I2C-CJMCU-Module I think I found out that AD0...
by SonicWave
Thu Mar 29, 2018 12:06 pm
Forum: Bare metal, Assembly language
Topic: Problems with Mini-UART
Replies: 5
Views: 699

Problems with Mini-UART

This is my current code to get the mini-uart working: __attribute__ ((interrupt ("IRQ"))) void interrupt_irq(void) { if(GET(TIMER_READ_IRQ)){ if(led_on) { SET(GPCLR1, 1 << GPIO47); writeString("LED IS ON\n"); } else { SET(GPSET1, 1 << GPIO47); writeString("LED IS OFFF\n"); } led_on = !led_on; SET(TI...
by SonicWave
Wed Mar 28, 2018 8:46 pm
Forum: Bare metal, Assembly language
Topic: [Solved] Physical Memory Address Range - Pi B+
Replies: 1
Views: 649

[Solved] Physical Memory Address Range - Pi B+

Hi,

I am wondering what the physical address range of the memory on the Pi B+ is?
The document only says that "Software accessing RAM directly must use physical addresses (based at 0x00000000)", but how far does it range?
by SonicWave
Mon Mar 19, 2018 8:21 pm
Forum: Bare metal, Assembly language
Topic: JTag for Pi 3
Replies: 10
Views: 4360

Re: JTag for Pi 3

Did you read this? https://wiki.aalto.fi/download/attachme ... 322&api=v2
I think for the faster and more convenient uploading via JTAG it is worth the effort already.
by SonicWave
Mon Mar 19, 2018 7:47 pm
Forum: Bare metal, Assembly language
Topic: Development environment for bare metal
Replies: 3
Views: 1887

Re: Development environment for bare metal

I haven't done it but if you want to dive in the deep en ARM Development Studio 5 has a community edition (AKA free) Which kind of programming device would I need to do bare metal developing with this IDE, probably JTAG? Are the JTAG pins of the BCM2835 available on the Boards? Is it even possible ...
by SonicWave
Mon Mar 19, 2018 1:26 pm
Forum: Bare metal, Assembly language
Topic: Configuring interrupts and adress of routine
Replies: 1
Views: 491

Configuring interrupts and adress of routine

I finally figured out how to run ARMv6 assembler on my Raspberry Pi B+, I started toggling some GPIOs: .section .init .global main main: /* Set GPIO Pin 2 as Output */ ldr r0,=0x20200000 mov r1,#1 lsl r1,#6 str r1,[r0] infty: /* Set GPIO Pin 2 High */ mov r1,#1 lsl r1,#2 str r1,[r0,#0x1C] /* Set GPI...
by SonicWave
Mon Mar 19, 2018 1:14 pm
Forum: Bare metal, Assembly language
Topic: Bare metal playing-through-3.5-jack music
Replies: 1
Views: 783

Re: Bare metal playing-through-3.5-jack music

let's suppose I have a raw uncompressed music sample and I would like to play it through... whatever the simplest way...Would it be via the 3.5 jack or via a digital analog converter chip connected to a speaker? I did some ADC/DAC stuff with a small PIC16. It depends on the kind of data you have (I...

Go to advanced search