#circuitpython-dev

1 messages Β· Page 111 of 1

umbral dagger
#

@drowsy geyser It's been ages since I dabbled with ML (my grad work was ML + NLP based).

sick creek
#

also other is location based day schedule

drowsy geyser
#

@umbral dagger Or an NTP-synced RTC board. They have a good selection in the Adafruit store. πŸ˜‰

#

@umbral dagger Cool! I'm developing a high-dimensionality (4,000+ dimensions) distributed Euclidean distance algorithm to determine "likeness" of documents (or other data sets) in large (~10,000 cores) cloud compute environments.

umbral dagger
#

@drowsy geyser Haha.. the vast majority of my prototyping supplies come from Adafruit these days. Especially since I largely switched from AVR to SAMD.

sick creek
#

my friend at Microsoft Flux study azure machine learning from coursera and he is in 3 week spot right now

drowsy geyser
#

AxureML is basically a front end to R....

umbral dagger
#

@drowsy geyser Nice.

drowsy geyser
#

They're still working on the "distributed" part of it.

umbral dagger
#

@drowsy geyser By "core" you mean CUDA cores or (e.g.) i7 cores? I'm assuming the former.

drowsy geyser
#

The former.

umbral dagger
#

Well.. this got away from CP ...

drowsy geyser
#

Indeed it did. Good to point that out. I forgot I wasn't in #general-chat.

sick creek
#

there is CNTK

#

well could write with python

umbral dagger
#

@drowsy geyser To bring it back... I'm wondering just how much muscle the SAMD51 brings to CP. Could it run some basic Python ML libraries. There's loads of ML/AI work being done in Python.

#

@drowsy geyser I might try to find out with this SAME54 eval board I just got.

sick creek
#

@umbral dagger you could send data from CP device to cloud for example to process it using python there with jupyter notebooks

drowsy geyser
#

That would be cool! Perhaps @slender iron could chime in on the amount of extra power in the 51.

umbral dagger
#

SAME54 and SAMD51 are covered by the same data 'sheet' (is it still a datasheet when it's 1700 pages long?)

drowsy geyser
#

Data book? πŸ˜ƒ

umbral dagger
#

@drowsy geyser I've had chats with him about it. I want to see how hard I can push it.

sick creek
#

@meager fog how much power M4 chip bring more than M0 to Circuitpython?

umbral dagger
#

@sick creek To start with, consider the massively large flash & sram space. Then consider the clock going 48MHz->120MHz.

#

@sick creek Depending on which version of the SAMD51 is used, it can have as much as 1M flash and 256K sram. That's pretty non-trivial.

drowsy geyser
#

@umbral dagger I can't wait to get my hands on one! I want to start seeing just what I can do with it, but I'm not helping enough to justify asking Scott for a prototype.

umbral dagger
#

It makes me stop in wonder when I remember that I started out with an 8-bit CPU at 1MHz, 8K ROM & 48K RAM. AND managed to do some cool stuff.

#

@drowsy geyser grab a SAME54 Xplained board from Digikey.

lofty topaz
#

@umbral dagger My 8 bit Z80 saved Zenith $40 million a year.

lofty topaz
#

@drowsy geyser Hi, how ya doin?

umbral dagger
#

@drowsy geyser Mine arrived a few minutes ago, thanks to @slender iron for turning me on to it.

#

@lofty topaz I did so much Z80 work (hand assembling some...for ZX81/TS1000), same for 6502. Glory days! I once built a Z80 system on a 6"x8" wirewrap board that was PACKED and no more capabile than what's onboard an ATMEGA328.

drowsy geyser
#

@umbral dagger Thanks! Ordered!

#

@lofty topaz Good, thanks! Been really busy with work...

umbral dagger
#

@drowsy geyser Like I said, same datasheet.. but with onchip ethernet

lofty topaz
#

@umbral dagger Do you remember C3 01 00

drowsy geyser
#

@lofty topaz How have you been?

umbral dagger
#

@drowsy geyser SDcard support onchip as well.. the eval board has a full size SD slot.

#

@lofty topaz That does look familiar.

lofty topaz
#

@drowsy geyser Much better. When it rains, it pours. Get yit back together.

#

@umbral dagger I always had my Z80's jmp 0100 to use the first 0FF bytes for program data.

umbral dagger
#

@lofty topaz I was thinking that C3 was a jump.

#

@lofty topaz Amazing.. after so many years.

lofty topaz
#

Everything I wrote in assembler for the Z80 started out C3 01 00.

#

It is a jump.

#

1979

#

Can you imagine having Adafruit in 1979???

umbral dagger
#

RadioShack was actually useful back then.

idle owl
#

@split ocean I have to run for bit but I want to send you a zip with the current state of my CPX, and have you try it looking exactly like mine. If it works, you might need to reflash the CPX, it could have something deeper causing the issue. As for your question yesterday, yes, your code can cause memory errors, it's not just the .mpy that can do it. I've even managed to get code to crash CircuitPython completely and reboot into safemode. πŸ˜ƒ

#

I'll be back in a bit.

tulip sleet
#

@umbral dagger M4 clock is 120 MHz vs 48 MHz. Plus it has hardware single-precision (not double) floating point. In MicroPython/CircuitPython, that's truncated to 30 bits instead of 32 bits (you lose the two lowest bits of mantissa precision). The internal CPU architecture is more pipeline and fancier, so that also gains. Rough experiments have yielded maybe 6x improvement, but it depends on the program.

umbral dagger
#

@tulip sleet 6x is a nice sized improvement. That performance boost, plus the memory increases (more code, and more data) will be fun to explore.

meager fog
#

imma test my metro m4 right now

#

woops doesnt enumerate

#

ill get back to this later

idle owl
#

Do any of the M0 boards charge attached lipoly batteries?

tidal kiln
#

the feathers do

idle owl
#

Oh keen. Thank you

tidal kiln
#

feature of all feathers

idle owl
#

Excellent. I have only the M0 Express. But I've also never had a lipoly so I've had no need to charge one. I wanted to get one for testing, but I wasn't sure if I needed a separate charger. I do not!

tidal kiln
#

feather m0 express?

idle owl
#

Yeah

idle owl
#

Nice!

stuck elbow
#

Hello everyone, I finally broke and create an account here.

tidal kiln
#

hey @stuck elbow, welcome aboard

idle owl
#

@stuck elbow Welcome!!

tulip sleet
#

@stuck elbow hi - you'll find lots going on here

stuck elbow
#

Probably not in my time zone πŸ˜‰

idle owl
#

@stuck elbow You'd be surprised.

tidal kiln
#

maybe not. "random hacker times" might be middle of the day for you

meager fog
#

@stuck elbow hiya πŸ˜ƒ adabot

#

@tulip sleet im going to wait till scott gets back to figure out why it isnt enumerating

#

and hack on SAMR21 for a bit

#

since its languished

stuck elbow
#

@meager fog hi, nice to meet you!

formal plover
#

Hi @stuck elbow!!!

umbral dagger
#

@stuck elbow Hi there!

tulip sleet
#

@meager fog whoops, missed your earlier msg. m4 PID is 0x8015 for CPy right now. That overlaps with Feather M0, not Express, so I guess Scott mean that to be temporary.

slender iron
#

@meager fog just hipchatted you a new bin

#

@tulip sleet I think its a bootloader thing. we'll see what it takes to get her going

meager fog
#

@slender iron thx

#

one min i have to resetup my boss

#

a

slender iron
#

np

#

@meager fog lets debug here

meager fog
#

ok!

#

YAH

#

do you have one of the fancynew m4's or just the smt one

slender iron
#

I can build whatever size you need

#

I just got them this morning

meager fog
#

~wow~

slender iron
#

lemme go try

meager fog
#

ok

slender iron
#

I need a new bossa right?

meager fog
#

you do

#

its commited you just have to build

#

im using win7

slender iron
#

kk

meager fog
#

if you build add to the relesase, i put the m4-friendly bossa there

slender iron
#

k

#

its the arduino branch?

meager fog
#

8k vers doesnt eotk riyhrt

#

work either

#

yah arduino branch

slender iron
#

kk

meager fog
#

it is, unfortunately, a total pain to build

slender iron
#

why?

#

is fidning out

meager fog
#

you need wx

#

you're probably saying to yourself "but its a command line tool, why does it depend on wx?"

slender iron
#

make bin/bossac worked

meager fog
#

yay great

slender iron
#

not sure the binary works πŸ˜ƒ

sick creek
#

i guess it need binary to work I guess

slender iron
#

yup, rebuilding circuitpython first

meager fog
#

want me to try on the SMT m4?

slender iron
#

nah, I think its an interaction with the bootloader

#

all my testing is with the jlink loading at 0x000

sick creek
#

I can run the bossa linux compile command in my windows 10 Ubuntu terminal πŸ˜ƒ neat

#

Now I wish I have M4 board

fresh isle
#

It is so cool to see this interaction. thanks for sharing the work here!

slender iron
#

@meager fog I'll try loading it with jlink after the bootloader

meager fog
#

ok ill keep samr21'ing - ill give you a variant for circuitpy when its done πŸ˜ƒ

sick creek
slender iron
#

@meager fog the bootloader code is in the samd51 branch right?

meager fog
#

yah

slender iron
#

kk

formal plover
#

J link for the win!

sick creek
#

@tulip sleet you have M4 already?

tulip sleet
#

@slender iron I'm ready to make a new lib bundle. Can hold off on CharLCD and AMG8xx. I do want to fix the naming for ccs811. I have PR for that but could accept it myself. We can make another bundle in a few days. Want to get fixes in for 2.1. Do you want to review it or should I just do it?

#

@sick creek I have an earlier prototype: newer prototypes arrive tomw

slender iron
#

@tulip sleet just do it. whats wrong with the naming? I thought the new PR I accepted had the correct capitalization

tulip sleet
#

in the directory, but the actual .py file was Adafruit_CCS811.py instead of adafruit_ccs811.py. I only noticed that afterwards. Also a typo in .travis.yml.

#

i have a similar PR in for AMG8XX.

slender iron
#

ah ok

stuck elbow
#

what's the mcu on the new m4 ones?

slender iron
#

SAMD51J20A iirc

stuck elbow
#

can't find it on microchip's website

#

got it

#

ram with ECC? O.o

tulip sleet
lofty topaz
#

Just spent $340+ to resupply my workshop. Adafruits freebies were a very nice touch. Thanks @river quest

stuck elbow
#

I'm certainly looking forward to 256kB of RAM

#

@lofty topaz what did you get?

lofty topaz
#

@stuck elbow You name it. I bought it. πŸ˜ƒ

stuck elbow
#

No, I mean the freebies

lofty topaz
#

Not really. Just more Arduino stuff.

#

Oh, ah a Trinket MO a CPE a perma board and a Gemma?

slender iron
lofty topaz
#

Yeah, that's the link. Way cool. Just when I was about to order I saw the banner.

#

Your talking about $40 worth of very good stuff for free. How they do it is beyond me.

#

Now I need to get a job. πŸ˜ƒ

tulip sleet
#

@slender iron have to go out for a few hours, but will finish and publish bundle this evening

idle owl
#

@split ocean Did you get everything you needed back to a working order for your stream? I know it's coming up quick enough that we're not going to troubleshoot right now but I wanted to make sure that you were at least good to go for that.

sick creek
#

M4 freebies @stuck elbow

formal plover
tidal kiln
#

and no tiny UPS truck πŸ˜₯

formal plover
#

Haha womp womp. Better fire off an angry tweet. @tidal kiln

#

"It's in the photo!!!!"

#

Lol

lofty topaz
#

What's super nice is no taxes and no shipping.

sick creek
#

Giant UPS truck

meager fog
#

@slender iron im goin' in 30 minutes to do a talk - so let me know if you want me to retry something. i can also just jlink

slender iron
#

@meager fog at lunch with @timber lion will keep looking afterwards

meager fog
#

np

#

l8r blinka

idle owl
#

@meager fog Have fun at your talk!

manic glacierBOT
#

@tdicola I think what you are suggesting is similar to what @tannewt mentioned, but bury it in I2CDevice, i.e. Option 3. I think this would also cover the case of software I2C like ESP8266 as @jerryneedell has pointed out.

Summarizing thoughts to date:
OPTION 1 = current approach, works fine, but requires boiler plate
OPTION 2 = no good, relies on .SCL and .SDA, wouldnt' allow multiple sensor, etc.
OPTION 3 = maybe?
OPTION 4 = no good, see option 2
OPTION 5 = only works for fixed address

manic glacierBOT
#

There is also option 6, make busio.I2C() without parameters default to board.SDA and board.SCL, but still require explicit creation of the IΒ²C bus. And option 7, pass I2CDevice to the sensors, instead of i2c and address, and make the I2CDevice default to board.SDA and board.SCL. Not sure how it would know the default address for the sensor, though, maybe the driver code could initialize it if it wasn't specified by the user:

from adafruit_bus_device.i2c_device ...
umbral dagger
#

I really kind of want to put one of those 8Mbyte SPI flash chips on a TrinketM0. It's like a monster truck... no practical value, but it can be done.

stuck elbow
#

there is a trinket m0 haxpress board definition in the repo

#

you will just need to write the header file for your flash chip

#

also, I found it's much easier to just build your own trinket using the same chip in a larger package, than to solder to those tiny legs

split ocean
#

@idle owl thanks, I was all good for the stream, I showed color and accelerometer bahavior and only mentioned that sound would be coming as it is developed into express.mpy

idle owl
#

@split ocean Yeah I watched most of the stream. It looks really good!

#

I love your UFO

split ocean
#

Thanks!

#

I was super happy w the tractor beam :)

