Comments (19)
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.
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.
Just checked it again and they are all mapped okay...
from pxt-maker.
@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.
from pxt-maker.
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.
from pxt-maker.
just opened a new one
from pxt-maker.
Could you paste the link here?
from pxt-maker.
from pxt-maker.
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.
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.
I had an LED physically connected to A13 on the Adafruit Grand Central M4.
from pxt-maker.
Hi @pelikhan @mmoskal could you share the SOS guide to attach gdb and read the debug buffer??
from pxt-maker.
@lalauria2000 https://makecode.com/develop/hw-debugging
Is that what you are looking for?
from pxt-maker.
@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.
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.
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.
from pxt-maker.
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)
- Share button not working HOT 2
- HID extensions doesn't work as expected.
- locations of docs wrong when built using staticpkg
- Analog read not working on Circuit Playground Bluefruit HOT 2
- Enter key for HID keyboard extension HOT 4
- Board "MKR1000" did not run, used "Adafruit feather m0 express" instead
- RP2040 support! HOT 6
- Bluefruit crashes "OnLoud" HOT 4
- Replace gamepad tester link (html5gamepad.com)
- Adafruit Feather M0 Express Build Error HOT 1
- Light Sensor not working on Circuit Playground Bluefruit
- add "show ring" light block (from pxt-adafruit)
- Code not running on LILYGO® TTGO T8 ESP32-S2 HOT 3
- RP2040 - pairing Mode problem HOT 1
- How to flash the espressif-esp32-devkit-c HOT 1
- This repo is missing important files
- RP2040 Pico-w support HOT 1
- Raspberry Pi Pico RP2040 Analog Read and Write Not Working HOT 1
- How to obtain the log of user operation records using makecode offline version?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pxt-maker.