-
-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test pr to run CI #85
Conversation
Resolves: arduino#51 There is an IO pin on the NANO that that when turned on, enables most of the sensors on the BLE sense which are on SPI1. The MBED version, enables this pin as part of the main(). Which I am trying to emulate. There is code already in, that if you use at least one of the zephyr device drivers, will eanble this pin. However that does not help when you are using external libraries or the like. So I added details about this pin in our overlay file, in the zephyr,user section. I then added code to main.cpp, that is only included if your are building using an NRFX board. Currently the nano and one of the nicla boards. Could also specically only do this on the NANO, but probably does not matter as, the code tries to find that property and only if it is found, does it turn on the pin. Note: The MBED version turn on this pin with high drive. Which I emulated using the information, mentioned in the zephyr discussion. zephyrproject-rtos/zephyr#78710 In one of my sketches I verified that the pin pads configuration looks the same as mbed setup. With these changes I am able to access most of the sensors. Most of the testing has been done by @mjs513, with some by myself as well.
Added call to main.cpp to initVariant. Added a weak version in main.cpp. Then moved the code for initializing the enable sensor pin out of main.cpp into the initVariant that I added to variant.cpp for the specific board
resolves: arduino#64 Removed the pins logical Arduino pins 11-13 from the PWM pin list, plus their defines for the timers. With these defines in place, the pins Alternate Function settings were set to that of the timers versus the SPI value (5) Note: This was done by @mjs513 and myself.
GIGA: Remove Arduino pins 11-13 from PWM list to fix SPI1
Nano 33 BLE - enable the SPI1 sensors
Quick notes: I believe I am in sync with the latest change for it... get variant name... I did west update, build_all.sh, built the post build ... Tried with simple modified blink sketch Giga: appears to run, Although this giga still starts up in debug mode (have to type sketch)... And it shows up in the Portenta H7: loads, but still no Serial port (i.e. no ttyACM0) Portenta C33: loads and like H7 also no serial port. That is it so far.... |
* origin/fully_linked: Arduino.h: fix DIGITAL_PIN_EXISTS macro to avoid comment expansion issues gh: test sketch compilation after packaging core loader: fix rw612 and ek_ra8 SerialUSB: create SerialUSB object only if CONFIG_USB_CDC_ACM=y core: use the new postbuild tool post-build: rework to use empty area in ELF header or add it in binaries loader: cleanups post-build: refactor to use flag package west.yml: use arduino remote build.sh: fix shields parameter portenta_c33: rebuild loader loader: move cache config to be board specific usb: start supporting USB_DEVICE_STACK_NEXT c33: rebuild loader zephyrClient: fix SSL overload wip: c33 wip: linked build mass rebuild build_all: add c33 c33: add artifacts boards: add portenta c33 platform: dfu-util: allow skipping dfuse c33: fix pwm in loader TEMP: get rid of serialEvent serial: add missing include fixme: add bootloader reflasher for c33 targets: add portenta c33 loader: enable USB only for legacy stack loader: fix ringbuffer exports west.yml: use merged branch temp: fix display/camera coexistence giga: update branch to support display shield
- generate a _debug.elf, then strip it to create the final .elf - add '-zsk.bin' extension to the chosen binary so all files end in .bin - use upload.extension more consistently
6aafbd3
to
027f7cd
Compare
@pillo79 @facchinm and @mjs513 - As I mentioned in the issue: #84 More details on the issue, but short version: I went into the file /zephyr/boards/arduino/portenta_h7/arduino_portenta_h7_stm32h747xx_m7.dts Also needed, added the line: zephyr,uart-mcumgr = &usart6; Rebuilt - flashed - and programmed and: ttyACM0 was working again. Side comment: noticed that the define for platform_board appears to be different? Not sure if intentional, but: |
As a heads up. Threading:
gave me a bus fault whereas before it ran without issue. Verified that it ran on the GIGA no issue. |
@pillo79 @facchinm @mjs513 - not sure of the best ways of fixing/enhancing this PR. But what I tried to create a PR against the Arduino branch for zephyr... I accidentally created and then closed it on main project I also have fixes for the USB stuff, plus manual merge of our other main PR for fixing the USB on the portenta plus Was complicated as could not cherry pick or the like as the variant names changed and the like. I created a new branch based off of this PR:
I made the changes and then pushed it all up to a new temporary branch https://github.com/KurtE/ArduinoCore-zephyr/tree/pr_fully_linked So far I tested, that I could upload blink example sketch and Serial port was there. |
Hmm lost what I initially wrote but... Sycnched up with @KurtE;s branch as we usually try to stay in synch for testing. On the Portenta H7 (LITE)
On Nano 33 sense
|
Get the variant name (NORMALIZED_BOARD_TARGET) from the Zephyr build system as early as possible. This allows to have per-target build directories. Note that a bug with the shield specifiers does not currently allow to reuse the same build directory multiple times. Remove inline comments from macro definitions in include files.
Use k_fifo_get instead.
Define a single macro to enable the shell over USB, and use it in the appropriate places.
Always use the new 'board_cdc_acm_uart' definition for USB CDC ACM interfaces. This is the new standard for Zephyr serial-over-USB.
Tried your lastest changes in pillo79:fully_linked, looks like H7 and GIGA Serial is working. However NANO 33 Sense Serial/USB is still not working. Just thought you would like to know before you do any release. EDIT: H7 Overlay does not have all I2C ports, Analog, etc. that @KurtE and I had it PRs. Just a note |
I tried a couple different sketches on an Nano 33 Sense Rev2 this morning, including: the example blink, and before that, They both failed to run. Hooked up Teeny 4 built as USB to multi Serial adapter and hooked up to NANO serial pins and found:
Note: The above runs were done by simply running the stuff you uploaded, in this case I did not rebuild myself.
|
This is a replacement for PR: arduino#71 and arduino#82. All of the earlier commits were squashed into one. Then this was converted a few times during the arduino#85 pr time frame as things kept changing and moving around. It has now been updated to the released .3 version. I started off adding in the whole pin table as defined by the MBED version, which actually contained duplicate defines. I later reduced this set such that it now longer matches the MBED version, but does still include all of the pins that have external pins on some of the breakout boards. As for compatibility, most of the documentation for these show the PIN names and not numbers, so I imported the MBED Pin name table and have the start of allowing several different operations to be done, like pinMode, digitalWrite. We defined the additional SPI ports and Wire ports. We defined an initial setup for Analog pins. Have similar hack to GIGA version for pure Analog. Added additional hacks for duplicated pins. That is two of the analog Pins are the exact same pin as some other digital pins... Added some PWM support. Also added WIP: camera support. Co-Authored-By: Mike S <[email protected]>
This is a replacement for PR: arduino#71 and arduino#82. All of the earlier commits were squashed into one. Then this was converted a few times during the arduino#85 pr time frame as things kept changing and moving around. It has now been updated to the released .3 version. I started off adding in the whole pin table as defined by the MBED version, which actually contained duplicate defines. I later reduced this set such that it now longer matches the MBED version, but does still include all of the pins that have external pins on some of the breakout boards. As for compatibility, most of the documentation for these show the PIN names and not numbers, so I imported the MBED Pin name table and have the start of allowing several different operations to be done, like pinMode, digitalWrite. We defined the additional SPI ports and Wire ports. We defined an initial setup for Analog pins. Have similar hack to GIGA version for pure Analog. Added additional hacks for duplicated pins. That is two of the analog Pins are the exact same pin as some other digital pins... Added some PWM support. Also added WIP: camera support. Co-Authored-By: Mike S <[email protected]>
This is a replacement for PR: arduino#71 and arduino#82. All of the earlier commits were squashed into one. Then this was converted a few times during the arduino#85 pr time frame as things kept changing and moving around. It has now been updated to the released .3 version. I started off adding in the whole pin table as defined by the MBED version, which actually contained duplicate defines. I later reduced this set such that it now longer matches the MBED version, but does still include all of the pins that have external pins on some of the breakout boards. As for compatibility, most of the documentation for these show the PIN names and not numbers, so I imported the MBED Pin name table and have the start of allowing several different operations to be done, like pinMode, digitalWrite. We defined the additional SPI ports and Wire ports. We defined an initial setup for Analog pins. Have similar hack to GIGA version for pure Analog. Added additional hacks for duplicated pins. That is two of the analog Pins are the exact same pin as some other digital pins... Added some PWM support. Also added WIP: camera support. Co-Authored-By: Mike S <[email protected]>
This is a replacement for PR: arduino#71 and arduino#82. All of the earlier commits were squashed into one. Then this was converted a few times during the arduino#85 pr time frame as things kept changing and moving around. It has now been updated to the released .3 version. I started off adding in the whole pin table as defined by the MBED version, which actually contained duplicate defines. I later reduced this set such that it now longer matches the MBED version, but does still include all of the pins that have external pins on some of the breakout boards. As for compatibility, most of the documentation for these show the PIN names and not numbers, so I imported the MBED Pin name table and have the start of allowing several different operations to be done, like pinMode, digitalWrite. We defined the additional SPI ports and Wire ports. We defined an initial setup for Analog pins. Have similar hack to GIGA version for pure Analog. Added additional hacks for duplicated pins. That is two of the analog Pins are the exact same pin as some other digital pins... Added some PWM support. Also added WIP: camera support. Co-Authored-By: Mike S <[email protected]>
No description provided.