You are here

ASM Error | Cypress Semiconductor

ASM Error

Summary: 13 Replies, Latest post by danaaknight on 11 Oct 2013 11:27 AM PDT
Verified Answers: 0
Last post
Log in to post new comments.
user_209526657's picture
User
41 posts

 Hello,

            I tried to run the Assembly Language Program but i am facing the error"The command 'Ax51.exe' failed with exit code '2'."

May i know how to rectify thiserror??

user_209526657's picture
User
41 posts

 Can i get some sample projects based on ASEMBLY LANGUAGE Program .Please....

user_1377889's picture
User
10803 posts

Your errormessage states that the assembly failed. Usually there is an errormessage before indicating the cause of the fail, plse have a look at that.

The Keil documentation has a couple of examples and an example for a complete assembly file with all its segments.

 

Bob

maxwell's picture
User
3 posts

 Hi,Bob:

I happended pass by, there are some problems. I use "PSoC Creator  2.2 Component Pack 6", and I can't use asm("nop"), I don't know why, i just can't compailed it. 

I really need 1us to control my sensor, please give me some solutions.

Max

user_1377889's picture
User
10803 posts

Despite from Asm not working for you, there are some delay functions (CyDelay(), CyDelayus() ) which are documented in the "System Reference Guide" to be found here under the name "Boot_V_4"

Bob

user_1377889's picture
User
10803 posts
user_1377889's picture
User
10803 posts

Hopefully this is right, sorry but there is no edit function in this forum... http://www.cypress.com/?rID=51972


Bob

user_14586677's picture
User
7648 posts

The delay functions are subject to the error tolerance of the clock, which is

+/- 5% at 48 Mhz for PSOC 3.

 

If you need precise timing for your sensor, use external clock oscillator, specify

in clock editor the tolerance needed. Note that cannot be < main clock oscillator specs

obviously, whether using internal or external  main clock.

 

Regards, Dana.

hli
user_78878863's picture
User
2759 posts

The PSoC3 clock gets accurate to about 0.25% when the USB mode is used (because the PSoC then syncs to the USB clock)

maxwell's picture
User
3 posts

 Hi,Bob:

Thanks,cydelayus() is perfect for me ,I use PSoC 3 to communicate with DHT11 (Temperature & Humidity Sensor), I configure the pin as bidirectional, and the drive mode is resistive pull down, I need to output the signal to active the sensor and then receive the signal from the sensor.

I am not sure how to control the pin , especially the configuration.

I upload my project , please have a look.

user_1377889's picture
User
10803 posts

Yes, I will. In the meantime have a look at the pin-component, there is an Output Enable signal to control the direction.

Bob

Log in to post new comments.