Model-Based Design Toolbox for S32K146 - Example code builds and flashes but nothing happens

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Model-Based Design Toolbox for S32K146 - Example code builds and flashes but nothing happens

ソリューションへジャンプ
769件の閲覧回数
johngreenjets
Contributor III

I have installed the NXP 'Model-Based Design Toolbox for S32K1xx Automotive Microprocessors Family' which I am using with the NXP UCANS32K146 development board.

I am using the simple example 'gpio_s32k146' which toggles an LED and reads switch inputs etc

The build message shows that the model built and downloaded successfully, but the software does not seem to run because the LED does not toggle and the switches have no effect.

Why does this simple example code not seem to run on the development board ?

johngreenjets_0-1683900764674.png

johngreenjets_1-1683901178067.png

The configuration is setup as follows...

johngreenjets_2-1683901234142.png

 

johngreenjets_3-1683901254970.png

 

johngreenjets_4-1683901281446.png

Message shows successful completion of build and download...

johngreenjets_5-1683901431642.png

I imported the generated xml project into the S32 Design Studio for Arm IDE so I could break point and step.

I couldn't see anywhere in the code or project that sets the GPIO pins a digital inputs/outputs, could this be the problem ?  

I believe the pin configuration is usually done using the Processor Expert in the IDE ?

 

 

0 件の賞賛
返信
1 解決策
707件の閲覧回数
johngreenjets
Contributor III

After further investigation, it is working

The blue LED could not be seen to flash because its an RGB LED and the red and green LEDs were also on.

So I set the red and green LEDs to off and now the blue LED can be seen flashing

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
708件の閲覧回数
johngreenjets
Contributor III

After further investigation, it is working

The blue LED could not be seen to flash because its an RGB LED and the red and green LEDs were also on.

So I set the red and green LEDs to off and now the blue LED can be seen flashing

0 件の賞賛
返信