Re: [Flashforth-devel] PIC18F26/46/56Q71
Brought to you by:
oh2aun
From: Tristan W. <ho...@tj...> - 2023-04-07 13:19:49
|
Update I bought an EV01G21A [1] development board to experiment with FlashForth and the P18FxxQ71 family of mcu. The mcu has two UARTs, and on the dev board UART2 is internally connected [2] to a combined CDC usb-uart bridge/debugger. The dev board has the largest of the mcu family and perhaps because of this I needed to change the peripheral pin selection (PPS) in the distribution pic18fxxq72.inc file to reflect this. I now have a working serial prompt on UART2 via the builtin CDC/debugger and also on UART1 via an external usb-uart bridge - not at the same time. When using the dev board, setting a weak pullup via WPUx for the pin designated to be mcu UART2 TX pin (whilst it is still an input by default) prior to the TX pin being made an output by the UART2 peripheral seems to remove some observed noise on the line when the CDC/debugger first interacts with the FlashForth serial port. This noise seems to be a reproducible issue that is fixed with a weak pullup. I used pic-as 2.41 with mplabx 6.05 to build FlashForth. This is a new experience for me as I have, until now, stuck with FlashForth from the MPASM era. Grateful for any help on solving the two issues below > BUILD SUCCESSFUL (total time: 55ms) > Loading code from /Users/tw/ng/ff/pic18/FF.X/dist/default/production/FF.X.production.hex... > Error: /Users/tw/ng/ff/pic18/FF.X/dist/default/production/FF.X.production.hex contains code that is located at addresses that do not exist on the PIC18F56Q71. > Code incompletely loaded starting at 0x700000 (0x02). > Configuration Bits: address 0x300006: BBSIZE = 255 does not match any valid value in the device database. Best wishes Tristan [1] https://www.microchip.com/en-us/development-tool/EV01G21A [2] by default On 03Apr23 09:35, Tristan Williams wrote: > Hi Mike, > > Thank you! > > I've ordered a dev board and look forward to trying it out. > > Kind regards and thanks, > > Tristan > > On 02Apr23 12:48, Mikael Nordman wrote: > > Hi Tristan > > Added support for PIC18FX6Q71. > > > > Not tested but runs in the simulator, although the sim seems a bit unstable. > > > > BR Mike > > > > On 2023-04-02 10:59, Tristan Williams wrote: > > > Hello, > > > > > > Has anybody tried/succeeded using flashforth on a PIC18F26/46/56Q71? > > > > > > https://ww1.microchip.com/downloads/aemDocuments/documents/MCU08/ProductDocuments/DataSheets/PIC18F26-46-56-Q71-Microcontroller-XLP-Data-Sheet-DS40002329.pdf > > > > > > The mcu seems to have a very capable mix of digital and analogue > > > peripherals which would simplify my current and future projects > > > considerably. > > > > > > Grateful for any thoughts/insights on running flashforth on this mcu. > > > > > > Kind regards and thanks, > > > > > > Tristan > > > > > > > > > > > > _______________________________________________ > > > Flashforth-devel mailing list > > > Fla...@li... > > > https://lists.sourceforge.net/lists/listinfo/flashforth-devel > > > > -- > > -- > > Mikael > > > > > > _______________________________________________ > > Flashforth-devel mailing list > > Fla...@li... > > https://lists.sourceforge.net/lists/listinfo/flashforth-devel > > > > > _______________________________________________ > Flashforth-devel mailing list > Fla...@li... > https://lists.sourceforge.net/lists/listinfo/flashforth-devel > |