Code Monkey home page Code Monkey logo

Comments (19)

pelikhan avatar pelikhan commented on July 17, 2024 1

It's SOS ... --- .... So something went wrong with the config or hardware. I think we have a guide somewhere to attach gdb and read the debug buffer, panic code. @mmoskal do you remember where you keep that guide?

from pxt-maker.

pelikhan avatar pelikhan commented on July 17, 2024

Make sure that all the pins have been mapped properly. Check the values in config.ts against the schematics from Grand Central in Adafruit.

from pxt-maker.

guriaregojo avatar guriaregojo commented on July 17, 2024

Just checked it again and they are all mapped okay...

from pxt-maker.

wallarug avatar wallarug commented on July 17, 2024

@pelikhan Would there be any reason that MakeCode wouldn't like the fact that there are more registers in this SAMD51 processor compared to other boards? This board has PC and PD registers as well.

from pxt-maker.

pelikhan avatar pelikhan commented on July 17, 2024

from pxt-maker.

guriaregojo avatar guriaregojo commented on July 17, 2024

Here are all the files for the grand central if you want to check them out. Also the dal.d.ts of core---samd51
https://drive.google.com/drive/folders/1aVYAzUJynknWLzuT9VYk9fQLoQf3P3P1?usp=sharing

from pxt-maker.

pelikhan avatar pelikhan commented on July 17, 2024

from pxt-maker.

guriaregojo avatar guriaregojo commented on July 17, 2024

just opened a new one

from pxt-maker.

pelikhan avatar pelikhan commented on July 17, 2024

Could you paste the link here?

from pxt-maker.

guriaregojo avatar guriaregojo commented on July 17, 2024

#329

from pxt-maker.

wallarug avatar wallarug commented on July 17, 2024

Hi there @pelikhan ,

RE: Adafruit Grand Central M4 Express

I have been testing this out and have more details on the problems with the physical hardware. I need some assistance from someone who understands the deep inner workings of MakeCode a bit better than me.

So the simulator works perfectly and as expected. The issue is with the software being deployed to the physical board.

I bought an Adafruit GC M4 Express and wanted to see this for myself. What happens is, no matter what program you put onto the board, it just flashes the D13/LED constantly in a set pattern.

3 very short bursts
3 short bursts

I cannot work out why the physical board is behaving this way.

I have changed the memory allocation, changed the openocd commands in the pxtarget file, adjusted all the pins to the correct Pwm / Digital IO setting. I've run out of ideas at this point and considered just starting from scratch using the Adafruit Metro M4 as the base board.

I suspect this behaviour has something to do with using the larger SAMD51P20A chip vs the currently supported SAMD51J19A chips.

Any ideas how to get this board up and running?

Thanks in advance.

from pxt-maker.

wallarug avatar wallarug commented on July 17, 2024

Thanks @pelikhan ,

If it's any help. I just did another test with the board using the Metro M4 Express and it is able to run a program no problem. Not sure if this will assist in pointing at the potential problem here.

image

I had an LED physically connected to A13 on the Adafruit Grand Central M4.

from pxt-maker.

guriaregojo avatar guriaregojo commented on July 17, 2024

Hi @pelikhan @mmoskal could you share the SOS guide to attach gdb and read the debug buffer??

from pxt-maker.

jamesadevine avatar jamesadevine commented on July 17, 2024

@lalauria2000 https://makecode.com/develop/hw-debugging

Is that what you are looking for?

from pxt-maker.

guriaregojo avatar guriaregojo commented on July 17, 2024

@jamesadevine It says it works for Circuit Playground Express devices, should I follow those guidelines for the Adafruit Grand Central? I really have no idea if I should use that guide or there is another one...

from pxt-maker.

wallarug avatar wallarug commented on July 17, 2024

Hey @jamesadevine ,

I have been also looking at this.

Could it be because the dependency on the itsybitsy-m4 codal library is not configured to build for a SAMD51P19A?

The Adafruit Grand Central does work with the Metro M4 board.

I'm going to keep striping back the Grand Central M4 code and swapping it with Metro M4 until something starts working. (I prefer this than getting the soldering iron out as per the debugging instructions)

from pxt-maker.

wallarug avatar wallarug commented on July 17, 2024

Hi All,

I think I have solved this one.

In this commit we updated the samd file to recognise the extra PC and PD registers but we did not update the total number of pins.

// if we ever want to support 100+ pin packages, need to add PC,PD ports and increase this to 128
#define DEV_NUM_PINS 128

It is even commented in there to do it. This was 64.

Updating it to 128 does not appear to affect the other board builds. I tested the Metro M4 build and all seems fine.

Can we make a PR and push this change into the pxt-common-packages repo?

from pxt-maker.

pelikhan avatar pelikhan commented on July 17, 2024

from pxt-maker.

wallarug avatar wallarug commented on July 17, 2024

No worries! PR is in. microsoft/pxt-common-packages#1245

I have tested that pins on PD do work as well.

Thank you everyone for your support on this.

from pxt-maker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.