[info] ESP32-PRO - a combine with PIC32 ( USB OTG, USB Device )

User avatar
rudi ;-)
Posts: 1731
Joined: Fri Nov 13, 2015 3:25 pm

Re: [info] ESP32-PRO - a combine with PIC32 ( USB OTG, USB Device )

Postby rudi ;-) » Thu Jan 04, 2018 12:51 pm

Vader_Mester wrote: @Rudi
Loooks very nice.
I'm planning to use the PSRAM as graphical buffer, so if you ever make it throught the testing, and start making it I'm a buyer!!!!
happy new year ;-)
i got it from olimex for testing and the plan is, that this is OSHW ( pcb, shematic, boom .. all is then on Github for selfmade ) and i think olimex will add this to the olimex product catalog list for can buy as ready to start board. i do not know, when this is.
but my final step is now USB HOST/OTG , all other is done.
also DTR / RTS add and PR for PIC32's USB CDC ACM.
did test many things last times, and it works like a charme to me with combine a ESP32 with a PIC32.
Vader_Mester wrote:
Note: I'm very surprised you are using a PIC32. The Arm Cortex M0 micros are better IMO.
:) ARM is on the desk too
Vader_Mester wrote:
I would have rather gone with an Atmel ATSAMD21G micro, which is an Arm Cortex M0+ micro, and has all the features of the PIC.
It is also much cheaper than the PIC.
If you check on Mouser for example.
- Price of PIC32MX270F256DT - 3,18 EUR/pc (in Qty of 1600 reel)
- Price of ATSAMD21G18A (48pin TQFP version) - 2,74 EUR/pc (single buy), 2,22-EUR/pc in case of a reel of 1000.

1 EUR cheaper even in masses!
yes you are right with this prices.
Vader_Mester wrote: Plus this is the micro used in the Arduiono M0, and has a valid Arduino bootloader (to be loaded with a Cortex programmer) and can be programmed with Arduino IDE afterwards.

:) valid public arduino bootloader is done now too for the PIC32, no PicKIT3 or other now need for flash the PIC32, comes later as PR to the Bootloader repo and we have free pic32 compiler / toolchain
you can prog professional in MPLAP-X with Harmony and XC32
also in arduino or eclipse with arduino plugin XC32 C32 ..
and we can prog / debug / JTAG cross over the ESP32 PIC32 and opposite PIC32 ESP32
can prog over ESP32 OTA and PIC32 USART backward the PIC32 8-)

you can dedicise by self, what you want use
bootloader or PicKIT3 or other
rudi ;-) -> boards.txt done for ESP32pro wrote:############################################################
esp32pro.name=Olimex ESP32Pro
esp32pro.group=Olimex
esp32pro.platform=pic32
esp32pro.build.board=_BOARD_ESP32Pro_
esp32pro.build.extra_flags=-D_USE_USB_FOR_SERIAL_
esp32pro.ccflags=-Map="map.map"
# linker script : decide by youself
# possible to program by bootloader
esp32pro.ldscript=chipKIT-application-32MX270F256.ld
# possible to program by ChipKIT3 or other
# esp32pro.ldscript=chipKIT-application-32MX270F256-nobootloader.ld
....
....


most skeletons are done now.
full support in Arduino IDE and many others now :)
PR comes then at final step in one packet to olimex github

because olimex fulfilled this board dream I have so much fun in the matter.
in terms of time, i'm still limited by christmas over the christmas holidays and new year ( family ) ,
but next week fulltime again.

HOST still annoys me (MPLAP-X Harmony Libs work's ) but not everything is disclosed by MC
and there is no "official" USB HOST / OTG stack for arduino,
but soon (surprise for olimex) soon we play with it in the Arduino IDE in the simplest way :)
Vader_Mester wrote:
AtsamD21 features in a nutshell:
TQFP-48 package (or bigger, but the TQFP-48 is a usable size)
Arm Cortex M0 core, 32bit, DMA, all that thing, you name it
48MHz to 96 MHz clock speed
JTAG and 2 wire SWD programming, or through UART or USB (depending on bootloader)
USB either device or host mode supported. It can be essentially a full USB host.
Capacitive Touch (thorugh PTC periferial)
Lots of SPI, lots of I2C, and I2S
This Micro was my first candidate to be used in my IoT project... untill I found the holy grail (ESP32).
Vader
:D

best wishes
rudi ;-)
-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪

User avatar
Vader_Mester
Posts: 300
Joined: Tue Dec 05, 2017 8:28 pm
Location: Hungary
Contact:

Re: [info] ESP32-PRO - a combine with PIC32 ( USB OTG, USB Device )

Postby Vader_Mester » Thu Jan 11, 2018 5:04 pm

Are you using the Espressif branded SRAM on this board, or something else?
If it's something else, then what is it?

Code: Select all

task_t coffeeTask()
{
	while(atWork){
		if(!xStreamBufferIsEmpty(mug)){
			coffeeDrink(mug);
		} else {
			xTaskCreate(sBrew, "brew", 9000, &mug, 1, NULL);
			xSemaphoreTake(sCoffeeRdy, portMAX_DELAY);
		}
	}
	vTaskDelete(NULL);
}

User avatar
rudi ;-)
Posts: 1731
Joined: Fri Nov 13, 2015 3:25 pm

Re: [info] ESP32-PRO - a combine with PIC32 ( USB OTG, USB Device )

Postby rudi ;-) » Thu Jan 11, 2018 9:53 pm

Vader_Mester wrote:Are you using the Espressif branded SRAM on this board, or something else?
If it's something else, then what is it?
you can check shematic it is online and open hard and software

flash:
flash.png
flash.png (46.61 KiB) Viewed 6520 times
pSRAM:
pSRAM.png
pSRAM.png (54.76 KiB) Viewed 6520 times
best wishes
rudi ;-)
-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪

Who is online

Users browsing this forum: No registered users and 8 guests