#

poor Tinker Bell

idle owl
#

Yeah that was pretty great, lol

split ocean
#

I think I'll focus on getting it all working using the regular libraries for the first iteration of the guide, then move to express when it's ready

umbral dagger
idle owl
#

Sounds like a plan. Sorry we couldn't get it going! I was really hoping to. I messed up my own project by creating express without touch and had to wait to finish a guide until I added it. So I understand πŸ˜ƒ

umbral dagger
#

@stuck elbow If you do your own bigger board, you pretty much have a feather. The Trinket hack was totally "hmm... I bet that would work..."

#

Python question/verification: not everythign results in a value, right? E.g I can't return the result of an if. Correct?

slender iron
#

@meager fog the older version I have is an SAMD51J20 and the new one is SAMD51J19

sick creek
#

really?

#

odd naming as old is 1 number higher

umbral dagger
#

the 19 has 512/192 and the 20 has 1024/256 I believe from my skim of the datasheet.

slender iron
#

yup yup

umbral dagger
#

😦

#

πŸ˜ƒ

slender iron
#

@umbral dagger you can always swap it in

umbral dagger
#

Since they're both the J package, I assume the pinouts are identical.. would have to verify, though

slender iron
#

yeah, I think so

umbral dagger
#

That had occurred to me

#

Like... why settle for what's on the board if you have an iron & an SMT tip πŸ˜ƒ

slender iron
#

@fading solstice

fading solstice
#

yes?

slender iron
#

I'll have time in 10 minutes or so

#

(sorry usb was finnicky while typing. πŸ˜ƒ )

fading solstice
#

voice CircuitPython room?

slender iron
#

in 10 works

#

just building and testing a non-debug build

fading solstice
#

ok

slender iron
#

then I'll have time and brain space

fading solstice
#

in 10

slender iron
#

yup yup

#

πŸ‘ works

fading solstice
#

yeah

slender iron
tidal kiln
#

@umbral dagger just return the conditional

def foo(a):
    # something that's like if a == 42
    return a == 42
umbral dagger
#

@tidal kiln Ah.. but it's not a boolean:

    relative_humidity = si7021.relative_humidity
    if relative_humidity < (target_humidity - 5):
        return -1
    elif relative_humidity > (target_humidity + 5):
        return 1
    else:
        return 0
tidal kiln
#

looks ok. what're you trying to do?

true coyote
#

I'll just be sitting here trying to decipher what this is doing.

#

Is this a trigger that activates depending on the humidity?

umbral dagger
#

@tidal kiln Oh, that works. Most languages I tend to use would let me put the return before the if and just have the values inside (if they even require an explicit return)

#

@tidal kiln Python is just close enough to what I'm used to, to make me feel like it should work the same way... but I always have the feeling that that's not quite right πŸ˜ƒ

tidal kiln
#

return before if? how would you get to if statement?

#

do you have a code snippet that's like that?

umbral dagger
#

@tidal kiln Yes, in ruby I can do this (the return is implied... last value computed is automatically returned):

#
  if x < 0
    -1
  elsif x > 0
    1
  else
    0
  end
end
floral dagger
#

you mean something like this? return x if c else y

umbral dagger
#

@floral dagger but with several cases, not just 2

tidal kiln
#

that'll only give two...

umbral dagger
#

@floral dagger but yes, that sort of thing. I saw that construct.. kinda cool

#

In Ruby, Lisp, Haskell everything results in a value, everything is an expression... you get used to it πŸ˜ƒ

tidal kiln
#

@umbral dagger ok. haven't worked in those langs.

umbral dagger
#

Python is closer to C in that you have expressions and statements.

floral dagger
#

what about return -1 if x < 0 else 1 if x > 0 else 0

tidal kiln
#

yeah. can nest.

floral dagger
#

well heck. that's dumb :p

umbral dagger
#

One thing I have on my list of M4 projects is to do somethign like circuitpython but with a lisp instead of python (probably a stripped down Scheme... which I just happen to have 90% complete)

#

@floral dagger Huh.. ok, cool... but slightly confusing to read.

floral dagger
#

that just worked for me in the python tool

umbral dagger
#

@floral dagger That works fine in CP

floral dagger
#

although I had to make x lowercase twice.

umbral dagger
#

@floral dagger once that's fixed

#

@floral dagger Long var names makes it even more opaque. I'll stick with keeping it wordier but more obvious.

floral dagger
#

@umbral dagger awesome. You're right it is a little wonky to read.

umbral dagger
#

@floral dagger OK, I used that construct to simplify another function... to the point that having it a function was useless and I just inlined the line.

stuck elbow
#

@umbral dagger ah, so it was you who did it, thanks, it gave me an idea for using flash in my own board

cunning crypt
#

@floral dagger @umbral dagger This made me think that an example of coding for filesize vs coding "normally" could be useful. Especially for non-express boards

stuck elbow
#

@umbral dagger yeah, Python has separate statements and expressions, and you can't use a statement in an expression

umbral dagger
stuck elbow
#

@umbral dagger you know that it has a real dac pin?

#

@umbral dagger if you are compiling your own firmware, you can enable the audioio module

#

and then have any sound you like

umbral dagger
#

@stuck elbow Ya, I know.

river quest
#

oh @slender iron @meager fog is speakin' at an event

#

she'll see that @ laterz!

slender iron
#

no worries @river quest

manic glacierBOT
#

The readonly arg to storage.remount() is now a keyword arg that
defaults to False. To maintain backwards compatibility, readonly
can be passed as a positional arg or keyword arg.

I tested my changes with this script. The file was renamed as main.py on the Feather M0 Express. Since the storage could not be remounted while USB was active, the test was run with the Feather plugged into a phone cha...

manic glacierBOT
#

