Something for me to learn about. As I understand it, the die is tiny as it’s not got flash on it so it gets them 20K yield per wafer, and you can then choose the flash you need externally, you get XIP and can run from RAM. I don’t know how much caching the XIP gets or if you can pick & choose sections of flash to run from RAM. But they do get huge economies of scale for this first release. Four years development need some pay back - later on down the line a single core with a decent amount of RAM / flash to get us the ATmega328P of the RPi silicon line may well transpire.
A lot of traditional embedded applications have little need for speed.
Eg, my LoRaWAN nodes run a Cortex M0 at just over two MHz (when they’re not asleep, as they usually are); the only time I noticed that being a limtiation was when I attempted to for laughs to play variable audio tones by software delay rather than setting up a timer. The chip can be clocked much faster of course, but there’s typically no need to do so.
The one place I could see this maybe fitting would be as an RTOS-based low power gateway in conjunction with an SX1302 that would only ever use a mobile data modem for backhaul; the USB host that the ESP32 doesn’t have might be interesting there to use a commodity modem rather than a UART-interfaced one. This could probably be done with a flash based MCU, too, though the high RAM might be handy.
Though once you start playing with the USB in host mode, I’d guess you have to use SWD for development/debug since you couldn’t plug the USB port into a PC at the same time.
I ordered a usb serial adaptor that I should receive this weekend. I’ll see what happens when I connect it directly to my Mac. As far as the OTAA parameters, I’m sure they are correct. I’ll post my serial output as soon as I can. Thanks again.
If we takeout the RAK4270, you should at least see set to OTAA because of the line print("set to OTAA").
Is the Rpi PICO working properly? Can you check via an oscilloscope or logic analyzer if there’s a UART output going to RAK4270? Also, can you try to test first the RAK4270 via USB-Serial converter?
I do receive “set to OTAA” with or without the RAK4270 connected. I tried with a second new Pico and still nothing. No response using a USB to serial converter either. Thanks Carl
Success! Nothing like swapping out bad jumpers for more bad jumpers… I opened a new pack of jumper wires and now everything is working perfectly. I would never have guessed it was a bad wire(s). Thanks for your help!
Can you try first a UART loopback test on your RPI Pico? Or try to connect it to a PC via USB-UART converter and replicate the module? Also, is the RAK42xx working well if you use a USB-UART converter?
The problem it isn’t the rak module because i’ve tried to change it and the error still remain, i don’t think the RPI Pico is broke or other because when i connect it to a PC the machine and Thonny recognize the board, maybe the cables i used for connect the module and the RPI are damaged?? like @RGS problem?