842 views
in Platform Packages by
I'm enjoying Embedded Wizard and all of the available examples.  I have an RT1050 EVKB sample board, and have started to create my own GUI using your Device Integration example provided in the BSP.  I wanted to use this platform as a new front end to some established systems that already rely on SPI communication.  I can easily get the UART to communicate via PC RS-232, but am having some difficulty getting a DeviceClass setup for SPI.  Is there an available RT1050 BSP and/or example that uses SPI?  Thanks!

1 Answer

0 votes
by

Hi jbecker,

it's always nice to hear when an user enjoys the work with Embedded Wizard, thanks a lot!

I am not sure weather you would like to use a SPI interface for the serial output or to communicate with other hardware?

If you want to redirect the serial output of the print functions you can adapt the 'EwBspConfigSerial()','EwBspPutCharacter()' and 'EwBspGetCharacter()'. To make that conform with an SPI system you probably have to convert the characters to the binary sequence that you want.

Generally the Embedded Wizard GUI Project itself is completele hardware independent. Therefore you should take a look in 'Device Driver.c' and 'Device Driver.h'. These filese are the 'Connection' between Embedded Wizard and the rest of you code. There you should find 'DeviceDriver_PrintMessage' which directly will be execute when you press the button 'Print "Hello World"' button.

Anyway, unfortunately we do not have a dedicated example for that, but let's try to find the issue.

For that; could you please post more details what exactly is not working?

 

Btw:

1. Have you seen our documentation about 'Platform Integration: Device Class and Device Driver'?

2. If your SPI code produced delays within the Embedded Wizard 'Main-Loop', you probably should use an OS like FreeRTOS to give the SPI BSP an own task.

 

Kind Regards

Tim

Ask Embedded Wizard - Archive

Welcome to the Ask Embedded Wizard archive. This community forum served us well for many years, but we've evolved our support approach!

Your resources:

The Embedded Wizard Online Documentation provides comprehensive documentation, tutorials, examples and ready-to-use software packages.

For dedicated assistance, explore our Embedded Wizard Product Support.

You can still browse the valuable discussions from our community history here.

Embedded Wizard Website | Privacy Policy | Imprint

...