Go to advanced search

by fivdi
Fri Jul 02, 2021 7:39 pm
Forum: SDK
Topic: Setting up multiple GPIO at once using masks
Replies: 1
Views: 247

Re: Setting up multiple GPIO at once using masks

In most cases, if a "*_mask[ed]" function is available, it means that there is a single register where each bit in the register represents one of the 30 GPIOs. For example, multiple GPIOs can be configured as outputs by setting the value of the gpio_oe_set register to the appropriate value...
by fivdi
Fri Jun 25, 2021 1:19 pm
Forum: MicroPython
Topic: mpremote -- MicroPython remote control
Replies: 11
Views: 926

Re: mpremote -- MicroPython remote control

What impressed me is that files written from MicroPython on the Pico appear in that directory. I was wondering if this would work. Good to know that it does. One thing I would point out is I had ignored this thread for a week because I imagined "mpremote -- MicroPython remote control" wou...
by fivdi
Wed Jun 23, 2021 8:27 pm
Forum: Troubleshooting
Topic: i2c port not detecting data
Replies: 4
Views: 158

Re: i2c port not detecting data

Can you post a photo which clearly shows the Raspberry Pi, the ADS1115 and the wires connecting the Raspberry Pi to the ADS1115? In the photo, it should be possible to see which pins on the Pi are connected to which pins on the ADS1115. Also, can you post a link to the ASD1115 board that is being us...
by fivdi
Wed Jun 23, 2021 9:50 am
Forum: MicroPython
Topic: mpremote -- MicroPython remote control
Replies: 11
Views: 926

Re: mpremote -- MicroPython remote control

I have used mpremote a little and haven't had too many issues yet. The command that I like most so far is " mpremote mount . " which makes it look as if the current directory on the development machine had been copied to the microcontroller flash, but it hasn't, and everything works as if ...
by fivdi
Sun Jun 20, 2021 8:54 am
Forum: MicroPython
Topic: mpremote -- MicroPython remote control
Replies: 11
Views: 926

mpremote -- MicroPython remote control

MicroPython v1.16 was released last Friday. It comes with a new command line tool called mpremote which is intended to be the main way to remotely control a MicroPython-based device from the command line. For further information see the release notes for MicroPython v1.16 at https://github.com/micro...
by fivdi
Thu Jun 17, 2021 9:17 pm
Forum: MicroPython
Topic: Import “Machine” Question?
Replies: 5
Views: 402

Re: Import “Machine” Question?

.... for microcontrollers flashed with CircuitPython the corresponding hardware functionality is probably in the board module instead. Not really, board is all about board specific pins. >>> import board >>> board. A0 A1 A2 A3 BAT_SENSE GP0 GP1 GP10 GP11 GP12 GP13 GP14 GP15 GP16 GP17 GP18 GP19 GP2 ...
by fivdi
Thu Jun 17, 2021 7:56 pm
Forum: MicroPython
Topic: Import “Machine” Question?
Replies: 5
Views: 402

Re: Import “Machine” Question?

machine is a built-in module in MicroPython which means it's part of MicroPython itself. CircuitPython and MicroPython similar but not exactly the same. One difference is that CircuitPython has no built-in module called machine.
by fivdi
Tue Jun 15, 2021 4:46 pm
Forum: SDK
Topic: SDK 1.2 defines
Replies: 16
Views: 606

Re: SDK 1.2 defines

you did not answer my questions... Where ( CMake ) PICO_STDIO_UART is transformed to LIB_PICO_STDIO_UART ? Yes, my apologizes, you are right, I didn't answer your questions. In this line of cmake code "pico_add_impl_library" is called with "pico_stdio_uart" passed as a parameter...
by fivdi
Tue Jun 15, 2021 3:56 pm
Forum: SDK
Topic: SDK 1.2 defines
Replies: 16
Views: 606

Re: SDK 1.2 defines

Good idea.
by fivdi
Tue Jun 15, 2021 3:52 pm
Forum: SDK
Topic: SDK 1.2 defines
Replies: 16
Views: 606

Re: SDK 1.2 defines

.... I[t] can also be seen in the pico-sdk v1.2.0 source at .... Where PICO_STDIO_UART is transformed to LIB_PICO_STDIO_UART https://github.com/raspberrypi/pico-sdk/blob/master/src/rp2_common/pico_stdio/stdio.c#L249 only 3 keys have LIB_ fooooo.... Sorry for the confusion. I know that PICO_STDIO_UA...
by fivdi
Tue Jun 15, 2021 3:10 pm
Forum: SDK
Topic: SDK 1.2 defines
Replies: 16
Views: 606

Re: SDK 1.2 defines

This was an undocumented define before anyway that is used internally to the SDK. Whilst it is a change, it was unlikely to yet be used by other code, and internal use by SDK code (which you linked) is considered safe to change. PICO_STDIO_UART is documented on page 288 of the Raspberry Pi Pico C/C...
by fivdi
Mon Jun 14, 2021 5:46 pm
Forum: SDK
Topic: Corrupted struct variables when using multicore
Replies: 4
Views: 292

Re: Corrupted struct variables when using multicore

I'd put a C style string (a char array) rather than a std::string in the struct to avoid the issues that will occur copying a std::string to and from the queue.
by fivdi
Fri Jun 11, 2021 1:23 pm
Forum: Other RP2040 boards
Topic: Pimoroni PGA 2040
Replies: 8
Views: 1093

