If signal generator was driving pin 22 at more than 3.3v, then maybe you fried pin 22 and other pins. You should be seeing only 3.3v on PWM output pins. :confused:
you could try some pin tests, digitalRead()...
In the 2nd column, it says when using T4 pin 22 as input, then you can't use pin 23 for analogWrite(). So choose another PWM pin, e.g. pin 12, for the PWM test example.
Teensy 4 pins are NOT 5 volt tolerant, so you...
Do you have common ground between teensy and generator.
Try this test with PWM (jumper pin 12 to pin 22)
#include <FreqMeasure.h>
void setup() {
Serial.begin(57600);
analogWriteFrequency(12,600); //jumper...
Ethernt MAC address
Each Teensy 3* and Teensy 4* comes with a unique number set in the OTP efuses. The teensy core uses those bytes to define the Ethernet MAC and a USB serial number.
Teensy 4
...
I tried the Teensy 4.1 port with my T4.1 and home ethernet
git clone --recursive https://github.com/mbed-ce/mbed-os-example-sockets.git
in build/
cmake .. -GNinja...
So do TLS sockets work on the 1060 EVK and/or 1050 EVK? My earlier Ethernet testing on those EVK boards was using the lwIP library, and I only did standalone testing of the mbedTLS lib.
CA certificates have an...
Pin tests on T4.0 with mbed CE:
digital tests (D0 - D23): inpin.mode(PullUp) and then jumpering each pin to GND and confirming pin valuue 0 -- all ok
PWM tests: only pin D22 worked with PWM (default 50 hz). all...
Re: Cortex M7 tests
Over the years I've been using the mbed online compiler (RIP) for testing. Recently I've been using mbed cli and Keil Studio. I've also used NXP MCUxpresso with the SDK for the 1170...
Yep, your recipe worked for me
Hello world from Mbed CE!
Hello world from Mbed CE!
Hello World from inside usb_device_ehci.c, controllerId = 2
Hello world from Mbed CE!
no USB tty device
xhci_hcd...
My limited experience with RPI pico cmake, you could set both uart and usb to "true" in the json file, but that doesn't appear to work on mbed ce.
My morse code output works on pin 13, but my "decoder" measuring...
600 mhz with -O3 also working ;)
coremark
2K performance run parameters for coremark.
CoreMark Size : 666
Total ticks : 1222
Total time (secs): 12.220000
Iterations/Sec : 2454.991817
Iterations ...
yes, i saw that and tried that. I've even tried hacking the git sources and changing all -Os to -O3 anywhere (e.g., .cmake and .json and ...), and trying things in other forums ... no luck. I have done optimization...
Great news on 600 MHz. Paul's core has set_arm_clock(frequency) in clockspeed.c that allows you to configure clock speed from IDE or under program control. There are threads on this forum discussing heat sinks for...
> target_compile_options(HelloWorld PRIVATE -O3)
I added this to CMakeLists.txt and recreated build/ but there was no change in performance from -Os. Any other suggestions??
thanks for tip on "mbed-baremetal"
...
I would like to run with -O3. It appears that it is running at -Os. -Os appears in CMakeCache.txt
CMAKE_ASM_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG
CMAKE_CXX_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG...
Some hardware registers for T4.0 under mbed os 6.
SystemCoreClock 528000000 11:38:27 Feb 8 2023 ok
ArmPllClk 1056000000 AhbClk 528000000 RtcClk 32768 Usb1PllPfd0Clk 664615368 IpgClk 132000000 SemClk 176000000 ...
Update, I used the following for mbed_app.json
{
"target_overrides": {
"*": {
"platform.stdio-baud-rate": 115200,
"platform.stdio-buffered-serial": 1,
...
OK I updated mbed-ce-hello-world -- thanks Paul for the detailed git incantations. I built, loaded, and ran main.cpp. No mbed death flashing. ttyUSB0 showed up
usb 1-3.4: new full-speed USB device number 37 using...
updated mbed_app.json, removed build directory and re-created with cmake etc. my build summary has no mbed_usb.a
Linking CXX executable HelloWorld.elf
-- built:...
I deleted lines from startup_MIMXRT1052.S and added blink logic to main.cpp
#include "mbed.h"
int main()
{
DigitalOut myled(LED1);
int p = 1;
while(true)
{
printf("Hello world from...
So have you actually run your HelloWorld project on a T4.0?
maybe add the HellowWorld.hex to your git repository.
I believe T4.0's are in stock at pjrc.com
Paul, have you examined mbed-os/targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_MIMXRT1050/TARGET_TEENSY_4X/bootdata.c
Above my pay grade ...
Seems like the mbed T4.0 code is derived from the 1050. I did some...
Tried but failed. :confused:
on Ubuntu 18.04.06 with stock arm-none-eabi-g++ version 6.3.1, cmake looked OK, and ninja built HelloWorld.hex
ninja
Linking CXX executable HelloWorld.elf
-- built:...
An active antenna (with long cable) on the windowsill is probably best, adding distance between the GPS antenna and RF noise of the MCU and other devices.
Does your GPS have an external antenna with a good view of the sky? Satellite lock may be intermittent and PPS erratic without external antenna.
Some discussion of GPS PPS and Teensy crystal drift and frequency...