While working on issue #286, I discovered that there is not an easy way (say shorting a pin to GND or 3V while pushing reset) to reboot the Feather M0 Express into safe mode. I messed up some test scripts and ended up getting the CIRCUITPY drive stuck in read only mode (read only from the PC) and had to temporarily flash firmware with safe mode forced on to fix it (this was easier than switching to Arduino and wiping the SPI flash).

The Feather M0 Express doesn't have a switchable safe m...

split ocean
#

is there a good example of using the accelerometer on CPX in CircuitPython w the adafruit_lis3dh library?

#

(was doing it w express.mpy before, but need to do w/o for now due to other conflict w sound playback)

slender iron
#

@split ocean the memory issue still?

manic glacierBOT
slender iron
#

ideally we'd figure that out

split ocean
#

agreed :)

slender iron
#

kk

idle owl
#

@split ocean All the examples that Tony D sent you when you asked last time are using that library

manic glacierBOT
split ocean
#

I'll switch it to the express one when that's ready, this way I can get it working and the guide together for UFO

manic glacierBOT
timber meteor
#

Hello!

idle owl
#

Hi @process1183#4203 !

#

@split ocean Understandable. I still wish I knew what was going on with that, why it worked for me and not you. We'll get it sorted eventually.

split ocean
#

Oh, weird, your code.py worked for you on a CPX w CircuitPython 2.1?

idle owl
#

Yeah, your code worked great. That zip I posted was the current state of my CPX.

split ocean
#

(sorry, should have realized you had that working before suggesting I try it!)

slender iron
#

@timber meteor welcome! thanks for your PRs!

#

now that you are a collaborator I can assign issues to you. muahaha

timber meteor
#

@slender iron sweet!

split ocean
#

@idle owl I had seen your code.py but not the zip file. Checking that outnow

slender iron
#

I record the weekly meetings if you want to listen afterwards. They are in posts that are pinned. (The pin icon at the top.)

idle owl
#

@split ocean I figured send you everything I had on mine in that form to see if for some weird reason some other file you had was causing issues.

timber meteor
#

OK, cool. I'll check those out.

idle owl
#

Hello anyway! πŸ˜ƒ

timber meteor
#

Hi @idle owl!

split ocean
#

@idle owl yay!

#

It works now.

idle owl
#

Excellent!

slender iron
#

woo! good job @split ocean and @idle owl

split ocean
#

I realized by looking at your zip file that you didn't have a lib folder full of our bundle stuff. Oops.

idle owl
#

Oh yeah!

split ocean
#

I'm sure my memory error was just conflicts w all sorts of things

idle owl
#

So much of it got frozen into the CPX 2.1 so it doesn't need to be in there

#

I was hoping sending that would clear things up!

stuck elbow
idle owl
#

I got so excited I almost forgot to add documentation. lol.

split ocean
#

a .zip archive is worth 1000 words.

stuck elbow
#

it's basically a snake-shaped trinket m0 without the polarity protection

#

and without any pins

idle owl
#

@stuck elbow That's fantastic!

slender iron
#

@stuck elbow's board is <$9 bare too!

#

for three!

stuck elbow
#

you can solder a paperclip to it and use it as a pin

cunning crypt
#

@stuck elbow I feel like it would be fantastic if the eye was a LED/neopixel, and the body layers (Neck, top, middle, bottom coils) were capacitive touch buttons

slender iron
#

maybe some apa102s down blinka to light?

#

or what @cunning crypt said

stuck elbow
#

@cunning crypt a neopixel would be more like the whole head

cunning crypt
#

I'm not surprised.

#

They're small, but not THAT small

slender iron
#

apa102s are tiny

stuck elbow
#

but I;m rather thinking about regular purple leds along the neck on the back side, to not spoil the graphic

cunning crypt
#

oooo

stuck elbow
#

problem is, it's hard to lay it out on one layer

split ocean
#

@idle owl for purposes of the tutorial, is the express.mpy you sent me in that .zip file available to the public yet?

stuck elbow
#

I can share the Fritzing file

idle owl
#

@split ocean I'm going to try to get it tonight before the new bundle gets created. At the moment, no it's just with me, but I'll get a pull request in.

split ocean
#

OK, cool. I'll try to publish the guide tomorrow or Monday.

slender iron
#

@idle owl ping me when you need a review

idle owl
#

@slender iron I will thanks! Just need to finish up the docs bit.

tulip sleet
#

@idle owl I was going to build a bundle tongiht, but if you think it will be done soon...

idle owl
#

@tulip sleet I'm thinking 10 minutes unless there's an issue with it.

#

@slender iron Ok it's up. Let me know if anything needs changing or adding.

slender iron
#

k looking now

idle owl
#

I've never rushed through that whole process, I'm hoping nothing slipped.

#

Nice!

slender iron
#

merged! @tulip sleet now you can grab it. I'll do a quick release

#

0.8.1 released

idle owl
#

Nice!

tulip sleet
#

@slender iron OK! new bundle in a little while

slender iron
#

πŸ‘

formal plover
#

@tulip sleet Bundle!!! Woot woot!

tulip sleet
idle owl
#

Yay!

tulip sleet
#

thanks everyone for all the contributions to this bundle!

idle owl
#

@tulip sleet Thanks for getting it built!

slender iron
#

thanks for pulling it together @tulip sleet

tulip sleet
#

gotta figure out where to announce it forum, and will update the blog posts to add a pointer.

formal plover
#

❀ everyone

#

All this rapid development making my head spin. I'll be like: Hey guys my M4 arrived! @slender iron will be all like, of there's a newer board now. Lol

idle owl
#

That always happens. Like the install CDs you get with literally anything. Useless before they shipped.

formal plover
#

Haha right @idle owl!

#

Good thing I've got the CircuitPython briefing sponsored by @idle owl

#

Lol

slender iron
#

I just tweaked Rosie to only report status to github when it fails or succeeds rather than including "pending" and "error" states

#

should make it less noisy

formal plover
#

I haven't checked discord in 5 hours. 456 unread messages. Most recent comment: artificial intelligence that matches human consciousness achieved via Adafruit CircuitPython.

idle owl
#

And after checking just to be sure, my project code all still works as intended. lol.

manic glacierBOT
formal plover
#

That's great @idle owl

slender iron
#

@tulip sleet the rosie change I just made should make it more useful. it won't attach a status until it successfully runs the test

lofty topaz
#

foreach??? In Python?

tulip sleet
#

for elt in sequence: ?? is that your question?

#

for elt in [1,2,3]: print(elt)

lofty topaz
tulip sleet
#

@lofty topaz fixed - that was just someone writing late at night

lofty topaz
#

πŸ˜ƒ thought so. ><>

#

Also, I'm a bit concerned that "array" is a built-in. Any reason why and do you have dictionaries yet?

slender iron
#

@lofty topaz python is all dictionaries

#

they are used internally and available as built-ins

lofty topaz
#

@slender iron Ok, great, the text on the website just indicates Tuple, Lists and Arrays.

tidal kiln
#

maybe just semantics? array being used in a general sense?

#

kind of like the term 'sequence'

lofty topaz
#

@slender iron Please don't missunderstand me. The tutorial on CPX is fabulous. Huge to say the least, growing as we speak and very helpful. It's just when I see things that aren't quite right I tend to say something. Kudo's to you and the staff on this project.

tidal kiln
#

no prob with dictionaries in cp:

>>> d = {'key':'val'}
>>> d['key']
'val'
>>>
slender iron
#

@lofty topaz no worries. thats why I want to get us to a place where details like that can be easily adjusted

lofty topaz
#

@tidal kiln Great, Doc should reflect that. Dict. are a very important part of python. I my view anyway.

formal plover
#

I used that in my OpenWeather API using the HUZZAH

#