Re: Pimoroni PGA 2040

Some more details can be found here.

Image
by fivdi
Thu Jun 10, 2021 5:13 pm
Forum: General
Topic: PicoVGA - VGA/TV display on Raspberry Pico
Replies: 29
Views: 1447

Re: PicoVGA - VGA/TV display on Raspberry Pico

@Panda38 Excellent :D
by fivdi
Wed Jun 09, 2021 9:24 pm
Forum: SDK
Topic: [SOLVED] How to enable Compiler Warnings?
Replies: 4
Views: 268

Re: How to enable Compiler Warnings?

I didn't read through the thread linked to above, however, adding compiler options appears to work for me with the following CMakeLists.txt (which adds the compile options mentioned above): cmake_minimum_required(VERSION 3.13) set(PICO_DEVICES_PATH ${CMAKE_CURRENT_LIST_DIR}) set(CMAKE_C_STANDARD 11)...
by fivdi
Tue Jun 08, 2021 9:30 pm
Forum: General
Topic: RP2040 chips for sale
Replies: 18
Views: 1373

Re: RP2040 chips for sale

I really like the idea of designing my own board(s), but assembling QFN packages is something I'd prefer to leave with somebody who does it better than me. The Pimoroni PGA 2040 is likely to be an option for those wishing to design and assemble their own boards while at the same time avoiding solde...
by fivdi
Tue Jun 08, 2021 5:09 pm
Forum: Troubleshooting
Topic: SPI DEV CE0 / CS / Chip Select Active High
Replies: 6
Views: 234

Re: SPI DEV CE0 / CS / Chip Select Active High

In your second post you don't actually mention what the problem is which makes things difficult for the reader, at least for me :) There is also no mention of what type of SPI device you would like to communicate with. Providing this information would also make things easier for the reader. Here are...
by fivdi
Mon Jun 07, 2021 8:06 pm
Forum: Troubleshooting
Topic: SPI DEV CE0 / CS / Chip Select Active High
Replies: 6
Views: 234

Re: SPI DEV CE0 / CS / Chip Select Active High

As you have discovered, the spidev Python module has a setting called "cshigh" that can be used to control whether or not chip select is active high. See https://github.com/doceme/py-spidev However, Linux kernel 5+ no longer supports this option. If the chip select is active high, you can ...
by fivdi
Sat Jun 05, 2021 10:12 pm
Forum: General
Topic: [SOLVED] Specific issue with gdb debugging Pico (in flash) with RPi and OpenOCD
Replies: 10
Views: 399

Re: Specific issue with gdb debugging Pico (in flash) with RPi and OpenOCD

crt0.S is implemented in assembly language (not script) and is part of the C runtime library. This is a reasonable place for the debugger to be after it has just been started. To get to your main program you'll need to run the following commands from the (gdb) prompt after running "gdb-multiarc...
by fivdi
Sat Jun 05, 2021 7:40 pm
Forum: General
Topic: [SOLVED] Specific issue with gdb debugging Pico (in flash) with RPi and OpenOCD
Replies: 10
Views: 399

Re: Specific issue with gdb debugging Pico (in flash) with RPi and OpenOCD

The first thing worth mentioning about the elf file posted above is that at 184KB it's quite small. A simple blinky elf file with all the required debug information contains about 350KB. The elf file does contain a small amount of debug information related to source code line numbers for a few files...
by fivdi
Sat Jun 05, 2021 5:57 pm
Forum: General
Topic: [SOLVED] Specific issue with gdb debugging Pico (in flash) with RPi and OpenOCD
Replies: 10
Views: 399

Re: Specific issue with gdb debugging Pico (in flash) with RPi and OpenOCD

Hmm..., that doesn't look like a elf file that was built using "cmake -DCMAKE_BUILD_TYPE=Debug .." to me. The output doesn't contain any debug information related to pico-sdk or the morse application but I expected it to. Can you post a comment with the entire elf file attached? I think th...
by fivdi
Sat Jun 05, 2021 1:07 pm
Forum: General
Topic: [SOLVED] Specific issue with gdb debugging Pico (in flash) with RPi and OpenOCD
Replies: 10
Views: 399

Re: Specific issue with gdb debugging Pico (in flash) with RPi and OpenOCD

Perhaps the elf file doesn't contain the appropriate debug information. Please run the following command on your elf file. arm-none-eabi-objdump -e minimum.elf | grep "/" | head -n 20 What does the command output? Does the output show that compiler options "-g -Og" were used? Doe...
by fivdi
Fri Jun 04, 2021 2:24 pm
Forum: Other RP2040 boards
Topic: Pimoroni PGA 2040
Replies: 8
Views: 1093

Pimoroni PGA 2040

Support for the Pimoroni PGA 2040 landed in pico-sdk yesterday. See here.

I don't know anything about the PGA 2040 yet and can only speculate about what it can be used for.

Is it something for professional golfers who are makers? Maybe for building their own custom golf ball flight analysers?
by fivdi
Fri Jun 04, 2021 8:03 am
Forum: General
Topic: No debugging when loaded into RAM
Replies: 17
Views: 998

Re: No debugging when loaded into RAM

kilograham wrote:
Thu Jun 03, 2021 10:29 pm
we've moved off this being a RAM issue, right?
This is what I have been assuming in barryleajo's case.

@barryleajo You are running the program from flash and not from RAM, correct?

Go to advanced search