#avr | Logs for 2017-01-08

Back
[00:30:04] <Tom_L> rue_bed
[04:37:08] <jhn> Any suggestion for a DAC, allowing +-15V output? Need a truckload, price is an issue
[11:19:10] <mog> can anyone help me get a bootloader working on a samd11?
[11:20:39] <mog> i can push code to my board via embedded debugger , but when i try to get a usb boot loader going i dont see anything enummerate on usb
[11:22:16] <Casper> check the documentation
[11:22:33] <Casper> some of them require a condition to turn on
[11:22:46] <Casper> like hold a pin low before you apply power
[11:22:52] <mog> ive tried the reset tricks etc as well
[11:23:04] <mog> resets, sw0, etc
[11:23:16] <mog> i was just wondering if there was some fuse trick i was missing?
[11:24:16] <Casper> possibly, I don't know that device, check if there is some bootloader fuses
[11:24:24] <Casper> bbl
[11:36:36] <Tom_L> http://www.atmel.com/images/atmel-42366-sam-ba-bootloader-for-sam-d21_applicationnote_at07175.pdf
[11:37:35] <Tom_L> http://www.atmel.com/Images/Atmel-42363-SAM-D11_Datasheet.pdf
[11:38:36] <Tom_L> P.23
[11:38:51] <Tom_L> P.361
[11:49:20] <mog> ive played with those bits as well. but im before point of flashing via bootloader, im not seeing the bootloader create a usb device on boot
[11:49:41] <mog> just trying to see sam-ba on boot for example
[12:26:30] <Lambda_Aurigae> and there is a bootloader on the chip?
[12:53:14] <mog> there might have been before but im sure ive wiped it by now
[12:53:23] <mog> its just a samd11 xplained pro board
[12:53:35] <mog> so i still have the embedded debugger and can reflash it and get it to run code
[12:54:12] <Lambda_Aurigae> well, the bootloader won't run if it's not on the chip.
[12:54:30] <mog> i know...
[12:54:52] <mog> im trying to get one on the chip. when i flash it, it doesnt seem to run like the applications i flash without a problem
[12:55:54] <Lambda_Aurigae> if it were an avr I would say you aren't putting it in the bootloader section or you aren't turning on the bootloader fuse.
[13:30:17] <rue_bed> he'lll have to make his own rdac
[13:30:20] <rue_bed> or go 1 bit
[13:38:07] <carabia> AFAIK, atmel does not ship cm0 boards with bootloaders
[13:38:10] <carabia> I might be wrong.
[13:46:32] <carabia> also mog the "bootloader entry pin" is defined in the bootloader itself, the an shows pa15, but YMMV cause it's a diff chip. Find it, pull it low and see what happens
[13:46:44] <carabia> well, in SAM-BA anyway
[13:46:55] <mog> pa15 is the sw0 switch on the board
[13:47:00] <mog> and i checked for that too
[13:47:13] <mog> im just sure im missing something in fuses
[13:47:34] <mog> but everything i read makes it seem like at very least i should see the boot loader like a normal flash would
[13:47:46] <mog> i also verified usbcdc worked with a simple echo app i wrote
[13:47:50] <mog> so the board is fine
[13:55:42] <inflex> from a .hex file, how can I work out the flash size?
[13:57:23] <mog> inflex, you could convert it to a bin
[13:57:25] <mog> and tell from that
[14:15:17] <inflex> it's okay, found avr-size
[14:15:23] <inflex> been too long, forgotten about that
[19:28:30] <rue_bed> rrrrrrrrrrrrrrrrrrrr
[19:28:42] <rue_bed> has sleep ruined my weekend enough yet?
[19:52:25] <rue_house> hey wait
[19:52:38] <rue_house> who made that vga thing on the tiny avr?
[19:52:44] <rue_house> who was that agin
[19:52:53] <rue_house> ????
[19:53:12] <rue_house> zlog
[19:53:36] <Lambda_Aurigae> rue_house, that was jarzta
[19:53:37] <rue_house> Jartza, hey
[19:53:39] <rue_house> you
[19:53:46] <rue_house> Jartza, wake up....
[19:53:49] <Lambda_Aurigae> he made both the octapentaveega and the pentaveega
[19:54:05] * rue_house pokes at Jartza
[19:54:09] <rue_house> waaaaake uuuuuup
[19:55:21] <rue_house> Jartza, Jartza Jartza Jartza jarjar Jartza Jartza
[19:55:43] <Lambda_Aurigae> I'm guessing it is middle of the night for him.
[19:55:45] <rue_house> AAAAAaaaaaAAAAAaaaAAAaAAAAAaaAAaAAA
[19:55:53] <rue_house> ugh
[19:56:32] <rue_house> doyou recall if he said he manipulated the spi or someting to do it?
[19:56:46] <Lambda_Aurigae> USI, but, yeah.
[19:57:14] <rue_house> k, did he say anything about the bitrate he was outputting?
[19:57:17] <Lambda_Aurigae> in the spi slave mode as I recall.
[19:59:27] <Lambda_Aurigae> well, he is generating 320 pixels
[19:59:36] <Lambda_Aurigae> at least, on the octapentaveega
[19:59:43] <Lambda_Aurigae> 320 pixels across.
[19:59:48] <Lambda_Aurigae> for 640x480...
[19:59:52] <rue_house> yea, I have a project
[20:00:12] <Lambda_Aurigae> which is about half of 25mhz...so, 12.something mhz.
[20:00:35] <rue_house> I need to do about 3mbits of fixed data stream, its 1 bit analog
[20:00:48] <rue_house> he's overclocking?
[20:00:52] <Lambda_Aurigae> running the chip at 20MHz..
[20:00:54] <Lambda_Aurigae> attiny85
[20:01:03] <Lambda_Aurigae> so, not overclocked.
[20:01:13] <rue_house> oh, I want to do it on a tiny13
[20:01:35] <rue_house> it would need to read from an eeprom and shovel bits
[20:02:00] <Lambda_Aurigae> the pentaveega is a single attiny5 and I'm not sure what resolution he is generating there...haven't looked at that source yet.
[20:03:12] <Lambda_Aurigae> running that USI in spi slave mode you can stream data out pretty quick without pauses between the bytes.
[20:04:09] <rue_house> yea, but do you think it can swing fast enough to push 3 mbits and be pulling it from an eeprom
[20:04:32] <Jartza> rue_house: wut?
[20:04:42] <Lambda_Aurigae> hmmm.
[20:04:51] <rue_house> Jartza, are you familiar with a 1 bit dac?
[20:04:56] <Lambda_Aurigae> depends on the eeprom and how you are reading it.
[20:05:02] <rue_house> I'm working on a sound player
[20:05:11] <Lambda_Aurigae> only one USI on that tiny13
[20:05:25] <Jartza> there's no usi in attiny5 :)
[20:05:26] <rue_house> I would need about a 3mbit stream
[20:05:29] <Lambda_Aurigae> so might be a problem reading and writing.
[20:05:36] <Lambda_Aurigae> Jartza, you fully bitbanging that one?
[20:05:36] <Jartza> it's bitbanged, and 12MHz... low reso
[20:05:41] <Jartza> yeah
[20:06:07] <Jartza> rue_house: I don't know what you mean by 1bit dac?
[20:06:07] <rue_house> I'd have a 1 bit audio track on the eeprom
[20:06:19] <Jartza> just on/off fast enough?
[20:06:23] <rue_house> sigma delta encoded audio
[20:06:33] <rue_house> instread of pwm
[20:06:57] <Jartza> okay, ΣΔ
[20:07:00] <rue_house> but the bitrate has to be high
[20:07:29] <rue_house> it regnerates with an RC much better
[20:07:40] <rue_house> cause its encoded via RC
[20:08:12] <Jartza> mmkay
[20:08:14] <rue_house> but your doing 12Mhz?
[20:08:26] <Jartza> no, attiny5 runs at 12MHz
[20:08:28] <rue_house> is there a run limit on the amount of data your doing?
[20:08:43] <rue_house> take a breath on the refresh kinda thing?
[20:09:11] <Jartza> my octapentaveega runs at 20MHz and the USI pushes data out at around 7.5MHz
[20:09:21] <Jartza> I mean, reading and outputting data
[20:09:41] <rue_house> right
[20:09:45] <Jartza> I have 192 horizontal pixels in 640 pixel nominal resolution
[20:09:53] <Jartza> vga pixel clock is 25.175MHz
[20:09:57] <rue_house> so 3Mhz wouldn't be hard, but could you sustain it?
[20:10:00] <Jartza> that's how I estimated it
[20:10:12] <Jartza> 25.175 * (640 / 192)
[20:11:00] <Jartza> well, with right coding I don't see why you couldn't sustain 3MHz
[20:11:02] <Lambda_Aurigae> guess I had the wrong resolution on my calculations.
[20:11:13] <rue_house> on a tiny13 do you think?
[20:11:29] <Jartza> could be done
[20:11:36] <rue_house> you have used the tiny 5, 8, and 85?
[20:11:49] <Jartza> I have attiny5 and attiny85
[20:11:55] <rue_house> I assume your code was all asm?
[20:11:58] <Jartza> yea
[20:12:03] <rue_house> k
[20:12:09] <Jartza> octapentaveega is public
[20:12:18] <Jartza> well also pentaveega
[20:12:21] <Jartza> https://github.com/rakettitiede/octapentaveega
[20:12:31] <Jartza> but pentaveega doesn't much help you :)
[20:12:36] <rue_house> so your using the usi to clock the data?
[20:13:00] <rue_house> and your generating it on the fly or its from memory?
[20:13:12] <Jartza> I read it from memory and clock USI manually
[20:13:23] <Jartza> but you could of course clock USI by other means too
[20:13:56] <rue_house> how many instructions do you get between clocking the usi?
[20:14:05] <Jartza> Lambda_Aurigae: yeah, octapentaveega has 32 characters on row, 6 pixels wide characters
[20:14:10] <Jartza> 6*10 pixels
[20:14:26] <blade1> transcendence awaits https://twitter.com/7_descendants
[20:14:50] <Jartza> rue_house: check the octapentaveega, there's macro "draw_char" iirc
[20:14:54] <rue_house> yea I have to learn how to do nerve-whispering
[20:14:57] <Jartza> I'm ircing with my phone now :)
[20:15:03] <rue_house> heh
[20:15:18] <rue_house> "plausable" helps me a lot
[20:19:37] <carabia> blade's a bot?
[20:21:06] <rue_house> oh I just had a brilliant thought
[20:21:12] <blade1> no
[20:21:17] <rue_house> its not related
[20:21:24] <blade1> no i found this yesterday
[20:21:28] <blade1> on a puzzle on /x/
[20:21:35] <blade1> isk what to think
[20:21:38] <blade1> idk
[20:55:24] <Jartza> rue_house: I have brilliant thoughts every day!
[21:51:15] <rue_house> oh, this sucks
[21:51:33] <rue_house> the 512K eeprom I was gonna use for the audio can only do 400Khz serial
[21:52:40] <rue_house> 50kB/sec
[21:53:04] <rue_house> it'd do for 8Khz 8 bit samples
[21:53:26] <rue_house> which means not using 1 bit encoded audio
[21:54:31] <Jartza> d'oh
[22:08:22] <Jartza> I'm making a PCB for pentaveega
[22:08:30] <Jartza> just to keep up with PCB design skills :P
[22:18:29] <Casper> what skill?
[22:18:33] <Casper> the one you don't have? :D
[22:54:08] <Jartza> Casper: I've designed several dozen boards now
[22:54:28] <Casper> it's easy to make a led driver board :D
[22:54:38] <Casper> <=== bored
[22:55:54] <Jartza> yea, have made some of those too
[22:56:37] <Casper> trying to find a laser module... look like I may have more work to do :(
[22:58:37] <Jartza> https://drive.google.com/file/d/0B2dTzW9TMeBxVkZZNkh4Z0d2WWM/view
[23:10:01] <Casper> yeah, good stolen design! :D