Search found 46 matches

by shazz
Fri Jul 12, 2019 10:32 am
Forum: Development of MicroPython
Topic: How to debug MicroPython using gdb ?
Replies: 3
Views: 4122

Re: How to debug MicroPython using gdb ?

I tried to add in the samd Makefile

Code: Select all

LDFLAGS += --gc-sections --specs=rdimon.specs -lrdimon
but got:

Code: Select all

LINK build-ADAFRUIT_PYGAMER/firmware.elf
arm-none-eabi-ld: unrecognized option '--specs=rdimon.specs'
and l could not find librdimon.a in the toolchain...

humm
by shazz
Fri Jul 12, 2019 10:16 am
Forum: Development of MicroPython
Topic: How to debug MicroPython using gdb ?
Replies: 3
Views: 4122

Re: How to debug MicroPython using gdb ?

Ah! I was thinking that was magic, any printf output would be redirected to the debugger :) So yes if this is not magic I guess I need semi-hosting. Do you know in the samd makefile where I should add those linker directives : -specs=rdimon.specs and -lrdimon And where (+ includes ?) to add : void i...
by shazz
Fri Jul 12, 2019 9:33 am
Forum: Development of MicroPython
Topic: How to debug MicroPython using gdb ?
Replies: 3
Views: 4122

How to debug MicroPython using gdb ?

Hi, I tried to debug some SPI/TFT driver code for the SAMD port and I never used gdb for remote debugging. My first wish was to "only" see my printf somwhere (occuring before the REPL comes to life) but... nothing showed up. I'm using the J-Link EDU Mini connected to the SWD port of my Adafruit Pyga...
by shazz
Mon Jun 10, 2019 3:00 pm
Forum: Other Boards
Topic: Need help with Makefile for ATMEL SAMV7
Replies: 9
Views: 8291

Re: Need help with Makefile for ATMEL SAMV7

Any progress ?
Any test I can do to help ?
by shazz
Mon Jun 10, 2019 2:58 pm
Forum: Other Boards
Topic: Need help with Makefile for ATMEL SAMV7
Replies: 9
Views: 8291

Re: Need help with Makefile for ATMEL SAMV7

Any progress ?
Any test I can do to help ?
by shazz
Sat Jun 01, 2019 2:43 am
Forum: Other Boards
Topic: Need help with Makefile for ATMEL SAMV7
Replies: 9
Views: 8291

Re: Need help with Makefile for ATMEL SAMV7

Don't get too excited yet Too late! I'm excited!!! Yeah, I love how Adafruit/CP have picked up and run with MicroPython - and I understand their need to fork and even many of their decisions to modify certain features to better support beginners. But I do feel like both projects have missed an oppo...
by shazz
Fri May 31, 2019 1:34 pm
Forum: Other Boards
Topic: Need help with Makefile for ATMEL SAMV7
Replies: 9
Views: 8291

Re: Need help with Makefile for ATMEL SAMV7

Mattyt, I asked a similar question on Adafruit CP forums (https://forums.adafruit.com/viewtopic.php?f=60&t=152352), what would it mean to havd a minimal support of SAMD based boards on MicroPython. Looks like that's not an easy task. :roll: Do you think that will happen ? I have both SAMD and STM32 ...
by shazz
Fri May 24, 2019 3:06 pm
Forum: Other Boards
Topic: [Any STM32 board] How much time this loop should take ?
Replies: 14
Views: 8461

Re: [Any STM32 board] How much time this loop should take ?

Is your code available someplace (i.e github) that I can build for a 401 board with a known HSE crystal and compare results? I'm fairly certain (based on other threads, and the values he's quoted that match) that they're working from: https://github.com/KittenBot/micropython_meowbit/blob/uf2/ports/...
by shazz
Fri May 24, 2019 3:02 pm
Forum: Other Boards
Topic: [Any STM32 board] How much time this loop should take ?
Replies: 14
Views: 8461

Re: [Any STM32 board] How much time this loop should take ?

Also, maybe a bit of a long shot, but back to the MCO idea -- you said "my logical analyzer doesn't have enough bandwidth I presume". What do you have? Can you set the divider down low enough? Like you just need a pulse counter? Any other dev boards sitting around? I have this one: https://referenc...
by shazz
Fri May 24, 2019 3:01 am
Forum: Other Boards
Topic: [Any STM32 board] How much time this loop should take ?
Replies: 14
Views: 8461

Re: [Any STM32 board] How much time this loop should take ?

Ah !!! I did not know this tool! I spent hours on an speadsheet to do something similar (but not as good for sure...) Nice tool, I updated the config to have the good APBx prescaler and SYSCLK: clock.png Same "warning" but that' s so weird as the board works and the USB too with those settings. to f...