Search found 123 matches

by chrismas9
Fri Nov 15, 2019 2:48 am
Forum: Pyboard D-series
Topic: UART on alternate pins
Replies: 3
Views: 91

Re: UART on alternate pins

Edit the pin assignment in mpconfigboard.h for your port and rebuild MicroPython
by chrismas9
Fri Nov 15, 2019 2:46 am
Forum: Programs, Libraries and Tools
Topic: New version of Thonny IDE
Replies: 6
Views: 414

Re: New version of Thonny IDE

What i still miss: automatic sync files on device <-> local I actually use Thonny to avoid writing to local flash. I have multiple test scripts with different names that Thonny lets me run in RAM without renaming them to main.py. Only when one is tested do I download it as main.py. Also some of my ...
by chrismas9
Fri Nov 15, 2019 2:35 am
Forum: General Discussion and Questions
Topic: CAN on STM32F4xx
Replies: 12
Views: 404

Re: CAN on STM32F4xx

If the STBY is high or floating the device will sleep until it sees a dominant star on the bus. This means the transceiver at the listening end will wake up after a delay. The sending end will not wake up if you want to send. You need to either tie STBY low or drive it low before sending. It is also...
by chrismas9
Fri Nov 15, 2019 2:21 am
Forum: Development of MicroPython
Topic: screen /dev/ttyACM0 on STM32L4R9IDISC
Replies: 17
Views: 352

Re: screen /dev/ttyACM0 on STM32L4R9IDISC

If you can't get the green LED to flash you have a more fundamental problem than no REPL. I would review the driver and HAL interface changes you made for the MCU. On one port I did the interrupt vector table was different to most and I have also found the occassional bug in the STM32hal libraries. ...
by chrismas9
Wed Nov 13, 2019 7:56 pm
Forum: General Discussion and Questions
Topic: CAN on STM32F4xx
Replies: 12
Views: 404

Re: CAN on STM32F4xx

Do you have a Pyboard or any Nucleo or Discovery board with dual CAN MCU. It might be worth trying your hardware and test script on other hardware.
by chrismas9
Wed Nov 13, 2019 6:03 pm
Forum: Development of MicroPython
Topic: screen /dev/ttyACM0 on STM32L4R9IDISC
Replies: 17
Views: 352

Re: screen /dev/ttyACM0 on STM32L4R9IDISC

Is MicroPython running? Hold the joystick button down and press reset. The green LED should count in flashes. One flash, two then three. Release the button after three flashes. It should reset the filesystem which will hold the LED one for one or two seconds.
by chrismas9
Wed Nov 13, 2019 1:10 pm
Forum: Development of MicroPython
Topic: screen /dev/ttyACM0 on STM32L4R9IDISC
Replies: 17
Views: 352

Re: screen /dev/ttyACM0 on STM32L4R9IDISC

The board has two USB connectors, one on top and one on bottom side. You will need two USB cables to get USB REPL to work. You need power into STlink port. It can be from phone charger or PC. The second cable must go from USB port labelled USB FS OTG to PC. You should then see. Virtual com port on y...
by chrismas9
Tue Nov 12, 2019 10:41 pm
Forum: General Discussion and Questions
Topic: CAN on STM32F4xx
Replies: 12
Views: 404

Re: CAN on STM32F4xx

I used a similar CN transceiver from Microchip. Yours needs dual supplies and enable, mine had slope control. Shouldn't make any difference as long as all 8 pins are connected. I presume you are using STM32F439 port as a starting point for your board. Are you using the same pins as specified in mpco...
by chrismas9
Tue Nov 12, 2019 10:08 pm
Forum: Development of MicroPython
Topic: screen /dev/ttyACM0 on STM32L4R9IDISC
Replies: 17
Views: 352

Re: screen /dev/ttyACM0 on STM32L4R9IDISC

Have you enabled USB? If so short BOOT0 to 3V3 and plug USB into PC. Use the USB OTG-FS port with power to the STlink port. The board should appear as STM32 in DFU mode (or something similar, not sure how it appears in Linux). Thus will verify your USB. If USB is enabled your REPL will be on USB vir...
by chrismas9
Tue Nov 12, 2019 5:31 am
Forum: General Discussion and Questions
Topic: CAN on STM32F4xx
Replies: 12
Views: 404

Re: CAN on STM32F4xx

I have used that test script on several Nucleo boards. What board and MicroPython version are you using? If it's custom post your mpconfigport.h What CAN transceivers are you using? Are they powered from 3.3V or 5V? What is the logic 1 input threshold on the MCU side? TTL compatible parts are 2 to 2...