c1570

Results 16 comments of c1570

https://github.com/wokwi/rp2040js/pull/117 makes PIO run in sync with the CPU. There, PIO is tied to CPU ticks instead of some other separate clock. Not sure it's actually correct but certainly it's...

@urish From my side, this is ready for merging.

dual_display is broken, see https://github.com/Wren6991/PicoDVI/pull/41 Moon is 1bpp so b/w is okay. Red lines indicate the RP2040 lagging behind: https://github.com/Wren6991/PicoDVI/blob/51237271437e9d1eb62c97e40171fbf6ffe01ac6/software/libdvi/dvi.c#L210 Did you run cmake using `-DPICO_COPY_TO_RAM=1` as indicated in the...

https://github.com/shuichitakano/pico_lib (apparently a C++ fork of PicoDVI) has audio support.

Thanks for the reply! Yes I was a bit overspecific (currently working on something for that half cycles matter). In any case, the first c access should happen sometime in...

Edit: - `cmake -DPICO_COPY_TO_RAM=1 ..` will break core1, even for programs using only core0. Not sure why yet.

If I understand correctly, the bootloader leaves core1 in waiting state, but `emulator-run.ts` jumps into crt0 immediately, bypassing the bootloader. This makes core1 reach the code at https://github.com/raspberrypi/pico-sdk/blob/f396d05f8252d4670d4ea05c8b7ac938ef0cd381/src/rp2_common/pico_standard_link/crt0.S#L315 where things...

@urish How about just adding the needed example .hex files and use those? This would make tests easier/faster to run for users and allow testing things like `-DPICO_COPY_TO_RAM` more easily.

> @1570 Where is the code to bypass bootloader in `emulator-run.ts`? I did not ever use `-DPICO_COPY_TO_RAM` before. https://github.com/wokwi/rp2040js/blob/6344182c491904aabe1051c87ec89615491e94b1/demo/emulator-run.ts#L21 jumps to 0x10000000 (the hex file contents) but the bootrom is...

If anyone needs multiple MCUs _now_ and programming JavaScript/TypeScript is an option, https://github.com/wokwi/rp2040js/pull/117 includes a demo program that wires up two RP2040s and simulates a pullup/open collector bus between them....