PSoC™ 6 Forum Discussions
------------------------------------------
Post-build commands for Cortex-M4 core
------------------------------------------
E:\Work\19.Watch\Software\cy8c62-V0.001\Workspace05 - test\App1\Watch001.cydsn>"C:\Program Files (x86)\Cypress\PDL\3.1.0""\tools\win\elf\cymcuelftool.exe" -M .\CortexM4\ARM_GCC_541\Debug\Watch001.elf ..\App0.elf -- output
--: Failed to open --
E:\Work\19.Watch\Software\cy8c62-V0.001\Workspace05 - test\App1\Watch001.cydsn>.\CortexM4\ARM_GCC_541\Debug\Watch001_merged.elf --hex
'.\CortexM4\ARM_GCC_541\Debug\Watch001_merged.elf' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
E:\Work\19.Watch\Software\cy8c62-V0.001\Workspace05 - test\App1\Watch001.cydsn>.\CortexM4\ARM_GCC_541\Debug\Watch001.hex
--------------- Build Succeeded: 01/08/2020 15:06:08 ---------------
按照步骤配置了,编译后没有合并成功。
这个是app1的.bat文件:
@rem Set proper path to your PDL 3.x and above installation
@set PDL_PATH="C:\Program Files (x86)\Cypress\PDL\3.1.0"
@set CY_MCU_ELF_TOOL=%PDL_PATH%"\tools\win\elf\cymcuelftool.exe"
@set IDE=%1
@if "%IDE%" == "creator" (
@set OUTPUT_DIR=%2
@set PRJ_NAME=%3
@set ELF_EXT=.elf
)
@if "%IDE%" == "uvision" (
@set OUTPUT_DIR=%2
@set PRJ_NAME=%3
@set ELF_EXT=.axf
)
@if "%IDE%" == "iar" (
@set OUTPUT_DIR=%2
@set PRJ_NAME=%3
@set ELF_EXT=.out
)
@if "%IDE%" == "eclipse" (
@set OUTPUT_DIR=%2
@set PRJ_NAME=%3
@set ELF_EXT=
)
@rem Merges App0 and App1 into a single hex file for easier programming
%CY_MCU_ELF_TOOL% -M %OUTPUT_DIR%\%PRJ_NAME%%ELF_EXT% ..\App0%ELF_EXT% -- output
%OUTPUT_DIR%\%PRJ_NAME%_merged%ELF_EXT% --hex
%OUTPUT_DIR%\%PRJ_NAME%.hex
Show LessI would have expected the IDE to generate the macro's for the pin-instance.
Is this feature removed for the PSoC 6?
This is my first time working with the PSoC 6.
Show LessDear community,
For a couple of days I'm trying to extract data from a sensor. I tried using the examples and application notes but could not get it working. I tried it with DMA and interrupts but quickly decided it was too difficult.
The waveforms look good and the Logic analyser displays the correct information. The image below shows a single read-transaction. I only need the second value 0xA800.
main loop
for(;;)
{
UART_PutString("Start Loop:\r\n");
clearErrors();
for( int i =0; i < 10; i++){
printf("%x\r\n", readSPIWord(0x24));
}
CyDelay(1000);
}
functions
void clearErrors(){
//Write bit + 1E address + 07 data
SPI_Write(0x1E07 & SPI_WRITE_BITMASK);
//Write bit + 1F address + 0x46 keycode
SPI_Write(0x1F46 & SPI_WRITE_BITMASK);
}
uint16 readSPIWord(uint8 address)
{
uint16 readword;
SPI_Write(address << 8);
while(SPI_IsBusBusy());
SPI_ClearRxFifo();
SPI_Write(0x0000);
while(SPI_IsBusBusy());
readword = SPI_Read();
return (uint16)readword;
}
(Wrong) Result
Could someone point me in the correct direction?
Show LessHi,
I've got multiple BLE Advertising nodes and one Observer. I'm trying to identify each Advertiser uniquely at the Observer. Right now, they all have the same 48bit BDAddr.
All the Advertising nodes have the same application in it. Is there a way to use part of the SIlicon ID as the BDAddr?
I've trying using the following code to change the BDAddr with no luck. Maybe this is the correct code but not in the correct place.
cy_stc_ble_gap_bd_addr_t bdaddr = {{0xFF, 0xBB, 0xAA, 0x50, 0xA0, 0x00}, 0}; // create the BDAddr struct
Cy_BLE_ChangeAdDeviceAddress(&bdaddr, 0); // fill in the new BDAddr
Len
Show LessI'm trying to create a BLE Broadcaster node that publishes the Time Service once a minute using only Advertiser packets only. Is there a code example?
Note: I do not want to support connections on this node. I realize that I can supply a UIDD with data as part of the Advertiser packet. I also have already created an Observer-only BLE node that can decode the advertisement data.
Len
Show LessHello,
There are a couple of older (circa 2010) articles in the Cypress archives from Kendall Castor-Perry about USB Audio clock recovery, and much talk about a PSoC-based solution for a stable and reliable USB audio interface. I'm not having any luck turning up relevant reference designs, dev kits, or other info on the Cypress site. The closest I found was an Apple Lightning based solution, which isn't appropriate for my application.
https://www.cypress.com/file/122521/download
https://www.cypress.com/documentation/technical-articles/designing-modern-usb-audio-systems
I'm in the process of a redesign of the USB audio interface for my company's product line and am very interested in exploring more in this realm, as the article touches on many topics we've struggled with using other vendor's solutions over the years, so I'm particularly interested in taking advantage of the work Cypress has done in this realm.
I'm a long-time Cypress customer/developer, going all the way back to the original generation of EZ-USB micros when they were originally developed by Anchor in the late 90s, and have done several designs on those, as well as FX, FX1 and FX2's. Also used some of the lower cost Cypress USB micros nearly 20 years ago. New to PSoC.
thanks,
Steve
Show LessAny help or pointers appreciated please.
I'm having unexpected difficulties in interfacing a relatively common display to my PSoC6 prototype board.
Anybody know how to do it?
There are several efforts by Alan Hawse online but I have found these to be a) varied across IDE which I don't use and b) otherwise incomplete in terms of code (or with errors arising on my system - which of course may be due to differences in issues and timing of blogs).
I say these difficulties are 'unexpected', since I already have an ADAFRUIT M0 Feather board running with this display and using the u8g2 library (which may be found here) under the Arduino IDE.
PSoC 6 ENVIRONMENT:
Board: CY8C-PROTO-063-BLE / CYBLE-416054-02
IDE: PSoC Creator v4.2
PDL: 3.1.0
OS: Windows 10 (build 1903)
BUILD:
Created an I2C Master device and connected to SCL and SDA pins appropriate to my board
Display device needs only 4 wires to connect - the above two, plus 3V and GND
Downloaded and added in the U8g2lib to the project folder.
In Project Build Settings, I added the 'src' library folder as an additional directory to the Compiler.
Once the application was generated, I added the 'U8g2lib.h' header file into the header folder of the cm4 processor and #included it in 'main_cm4.c'
ISSUES:
The compiler throws errors such as missing 'arduino.h', 'print.h', U8x8lib.h' and so on. All of which makes me think I may be using a library that's too dedicated towards the Arduino IDE, or it may be a lack of experience in adding a library to a PSoC 6 project.....
All ideas welcomed - thank you.
Show LessThis board is referenced at https://www.cypress.com/file/461301/download
Show Less