print(r["main"]["temp"]

lofty topaz
#

I've been involved with micropython these days and will be switching over to CPX in the near future. That's why I'm getting educated on it with the webste.

tidal kiln
#

don't take whats (currently) there too strictly then, don't think if it's not mentioned it's not supported.

#

but good feedback for updating the guide

lofty topaz
#

@tidal kiln I know, it's like HTML, a living document. Not version controlled.

umbral dagger
#

@stuck elbow Cool board concept.

idle owl
#

On that same page it still says Trinket and Gemma don't have pulseio and sudioio support. Everything updates so quickly it's difficult to keep up!

formal plover
#

Thanks to @tulip sleet space saving

lofty topaz
#

@idle owl Which is why prying eyes like mine will say something so it can be updated.

idle owl
#

@lofty topaz There's also a feedback link on the left side towards the bottom where you can provide feedeback.

lofty topaz
#

@idle owl I just mentioned the 'foreach' and it got fixed in minutes. Refreshed the browser and walla, there's the fix.

idle owl
#

@lofty topaz Yep! We can't always get to it that quickly, but we listen!

lofty topaz
#

@idle owl Feedback??? Where??? Am I missing something???

#

@idle owl Oh, on the website page, yes, your right.

idle owl
#

There you go!

#

It's a good option because there's not always someone here who can fix it.

tulip sleet
#

@lofty topaz all fixed

lofty topaz
#

I took a chance. CPX is getting all the attention these days so I just figured.... ><>

#

Dan's the man. πŸ˜ƒ Thank you sire @tulip sleet

formal plover
#

Dan is certainly the man for sure @lofty topaz

tulip sleet
#

I'm just doing easy stuff after a busy week. Scott is also the man. He's climbing the very foggy ASF4 mountain right now.

lofty topaz
#

@tulip sleet Yeah, I know, API development is nuts.

tulip sleet
#

the doc is terrible, and he's found bugs

meager fog
#

@slender iron hiya back

lofty topaz
#

@meager fog Hello, we were just talking about the website I've been reading for the CPX. What a piece of work.

#

I love it.

manic glacierBOT
idle owl
#

@meager fog How was the talk?

meager fog
#

good! i also ate food which is rad

lofty topaz
#

What was the talk about?

#

Was it video'ed

cunning crypt
#

Eating food is always a good idea

#

Bad Things happen when you don't

meager fog
#

it was a talk on 3d printing, i dont think it was vid

lofty topaz
#

What a world that is. My XYZ 3D is down getting cleaned. I use it so much.

meager fog
#

ok nite nite!

#

zzz

manic glacierBOT
cunning crypt
#

There's no LoRa libraries for CircuitPython yet, correct?

tulip sleet
#

right

#

just searching github yields some regular Python libraries though, e.g., for RasbPi

cunning crypt
#

Oh, cool. If I ever get the time, I'll take a look and see if they work.

#

But... that's not high on my list right now. I've got a bunch of other things in front.

solar whale
#

@tulip sleet @slender iron and all involved great job getting CP 2.1 and Bundle released. So far, no issues rebuilding all boards with 2.1 .0 and recreating Bunndle. Looking forward to more time to check ot the changes this weekend.

manic glacierBOT
#

The following functions are supported by Micropython, but currently are NOT supported in CircuitPython. Is this a surprise? To save memory I suspect. These function are not commonly used.
Functions

.. function:: acosh(x)
Return the inverse hyperbolic cosine of x.
.. function:: asinh(x)
Return the inverse hyperbolic sine of x.
.. function:: atanh(x)
Return the inverse hyperbolic tangent of x.
.. function:: cosh(x)
Return the hyperbolic cosine of...

manic glacierBOT
fading solstice
#

@slender iron the functions that are not in CircuitPython are surrounded by #if MICROPY_PY_MATH_SPECIAL_FUNCTIONS/#endif. concerning shared-bindings documentation. If some inline documentation is surrounded by #if SOMETHING /#endif and SOMETHING == 0, does that documentation get emitted, published ?

slender iron
#

@fading solstice it'll get published

fading solstice
#

hmmm

slender iron
#

the C -> RST code is very stupid

fading solstice
#

yes, stupid. oh well

manic glacierBOT
slender iron
#

maybe just comment it out so it starts with // //| ?

fading solstice
#

yes.

slender iron
#

it is smart enough to look at the line start I think

manic glacierBOT
#

[comments crossed]

These are turned on by #define MICROPY_PY_MATH_SPECIAL_FUNCTIONS (1). If I turn them on, they use up an extra 15k flash. So they're not so desirable, even for the M0 Express boards.

We could turn them on in the M4 build, maybe, though we'll need to see what our flash budget is.

Note that complex number support is turned off on the non-Express M0 builds right now. That also is large enough to make a difference.

manic glacierBOT
#

The embedded documentation should reflect which math functions/features are available on which boards. For example we could put a disclaimer in like "The following functions are supported on all boards: <math function list>. The following functions may not be available depending on your board: <match function list>. The determine what functions are available enter the REPL type import math followed by dir(math) "

The documentation would, of course, be simpler if all boards supported t...

idle owl
#

Ok. I tried to flash it. It found the device, said Erase flash, done, but then says no such file or directory. ```Device found on cu.usbmodem14111
Atmel SMART device 0x60060005 found
Erase flash
done in 2.518 seconds

No such file or directory```

slender iron
#

did you download a bin and change the path @idle owl ?

idle owl
#

I changed the path, but no I didn't download a bin. Ahhh ok

slender iron
#

you could also try building it yourself

idle owl
#

It worked!

slender iron
#

yay!

idle owl
#

I have REPL!

slender iron
#

I'm gonna make a secret role for those who have metro m4 expresses so we can mention everyone

idle owl
#

Sounds good!

sick creek
#

m4 for everyone

floral dagger
#

I'm trying to load 2.1 onto the Feather Huzzah, but getting the same issue I had with breakout. Anyone know if there's a way to power these with an external supply like you can the breakouts?

brisk cairn
#

Is there a "mpy-cross.exe" for windows available on GitHub already compiled? I know the source code is on their but it's hard to compile.

slender iron
#

@floral dagger have a lipo battery?

floral dagger
#

not one with a proper connection

slender iron
#

@brisk cairn @tulip sleet might have one. I don't develop on windows so I don't

floral dagger
#

are the BAT and USB pins output only? The learn docs mention using them as power sources for connected devices, but doesn't mention if you can also use them to power the huzzah

idle owl
#

It blinks!!

solar whale
#

@floral dagger I load to a feather huzzah routninely, what is the problem you are haveing?

slender iron
#

@floral dagger I don't think so

stuck elbow
#

who do I kill to get one too?

#

m4, I mean

floral dagger
#

@solar whale It just loads gibberish and gives fatal errors on boot. It was the same issue I had with the breakout, but resolved it by powering with a stronger 5v supply

solar whale
#

@floral dagger On the breakout I thought you were once using 3.3 v to power but USB to the Feather shouild eb 5V and plenty.

umbral dagger
#

@stuck elbow You can always grab a SAMDE54 Xplained board from Microchip/Digikey.

stuck elbow
#

or make my own

umbral dagger
#

yup

sick creek
#

make Circuitpython board what runs M4

solar whale
#

@floral dagger - did you erase the flash before loading 2.1

floral dagger
#

@solar whale Oh yeah, you're right. I forgot my adapter is 3.3...I was just thinking USB

solar whale
#

Thsi can be a bigger problem

floral dagger
#

yes. I've tried a powered USB hub as well

solar whale
#

I often get prblems if I don't erase

stuck elbow
#

@sick creek so far I made a m0 one, but can't get the display to work

slender iron
#

@stuck elbow killing someone is not how you get it. you can email me and ask nicely though πŸ˜ƒ

floral dagger
#
esptool.py --port COM12 --baud 460800 write_flash --flash_size=detect 0 adafruit-circuitpython-feather_huzzah-2.1.0.bin```
stuck elbow
#

will do!

#

I'm sure that killing enough people would work too, though

floral dagger
#

this is what works with the other one

idle owl
#

@stuck elbow You'd have to fly a long ways... get back home after a murder.... seems like a huge hassle.

solar whale
#

@ brad - should be OK - nto sure what the problem is.

cunning crypt
#

@stuck elbow Yeah, but the people you'd do that to would be the ones that you'd have to keep alive to help you get it to work

floral dagger
#

Yeah, I don't know either. I'll try lowering the baud rate to see if that helps

solar whale
#

@floral dagger but I doubt it is power related.

#

Does he erase complete noremally?

floral dagger
#

yeah...all that looks great

#
esptool.py v2.2-dev
Connecting....
Detecting chip type... ESP8266
Chip is ESP8266EX
Uploading stub...
Running stub...
Stub running...
Erasing flash (this may take a while)...
Chip erase completed successfully in 8.5s
Hard resetting...

C:\Users\tbrad\Documents\esptool>```
#
esptool.py v2.2-dev
Connecting....
Detecting chip type... ESP8266
Chip is ESP8266EX
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
Configuring flash size...
Auto-detected Flash size: 4MB
Flash params set to 0x0040
Compressed 595076 bytes to 387307...
Wrote 595076 bytes (387307 compressed) at 0x00000000 in 9.3 seconds (effective 514.3 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting...

C:\Users\tbrad\Documents\esptool>```
#

then this over and over

tail 8
chksum 0x11
load 0x3ffe8450, len 3248, room 0
tail 0
chksum 0xfd
csum 0xfd
lβ–’β–’|β–’β–’rrnbβ–’β–’
lβ–’
bβ–’l
bμŒœβ–’β–’β–’ll
b
β–’lrll
lβ–’β–’|β–’β–’rrnbβ–’β–’llβ–’β–’
bβ–’
bμŒœβ–’β–’b
bβ–’
β–’lrlβ–’
lβ–’β–’|β–’β–’rrnbβ–’β–’l
β–’β–’
bβ–’
bμŒœβ–’β–’l
bβ–’lblβ–’β–’β–’β–’nβ–’rβ–’β–’n|β–’
l
lll`β–’β–’rβ–’lβ–’lβ–’
l`β–’β–’rβ–’lβ–’lβ–’
l`β–’β–’rβ–’l
β–’β–’β–’
ll`rlβ–’β–’rlβ–’β–’β–’b
β–’β–’bβ–’b
brβ–’r
bβ–’β–’nβ–’nnβ–’
lβ–’β–’
l
β–’
lβ–’β–’llβ–’β–’β–’β–’β–’β–’lβ–’nβ–’β–’β–’β–’b
l
lβ–’rp
β–’β–’β–’b
l
β–’brlrlrβ–’nβ–’β–’β–’
β–’β–’nβ–’β–’β–’β–’brbβ–’β–’bμŽœβ–’lbβ–’lβ–’lβ–’lblβ–’β–’lnβ–’prlβ–’
β–’#4 ets_task(40100164, 3, 3fff8390, 4)


Adafruit CircuitPython 2.1.0 on 2017-10-17; ESP module with ESP8266
>>>

solar whale
#

@floral dagger that looks very noremal

sick creek
#

the former looks broken

floral dagger
#

it just keeps rebooting though

slender iron
#

@floral dagger this is on the same USB as your breakout had trouble?

cunning crypt
#

@floral dagger I've had that issue with Arduino on an ESP before. Putting not enough things in the main loop would just make it continually reboot

solar whale
#

the giggerish is completely normal -- preboot uses a lower baudrate

floral dagger
#

@slender iron I have it on a powered hub

cunning crypt
#

74880 baud for the pre-boot ESP-specific stuff

slender iron
#

weird!

floral dagger
#

just got this

Adafruit CircuitPython 2.1.0 on 2017-10-17; ESP module with ESP8266
>>> Fatal exception 9(LoadStoreAlignmentCause):
epc1=0x
tulip sleet
#

@brisk cairn I haven't made a Windows mpy-cross, but would really like to be able to supply one. It's on my list to investigate. Maybe a Cygwin or MinGW executable.

solar whale
#

@floral dagger can you use ampy to downlod and check the boot.py file loaded.

floral dagger
#

i'll try that next was giving the baud ate @cunning crypt don suggested a try

solar whale
#

It willn ot stay at that baud rate after boot - so you won;t see much πŸ˜‰ since you see the boot banner - it gets taht far.

floral dagger
#

no, but was hoping maybe a cleaner write may help

#

ampy isn't seeing it

solar whale
#

did you exit your terminall sessio

floral dagger
#

Yes

solar whale
#

OK - ampy won;t work if it can't get to REPL anyway

floral dagger
#

I don't want to eat up the channel. I'm going to keep throwing things at it to see what sticks. Thanks everyone. If you think of something, please let me know

solar whale
#

OK - I'll be home later and will try loading the same image.

#

@floral dagger one more silly question should. After load are to pressing reset button ?

floral dagger
#

yes, and between each step of erase/flash

#

@solar whale 2.0 loaded btw, but same corrupt hdd I had issues with before

#

os.listdir() shows a bunch of empty data

solar whale
#

Hmm. I don’t reset between erase and flash.

floral dagger
#
>>> os.listdir()
['\x00\x00\x00\x00\x00\x00\x00\x00.\x00\x00\x00', '\x00\x00\x00\x00\x00\x00\x00\x00.\x00\x00\x00',```it's identical to before
tulip sleet
#

@floral dagger I just loaded 2.1 on a Feather Huzzah from Linux with esptool:
esptool.py erase_flash; esptool.py --baud 460800 write_flash 0 adafruit-circuitpython-feather_huzzah-2.1.0.bin
No problems in the REPL, and os.listdir() shows boot.py.

#
Connecting...
Running Cesanta flasher stub...
Erasing flash (this may take a while)...
Erase took 8.7 seconds
esptool.py v1.2
Connecting...
Auto-detected Flash size: 32m
Running Cesanta flasher stub...
Flash params set to 0x0040
Writing 598016 @ 0x0... 598016 (100 %)
Wrote 598016 bytes at 0x0 in 13.8 seconds (345.9 kbit/s)...
Leaving...
solar whale
#

@floral dagger is using a different version of esptool

tulip sleet
#

never pressed reset

solar whale
#

I have 2.1 you have 1.2 he has 2.2-dev

tulip sleet
#

yes, might be worth trying a different one. I'm not booted up in Windows to try there.

floral dagger
#

I'm tempted to see if I wuld have better luck flashing it with my raspberry pi

tulip sleet
#

that would be a lot closer to what I'm doing. Do you have more than one?

marble talon
#

I hear people talking about CP on a Feather Huzzah but I don't recall hearing if it's supported on a Huzzah32?

tulip sleet
#

@marble talon - nope, sorry

marble talon
#

Figured as much, but I also hadn't seen anybody asking about it so wondered if I was the only one with a Huzzah32 πŸ˜„

floral dagger
#

@tulip sleet I just have the one, but I should be able to sus out the process. It can't be too dissimilar

tulip sleet
#

@slender iron are all the M4 builds are still using the internal flash fs? I'm merging in the latest 2.x changes and I had redone the logic for selecting the flash impl.

slender iron
#

@tulip sleet yes, until we add SPI support

tulip sleet
#

k

solar whale
#

@floral dagger note on min e chip is ESP8266 - on yours it is ESP8266EX ??? ```esptool.py v2.1
Connecting....
Detecting chip type... ESP8266
Chip is ESP8266
Uploading stub...
Running stub...
Stub running...
Erasing flash (this may take a while)...
Chip erase completed successfully in 9.8s
Hard resetting...
jerryneedell@Ubuntu-Macmini:~/Downloads$ esptool.py --port /dev/ttyUSB0 --baud 460800 write_flash --flash_size=detect 0 adafruit-circuitpython-feather_huzzah-2.1.0.bin
esptool.py v2.1
Connecting....
Detecting chip type... ESP8266
Chip is ESP8266
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
Configuring flash size...
Auto-detected Flash size: 4MB
Flash params set to 0x0040
Compressed 595076 bytes to 387307...
Wrote 595076 bytes (387307 compressed) at 0x00000000 in 9.1 seconds (effective 520.8 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting...
jerryneedell@Ubuntu-Macmini:~/Downloads$

floral dagger
#

yes Detecting chip type... ESP8266 Chip is ESP8266EX

solar whale
#

no idea why or if important -just different - mine worked fine.....

#

the chip on your board is an ESP-12S correct?

floral dagger
#

I think so, let me check

solar whale
floral dagger
#

yep 12s

#

it's the one that shipped with the last Adabox

solar whale
#

yup - thats it - very odd - tryin from Raspberry Pi or with version 2.1 esptool may be instructive...

#

I'm using linux box.

stuck elbow
#

@floral dagger sorry, I didn't follow from the beginning, but did you do eras_flash?

floral dagger
#

yes

stuck elbow
#

I noticed with older versions of esptool that it didn't always work the first time

#

erasing the flash, I mean

solar whale
#

given taht it erases and program OK then boots to first message, I don't thing the issue is in the programming.

#

try forcein flash_size to 32m instead of detect - after erase ofcourse πŸ˜‰

floral dagger
#

tried esptool v2.1....same issue

slender iron
solar whale
#

ok - If i build/install it is is backward compatible with older boards?

slender iron
#

yeah, I think so

formal plover
#

I'll try flashing 2.1 later @floral dagger and let you know if I have any problems

#

I use a Raspberry Pi to flash mine

solar whale
#

buil ok - any special setting s to flah m4?

tulip sleet
#

@slender iron @solar whale you mean bossac for M4? No, not yet. I wasn't sure I had a working bootloader to use yet. Been using gdb only.

solar whale
#

ok - so I can load to it via jlink - I'll try that.

slender iron
#

@solar whale no special setting. I think it detects automatically

#

@tulip sleet we have a working arduino "BOSSA" bootloader but not UF2

manic glacierBOT
#

Note that I placed the function documentation in alphabetical order. I tested this by creating a .uf2 for my CPX board. Seems to work. The documentation for functions not compiled-in are in with the code but start with // instead of //| . Other than moving the code and setting MICROPY_PY_MATH to (0) for both atmelsamd and esp8266, the functionality is exactly the same.

Note that i could NOT build esp8366 BOARD=feather_huzzah. I assume this is just broken for everyone.

solar whale
#

hmmm ```
~/projects/adafruit_github/BOSSA//bin/bossac -p /dev/ttyACM0 -e -w -v -R firmware.bin

SAM-BA operation failed ```

slender iron
#

@solar whale did you doubleclick to get into the bootloader?

solar whale
#

@slender iron did Ih ave to modify anythin in bossa build to enable samd51?

formal plover
#

Let me try this with my M4... Oh wait! Lolololol

solar whale
#

yes

slender iron
#

@solar whale no, what branch are you on?

formal plover
#

snicker snicker

solar whale
#

I built master DEBUG

slender iron
#

I'm on the arduino branch

#

adafruit/arduino to be specific

solar whale
#

oh on bossac - ah - I wasn tmaster - yest not arduino

slender iron
#

and didn't build debug

solar whale
#

I was not thinking bossac - I see arduino and master - which should I use?

slender iron
#

arduino

#

commit ec166966f58928142a9366939b917e2250a46ccb

solar whale
#

rebuilding...

#

all better - at REPL now πŸ˜ƒ

idle owl
#

Yay!

slender iron
#

lunchtime. bye all!

sick creek
#

Circuitpython Lunch for @slender iron

#

delivered by blinka

solar whale
#

Yay - I can turn D13 LED on/off...

idle owl
#

I got it too!

solar whale
#

@idle owl did you find REPL to give funky output some times?

idle owl
#

With dir(board) it did. And it kept changing.

solar whale
#

same here

idle owl
#

It's not processing characters correctly it looks like

solar whale
#

good - not just me πŸ˜‰

idle owl
#

Nope!

solar whale
#

@tulip sleet do you use Ozone with your jlink or just gdb?

tulip sleet
#

jsut gdb

solar whale
#

I tried Ozone and manged to lock up my computer πŸ˜‰ - I try gdb

tulip sleet
#

never tried it!

solar whale
#

works ok on my nrf52 - this is an ATSAMD51J19, correct?

idle owl
#

Yes

#

At least some of them are, anyway. Mine is.

#

Might be worth checking. It says it tiny on the chip.

solar whale
#

now I can read it -- getting old....

pastel panther
river quest
idle owl
#

@river quest That's great!!

pastel panther
#

wew!

sick creek
#

cool

umbral dagger
#

SWEET!

empty estuary
#

πŸ‘Œ

fast wharf
#

woot

bronze wasp
#

πŸ˜ƒ

idle owl
#

@river quest They look fantastic

empty estuary
#

If only i knew what python was...

#

lol

lofty topaz
#

🍸 Cheers

clever stratus
#

yay!

sick creek
#

Fanpython

molten comet
#

@river quest Is it odd to buy adds from one of your previous endeavors?

river quest
#

everyone thank @clever stratus adafruit CFO

solar whale
#

@tulip sleet are the jlink pins for the Metro-M4 the same as for MetroM0 express - same same connector - its not lableed SWD on the M4 board.

pastel panther
#

Thanks @clever stratus !

drowsy geyser
#

Thank you @clever stratus !!!

idle owl
#

@clever stratus Thank you!

lofty topaz
#

Nice job @clever stratus πŸ˜ƒ

river quest
#

@molten comet my kid is 13 now, so it feels good that it's been around this long and now we're doing ads with them

tidal kiln
#

@clever stratus 🐰 -"thanks!"

clever stratus
#

daw, thanks all, but wasn't just me πŸ˜ƒ team @river quest effort!

fast wharf
#

much love @clever stratus πŸ˜„

tidal kiln
empty estuary
#

Thank you.

sick creek
#

not many have snakes in hardware

pastel panther
#

I'm slightly embarrased to ask, but does CPX mean Circuit Playground eXpress or Circuit PythonX?

tidal kiln
#

CPC = Circuit Playground Classic
CPX = Circuit Playground Express
CP = CircuitPython

idle owl
#

@pastel panther Circuit Playground Express

pastel panther
#

That makes much sense

idle owl
#

Don't be embarrassed πŸ˜ƒ

lofty topaz
#

I'm a bit surprised the Adafruit logo is not shown in the ads tho.

tidal kiln
#

totally unofficial vernacular

pastel panther
#

we should get it ISO certified ASAP

#

I mean, how else will people know? /s

#

πŸ˜›

river quest
#

i didn't want to logos designed by me on the same page (adafruit / hackaday)

#

this is code + community and something new πŸ˜ƒ

idle owl
#

@lofty topaz A search for CircuitPython finds you Adafruit pretty quickly. πŸ˜ƒ

lofty topaz
#

@idle owl I know. I just clicked on the ads in the Hackaday Home page and I immediately went to the CircuitPython page on Adafruits website.

river quest
#

yah, all good

#

we get a report in 1 week to see how they are doing too

idle owl
#

Excellent

river quest
#

we'll add that to the state of circuitpython reports we are doing for the community

sick creek
#

not get sooner metrics?

umbral dagger
#

@river quest That made me pause... kid....13... huh? Then duh.

river quest
#

she's a teenager now, totally ok to have a job

timber mango
#

i updated the circuitpython category page - some htmlin' later and it now has a link to the discord chat

idle owl
#

Nice!

umbral dagger
#

@river quest We going out for dinner tonight to where my kid cooks, and he’s responsible for designing this week’s special.

river quest
#

yah see

#

this is totally ok πŸ˜ƒ

idle owl
#

@river quest Thank you!!

tidal kiln
#

"key limes" πŸ˜„

idle owl
#

Right?? πŸ˜„

solar whale
#

@slender iron @tulip sleet I am seeing a lot of the following errs on my Ubuntu Linux system when connected to the M4 board - have you seend this? ```[ 455.798178] sd 6:0:0:1: [sdc] Sense Key : Illegal Request [current]
[ 455.798180] sd 6:0:0:1: [sdc] Add. Sense: Invalid command operation code
[ 455.802306] sd 6:0:0:1: [sdc] Unit Not Ready
[ 455.802308] sd 6:0:0:1: [sdc] Sense Key : Illegal Request [current]
[ 455.802309] sd 6:0:0:1: [sdc] Add. Sense: Invalid command operation code

lofty topaz
#

Can you name these companies? Adafruit needs to show logo everywhere. The future of our realm depends on it. πŸ˜ƒ

tulip sleet
#

@solar whale jlink pins are the same

solar whale
#

thanks

lofty topaz
#

And CircuitPython with Circuit Playground Express is the product to use for it.

solar whale
#

same erro messages on Raspberry pi

tulip sleet
#

@solar whale I haven't had a chance to build the latest 3.0.0 at all. I'm merging in the latest 2.x changes to 3.0.0. The stuff above looks like the USB MSC commands are not working well. MSC uses a simplified SCSI command set.

#

@slender iron would have more to say

solar whale
#

Sometime REPL works and other times I can't connect

tulip sleet
#

he just finished the MSC implementation

#

quite possible ther are some bugs that might be corrupting memory - it's very early days for 3.0.0

pastel panther
#

@lofty topaz I think the idea is that CP is bigger than adafruit. Would linux be what it is if Linus insisted that there be a logo on every page?

tulip sleet
#

you might try a different USB port (maybe USB2 instead of USB3); the slower speed might help

formal plover
#

@idle owl too legitimate to quitimate

solar whale
#

I'm on a USB2 powered hub - I'll keep working with it. I was afraid it was an isue with Jlink, but it is not.

lofty topaz
#

@pastel panther And where is Linux today? On a Raspberry Pi? Why not everywhere? Because people didn't know about it. It has taken years for linux to take any kind of hold in the market. Now it's a toy. Big deal.

pastel panther
#

@lofty topaz I don't think linux's reach is limited by it's marketing, it's limited by the open source community's historical preference for features over documentation and ease of use

lofty topaz
#

yes, that too.

pastel panther
#

Also not everyone needs a sonic screwdriver

umbral dagger
#

@empty estuary I'll say this: Since Python got started (about 10 years after I started programming) CircuitPython is the first time I've found it interesting and useful enough to learn.

#

@lofty topaz Linux a toy? wut? Let me introduce you to my little friend: quad core 4GHz i7 with 64G ram & 1T M2 SSD. Running Ubuntu 17

pastel panther
#

Let's not restart the war of roses in our beautiful little virtual hackerspace

umbral dagger
#

πŸ˜ƒ

pastel panther
#

(admittedly I started it)

tulip sleet
#

@solar whale if a hub, might try direct-connect; but I'm thinking it's just bugs. Is it erratic when you restart (mon reset; continue) in gdb?

umbral dagger
#

And it runs on my Pis. Same thing. which is very cool.

lofty topaz
#

@umbral dagger Right, and people want kids to use it? With command line interface? Com'on man. Embedded is the future. Operating Environments, not systems is the future for embedded. MicroPython is an Environment. And I like it.

umbral dagger
#

@lofty topaz Yes, and that's a huge reason it's so interesting!

solar whale
#

@tulip sleet I have npt gotten gdb up an runnig yet - will try later tonight or tomorrow.

slender iron
#

@solar whale I'm back now. I've only seen serial corruption during os.listdir() for some reason

#

the MSC sense is likely and asf4 problem we can fix

solar whale
#

when I connect jlink - curent goes up from 42mA to 103mA - is that normal

#

but JLINK is not connecting properly

slender iron
#

I never track current

#

I usually power it via the barrel connector

solar whale
#

ah - I wonder if it is a power issue - 5V is OK?

sick creek
#

@slender iron omg you know that Rosie head looks similar to barrel

idle owl
#

I'm powering mine from USB as well. But I haven't hooked up the jlink yet.

slender iron
#

@solar whale my barrel might actually be 9v

solar whale
#

do you also use USB for REPL connection while powered via Barrel?

slender iron
#

yeah I do

#

I have a usb cable that can connect and disconnect the data lines without unplugging

solar whale
#

9V is OK - I have that

#

is thsi correct? JLinkGDBServer -if SWD -device ATSAMD51J19

idle owl
#

@slender iron You do all the j-link stuff on MacOS?

solar whale
#

I'm using Linux - may try MacOS next

slender iron
#

@idle owl yup

#

@solar whale should be essentially the same on linux

#

@solar whale that looks correct to me

solar whale
#

hmm - I have the USB port "turned off" but I guess it passes daat since I see USB drive - jlink now connected!

slender iron
#

how did you turn it off?

solar whale
#

my hub has switches on each port

slender iron
#

oh nice!

solar whale
#

dmesg

#

oops

#

dmesg

pastel panther
#

lol

solar whale
#

too may keyboards!

split ocean
#

@idle owl, did that guide thing work out for you?

idle owl
#

@split ocean I couldn't update one page. It worked out everywhere else for me though!

split ocean
#

If it's the code not updating in the guide after you've changed it in Git, I have a trick for that.

idle owl
#

No it was one page in the guide that refused to update. The code on Github is good to go.

split ocean
#

OK, sometimes Learn gets a little stuck.

idle owl
#

I couldn't add the embedded link and delete the inline code, it hung and refused to update.

split ocean
#

yes, sorry, that's frustrating

#

usually works a few minutes later.

#

Say, do you have time for another UFO question?

idle owl
#

Sure!

sick creek
#

UFO and sharks with blinka

split ocean
#

OK, first of all thank you and everyone working on express! everything is working as I'd hoped.

idle owl
#

I'm so glad!

slender iron
#

@idle owl I love that you did PRs for the Key of Lime code

split ocean
#

now, I want to know how feasible it is to play audio while still checking acclerometer and adjusting the colors of the NeoPixels. Currently I play the sounds and everthing else is on hold.

idle owl
#

@slender iron lol πŸ˜„

#

@split ocean We talked about this yesterday! As it is, no it's not possible, unfortunately. It's something we want to add to it, but it's not included right now.

split ocean
#

LOL, we did? Ha!

idle owl
#

@split ocean No I mean Scott and I did

split ocean
#

Oh!

#

whew. still haven't lost my mind

idle owl
#

Nope! Not yet, anyway

split ocean
#

OK, no problem, I have what I need to make it fun

idle owl
#

I'm glad! Being able to do things at the same time is on the list, but as it was, it didn't work very well and allowed for a lot of weirdness with the sound. So we wanted to get that out first!

split ocean
#

I dig it. I may just play the sound under a particular condition, like a large change in the accel readings so it only plays sometimes, but most of the time it's quickly responsive colors

idle owl
#

Got ya!

sick creek
#

@split ocean perhaps you start to hack remote controlled air shark with Circuitpython

split ocean
#

yasss!

pastel panther
#

Make sure you put a laser on it's head. The FAA won't certify it without it. ;P

solar whale
#

@slender iron seems much happier on external power with JLink - even workin inOzone now!! Just wish I knoew how to use it πŸ˜‰ - Out of time for now will resume later or tomorrw - Thanks for the help- and the board!

idle owl
#

@solar whale Have a good one!

slender iron
#

good work @solar whale !

#

perhaps we aren't negotiating 500 mA correctly

solar whale
#

@idle owl you too! thanks for the help

idle owl
#

Yeah for sure!

slender iron
#

oh man, uf2 bootloader compiles

#

that means it works right?

fading solstice
#

quick release it. no testing needed

slender iron
#

lol

#

I'm not quite that reckless

#

plus the self updater doesn't compile yet

floral dagger
#

Just a quick update, it's looking like this is a hardware thing. My other ESP flashes fine. This one keeps geting wdt resets every few seconds as it tries to execute code no matter what I use to program it. It did the same thing in the arduino IDE when doing example sketches. It could do a simple serial.print and delay just fine, but anything more intensive just kicked it back to reset.
Anyway, just thought I'd update. Thanks again for the help.

idle owl
#

Thanks for the update! Sorry to hear it might be hardware...

cunning crypt
#

@floral dagger Given it's the ESP, I'm assuming you have nothing connected to any of the other pins?

#

I had a boatload of issues where stuff wasn't working because I had something weird hooked up to one of the boot pins

floral dagger
#

yeah, @cunning crypt just the bare feather hooked to a powered USB hub. Oh well, these things happen I guess

stuck elbow
#

@floral dagger I think you can get it replaced.

split ocean
#

@idle owl here's an alternate path of inquiry re: UFO sounds...

idle owl
#

@split ocean Yah?

split ocean
#

Limor mentioned that maybe play_tone would be a good choice

#

is that integrated in express already?

idle owl
#

Yep!

stuck elbow
#

theremin-like sounds would be great for UFO

split ocean
#

she said simpleio had it, but i would love to use it from express if that's there

idle owl
#

play_tone which asks for the frequency and a duration in seconds.

#

There's also start_tone and stop_tone which allow for things like the tone piano where it plays for the duration of a random-length trigger event like a button being pressed or touch pad being touched.

#

I'm not sure if it works the same as in simpleio though, I'd have to look

#

One of those should though

split ocean
#

yeah, i worry that if i have both libraries I could run into similar conflicts as before as far as pins being grabbed for speaker

#

OK, I'll try that, is there any usage example code you know of?

idle owl
#

Yep, there's the code on ReadTheDocs. Oh! And my guide! lol

split ocean
#

sweet!

idle owl
#

Checking it against simpleio now.

#

Hmm. Not finding any examples for how it works in simpleio.

#

How do you want to use it?

#

Use tones to make the same noise as ufoup.wav?

split ocean
#

your guide looks great, I'll try playing around with that

idle owl
#

Thanks!!

split ocean
#

I'm not sure, something UFO-ish :)

#

πŸ‘½

idle owl
#

Ok! Well let me know if you have questions along the way, I can try to help!

#

πŸ˜ƒ

split ocean
#

kewl

#

thx

#

I may get fancy and play that ufoUp.wav under some condition and tones the rest of the time

idle owl
#

Nice!

split ocean
#

but can do just tones if that gets outta hand

sick creek
#

I need to get some shark tunes

#

as circuitpython play shark tune when shark is closing or in the area

split ocean
#

du-Nuh du-Nuh du-na-du-na-du-na-du-na Du-Nah!

sick creek
#

even the shark is mixed reality one and moving in wifi network area inside the house

#

or air shark with circuitpython controls

solar whale
#

@floral dagger thanks for the report. Sorry it sounds like HW but that does seem to be the simplest explanation.

true coyote
#

May I ask why we're comparing circular circuit boards to limes?

idle owl
#

It wasn't a comparison. It was a reference to a new learn guide. πŸ˜ƒ

true coyote
#

And it somehow involves green, sweet versions of lemons?

cunning crypt
#

Looks like you've got a bit of lime buildup. You should look into some de-liming solutions

idle owl
true coyote
#

Oh cool.

umbral dagger
#

@solar whale FYI I'll be using the jlink stuuff on linux. I have it installed and connecting to my SAME54 board.

solar whale
#

@umbral dagger it looks like I was having problems with power. Worked better with external power. With that the JLink was able to communicate with it via Gdb or ozone. Just getting started. Lots to learn.

umbral dagger
#

I have the "debug usb" connected to a powered hub as well as the swd connector to the j-link.

solar whale
#

I’m using a powered usb hub for JLink and samd51 board so I’m not sure what the problem is.

umbral dagger
#

Same... different board currently, though. I have a SAME54 Xplained board from Microchip that I'm poking at.

solar whale
#

Metro m4 has a barrel connector so I used a 9v supply and all seems to work.

umbral dagger
#

My SAMD51 board won't arrive until Monday.

solar whale
#

I won’t get back to it until tomorrow.

umbral dagger
#

@solar whale Yeah, that would seem to be the best solution.... now do I have a spare outlet near enough for a wall wart?

solar whale
#

@silent radish good luck. Looking forward to playing with this board. I am new to JLink so much to learn.

formal plover
#

Mine will arrive after you guys figure everything out πŸ˜‰

manic glacierBOT
solar whale
#

@formal plover no fear of that!

formal plover
#

Haha I'm only kidding. Mine is stuck in limbo right now. I'll help when it arrives

umbral dagger
#

@solar whale New to the jlink.. same.

formal plover
#

I have a jlink in with it as well

umbral dagger
#

I ordered a j-link earlier to use with the SAME54Xplained board, before being drafted/honoured... so I have the weekend to get up to speed. My Sunday was goign to be busy but that got moved to Monday.

#

It's a P20 chip... so maxed out memory and all the I/O πŸ˜ƒ

#

@slender iron I'm looking at metro_m4_express/mpconfigboard.h ...it includes internal_flash.h as expected, but also has SPI_FLASH defines. Leftovers?

slender iron
#

@umbral dagger just hasn't been updated because we haven't added spi support

#

the board has spi flash, we just don't use it yet

umbral dagger
#

got it

hollow tartan
#

@slender iron Where are the adaFruit developer guides for Circuit Python?

slender iron
#

what are you looking for? the build guides may be under micropython still

hollow tartan
#

I don't know just generally what are the standards. Especially interested in SamD21 / D51

hollow tartan
#

I am reading a "Design" book by the chief of IBM os/360 and was looking for what AdaFruit Standards are set out , where, and how?

slender iron
#

I don't know what you mean by standards

hollow tartan
#

How is it looking going forward for SamD51?

slender iron
#

we've got the basics going

#

I'm working on the UF2 bootloader now

hollow tartan
#

Great! I have used TI Tiva C LaunchPad for developing in Keil uVision. So I have a little familiar with Arm Cortex M4 internals.

slender iron
#

awesome!

hollow tartan
#

Do you enjoy digging in the several thousand page tech. ref. for the SamD51?

slender iron
#

I do πŸ˜ƒ

hollow tartan
#

What tools do you use to develop your code?

slender iron
#

arm gcc and atom

hollow tartan
#

you must be one of the top people in the field , I am honored to get to know you.

slender iron
#

haha, I doubt that

#

I've only been doing embedded software for under two years

hollow tartan
#

That is a real inspiration. Best of Luck and Make IT Awesome. πŸ˜ƒ

slender iron
#

thanks! let me know if you want to get into circuitpython dev. I'd be happy to help get you set up

hollow tartan
#

Yes, sir. I am dipping my toe in after a little while.

slender iron
#

cool cool!

#

time to wind down before bed

#

night all

drowsy geyser
#

Wheeee! Got the Metro M4 Express today! Now trying to figure out how to get CP onto it. Got the JLink Mini updated and working (at least with the GDB server). Kind of fumbling along, but happy to be tinkering. I'm making a OneNote page with my notes, which I'll share if anyone is interested. They differ in subtle ways from LadyAda's M0 instructions....

#

Just a sanity check h ere. Is it true that I can't load the Metro M4 using the usual methods? It doesn't show up as a mass storage device, so I can't just drop the UF2 image onto it. But bossac doesn't find the device, either. I'd be a bit surprised if I have to build CP from source in order to install it....

solar whale
drowsy geyser
#

Thank you!!!! I'll go do that now...

solar whale
#

Good luck!

#

If you scroll back about 12 hours you will see my fumbling intro to the M4.

drowsy geyser
#

Thanks, @solar whale . The Bossa update fails since I'm on Windows 10, not a Mac. I tried building from source, but that didn't work because of an include file error. I guess I'll try to figure out how to install it on Windows 10....

solar whale
#

Hmm. I was able to build it on a Linux box.

drowsy geyser
#

It's late. I'll sleep on it. πŸ˜ƒ

drowsy geyser
#

Ok, I gave up on Windows. I connected the M4 to a Raspberry Pi, installed bossa latest from apt, then built the adafruit/bossa/arduino branch. When I run it, I get the "SAM-BA failed" error message. Yes, I put it in the bootloader. I do notice, though that as soon as I run bossac all four LEDs on the M4 come on solid (green, two amber, and red). I also tried running as root (no difference) and re-running bossac without touching the board (no difference). Any ideas?

#

Well that's interesting. If I run it without putting the board in the bootloader, I get a different error ("device unsupported")

#

Now trying different permutations of attempts. Still getting the "SAM-BA operation failed" message.

solar whale
#

@drowsy geyser I got the SAM-BA error when I built the wrong release of Bossa You should use the Arduino Branch, not Master.

#

@drowsy geyser never mind. I missed that you did build the correct one. Sorry.

drowsy geyser
#

No worries, @solar whale . πŸ˜ƒ

umbral dagger
#

My weekend plans changed and so I am able to devote time to getting up to speed on jlink and M4. Goal is to be comfortable with it by Monday when the Metro shows up.

solar whale
#

Good luck - I am having mixed results - I often get itno a sitiuation where Jlink cannot communtcate with the board. Eventually I get it back, but I have not found a reproducible sequence yet.

umbral dagger
#

I started working on the board files for the SAME54Xplained board last night and am getting errors building CP during the gen phase. For any board.

#

That started happening after pulling the latest off master.

#

I’m wondering if my GCC install got updated without me noticing.

#

That would be highly unlikely, and unlikely to have a breaking change like this.

solar whale
#

did you do the git submodule update --init --recursive to get all udates in place after pulling the master?

umbral dagger
#

OK. fresh clone from master, did the above. I get:

#
cc1: error: -Werror=lto-type-mismatch: no option -Wlto-type-mismatch
../py/mkrules.mk:79: recipe for target 'build-feather_m0_basic/genhdr/qstr.i.last' failed
make: *** [build-feather_m0_basic/genhdr/qstr.i.last] Error 1
make: *** Deleting file 'build-feather_m0_basic/genhdr/qstr.i.last'
#

where ... is many of that error.

#

I'm running ubuntu 17.04 and this worked fine with the early 2.0 release.

split ocean
#

@umbral dagger maybe it's because Halloween approaches, but when you say "fresh clone from master" I imagine a conversation between Igor and his pet cat in Dr. Frankenstein's laboratory. βš—

umbral dagger
#

@split ocean I like that

solar whale
#

one other suggestin - did you do make clean first?

umbral dagger
#

yes.

#

If I checkout the 2.x branch, it all works fine.

#

(building, and installing the resulting uf2 to, in this case, a feather_m0_express

solar whale
#

odd - works on ubuntu 16.04 for me

umbral dagger
#

gcc version?

solar whale
#

arm gcc 6.3.1

sick creek
#

if you have fall creators update in windows 10 if you want linux terminal you can install it from store so it kinda make it easier than go to enable WSL

umbral dagger
#

I'm running 6.3.0.... seems unlikely that such a minor bump would be responsible... but I'll update

#

@sick creek I don't use windows

sick creek
#

@split ocean you have Frankenstein Labaratory

umbral dagger
#

@solar whale OK.. I installed the lastest arm toolchain from the arm site... it's building master now

#

@solar whale And still builds a 2.x that works fine πŸ˜ƒ

umbral dagger
#

Goal #1 for today is to get a PR in for my 8Mbyte featherM0

slender iron
#

@drowsy geyser did you get it going?

#

@umbral dagger I try to stay up to date with the latest arm gcc

drowsy geyser
#

@slender iron Nope. No matter what I try I get the SAM-BA operation failed error...

umbral dagger
#

@slender iron It's a good plan πŸ˜ƒ

slender iron
#

@drowsy geyser are you building it yourself?

drowsy geyser
#

CP? No, I'm using the image from the AWS S3 location. Bossac? Yes, I built it off the Arduino branch of your GitHub repo.

slender iron
drowsy geyser
#

Oops. Nope. Downloading now....

slender iron
#

yeah, if its my personal repo I make no promises

#

dean was the one who fixed up bossa

drowsy geyser
#

It's compiling now. We'll see how it goes. πŸ˜ƒ

slender iron
#

🀞

drowsy geyser
#

Interesting. Same failure.

slender iron
#

have you doubletapped to get into the bootloader?

idle owl
#

Hmm

drowsy geyser
#

@slender iron I moved back to Windows with the pre-compiled bossac and WIN! I have a running M4!

slender iron
#

πŸ‘

drowsy geyser
#

Three hours to Formula 1 qualifying! Good amount of time to get some testing done!

sick creek
#

I have hockey

manic glacierBOT
idle owl
#

@drowsy geyser Way to go!

drowsy geyser
#

@idle owl Scott gets the credit. πŸ˜ƒ

idle owl
#

He had to help me a ton too. πŸ˜„

slender iron
#

yeah, bossa is a bit finnicky

#

I'm torn between working on my toaster oven and trying to wrap up the uf2 bootloader

#

I got it communicating and everything but the flash was wrong

sick creek
#

bossa toaster

drowsy geyser
#

The toaster oven would probably be more fun....

idle owl
#

Is anyone else running jlink on MacOS? Besides Scott

formal plover
#

@slender iron it'll be a nice break too

umbral dagger
#

@idle owl I'm running linux... might be a similar experience.

idle owl
#

@umbral dagger Did you install the Segger software pack or are you running it from commandline?

umbral dagger
#

Segger from cmd line

idle owl
#

Do I need to install the software pack first for the commandline tools to be there? Or are there packages for it

umbral dagger
#

They had .debs for ubuntu

idle owl
#

Hmm ok

slender iron
#

@idle owl I just download and install the pack off of their website

idle owl
#

@slender iron Ok thank you

solar whale
#

@slender iron I am definatley having issues with the master build - it works sometimes but eventually the USB system on my linux box stops recognizing either the metro_m4 or the Jlink. I also ran into some similar problems on a metro_m0 build (at least i think so) but if its the same USB stuff taht mya be why. I end up rebooting my host system an it is OK again for awhile. I 'm sorry I don't have a clear reprducible case. I won't be able do do much more today but I'll keep at it as I can

#

@drowsy geyser sorry - I think I gave you the wrong BOSSA link.

idle owl
#

Pretty sure I simply don't have the knowledge level to understand what to do with the j-link. I at least got the software installed, and I think I updated the firmware.

solar whale
#

Do yo have the mini or the "full sized" version.

idle owl
#

edu mini

#

And no I didn't know about the guide

solar whale
#

@slender iron Do you have to enter bootloader when you want to download via the Jlink?

#

@idle owl have you gotten the cble attached correctly? not obvious how to attach to mini

idle owl
#

No idea, might be wrong. I assumed it attached so the cable pointed away from the USB end.

solar whale
#

actually no - not as I have it - the small tab goes away from the USB.

idle owl
#

So if I laid them flat, the cable would be running over the USB?

solar whale
#

yes

idle owl
#

Ok so I had that wrong πŸ˜ƒ

solar whale
idle owl
#

Yeah that's how I have it now, thank you for the picture! Clears that right up.

#

I'm running through the software installation command line stuff in the guide

solar whale
#

Good luck!

stuck elbow
#

one day the manufacturers of those things will actually figure out what those small tabs are for

solar whale
#

teh metro_M4 and M0 express have keyed connectors - taht helps!

#

so does the bigger Jlink adapter board. j

idle owl
#

Right I'm seeing that. The little one just has pins.

umbral dagger
#

Based on my experience at Steelseries (not what we were doing) the general state of embedded dev seems pretty antiquated.

idle owl
#

Hmm I sort of got further...

umbral dagger
#

Communities/companies like Arduino & Adafruit are changing that.

stuck elbow
#

well, those programmers are really just generic stm32 boards

#

in fancy boxes

#

as soon as open source firmware for them matures, there will be no reason to charge $300 for them

solar whale
#

@idle owl as I look at it also make sure the red wire is on the same side as in my picture.

idle owl
#

It is

solar whale
#

ok - did you get gdb server to talk to connect to it?

#

I'm sorry - I will have to go offline in a fw minutes- wish I could stay to help - good luck

slender iron
#

Jerry you don’t need to be in the bootloader for the jlink to connect

idle owl
#

@solar whale Thank you for your help! I'll keep at it

solar whale
#

@slender iron even to download an image to it?

idle owl
#

@solar whale It's getting far enough along to tell me it can't halt the CPU, so I'm much further than I was.

slender iron
#

Nope. It works through the chip debug circuitry

solar whale
#

@idle owl I saw that a lot!

#

@slender iron great - thanks.

slender iron
#

Not able to halt is a separate thing. I had to use a hacked arduino zero to recover mine. Do you have circuitpython on it @idle owl ?

idle owl
#

I do. It's still flashed from yesterday and blinky still works. I'm doing this because I wanted to learn more about the jlink.

solar whale
#

Sometimes it seemed like I could get out of that by entering boot loader. That is why I asked

idle owl
#

I'm not even sure what it does. I assumed I could get it to show me some data from the board.

slender iron
#

That can happen if pin states are changed or something. Usually if it’s working then It’s ok.

stuck elbow
#

@slender iron how would I got about debugging an issue with the haxpress boards (trinket's mcu + flash) where it reboots into "safe mode"?

slender iron
#

@stuck elbow do you have a debugger? If so, you can break on the hardfault handler

stuck elbow
#

I only have the stlink working, the jlink clones I have refuse to work

#

not sure if stlink can debug over swd

umbral dagger
#

Slowly making prgress with jlink/gdb

tulip sleet
#

@umbral dagger I have a patch for the lto warning building master. Are you still having trouble?

#

It's very simple.

slender iron
#

I bet stlink would work @stuck elbow

stuck elbow
#

I need to try

umbral dagger
#

@tulip sleet I'm good. Upgrading to the latest GCC toolchain from ARM fixed all my troubles.

#

Taking a break from jlink and working on a writeup for the DotStar FeatherWing CircuitPython library I wrote.

#

Which naturally means I realize there are useful features it's missing πŸ˜ƒ

formal plover
#

I want to port the Arduino midi note library eventually. So you can have little simple songs play from a piezo. Similar to the notes used in the guide @idle owl's key of lime guide.

stuck elbow
#

isn't that just a bunch of constants for the frequencies?

formal plover
#

@stuck elbow basically. Like this note equals this frequency

idle owl
#

Yep

formal plover
#

And then play a c d d etcetera etcetera

stuck elbow
formal plover
#

Uh nope, sure haven't. Thanks!

#

I want to know what itchy and phantom are Lolololol 😹